(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return n=>n.lift(new i(t,e))}class i{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends r.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("bHdf");function s(){return Object(r.a)(1)}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("quSY");class s extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}class i extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return Pt})),n.d(e,"d",(function(){return Rt})),n.d(e,"e",(function(){return Et})),n.d(e,"f",(function(){return It})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return w})),n.d(e,"j",(function(){return C})),n.d(e,"k",(function(){return k})),n.d(e,"l",(function(){return bt})),n.d(e,"m",(function(){return G})),n.d(e,"n",(function(){return N})),n.d(e,"o",(function(){return H})),n.d(e,"p",(function(){return U})),n.d(e,"q",(function(){return Nt})),n.d(e,"r",(function(){return W})),n.d(e,"s",(function(){return T})),n.d(e,"t",(function(){return J})),n.d(e,"u",(function(){return St}));var r=n("fXoL"),s=n("ofXK"),i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),l=n("XoHu"),c=n("Cfvw");function u(t,e){return new i.a(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a<r;a++){const l=Object(c.a)(t[a]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const h=new r.q("NgValueAccessor"),d={provide:h,useExisting:Object(r.S)(()=>f),multi:!0};let f=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.yb([d])]}),t})();const p={provide:h,useExisting:Object(r.S)(()=>g),multi:!0},m=new r.q("CompositionEventMode");let g=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.D)()?Object(s.D)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l),r.Mb(m,8))},t.\u0275dir=r.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.dc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.yb([p])]}),t})(),_=(()=>{class t{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(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t}),t})(),y=(()=>{class t extends _{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.wb]}),t})();const b=r.Tb(y);function v(){throw new Error("unimplemented")}class w extends _{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return v()}get asyncValidator(){return v()}}class S{constructor(t){this._cd=t}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}}let C=(()=>{class t extends S{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.wb]}),t})(),k=(()=>{class t extends S{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.wb]}),t})();function E(t){return null==t||0===t.length}const D=new r.q("NgValidators"),O=new r.q("NgAsyncValidators"),x=/^(?=.{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 T{static min(t){return e=>{if(E(e.value)||E(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(E(e.value)||E(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return E(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return E(t.value)||x.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(E(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return T.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(E(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(M);return 0==e.length?null:function(t){return R(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(M);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(o.a)(e))return u(e,null);if(Object(l.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(o.a)(t[0])?t[0]:t,null).pipe(Object(a.a)(t=>e(...t)))}return u(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(A)).pipe(Object(a.a)(R))}}}function M(t){return null!=t}function A(t){const e=Object(r.qb)(t)?Object(c.a)(t):t;if(!Object(r.pb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function R(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function j(t){return t.validate?e=>t.validate(e):t}function P(t){return t.validate?e=>t.validate(e):t}const I={provide:h,useExisting:Object(r.S)(()=>N),multi:!0};let N=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.yb([I])]}),t})();const F={provide:h,useExisting:Object(r.S)(()=>H),multi:!0};let V=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(w),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._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: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l),r.Mb(V),r.Mb(r.r))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.yb([F])]}),t})();const L={provide:h,useExisting:Object(r.S)(()=>U),multi:!0};let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.yb([L])]}),t})();const z='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',$='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });';class q{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      "+z)}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        ${$}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        \n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+z)}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      "+$)}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        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}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(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}. \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"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const B={provide:h,useExisting:Object(r.S)(()=>W),multi:!0};function Y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let W=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=r.rb}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Y(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.yb([B])]}),t})(),G=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Y(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.D),r.Mb(W,9))},t.\u0275dir=r.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Q={provide:h,useExisting:Object(r.S)(()=>K),multi:!0};function Z(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=r.rb}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),s=this._getOptionValue(r.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.yb([Q])]}),t})(),J=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Z(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Z(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.D),r.Mb(K,9))},t.\u0275dir=r.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function X(t,e){return[...e.path,t]}function tt(t,e){t||st(e,"Cannot find control with"),e.valueAccessor||st(e,"No value accessor for form control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&et(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&et(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function et(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nt(t,e){null==t&&st(e,"Cannot find control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator])}function rt(t){return st(t,"There is no FormControl instance attached to form control element with")}function st(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function it(t){return null!=t?T.compose(t.map(j)):null}function ot(t){return null!=t?T.composeAsync(t.map(P)):null}const at=[f,U,N,W,K,H];function lt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ct(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ut(t){const e=dt(t)?t.validators:t;return Array.isArray(e)?it(e):e||null}function ht(t,e){const n=dt(e)?e.asyncValidators:t;return Array.isArray(n)?ot(n):n||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ft{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=ut(t)}setAsyncValidators(t){this.asyncValidator=ht(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=A(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof mt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof gt&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.n,this.statusChanges=new r.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class pt extends ft{constructor(t=null,e,n){super(ut(e),ht(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class mt extends ft{constructor(t,e,n){super(ut(e),ht(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof pt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class gt extends ft{constructor(t,e,n){super(ut(e),ht(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof pt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const _t={provide:y,useExisting:Object(r.S)(()=>bt)},yt=(()=>Promise.resolve(null))();let bt=(()=>{class t extends y{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.n,this.form=new mt({},it(t),ot(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){yt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),tt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ct(this._directives,t)})}addFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path),n=new mt({});nt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){yt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,lt(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(D,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.dc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.yb([_t]),r.wb]}),t})(),vt=(()=>{class t extends y{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return X(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return it(this._validators)}get asyncValidator(){return ot(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return wt(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.wb]}),t})();const wt=r.Tb(vt);let St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ct=new r.q("NgModelWithFormControlWarning"),kt={provide:y,useExisting:Object(r.S)(()=>Et)};let Et=(()=>{class t extends y{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.n}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return tt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){ct(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,lt(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>rt(e)),e.valueAccessor.registerOnTouched(()=>rt(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&tt(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=it(this._validators);this.form.validator=T.compose([this.form.validator,t]);const e=ot(this._asyncValidators);this.form.asyncValidator=T.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||q.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(D,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.dc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.yb([kt]),r.wb,r.xb]}),t})();const Dt={provide:y,useExisting:Object(r.S)(()=>Ot)};let Ot=(()=>{class t extends vt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Mt(this._parent)&&q.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(D,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.yb([Dt]),r.wb]}),t})();const xt={provide:y,useExisting:Object(r.S)(()=>Tt)};let Tt=(()=>{class t extends y{constructor(t,e,n){super(),this._parent=t,this._validators=e,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 X(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return it(this._validators)}get asyncValidator(){return ot(this._asyncValidators)}_checkParentType(){Mt(this._parent)&&q.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(D,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.yb([xt]),r.wb]}),t})();function Mt(t){return!(t instanceof Ot||t instanceof Et||t instanceof Tt)}const At={provide:w,useExisting:Object(r.S)(()=>Rt)};let Rt=(()=>{class t extends w{constructor(t,e,n,s,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new r.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||st(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{var i;e.constructor===g?n=e:(i=e,at.some(t=>i.constructor===t)?(r&&st(t,"More than one built-in value accessor matches form control with"),r=e):(s&&st(t,"More than one custom value accessor matches form control with"),s=e))}),s||r||n||(st(t,"No valid value accessor for form control with"),null)}(this,s)}set isDisabled(t){q.disabledAttrWarning()}ngOnChanges(e){var n,s;this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object(r.rb)(e,n.currentValue)}(e,this.viewModel)&&("formControlName",n=t,this,s=this._ngModelWarningConfig,Object(r.T)()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(q.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(t){this.viewModel=t,this.update.emit(t)}get path(){return X(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return it(this._rawValidators)}get asyncValidator(){return ot(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Ot)&&this._parent instanceof vt?q.ngModelGroupException():this._parent instanceof Ot||this._parent instanceof Et||this._parent instanceof Tt||q.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(D,10),r.Mb(O,10),r.Mb(h,10),r.Mb(Ct,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.yb([At]),r.wb,r.xb]}),t._ngModelWarningSentOnce=!1,t})(),jt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})(),Pt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new mt(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new pt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new gt(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof pt||t instanceof mt||t instanceof gt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),It=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[V],imports:[jt]}),t})(),Nt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ct,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[Pt,V],imports:[jt]}),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(l((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new i.a(this,e,n),o=this.destination;o.add(s);const a=Object(r.a)(this,t,void 0,void 0,s);a!==s&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const r=new c(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==s.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const s=t[o.a]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[l.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(s.a)(t))}},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var r=n("HDdC");const s=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):s}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let r=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends r{constructor(t,e=r.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj");function o(t){return function(e){const n=new a(t),r=e.lift(n);return n.caught=r}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends r.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new s.a(this,void 0,void 0);this.add(r);const o=Object(i.a)(this,n,void 0,void 0,r);o!==r&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("LRne"),s=n("0EUg");function i(...t){return Object(s.a)()(Object(r.a)(...t))}var o=n("z+Ro");function a(...t){const e=t[t.length-1];return Object(o.a)(e)?(t.pop(),n=>i(t,n,e)):e=>i(t,e)}},Kqap:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(t,e,n))}}class i{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return s}));const s=r()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return o})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return m}));class r{}class s{}const i="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t){Promise.resolve(null).then(t)}class f{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class p{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?d(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const m="!"},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();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};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("EY2u"),s=n("LRne"),i=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(i.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp");class a extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}var l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("51Dv"),s=n("SeVD"),i=n("HDdC");function o(t,e,n,o,a=new r.a(t,n,o)){if(!a.closed)return e instanceof i.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ"),s=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("5+tZ");function s(t,e){return Object(r.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(t,e){return"function"==typeof e?n=>n.pipe(l((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends r.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(i.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return ki})),n.d(e,"b",(function(){return Ec})),n.d(e,"c",(function(){return vc})),n.d(e,"d",(function(){return yc})),n.d(e,"e",(function(){return bc})),n.d(e,"f",(function(){return _u})),n.d(e,"g",(function(){return au})),n.d(e,"h",(function(){return ai})),n.d(e,"i",(function(){return Nc})),n.d(e,"j",(function(){return ca})),n.d(e,"k",(function(){return xc})),n.d(e,"l",(function(){return ua})),n.d(e,"m",(function(){return bn})),n.d(e,"n",(function(){return Gl})),n.d(e,"o",(function(){return Y})),n.d(e,"p",(function(){return u})),n.d(e,"q",(function(){return B})),n.d(e,"r",(function(){return Ci})),n.d(e,"s",(function(){return Ta})),n.d(e,"t",(function(){return Ma})),n.d(e,"u",(function(){return Oc})),n.d(e,"v",(function(){return ot})),n.d(e,"w",(function(){return cu})),n.d(e,"x",(function(){return it})),n.d(e,"y",(function(){return nu})),n.d(e,"z",(function(){return Lc})),n.d(e,"A",(function(){return h})),n.d(e,"B",(function(){return kc})),n.d(e,"C",(function(){return Cc})),n.d(e,"D",(function(){return pa})),n.d(e,"E",(function(){return da})),n.d(e,"F",(function(){return fa})),n.d(e,"G",(function(){return ga})),n.d(e,"H",(function(){return ar})),n.d(e,"I",(function(){return f})),n.d(e,"J",(function(){return du})),n.d(e,"K",(function(){return Pa})),n.d(e,"L",(function(){return Gc})),n.d(e,"M",(function(){return _a})),n.d(e,"N",(function(){return Na})),n.d(e,"O",(function(){return gt})),n.d(e,"P",(function(){return Ri})),n.d(e,"Q",(function(){return ru})),n.d(e,"R",(function(){return Fn})),n.d(e,"S",(function(){return M})),n.d(e,"T",(function(){return Nn})),n.d(e,"U",(function(){return mu})),n.d(e,"V",(function(){return Kc})),n.d(e,"W",(function(){return Dc})),n.d(e,"X",(function(){return ci})),n.d(e,"Y",(function(){return Ja})),n.d(e,"Z",(function(){return ir})),n.d(e,"ab",(function(){return ur})),n.d(e,"bb",(function(){return Un})),n.d(e,"cb",(function(){return On})),n.d(e,"db",(function(){return Tn})),n.d(e,"eb",(function(){return jn})),n.d(e,"fb",(function(){return An})),n.d(e,"gb",(function(){return Mn})),n.d(e,"hb",(function(){return Rn})),n.d(e,"ib",(function(){return Ga})),n.d(e,"jb",(function(){return pu})),n.d(e,"kb",(function(){return Qa})),n.d(e,"lb",(function(){return Za})),n.d(e,"mb",(function(){return xn})),n.d(e,"nb",(function(){return F})),n.d(e,"ob",(function(){return ji})),n.d(e,"pb",(function(){return no})),n.d(e,"qb",(function(){return eo})),n.d(e,"rb",(function(){return Ai})),n.d(e,"sb",(function(){return Wa})),n.d(e,"tb",(function(){return Lt})),n.d(e,"ub",(function(){return O})),n.d(e,"vb",(function(){return Dn})),n.d(e,"wb",(function(){return qo})),n.d(e,"xb",(function(){return Zo})),n.d(e,"yb",(function(){return oa})),n.d(e,"zb",(function(){return Or})),n.d(e,"Ab",(function(){return Li})),n.d(e,"Bb",(function(){return ko})),n.d(e,"Cb",(function(){return Lo})),n.d(e,"Db",(function(){return Uo})),n.d(e,"Eb",(function(){return Co})),n.d(e,"Fb",(function(){return cc})),n.d(e,"Gb",(function(){return vt})),n.d(e,"Hb",(function(){return Ot})),n.d(e,"Ib",(function(){return _})),n.d(e,"Jb",(function(){return y})),n.d(e,"Kb",(function(){return kt})),n.d(e,"Lb",(function(){return xt})),n.d(e,"Mb",(function(){return qi})),n.d(e,"Nb",(function(){return Ki})),n.d(e,"Ob",(function(){return Xi})),n.d(e,"Pb",(function(){return Ji})),n.d(e,"Qb",(function(){return Zi})),n.d(e,"Rb",(function(){return Qi})),n.d(e,"Sb",(function(){return to})),n.d(e,"Tb",(function(){return mn})),n.d(e,"Ub",(function(){return zo})),n.d(e,"Vb",(function(){return yl})),n.d(e,"Wb",(function(){return Cl})),n.d(e,"Xb",(function(){return bl})),n.d(e,"Yb",(function(){return Sl})),n.d(e,"Zb",(function(){return et})),n.d(e,"ac",(function(){return Bi})),n.d(e,"bc",(function(){return _c})),n.d(e,"cc",(function(){return Yi})),n.d(e,"dc",(function(){return ro})),n.d(e,"ec",(function(){return dc})),n.d(e,"fc",(function(){return Me})),n.d(e,"gc",(function(){return Te})),n.d(e,"hc",(function(){return oo})),n.d(e,"ic",(function(){return $l})),n.d(e,"jc",(function(){return ql})),n.d(e,"kc",(function(){return Bl})),n.d(e,"lc",(function(){return ho})),n.d(e,"mc",(function(){return lo})),n.d(e,"nc",(function(){return Wi})),n.d(e,"oc",(function(){return fo})),n.d(e,"pc",(function(){return po})),n.d(e,"qc",(function(){return Pl})),n.d(e,"rc",(function(){return Il})),n.d(e,"sc",(function(){return Nl})),n.d(e,"tc",(function(){return Fl})),n.d(e,"uc",(function(){return Vl})),n.d(e,"vc",(function(){return Hl})),n.d(e,"wc",(function(){return ic})),n.d(e,"xc",(function(){return $i})),n.d(e,"yc",(function(){return Ze})),n.d(e,"zc",(function(){return ie})),n.d(e,"Ac",(function(){return hr})),n.d(e,"Bc",(function(){return Et})),n.d(e,"Cc",(function(){return uc})),n.d(e,"Dc",(function(){return oc})),n.d(e,"Ec",(function(){return So})),n.d(e,"Fc",(function(){return zi})),n.d(e,"Gc",(function(){return gc})),n.d(e,"Hc",(function(){return No})),n.d(e,"Ic",(function(){return Fo})),n.d(e,"Jc",(function(){return Vo})),n.d(e,"Kc",(function(){return Ho})),n.d(e,"Lc",(function(){return ac}));var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(t){return{toString:t}.toString()}function c(t,e,n){return l(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const u=c("Inject",t=>({token:t})),h=c("Optional"),d=c("Self"),f=c("SkipSelf");var p=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function m(t){for(let e in t)if(t[e]===m)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function y(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function b(t){return v(t,t[S])||v(t,t[E])}function v(t,e){return e&&e.token===t?e:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(D))?t[C]:null}const S=m({"\u0275prov":m}),C=m({"\u0275inj":m}),k=m({"\u0275provFallback":m}),E=m({ngInjectableDef:m}),D=m({ngInjectorDef:m});function O(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(O).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function x(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const T=m({__forward_ref__:m});function M(t){return t.__forward_ref__=M,t.toString=function(){return O(this())},t}function A(t){return R(t)?t():t}function R(t){return"function"==typeof t&&t.hasOwnProperty(T)&&t.__forward_ref__===M}const j="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,I="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,N="undefined"!=typeof global&&global,F=j||N||P||I,V=m({"\u0275cmp":m}),H=m({"\u0275dir":m}),L=m({"\u0275pipe":m}),U=m({"\u0275mod":m}),z=m({"\u0275loc":m}),$=m({"\u0275fac":m}),q=m({__NG_ELEMENT_ID__:m});class B{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Y=new B("INJECTOR",-1),W={},G=/\n/gm,Q=m({provide:String,useValue:m});let Z,K=void 0;function J(t){const e=K;return K=t,e}function X(t){const e=Z;return Z=t,e}function tt(t,e=p.Default){if(void 0===K)throw new Error("inject() must be called from an injection context");return null===K?nt(t,void 0,e):K.get(t,e&p.Optional?null:void 0,e)}function et(t,e=p.Default){return(Z||tt)(A(t),e)}function nt(t,e,n){const r=b(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${O(t)}]`)}function rt(t){const e=[];for(let n=0;n<t.length;n++){const r=A(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=p.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof h||"Optional"===s.ngMetadataName||s===h?n|=p.Optional:s instanceof f||"SkipSelf"===s.ngMetadataName||s===f?n|=p.SkipSelf:s instanceof d||"Self"===s.ngMetadataName||s===d?n|=p.Self:t=s instanceof u||s===u?s.token:s}e.push(et(t,n))}else e.push(et(r))}return e}class st{get(t,e=W){if(e===W){const e=new Error(`NullInjectorError: No provider for ${O(t)}!`);throw e.name="NullInjectorError",e}return e}}class it{}class ot{}function at(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function lt(t,e){t.forEach(t=>Array.isArray(t)?lt(t,e):e(t))}function ct(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function dt(t,e,n){let r=pt(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ft(t,e){const n=pt(t,e);if(n>=0)return t[1|n]}function pt(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const mt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),gt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),_t={},yt=[];let bt=0;function vt(t){return l(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||yt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c",styles:t.styles||yt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=bt++,s.inputs=Dt(t.inputs,r),s.outputs=Dt(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(wt):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(St):null,s})}function wt(t){return Tt(t)||function(t){return t[H]||null}(t)}function St(t){return function(t){return t[L]||null}(t)}const Ct={};function kt(t){const e={type:t.type,bootstrap:t.bootstrap||yt,declarations:t.declarations||yt,imports:t.imports||yt,exports:t.exports||yt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&l(()=>{Ct[t.id]=t.type}),e}function Et(t,e){return l(()=>{const n=At(t,!0);n.declarations=e.declarations||yt,n.imports=e.imports||yt,n.exports=e.exports||yt})}function Dt(t,e){if(null==t)return _t;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Ot=vt;function xt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tt(t){return t[V]||null}function Mt(t,e){return t.hasOwnProperty($)?t[$]:null}function At(t,e){const n=t[U]||null;if(!n&&!0===e)throw new Error(`Type ${O(t)} does not have '\u0275mod' property.`);return n}function Rt(t){return Array.isArray(t)&&"object"==typeof t[1]}function jt(t){return Array.isArray(t)&&!0===t[1]}function Pt(t){return 0!=(8&t.flags)}function It(t){return 2==(2&t.flags)}function Nt(t){return 1==(1&t.flags)}function Ft(t){return null!==t.template}function Vt(t){return 0!=(512&t[2])}let Ht=void 0;function Lt(t){Ht=t}function Ut(){return void 0!==Ht?Ht:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}const $t={createRenderer:(t,e)=>Ut()};function qt(t){for(;Array.isArray(t);)t=t[0];return t}function Bt(t,e){return qt(e[t+19])}function Yt(t,e){return qt(e[t.index])}function Wt(t,e){return t.data[e+19]}function Gt(t,e){return t[e+19]}function Qt(t,e){const n=e[t];return Rt(n)?n:n[0]}function Zt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Kt(t){return 4==(4&t[2])}function Jt(t){return 128==(128&t[2])}function Xt(t,e){return null===t||null==e?null:t[e]}function te(t){t[18]=0}const ee={lFrame:Se(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ne(){return ee.bindingsEnabled}function re(){return ee.lFrame.lView}function se(){return ee.lFrame.tView}function ie(t){ee.lFrame.contextLView=t}function oe(){return ee.lFrame.previousOrParentTNode}function ae(t,e){ee.lFrame.previousOrParentTNode=t,ee.lFrame.isParent=e}function le(){return ee.lFrame.isParent}function ce(){ee.lFrame.isParent=!1}function ue(){return ee.checkNoChangesMode}function he(t){ee.checkNoChangesMode=t}function de(){const t=ee.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function fe(){return ee.lFrame.bindingIndex}function pe(){return ee.lFrame.bindingIndex++}function me(t){const e=ee.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ge(t,e){const n=ee.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function _e(){return ee.lFrame.currentQueryIndex}function ye(t){ee.lFrame.currentQueryIndex=t}function be(t,e){const n=we();ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function ve(t,e){const n=we(),r=t[1];ee.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function we(){const t=ee.lFrame,e=null===t?null:t.child;return null===e?Se(t):e}function Se(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ce(){const t=ee.lFrame;return ee.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const ke=Ce;function Ee(){const t=Ce();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function De(){return ee.lFrame.selectedIndex}function Oe(t){ee.lFrame.selectedIndex=t}function xe(){const t=ee.lFrame;return Wt(t.tView,t.selectedIndex)}function Te(){ee.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Me(){ee.lFrame.currentNamespace=null}function Ae(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function Re(t,e,n){Ie(t,e,3,n)}function je(t,e,n,r){(3&t[2])===n&&Ie(t,e,n,r)}function Pe(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function Ie(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&(Ne(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Ne(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,i.call(o)):i.call(o)}class Fe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ve(t,e,n){const r=zt(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],l=n[s++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=i,a=n[++s];Le(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function He(t){return 3===t||4===t||6===t}function Le(t){return 64===t.charCodeAt(0)}function Ue(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||ze(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function ze(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function $e(t){return-1!==t}function qe(t){return 32767&t}function Be(t){return t>>16}function Ye(t,e){let n=Be(t),r=e;for(;n>0;)r=r[15],n--;return r}function We(t){return"string"==typeof t?t:null==t?"":""+t}function Ge(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():We(t)}const Qe=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Ze(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ke(t){return t instanceof Function?t():t}let Je=!0;function Xe(t){const e=Je;return Je=t,e}let tn=0;function en(t,e){const n=rn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,nn(r.data,t),nn(e,null),nn(r.blueprint,null));const s=sn(t,e),i=t.injectorIndex;if($e(s)){const t=qe(s),n=Ye(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function nn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function sn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function on(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[q]:n.charCodeAt(0)||0;null==r&&(r=n[q]=tn++);const s=255&r,i=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=i:l[t+6]|=i:a?l[t+5]|=i:l[t+4]|=i:o?a?l[t+3]|=i:l[t+2]|=i:a?l[t+1]|=i:l[t]|=i}(t,e,n)}function an(t,e,n,r=p.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[q];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){be(e,t);try{const t=s();if(null!=t||r&p.Optional)return t;throw new Error(`No provider for ${Ge(n)}!`)}finally{ke()}}else if("number"==typeof s){if(-1===s)return new pn(t,e);let i=null,o=rn(t,e),a=-1,l=r&p.Host?e[16][6]:null;for((-1===o||r&p.SkipSelf)&&(a=-1===o?sn(t,e):e[o+8],fn(r,!1)?(i=e[1],o=qe(a),e=Ye(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(dn(s,o,t.data)){const t=cn(o,e,n,i,r,l);if(t!==ln)return t}fn(r,e[1].data[o+8]===l)&&dn(s,o,e)?(i=t,o=qe(a),e=Ye(a,e)):o=-1}}}if(r&p.Optional&&void 0===s&&(s=null),0==(r&(p.Self|p.Host))){const t=e[9],i=X(void 0);try{return t?t.get(n,s,r&p.Optional):nt(n,s,r&p.Optional)}finally{X(i)}}if(r&p.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Ge(n)}]`)}const ln={};function cn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=un(a,o,n,null==r?It(a)&&Je:r!=o&&3===a.type,s&p.Host&&i===a);return null!==l?hn(e,o,l,a):ln}function un(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,l=t.directiveStart,c=i>>16,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Ft(t)&&t.type===n)return l}return null}function hn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof Fe){const o=s;if(o.resolving)throw new Error("Circular dep for "+Ge(i[n]));const a=Xe(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=X(o.injectImpl)),be(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&X(l),Xe(a),o.resolving=!1,ke()}}return s}function dn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<<t)}function fn(t,e){return!(t&p.Self||t&p.Host&&e)}class pn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return an(this._tNode,this._lView,t,void 0,e)}}function mn(t){return l(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[$]||function t(e){const n=e;if(R(e))return()=>{const e=t(A(n));return e?e():null};let r=Mt(n);if(null===r){const t=w(n);r=t&&t.factory}return r||null}(e);return null!==n?n:t=>new t})}function gn(t){return t.ngDebugContext}function _n(t){return t.ngOriginalError}function yn(t,...e){t.error(...e)}class bn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||yn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?gn(t)?gn(t):this._findContext(_n(t)):null}_findOriginalError(t){let e=_n(t);for(;e&&_n(e);)e=_n(e);return e}}class vn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class wn extends vn{getTypeName(){return"HTML"}}class Sn extends vn{getTypeName(){return"Style"}}class Cn extends vn{getTypeName(){return"Script"}}class kn extends vn{getTypeName(){return"URL"}}class En extends vn{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof vn?t.changingThisBreaksApplicationSecurity:t}function On(t,e){const n=xn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function xn(t){return t instanceof vn&&t.getTypeName()||null}function Tn(t){return new wn(t)}function Mn(t){return new Sn(t)}function An(t){return new Cn(t)}function Rn(t){return new kn(t)}function jn(t){return new En(t)}let Pn=!0,In=!1;function Nn(){return In=!0,Pn}function Fn(){if(In)throw new Error("Cannot enable prod mode after platform setup.");Pn=!1}class Vn{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Hn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ln=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Un(t){return(t=String(t)).match(Hn)||t.match(Ln)?t:(Nn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function zn(t){return(t=String(t)).split(",").map(t=>Un(t.trim())).join(", ")}function $n(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function qn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Bn=$n("area,br,col,hr,img,wbr"),Yn=$n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wn=$n("rp,rt"),Gn=qn(Wn,Yn),Qn=qn(Bn,qn(Yn,$n("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),qn(Wn,$n("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Gn),Zn=$n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Kn=$n("srcset"),Jn=qn(Zn,Kn,$n("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$n("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Xn=$n("script,style,template");class tr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Qn.hasOwnProperty(e))return this.sanitizedSomething=!0,!Xn.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!Jn.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let i=t.value;Zn[s]&&(i=Un(i)),Kn[s]&&(i=zn(i)),this.buf.push(" ",e,'="',rr(i),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Qn.hasOwnProperty(e)&&!Bn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(rr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const er=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nr=/([^\#-~ |!])/g;function rr(t){return t.replace(/&/g,"&amp;").replace(er,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(nr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let sr;function ir(t,e){let n=null;try{sr=sr||new Vn(t);let r=e?String(e):"";n=sr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=sr.getInertBodyElement(r)}while(r!==i);const o=new tr,a=o.sanitizeChildren(or(n)||n);return Nn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=or(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function or(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const ar=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),lr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),cr=/^url\(([^)]+)\)$/;function ur(t){if(!(t=String(t).trim()))return"";const e=t.match(cr);return e&&Un(e[1])===e[1]||t.match(lr)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s&&n?e=!e:'"'===s&&e&&(n=!n)}return e&&n}(t)?t:(Nn()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function hr(t){const e=function(){const t=re();return t&&t[12]}();return e?e.sanitize(ar.URL,t)||"":On(t,"URL")?Dn(t):Un(We(t))}function dr(t,e){t.__ngContext__=e}function fr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function pr(){throw new Error("Cannot mix multi providers and regular providers")}function mr(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}function gr(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==mr(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function _r(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function yr(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(He(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!_r(t,l,n)||""===l&&1===e.length){if(br(r))return!1;o=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!gr(t.attrs,c,n)){if(br(r))return!1;o=!0}continue}const u=vr(8&r?"class":l,s,0==t.type&&"ng-template"!==t.tagName,n);if(-1===u){if(br(r))return!1;o=!0;continue}if(""!==c){let t;t=u>i?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==mr(e,c,0)||2&r&&c!==t){if(br(r))return!1;o=!0}}}}else{if(!o&&!br(r)&&!br(l))return!1;if(o&&br(l))continue;o=!1,r=l|1&r}}return br(r)||o}function br(t){return 0==(1&t)}function vr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function wr(t,e,n=!1){for(let r=0;r<e.length;r++)if(yr(t,e[r],n))return!0;return!1}function Sr(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function Cr(t,e){return t?":not("+e.trim()+")":e}function kr(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||br(o)||(e+=Cr(i,s),s=""),r=o,i=i||!br(r);n++}return""!==s&&(e+=Cr(i,s)),e}const Er={};function Dr(t){const e=t[3];return jt(e)?e[3]:e}function Or(t){xr(se(),re(),De()+t,ue())}function xr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Re(e,r,n)}else{const r=t.preOrderHooks;null!==r&&je(e,r,0,n)}Oe(n)}const Tr={marker:"element"},Mr={marker:"comment"};function Ar(t,e){return t<<17|e<<2}function Rr(t){return t>>17&32767}function jr(t){return 2|t}function Pr(t){return(131068&t)>>2}function Ir(t,e){return-131069&t|e<<2}function Nr(t){return 1|t}function Fr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];ye(s),n.contentQueries(2,e[i],i)}}}function Vr(t,e,n){return zt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Hr(t,e,n,r,s,i,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,te(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=i,u[16]=2==e.type?t[16]:u,u}function Lr(t,e,n,r,s,i){const o=n+19,a=t.data[o]||function(t,e,n,r,s,i){const o=oe(),a=le(),l=a?o:o&&o.parent,c=t.data[n]=Zr(0,l&&l!==e?l:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,r,s,i);return ae(a,!0),a}function Ur(t,e,n){ve(e,e[6]);try{const r=t.viewQuery;null!==r&&vs(1,r,n);const s=t.template;null!==s&&qr(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Fr(t,e),t.staticViewQueries&&vs(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)ms(t,e[n])}(e,i)}finally{e[2]&=-5,Ee()}}function zr(t,e,n,r){const s=e[2];if(256==(256&s))return;ve(e,e[6]);const i=ue();try{te(e),ee.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&qr(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&Re(e,n,null)}else{const n=t.preOrderHooks;null!==n&&je(e,n,0,null),Pe(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(jt(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];Jt(n)&&zr(r,n,r.template,n[8])}0!=(1&n)&&fs(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Fr(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&Re(e,n)}else{const n=t.contentHooks;null!==n&&je(e,n,1),Pe(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,Oe(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(ge(r,s),o(2,e[s])),s++)}}}finally{Oe(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ps(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&vs(2,l,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&Re(e,n)}else{const n=t.viewHooks;null!==n&&je(e,n,2),Pe(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73)}finally{Ee()}}function $r(t,e,n,r){const s=e[10],i=!ue(),o=Kt(e);try{i&&!o&&s.begin&&s.begin(),o&&Ur(t,e,r),zr(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function qr(t,e,n,r,s){const i=De();try{Oe(-1),2&r&&e.length>19&&xr(t,e,0,ue()),n(r,s)}finally{Oe(i)}}function Br(t,e,n){if(Pt(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Yr(t,e,n){ne()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||en(n,e),dr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=Ft(r);i&&ls(e,n,r);const l=hn(e,t,a,n);dr(l,e),null!==o&&us(0,a-s,l,r,0,o),i&&(Qt(n.index,e)[8]=l)}}(t,e,n,Yt(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-19;try{Oe(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?ns(r,s):o&&i.push(null)}}finally{Oe(-1)}}(t,e,n))}function Wr(t,e,n=Yt){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Gr(t){return t.tView||(t.tView=Qr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function Qr(t,e,n,r,s,i,o,a,l,c){const u=19+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Er);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c}}function Zr(t,e,n,r,s,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Kr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function Jr(t,e,n,r,s,i,o,a){const l=Yt(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(Es(t,n,c,r,s),It(e)&&function(t,e){const n=Qt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",r):s,zt(i)?i.setProperty(l,r,s):Le(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}function Xr(t,e,n,r){let s=!1;if(ne()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];wr(n,o.selectors,!1)&&(s||(s=[]),on(en(n,e),t,o.type),Ft(o)?(2&n.flags&&fr(n),ss(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,os(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}rs(t,n,i.length);let a=!1,l=!1;for(let s=0;s<i.length;s++){const c=i[s];n.mergedAttrs=Ue(n.mergedAttrs,c.hostAttrs),as(t,e,c),is(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),l=!0),ts(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],e=t.inputs;i.push(null!==s?hs(e,s):null),o=Kr(e,l,o),a=Kr(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),es(t,e,r)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,o)}return n.mergedAttrs=Ue(n.mergedAttrs,n.attrs),s}function ts(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function es(t,e,n){for(let r=0;r<n;r++)e.push(Er),t.blueprint.push(Er),t.data.push(null)}function ns(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function rs(t,e,n){const r=19-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function ss(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function is(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ft(e)&&(n[""]=t)}}function os(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function as(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Mt(n.type)),s=new Fe(r,Ft(n),null);t.blueprint.push(s),e.push(s)}function ls(t,e,n){const r=Yt(e,t),s=Gr(n),i=t[10],o=gs(t,Hr(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function cs(t,e,n,r,s,i){const o=Yt(t,e),a=e[11];if(null==r)zt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?We(r):s(r,t.tagName||"",n);zt(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}function us(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function hs(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function ds(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function fs(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],s=t[3][3][16];if(s!==e&&0==(16&s[2])){const e=t[1];zr(e,t,e.template,t[8])}}}function ps(t,e){const n=Qt(e,t);if(Jt(n)&&80&n[2]){const t=n[1];zr(t,n,t.template,n[8])}}function ms(t,e){const n=Qt(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Ur(r,n,n[8])}function gs(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function _s(t){for(;t;){t[2]|=64;const e=Dr(t);if(Vt(t)&&!e)return t;t=e}return null}function ys(t,e,n){const r=e[10];r.begin&&r.begin();try{zr(t,e,t.template,n)}catch(s){throw ks(e,s),s}finally{r.end&&r.end()}}function bs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Zt(n),s=r[1];$r(s,r,s.template,n)}}(t[8])}function vs(t,e,n){ye(0),e(t,n)}const ws=(()=>Promise.resolve(null))();function Ss(t){return t[7]||(t[7]=[])}function Cs(t){return t.cleanup||(t.cleanup=[])}function ks(t,e){const n=t[9],r=n?n.get(bn,null):null;r&&r.handleError(e)}function Es(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,r,a):l[a]=s}}function Ds(t,e,n){const r=Bt(e,t),s=t[11];zt(s)?s.setValue(r,n):r.textContent=n}function Os(t,e){const n=e[3];return-1===t.index?jt(n)?n:null:n}function xs(t,e){const n=Os(t,e);return n?Us(e[11],n[7]):null}function Ts(t,e,n,r,s){if(null!=r){let i,o=!1;jt(r)?i=r:Rt(r)&&(o=!0,r=r[0]);const a=qt(r);0===t&&null!==n?null==s?Hs(e,n,a):Vs(e,n,a,s||null):1===t&&null!==n?Vs(e,n,a,s||null):2===t?Bs(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==qt(n)&&Ts(e,t,r,i,s);for(let o=9;o<n.length;o++){const s=n[o];Ws(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function Ms(t,e){return zt(e)?e.createText(t):e.createTextNode(t)}function As(t,e,n,r){const s=xs(t.node,e);s&&Ws(t,e,e[11],n?1:2,s,r)}function Rs(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function js(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&Rs(s,r),e>0&&(t[n-1][4]=r[4]);const i=ut(t,9+e);As(r[1],r,!1,null);const o=i[5];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ps(t,e){if(!(256&e[2])){const n=e[11];zt(n)&&n.destroyNode&&Ws(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ns(t[1],t);for(;e;){let n=null;if(Rt(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Rt(e)&&Ns(e[1],e),e=Is(e,t);null===e&&(e=t),Rt(e)&&Ns(e[1],e),n=e&&e[4]}e=n}}(e)}}function Is(t,e){let n;return Rt(t)&&(n=t[6])&&2===n.type?Os(n,t):t[3]===e?null:t[3]}function Ns(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof Fe)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],i="function"==typeof s?s(e):qt(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&zt(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&jt(e[3])){r!==e[3]&&Rs(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function Fs(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?xs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Yt(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==gt.ShadowDom&&n!==gt.Native)return null}return Yt(r,n)}function Vs(t,e,n,r){zt(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Hs(t,e,n){zt(t)?t.appendChild(e,n):e.appendChild(n)}function Ls(t,e,n,r){null!==r?Vs(t,e,n,r):Hs(t,e,n)}function Us(t,e){return zt(t)?t.parentNode(e):e.parentNode}function zs(t,e){if(2===t.type){const n=Os(t,e);return null===n?null:qs(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Yt(t,e):null}function $s(t,e,n,r){const s=Fs(t,r,e);if(null!=s){const t=e[11],i=zs(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Ls(t,s,n[e],i);else Ls(t,s,n,i)}}function qs(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Yt(n,e);if(0===r)return qs(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return jt(t)?qs(-1,t):qt(t)}}{const r=e[16],s=r[6],i=Dr(r),o=s.projection[n.projection];return null!=o?t(i,o):t(e,n.next)}}return null}(t,r)}return e[7]}function Bs(t,e,n){const r=Us(t,e);r&&function(t,e,n,r){zt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function Ys(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],l=n.type;o&&0===e&&(a&&dr(qt(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Ys(t,e,n.child,r,s,i,!1),Ts(e,t,s,a,i)):1===l?Qs(t,e,r,n,s,i):Ts(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function Ws(t,e,n,r,s,i){Ys(n,r,t.node.child,e,s,i,!1)}function Gs(t,e,n){Qs(e[11],0,e,n,Fs(t,n,e),zs(n.parent||e[6],e))}function Qs(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ts(e,t,s,a[l],i);else Ys(t,e,a,o[3],s,i,!0)}function Zs(t,e,n){zt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Ks(t,e,n){zt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Js{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,s,i=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&s.push(qt(o)),jt(o))for(let e=9;e<o.length;e++){const n=o[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(4===a||5===a)t(e,n,r.child,s);else if(1===a){const e=n[16],i=e[6],o=Dr(e);let a=i.projection[r.projection];null!==a&&null!==o&&t(o[1],o,a,s,!0)}r=i?r.projectionNext:r.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ps(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,Ss(n=this._lView).push(r),e.firstCreatePass&&Cs(e).push(n[7].length-1,null)}markForCheck(){_s(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ys(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){he(!0);try{ys(t,e,n)}finally{he(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ws(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Xs extends Js{constructor(t){super(t),this._view=t}detectChanges(){bs(this._view)}checkNoChanges(){!function(t){he(!0);try{bs(t)}finally{he(!1)}}(this._view)}get context(){return null}}let ti,ei,ni;function ri(t,e,n){return ti||(ti=class extends t{}),new ti(Yt(e,n))}function si(t,e,n,r){return ei||(ei=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Hr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),Ur(e,n,t);const s=new Js(n);return s._tViewNode=n[6],s}}),0===n.type?new ei(r,n,ri(e,n,r)):null}function ii(t,e,n,r){let s;ni||(ni=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return ri(e,this._hostTNode,this._hostView)}get injector(){return new pn(this._hostTNode,this._hostView)}get parentInjector(){const t=sn(this._hostTNode,this._hostView),e=Ye(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Be(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return $e(t)&&null!=n?new pn(n,e):new pn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(it,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),jt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new ni(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=9+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-9?(e[4]=n[s],ct(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(o,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),As(r,n,!0,qs(s,this._lContainer)),t.attachToViewContainerRef(this),ct(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);(function(t,e){const n=js(t,e);n&&Ps(n[1],n)})(this._lContainer,e),ut(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=js(this._lContainer,e);return n&&null!=ut(this._lContainer[8],e)?new Js(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(jt(i))s=i,function(t,e){t[2]=-2}(s);else{let t;if(4===n.type)t=qt(i);else if(t=r[11].createComment(""),Vt(r)){const e=r[11],s=Yt(n,r);Vs(e,Us(e,s),t,function(t,e){return zt(t)?t.nextSibling(e):e.nextSibling}(e,s))}else $s(r[1],r,t,n);r[n.index]=s=ds(i,r,t,n),gs(r,s)}return new ni(s,n,r)}function oi(t=!1){return function(t,e,n){if(!n&&It(t)){const n=Qt(t.index,e);return new Js(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Js(e[16],e):null}(oe(),re(),t)}let ai=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>li(),t})();const li=oi,ci=new B("Set Injector scope."),ui={},hi={},di=[];let fi=void 0;function pi(){return void 0===fi&&(fi=new st),fi}function mi(t,e=null,n=null,r){return new gi(t,n,e||pi(),r)}class gi{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&lt(e,n=>this.processProvider(n,t,e)),lt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Y,bi(void 0,this));const i=this.records.get(ci);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:O(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=W,n=p.Default){this.assertNotDestroyed();const r=J(this);try{if(!(n&p.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof B)&&b(t);e=n&&this.injectableDefInScope(n)?bi(_i(t),ui):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&p.Self?pi():this.parent).get(t,e=n&p.Optional&&e===W?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(O(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=O(e);if(Array.isArray(e))s=e.map(O).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):O(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(G,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{J(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(O(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=A(t)))return!1;let r=w(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=w(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{lt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];lt(r,t=>this.processProvider(t,n,r||di))}}this.injectorDefTypes.add(i),this.records.set(i,bi(r.factory,ui));const a=r.providers;if(null!=a&&!o){const e=t;lt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=wi(t=A(t))?t:A(t&&t.provide);const s=function(t,e,n){return vi(t)?bi(void 0,t.useValue):bi(yi(t,e,n),ui)}(t,e,n);if(wi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&pr()}else{let e=this.records.get(r);e?void 0===e.multi&&pr():(e=bi(void 0,ui,!0),e.factory=()=>rt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===hi?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(O(t)):e.value===ui&&(e.value=hi,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function _i(t){const e=b(t),n=null!==e?e.factory:Mt(t);if(null!==n)return n;const r=w(t);if(null!==r)return r.factory;if(t instanceof B)throw new Error(`Token ${O(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ht(e,"?");throw new Error(`Can't resolve all parameters for ${O(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[E]||t[k]&&t[k]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function yi(t,e,n){let r=void 0;if(wi(t)){const e=A(t);return Mt(e)||_i(e)}if(vi(t))r=()=>A(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...rt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>et(A(t.useExisting));else{const s=A(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${O(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Mt(s)||_i(s);r=()=>new s(...rt(t.deps))}var s;return r}function bi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function vi(t){return null!==t&&"object"==typeof t&&Q in t}function wi(t){return"function"==typeof t}const Si=function(t,e,n){return function(t,e=null,n=null,r){const s=mi(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ci=(()=>{class t{static create(t,e){return Array.isArray(t)?Si(t,e,""):Si(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=W,t.NULL=new st,t.\u0275prov=_({token:t,providedIn:"any",factory:()=>et(Y)}),t.__NG_ELEMENT_ID__=-1,t})();const ki=new B("AnalyzeForEntryComponents");let Ei=new Map;const Di=new Set;function Oi(t){return"string"==typeof t?t:t.text()}function xi(t,e){let n=t.styles,r=t.classes,s=0;for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?s=t:1==s?r=x(r,t):2==s&&(n=x(n,t+": "+e[++i]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let Ti=null;function Mi(){if(!Ti){const t=F.Symbol;if(t&&t.iterator)Ti=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ti=n)}}}return Ti}function Ai(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class Ri{constructor(t){this.wrapped=t}static wrap(t){return new Ri(t)}static unwrap(t){return Ri.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ri}}function ji(t){return!!Pi(t)&&(Array.isArray(t)||!(t instanceof Map)&&Mi()in t)}function Pi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ii(t,e,n){return t[e]=n}function Ni(t,e){return t[e]}function Fi(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Vi(t,e,n,r){const s=Fi(t,e,n);return Fi(t,e+1,r)||s}function Hi(t,e,n,r,s,i){const o=Vi(t,e,n,r);return Vi(t,e+2,s,i)||o}function Li(t,e,n,r){const s=re();return Fi(s,pe(),e)&&(se(),cs(xe(),s,t,e,n,r)),Li}function Ui(t,e,n,r){return Fi(t,pe(),n)?e+We(n)+r:Er}function zi(t,e,n,r,s,i,o,a){const l=re(),c=se(),u=t+19,h=c.firstCreatePass?function(t,e,n,r,s,i,o,a,l){const c=e.consts,u=Lr(e,n[6],t,0,o||null,Xt(c,a));Xr(e,n,u,Xt(c,l)),Ae(e,u);const h=u.tViews=Qr(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Zr(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,r,s,i,o):c.data[u];ae(h,!1);const d=l[11].createComment("");$s(c,l,d,h),dr(d,l),gs(l,l[u]=ds(d,l,d,h)),Nt(h)&&Yr(c,l,h),null!=o&&Wr(l,h,a)}function $i(t){return Gt(ee.lFrame.contextLView,t)}function qi(t,e=p.Default){const n=re();return null==n?et(t,e):an(oe(),n,A(t),e)}function Bi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(He(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(oe(),t)}function Yi(){throw new Error("invalid")}function Wi(t,e,n){const r=re();return Fi(r,pe(),e)&&Jr(se(),xe(),r,t,e,r[11],n,!1),Wi}function Gi(t,e,n,r,s){const i=s?"class":"style";Es(t,n,e.inputs[i],i,r)}function Qi(t,e,n,r){const s=re(),i=se(),o=19+t,a=s[11],l=s[o]=Vr(e,a,ee.lFrame.currentNamespace),c=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,l=Xt(a,i),c=Lr(e,n[6],t,3,s,l);return Xr(e,n,c,Xt(a,o)),null!==c.mergedAttrs&&xi(c,c.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,c),c}(t,i,s,0,e,n,r):i.data[o];ae(c,!0);const u=c.mergedAttrs;null!==u&&Ve(a,l,u);const h=c.classes;null!==h&&Ks(a,l,h);const d=c.styles;null!==d&&Zs(a,l,d),$s(i,s,l,c),0===ee.lFrame.elementDepthCount&&dr(l,s),ee.lFrame.elementDepthCount++,Nt(c)&&(Yr(i,s,c),Br(i,c,s)),null!==r&&Wr(s,c)}function Zi(){let t=oe();le()?ce():(t=t.parent,ae(t,!1));const e=t;ee.lFrame.elementDepthCount--;const n=se();n.firstCreatePass&&(Ae(n,t),Pt(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&Gi(n,e,re(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&Gi(n,e,re(),e.styles,!1)}function Ki(t,e,n,r){Qi(t,e,n,r),Zi()}function Ji(t,e,n){const r=re(),s=se(),i=t+19,o=s.firstCreatePass?function(t,e,n,r,s){const i=e.consts,o=Xt(i,r),a=Lr(e,n[6],t,4,"ng-container",o);return null!==o&&xi(a,o),Xr(e,n,a,Xt(i,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,r,e,n):s.data[i];ae(o,!0);const a=r[i]=r[11].createComment("");$s(s,r,a,o),dr(a,r),Nt(o)&&(Yr(s,r,o),Br(s,o,r)),null!=n&&Wr(r,o)}function Xi(){let t=oe();const e=se();le()?ce():(t=t.parent,ae(t,!1)),e.firstCreatePass&&(Ae(e,t),Pt(t)&&e.queries.elementEnd(t))}function to(){return re()}function eo(t){return!!t&&"function"==typeof t.then}function no(t){return!!t&&"function"==typeof t.subscribe}function ro(t,e,n=!1,r){const s=re(),i=se(),o=oe();return function(t,e,n,r,s,i,o=!1,a){const l=Nt(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Ss(e);let h=!0;if(3===r.type){const d=Yt(r,e),f=a?a(d):_t,p=f.target||d,m=u.length,g=a?t=>a(qt(t[r.index])).target:r.index;if(zt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=io(r,e,i,!1);const t=n.listen(f.name||p,s,i);u.push(i,t),c&&c.push(s,g,m,m+1)}}else i=io(r,e,i,!0),p.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,m,o)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(i),o=u.length;u.push(i,t),c&&c.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),ro}function so(t,e,n){try{return!1!==e(n)}catch(r){return ks(t,r),!1}}function io(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?Qt(t.index,e):e;0==(32&e[2])&&_s(o);let a=so(e,n,i),l=s.__ngNextListenerFn__;for(;l;)a=so(e,l,i)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function oo(t=1){return function(t){return(ee.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ee.lFrame.contextLView))[8]}(t)}function ao(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const i=e[s];if("*"!==i){if(null===r?wr(t,i,!0):Sr(r,i))return s}else n=s}return n}function lo(t){const e=re()[16][6];if(!e.projection){const n=e.projection=ht(t?t.length:1,null),r=n.slice();let s=e.child;for(;null!==s;){const e=t?ao(s,t):0;null!==e&&(r[e]?r[e].projectionNext=s:n[e]=s,r[e]=s),s=s.next}}}let co=!1;function uo(t){co=t}function ho(t,e=0,n){const r=re(),s=se(),i=Lr(s,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),ce(),co||Gs(s,r,i)}function fo(t,e,n){return po(t,"",e,"",n),fo}function po(t,e,n,r,s){const i=re(),o=Ui(i,e,n,r);return o!==Er&&Jr(se(),xe(),i,t,o,i[11],s,!1),po}const mo=[];function go(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Rr(i):Pr(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];_o(t[a],e)&&(l=!0,t[a+1]=r?Nr(n):jr(n)),a=r?Rr(n):Pr(n)}l&&(t[n+1]=r?jr(i):Nr(i))}function _o(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&pt(t,e)>=0}const yo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bo(t){return t.substring(yo.key,yo.keyEnd)}function vo(t,e){const n=yo.textEnd;return n===e?-1:(e=yo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,yo.key=e,n),wo(t,e,n))}function wo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function So(t,e,n){return Do(t,e,n,!1),So}function Co(t,e){return Do(t,e,null,!0),Co}function ko(t){Oo(dt,Eo,t,!0)}function Eo(t,e){for(let n=function(t){return function(t){yo.key=0,yo.keyEnd=0,yo.value=0,yo.valueEnd=0,yo.textEnd=t.length}(t),vo(t,wo(t,0,yo.textEnd))}(e);n>=0;n=vo(e,n))dt(t,bo(e),!0)}function Do(t,e,n,r){const s=re(),i=se(),o=me(2);if(i.firstUpdatePass&&To(i,t,o,r),e!==Er&&Fi(s,o,e)){let a;null==n&&(a=function(){const t=ee.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),Ro(i,i.data[De()+19],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=O(Dn(t)))),t}(e,n),r,o)}}function Oo(t,e,n,r){const s=se(),i=me(2);s.firstUpdatePass&&To(s,null,i,r);const o=re();if(n!==Er&&Fi(o,i,n)){const a=s.data[De()+19];if(Io(a,r)&&!xo(s,i)){let t=r?a.classes:a.styles;null!==t&&(n=x(t,n||"")),Gi(s,a,o,n,r)}else!function(t,e,n,r,s,i,o,a){s===Er&&(s=mo);let l=0,c=0,u=0<s.length?s[0]:null,h=0<i.length?i[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,f=c<i.length?i[c+1]:void 0;let p=null,m=void 0;u===h?(l+=2,c+=2,d!==f&&(p=h,m=f)):null===h||null!==u&&u<h?(l+=2,p=u):(c+=2,p=h,m=f),null!==p&&Ro(t,e,n,r,p,m,o,a),u=l<s.length?s[l]:null,h=c<i.length?i[c]:null}}(s,a,o,o[11],o[i+1],o[i+1]=function(t,e,n){if(null==n||""===n)return mo;const r=[],s=Dn(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)t(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&t(r,i,s[i]);else"string"==typeof s&&e(r,s);return r}(t,e,n),r,i)}}function xo(t,e){return e>=t.expandoStartIndex}function To(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[De()+19],o=xo(t,n);Io(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=ee.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Ao(n=Mo(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Mo(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Pr(r))return t[Rr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Mo(null,t,e,n[1],r),n=Ao(n,e.attrs,r),function(t,e,n,r){t[Rr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<s;i++)r=Ao(r,t[i].hostAttrs,n);return Ao(r,e.attrs,n)}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(s,i,e,r),function(t,e,n,r,s,i){let o=i?e.classBindings:e.styleBindings,a=Rr(o),l=Pr(o);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||pt(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Rr(t[a+1]);t[r+1]=Ar(e,a),0!==e&&(t[e+1]=Ir(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Ar(a,0),0!==a&&(t[a+1]=Ir(t[a+1],r)),a=r;else t[r+1]=Ar(l,0),0===a?a=r:t[l+1]=Ir(t[l+1],r),l=r;u&&(t[r+1]=jr(t[r+1])),go(t,c,r,!0),go(t,c,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&pt(i,e)>=0&&(n[r+1]=Nr(n[r+1]))}(e,c,t,r,i),o=Ar(a,l),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function Mo(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=e[a],r=Ao(r,i.hostAttrs,s),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ao(t,e,n){const r=n?1:2;let s=-1;if(null!==e)for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?s=o:s===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),dt(t,o,!!n||e[++i]))}return void 0===t?null:t}function Ro(t,e,n,r,s,i,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Po(1==(1&c)?jo(l,e,n,s,Pr(c),o):void 0)||(Po(i)||function(t){return 2==(2&t)}(c)&&(i=jo(l,null,n,s,a,o)),function(t,e,n,r,s){const i=zt(t);if(e)s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==s?i?t.removeStyle(n,r,e):n.style.removeProperty(r):i?t.setStyle(n,r,s,e):n.style.setProperty(r,s)}}(r,o,Bt(De(),n),s,i))}function jo(t,e,n,r,s,i){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===Er&&(u=c?mo:void 0);let h=c?ft(u,r):l===r?u:void 0;if(i&&!Po(h)&&(h=ft(e,r)),Po(h)&&(a=h,o))return a;const d=t[s+1];s=o?Rr(d):Pr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=ft(t,r))}return a}function Po(t){return void 0!==t}function Io(t,e){return 0!=(t.flags&(e?16:32))}function No(t,e=""){const n=re(),r=se(),s=t+19,i=r.firstCreatePass?Lr(r,n[6],t,3,null,null):r.data[s],o=n[s]=Ms(e,n[11]);$s(r,n,o,i),ae(i,!1)}function Fo(t){return Vo("",t,""),Fo}function Vo(t,e,n){const r=re(),s=Ui(r,t,e,n);return s!==Er&&Ds(r,De(),s),Vo}function Ho(t,e,n,r,s){const i=re(),o=function(t,e,n,r,s,i){const o=Vi(t,fe(),n,s);return me(2),o?e+We(n)+r+We(s)+i:Er}(i,t,e,n,r,s);return o!==Er&&Ds(i,De(),o),Ho}function Lo(t,e,n){Oo(dt,Eo,Ui(re(),t,e,n),!0)}function Uo(t,e,n,r,s,i,o,a,l){Oo(dt,Eo,function(t,e,n,r,s,i,o,a,l,c){const u=Hi(t,fe(),n,s,o,l);return me(4),u?e+We(n)+r+We(s)+i+We(o)+a+We(l)+c:Er}(re(),t,e,n,r,s,i,o,a,l),!0)}function zo(t,e,n){const r=re();return Fi(r,pe(),e)&&Jr(se(),xe(),r,t,e,r[11],n,!0),zo}function $o(t,e){const n=Zt(t)[1],r=n.data.length-1;Ae(n,{directiveStart:r,directiveEnd:r+1})}function qo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s=void 0;if(Ft(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Bo(t.inputs),e.declaredInputs=Bo(t.declaredInputs),e.outputs=Bo(t.outputs);const n=s.hostBindings;n&&Go(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&Yo(t,i),o&&Wo(t,o),g(t.inputs,s.inputs),g(t.declaredInputs,s.declaredInputs),g(t.outputs,s.outputs),Ft(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let r=0;r<e.length;r++){const s=e[r];s&&s.ngInherit&&s(t),s===qo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=Ue(s.hostAttrs,n=Ue(n,s.hostAttrs))}}(r)}function Bo(t){return t===_t?{}:t===yt?[]:t}function Yo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Wo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Go(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Qo{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Zo(t){t.type.prototype.ngOnChanges&&(t.setInput=Ko,t.onChanges=function(){const t=Jo(this),e=t&&t.current;if(e){const n=t.previous;if(n===_t)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ko(t,e,n,r){const s=Jo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:_t,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Qo(l&&l.currentValue,e,o===_t),t[r]=e}function Jo(t){return t.__ngSimpleChanges__||null}function Xo(t,e,n,r,s){if(t=A(t),Array.isArray(t))for(let i=0;i<t.length;i++)Xo(t[i],e,n,r,s);else{const i=se(),o=re();let a=wi(t)?t:A(t.provide),l=yi(t);const c=oe(),u=65535&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>16;if(wi(t)||!t.multi){const r=new Fe(l,s,qi),f=na(a,e,s?u:u+d,h);-1===f?(on(en(c,o),i,a),ta(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(r),o.push(r)):(n[f]=r,o[f]=r)}else{const f=na(a,e,u+d,h),p=na(a,e,u,u+d),m=f>=0&&n[f],g=p>=0&&n[p];if(s&&!g||!s&&!m){on(en(c,o),i,a);const u=function(t,e,n,r,s){const i=new Fe(t,n,qi);return i.multi=[],i.index=e,i.componentProviders=0,ea(i,s,r&&!n),i}(s?sa:ra,n.length,s,r,l);!s&&g&&(n[p].providerFactory=u),ta(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else ta(i,t,f>-1?f:p,ea(n[s?p:f],l,!s&&r));!s&&r&&g&&n[p].componentProviders++}}}function ta(t,e,n,r){const s=wi(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function ea(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function na(t,e,n,r){for(let s=n;s<r;s++)if(e[s]===t)return s;return-1}function ra(t,e,n,r){return ia(this.multi,[])}function sa(t,e,n,r){const s=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=hn(n,n[1],this.providerFactory.index,r);i=e.slice(0,t),ia(s,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],ia(s,i);return i}function ia(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function oa(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=se();if(r.firstCreatePass){const s=Ft(t);Xo(n,r.data,r.blueprint,s,!0),Xo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}Zo.ngInherit=!0;class aa{}class la{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${O(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ca=(()=>{class t{}return t.NULL=new la,t})(),ua=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ha(t),t})();const ha=function(t){return ri(t,oe(),re())};class da{}const fa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ma(),t})();const ma=function(){const t=re(),e=Qt(oe().index,t);return function(t){const e=t[11];if(zt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Rt(e)?e:t)};let ga=(()=>{class t{}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>null}),t})();class _a{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ya=new _a("9.1.1");class ba{constructor(){}supports(t){return ji(t)}create(t){return new wa(t)}}const va=(t,e)=>e;class wa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||va}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex<Ea(n,r,s)?e:n,o=Ea(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ji(t))throw new Error(`Error trying to diff '${O(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&Ai(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,e)),Ai(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Mi()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Ai(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Ai(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ai(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ai(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new Sa(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ka),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ka),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Sa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ca{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ai(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ca,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ea(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class Da{constructor(){}supports(t){return t instanceof Map||Pi(t)}create(){return new Oa}}class Oa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Pi(t)))throw new Error(`Error trying to diff '${O(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new xa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Ai(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class xa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ta=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new f,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>new t([new ba])}),t})(),Ma=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new f,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>new t([new Da])}),t})();const Aa=[new Da],Ra=new Ta([new ba]),ja=new Ma(Aa);let Pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ia(t,ua),t})();const Ia=function(t,e){return si(t,e,oe(),re())};let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fa(t,ua),t})();const Fa=function(t,e){return ii(t,e,oe(),re())},Va={};class Ha extends ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Tt(t);return new za(e,this.ngModule)}}function La(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ua=new B("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qe});class za extends aa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(kr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return La(this.componentDef.inputs)}get outputs(){return La(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,Va,s);return i!==Va||r===Va?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(da,$t),o=s.get(ga,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(zt(t))return t.selectRootElement(e,n===gt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Vr(l,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Qe,clean:ws,playerHandler:null,flags:0},f=Qr(0,-1,null,1,0,null,null,null,null,null),p=Hr(null,f,d,u,null,null,i,a,o,s);let m,g;ve(p,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[19]=t;const a=Lr(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(xi(a,l),null!==t&&(Ve(s,t,l),null!==a.classes&&Ks(s,t,a.classes),null!==a.styles&&Zs(s,t,a.styles)));const c=r.createRenderer(t,e),u=Hr(n,Gr(e),null,e.onPush?64:16,n[19],a,r,c,void 0);return o.firstCreatePass&&(on(en(a,n),o,e.type),ss(o,a),os(a,n.length,1)),gs(n,u),n[19]=u}(c,this.componentDef,p,i,a);if(c)if(n)Ve(a,c,["ng-version",ya.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!br(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ve(a,c,t),e&&e.length>0&&Ks(a,c,e.join(" "))}g=Wt(p[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=oe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),rs(t,r,1),as(t,e,n));const s=hn(e,t,e.length-1,r);dr(s,e);const i=Yt(r,e);return i&&dr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=oe();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Oe(a.index-19);const t=n[1];ts(t,e),es(t,n,e.hostVars),ns(e,o)}return o}(t,this.componentDef,p,d,[$o]),Ur(f,p,null)}finally{Ee()}const _=new $a(this.componentType,m,ri(ua,g,p),p,g);return n&&!h||(_.hostView._tViewNode.child=g),_}}class $a extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Xs(r),this.hostView._tViewNode=function(t,e,n,r){let s=t.node;return null==s&&(t.node=s=Zr(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new pn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const qa=void 0;var Ba=["en",[["a","p"],["AM","PM"],qa],[["AM","PM"],qa,qa],[["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"]],qa,[["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"]],qa,[["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}",qa,"{1} 'at' {0}",qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ya={};function Wa(t,e,n){"string"!=typeof e&&(n=e,e=t[Ja.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ya[e]=t,n&&(Ya[e][Ja.ExtraData]=n)}function Ga(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ka(e);if(n)return n;const r=e.split("-")[0];if(n=Ka(r),n)return n;if("en"===r)return Ba;throw new Error(`Missing locale data for the locale "${t}".`)}function Qa(t){return Ga(t)[Ja.CurrencyCode]||null}function Za(t){return Ga(t)[Ja.PluralCase]}function Ka(t){return t in Ya||(Ya[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Ya[t]}const Ja=function(){var t={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,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),Xa=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,tl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,el=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,nl=/\ufffd(\d+):?\d*\ufffd/gi,rl=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function sl(t){if(!t)return[];let e=0;const n=[],r=[],s=/[{}]/g;let i;for(s.lastIndex=0;i=s.exec(t);){const s=i.index;if("}"==i[0]){if(n.pop(),0==n.length){const n=t.substring(e,s);Xa.test(n)?r.push(il(n)):r.push(n),e=s+1}}else{if(0==n.length){const n=t.substring(e,s);r.push(n),e=s+1}n.push("{")}}const o=t.substring(e);return r.push(o),r}function il(t){const e=[],n=[];let r=1,s=0;const i=sl(t=t.replace(Xa,(function(t,e,n){return r="select"===n?0:1,s=parseInt(e.substr(1),10),""})));for(let o=0;o<i.length;){let t=i[o++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const s=sl(i[o++]);e.length>n.length&&n.push(s)}return{type:r,mainBinding:s,cases:e,values:n}}function ol(t){let e,n,r="",s=0,i=!1;for(;null!==(e=tl.exec(t));)i?e[0]===`\ufffd/*${n}\ufffd`&&(s=e.index,i=!1):(r+=t.substring(s,e.index+e[0].length),n=e[1],i=!0);return r+=t.substr(s),r}function al(t,e,n,r=null){const s=[null,null],i=t.split(nl);let o=0;for(let a=0;a<i.length;a++){const t=i[a];if(1&a){const e=parseInt(t,10);s.push(-1-e),o|=hl(e)}else""!==t&&s.push(t)}return s.push(e<<2|(n?1:0)),n&&s.push(n,r),s[0]=o,s[1]=s.length-2,s}function ll(t,e=0){let n;e|=hl(t.mainBinding);for(let r=0;r<t.values.length;r++){const s=t.values[r];for(let t=0;t<s.length;t++){const r=s[t];if("string"==typeof r)for(;n=nl.exec(r);)e|=hl(parseInt(n[1],10));else e=ll(r,e)}}return e}const cl=[];let ul=-1;function hl(t){return 1<<Math.min(t,31)}const dl=[];let fl;function pl(t,e,n,r,s){const i=e.next;r||(r=n),r===n&&e!==n.child?(e.next=n.child,n.child=e):r!==n&&e!==r.next?(e.next=r.next,r.next=e):e.next=null,n!==s[6]&&(e.parent=n);let o=e.next;for(;o;)o.next===e&&(o.next=i),o=o.next;if(1===e.type)return Gs(t,s,e),e;$s(t,s,Yt(e,s),e);const a=s[e.index];return 0!==e.type&&jt(a)&&$s(t,s,a[7],e),e}function ml(t,e,n,r,s,i){const o=oe();e[n+19]=s;const a=Lr(t,e[6],n,r,i,null);return o&&o.next===a&&(o.next=null),a}function gl(t,e,n,r){const s=r[11];let i=null,o=null;const a=[];for(let l=0;l<e.length;l++){const c=e[l];if("string"==typeof c){const t=Ms(c,s),u=e[++l];o=i,i=ml(n,r,u,3,t,null),a.push(u),ce()}else if("number"==typeof c)switch(7&c){case 1:const s=c>>>17;let u;u=s===t?r[6]:Wt(n,s),o=pl(n,i,u,o,r);break;case 0:const h=c>=0,d=(h?c:~c)>>>3;a.push(d),o=i,i=Wt(n,d),i&&ae(i,h);break;case 5:o=i=Wt(n,c>>>3),ae(i,!1);break;case 4:const f=e[++l],p=e[++l];cs(Wt(n,c>>>3),r,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Mr:const t=e[++l],u=e[++l],h=s.createComment(t);o=i,i=ml(n,r,u,5,h,null),a.push(u),dr(h,r),i.activeCaseIndex=null,ce();break;case Tr:const d=e[++l],f=e[++l];o=i,i=ml(n,r,f,3,s.createElement(d),d),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}}return ce(),a}function _l(t,e,n,r){const s=Wt(t,n),i=Bt(n,e);i&&Bs(e[11],i);const o=Gt(e,n);if(jt(o)){const t=o;0!==s.type&&Bs(e[11],t[7])}r&&(s.flags|=64)}function yl(t,e,n){(function(t,e,n){const r=se();cl[++ul]=t,uo(!0),r.firstCreatePass&&null===r.data[t+19]&&function(t,e,n,r,s){const i=e.blueprint.length-19;fl=0;const o=oe(),a=le()?o:o&&o.parent;let l=a&&a!==t[6]?a.index-19:n,c=0;dl[c]=l;const u=[];if(n>0&&o!==a){let t=o.index-19;le()||(t=~t),u.push(t<<3|0)}const h=[],d=[],f=function(t,e){if("number"!=typeof e)return ol(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return ol(t.substring(n,r))}}(r,s),p=(m=f,m.replace(xl," ")).split(el);var m;for(let g=0;g<p.length;g++){let t=p[g];if(1&g)if("/"===t.charAt(0)){if("#"===t.charAt(1)){const e=parseInt(t.substr(2),10);l=dl[--c],u.push(e<<3|5)}}else{const e=parseInt(t.substr(1),10),n="#"===t.charAt(0);u.push((n?e:~e)<<3|0,l<<17|1),n&&(dl[++c]=l=e)}else{const e=sl(t);for(let t=0;t<e.length;t++)if(1&t){const n=e[t];if("object"!=typeof n)throw new Error(`Unable to parse ICU expression in "${f}" message.`);const r=i+fl++;u.push(Mr,"",r,l<<17|1);const s=ll(n);El(d,n,r,r);const o=d.length-1;h.push(hl(n.mainBinding),3,-1-n.mainBinding,r<<2|2,o,s,2,r<<2|3,o)}else if(""!==e[t]){const n=e[t],r=n.match(nl),s=i+fl++;u.push(r?"":n,s,l<<17|1),r&&at(al(n,s),h)}}}fl>0&&function(t,e,n){if(n>0&&t.firstCreatePass){for(let r=0;r<n;r++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(n):t.expandoStartIndex+=n}}(e,t,fl),e.data[n+19]={vars:fl,create:u,update:h,icus:d.length?d:null}}(re(),r,t,e,n)})(t,e,n),function(){const t=re();!function(t,e){const n=cl[ul--],r=t.data[n+19],s=oe(),i=gl(n,r.create,t,e);let o=n+1;for(;o<=s.index-19;){-1===i.indexOf(o)&&_l(t,e,o,!0);const n=Wt(t,o);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(o+=n.localNames.length>>1),o++}}(se(),t),uo(!1)}()}function bl(t,e){!function(t,e,n,r){const s=oe().index-19,i=[];for(let o=0;o<r.length;o+=2){const a=r[o],l=r[o+1].split(rl);for(let r=0;r<l.length;r++){const o=l[r];if(1&r)throw new Error("ICU expressions are not yet supported in attributes");if(""!==o)if(o.match(nl))e.firstCreatePass&&null===e.data[n+19]&&at(al(o,s,a),i);else{const n=Wt(e,s);3===n.type&&cs(n,t,a,o,null,null);const r=null!==n.inputs&&n.inputs[a];r&&Es(e,t,r,a,o)}}}e.firstCreatePass&&null===e.data[n+19]&&(e.data[n+19]=i)}(re(),se(),t,e)}let vl=0,wl=0;function Sl(t){return Fi(re(),pe(),t)&&(vl|=1<<wl),wl++,Sl}function Cl(t){if(wl){const e=se(),n=e.data[t+19];let r,s=null;Array.isArray(n)?r=n:(r=n.update,s=n.icus);const i=fe()-wl-1,o=re();!function t(e,n,r,s,i,o,a=!1){let l=!1;for(let c=0;c<e.length;c++){const u=e[c],h=e[++c];if(a||u&s){let a="";for(let u=c+1;u<=c+h;u++){const c=e[u];if("string"==typeof c)a+=c;else if("number"==typeof c)if(c<0)a+=We(o[r-c]);else{const h=c>>>2;let d,f,p;switch(3&c){case 1:const c=e[++u],m=e[++u];Jr(i,Wt(i,h),o,c,a,o[11],m,!1);break;case 0:Ds(o,h,a);break;case 2:if(d=e[++u],f=n[d],p=Wt(i,h),null!==p.activeCaseIndex){const t=f.remove[p.activeCaseIndex];for(let e=0;e<t.length;e++){const r=t[e];switch(7&r){case 3:_l(i,o,r>>>3,!1);break;case 6:const s=Wt(i,t[e+1]>>>3).activeCaseIndex;null!==s&&at(n[r>>>3].remove[s],t)}}}const g=kl(f,a);p.activeCaseIndex=-1!==g?g:null,g>-1&&(gl(-1,f.create[g],i,o),l=!0);break;case 3:d=e[++u],f=n[d],p=Wt(i,h),null!==p.activeCaseIndex&&t(f.update[p.activeCaseIndex],n,r,s,i,o,l)}}}}c+=h}}(r,s,i,vl,e,o),vl=0,wl=0}}function kl(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){switch(Za(e)(t)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(e,Tl);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}function El(t,e,n,r){const s=[],i=[],o=[],a=[],l=[];for(let c=0;c<e.values.length;c++){const u=e.values[c],h=[];for(let t=0;t<u.length;t++){const e=u[t];if("string"!=typeof e){const n=h.push(e)-1;u[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const d=Dl(u.join(""),n,h,t,r);s.push(d.create),i.push(d.remove),o.push(d.update),a.push(d.vars),l.push(d.childIcus)}t.push({type:e.type,vars:a,childIcus:l,cases:e.cases,create:s,remove:i,update:o}),fl+=Math.max(...a)}function Dl(t,e,n,r,s){const i=new Vn(Ut()).getInertBodyElement(t);if(!i)throw new Error("Unable to generate inert body element");const o={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,n,r,s,i,o){if(e){const a=[];for(;e;){const l=e.nextSibling,c=o+ ++n.vars;switch(e.nodeType){case Node.ELEMENT_NODE:const l=e,u=l.tagName.toLowerCase();if(Qn.hasOwnProperty(u)){n.create.push(Tr,u,c,r<<17|1);const a=l.attributes;for(let t=0;t<a.length;t++){const e=a.item(t),r=e.name.toLowerCase();e.value.match(nl)?Jn.hasOwnProperty(r)&&at(Zn[r]?al(e.value,c,e.name,Un):Kn[r]?al(e.value,c,e.name,zn):al(e.value,c,e.name),n.update):n.create.push(c<<3|4,e.name,e.value)}t(e.firstChild,n,c,s,i,o),n.remove.push(c<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const h=e.textContent||"",d=h.match(nl);n.create.push(d?"":h,c,r<<17|1),n.remove.push(c<<3|3),d&&at(al(h,c),n.update);break;case Node.COMMENT_NODE:const f=Ol.exec(e.textContent||"");if(f){const t=parseInt(f[1],10);n.create.push(Mr,"",c,r<<17|1),a.push([s[t],c])}else n.vars--;break;default:n.vars--}e=l}for(let t=0;t<a.length;t++){const e=a[t][0],r=a[t][1];El(i,e,r,o+n.vars);const s=i.length-1;n.vars+=Math.max(...i[s].vars),n.childIcus.push(s);const l=ll(e);n.update.push(hl(e.mainBinding),3,-1-e.mainBinding,r<<2|2,s,l,2,r<<2|3,s),n.remove.push(s<<3|6,r<<3|3)}}}((or(i)||i).firstChild,o,e,n,r,s),o}const Ol=/\ufffd(\d+)\ufffd/,xl=/\uE500/g;let Tl="en-US";function Ml(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Tl=t.toLowerCase().replace(/_/g,"-"))}const Al=new Map;class Rl extends it{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ha(this);const n=At(t),r=t[z]||null;r&&Ml(r),this._bootstrapComponents=Ke(n.bootstrap),this._r3Injector=mi(t,e,[{provide:it,useValue:this},{provide:ca,useValue:this.componentFactoryResolver}],O(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ci.THROW_IF_NOT_FOUND,n=p.Default){return t===Ci||t===it||t===Y?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class jl extends ot{constructor(t){super(),this.moduleType=t,null!==At(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${O(e)} vs ${O(e.name)}`)})(t,Al.get(t),e),Al.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Rl(this.moduleType,t)}}function Pl(t,e,n){const r=de()+t,s=re();return s[r]===Er?Ii(s,r,n?e.call(n):e()):Ni(s,r)}function Il(t,e,n,r){return Ul(re(),de(),t,e,n,r)}function Nl(t,e,n,r,s){return function(t,e,n,r,s,i,o){const a=e+n;return Vi(t,a,s,i)?Ii(t,a+2,o?r.call(o,s,i):r(s,i)):Ll(t,a+2)}(re(),de(),t,e,n,r,s)}function Fl(t,e,n,r,s,i){return zl(re(),de(),t,e,n,r,s,i)}function Vl(t,e,n,r,s,i,o){return function(t,e,n,r,s,i,o,a,l){const c=e+n;return Hi(t,c,s,i,o,a)?Ii(t,c+4,l?r.call(l,s,i,o,a):r(s,i,o,a)):Ll(t,c+4)}(re(),de(),t,e,n,r,s,i,o)}function Hl(t,e,n,r,s,i,o,a){const l=de()+t,c=re(),u=Hi(c,l,n,r,s,i);return Fi(c,l+4,o)||u?Ii(c,l+5,a?e.call(a,n,r,s,i,o):e(n,r,s,i,o)):Ni(c,l+5)}function Ll(t,e){const n=t[e];return n===Er?void 0:n}function Ul(t,e,n,r,s,i){const o=e+n;return Fi(t,o,s)?Ii(t,o+1,i?r.call(i,s):r(s)):Ll(t,o+1)}function zl(t,e,n,r,s,i,o,a){const l=e+n;return function(t,e,n,r,s){const i=Vi(t,e,n,r);return Fi(t,e+2,s)||i}(t,l,s,i,o)?Ii(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):Ll(t,l+3)}function $l(t,e){const n=se();let r;const s=t+19;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=Mt(r.type)),o=X(qi),a=i();return X(o),function(t,e,n,r){const s=n+19;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,re(),t,a),a}function ql(t,e,n){const r=re(),s=Gt(r,t);return Wl(r,Yl(r,t)?Ul(r,de(),e,s.transform,n,s):s.transform(n))}function Bl(t,e,n,r,s){const i=re(),o=Gt(i,t);return Wl(i,Yl(i,t)?zl(i,de(),e,o.transform,n,r,s,o):o.transform(n,r,s))}function Yl(t,e){return t[1].data[e+19].pure}function Wl(t,e){return Ri.isWrapped(e)&&(e=Ri.unwrap(e),t[fe()]=Er),e}class Gl extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return t instanceof s.a&&t.add(a),a}}function Ql(){return this._results[Mi()]()}class Zl{constructor(){this.dirty=!0,this._results=[],this.changes=new Gl,this.length=0;const t=Mi(),e=Zl.prototype;e[t]||(e[t]=Ql)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?(n===e&&(n=e.slice(0,r)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Kl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Kl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Jl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Jl(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==mc(t,e).matches&&this.queries[e].setDirty()}}class Xl{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class tc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new tc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class ec{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new ec(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,nc(e,n[r]))}else{const n=this.metadata.predicate;n===Pa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,un(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===ua||r===Na||r===Pa&&0===e.type)this.addMatch(e.index,-2);else{const n=un(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function nc(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function rc(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?ri(ua,t,e):0===t.type?si(Pa,ua,t,e):null}(e,t):-2===n?function(t,e,n){return n===ua?ri(ua,e,t):n===Pa?si(Pa,ua,e,t):n===Na?ii(Na,ua,e,t):void 0}(t,e,r):hn(t,t[1],n,e)}function sc(t,e,n,r){const s=e[5].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:rc(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function ic(t){const e=re(),n=se(),r=_e();ye(r+1);const s=mc(n,r);if(t.dirty&&Kt(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?function t(e,n,r,s){const i=e.queries.getByIndex(r),o=i.matches;if(null!==o){const a=sc(e,n,i,r);for(let e=0;e<o.length;e+=2){const r=o[e];if(r>0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,s)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,s)}}}}}return s}(n,e,r,[]):sc(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function oc(t,e,n){lc(se(),re(),t,e,n,!0)}function ac(t,e,n){lc(se(),re(),t,e,n,!1)}function lc(t,e,n,r,s,i){t.firstCreatePass&&(pc(t,new Xl(n,r,i,s),-1),i&&(t.staticViewQueries=!0)),fc(t,e)}function cc(t,e,n,r){hc(se(),re(),e,n,r,!1,oe(),t)}function uc(t,e,n,r){hc(se(),re(),e,n,r,!0,oe(),t)}function hc(t,e,n,r,s,i,o,a){t.firstCreatePass&&(pc(t,new Xl(n,r,i,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),i&&(t.staticContentQueries=!0)),fc(t,e)}function dc(){return t=re(),e=_e(),t[5].queries[e].queryList;var t,e}function fc(t,e){const n=new Zl;!function(t,e,n,r){const s=Ss(e);s.push(n),t.firstCreatePass&&Cs(t).push(r,s.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new Jl),e[5].queries.push(new Kl(n))}function pc(t,e,n){null===t.queries&&(t.queries=new tc),t.queries.track(new ec(e,n))}function mc(t,e){return t.queries.getByIndex(e)}function gc(t,e){return si(Pa,ua,t,e)}function _c(t=p.Default){const e=oi(!0);if(null!=e||t&p.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const yc=new B("Application Initializer");let bc=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();eo(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(et(yc,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const vc=new B("AppId"),wc={provide:vc,useFactory:function(){return`${Sc()}${Sc()}${Sc()}`},deps:[]};function Sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cc=new B("Platform Initializer"),kc=new B("Platform ID"),Ec=new B("appBootstrapListener");let Dc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const Oc=new B("LocaleId"),xc=new B("DefaultCurrencyCode");class Tc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Mc=function(t){return new jl(t)},Ac=Mc,Rc=function(t){return Promise.resolve(Mc(t))},jc=function(t){const e=Mc(t),n=Ke(At(t).declarations).reduce((t,e)=>{const n=Tt(e);return n&&t.push(new za(n)),t},[]);return new Tc(e,n)},Pc=jc,Ic=function(t){return Promise.resolve(jc(t))};let Nc=(()=>{class t{constructor(){this.compileModuleSync=Ac,this.compileModuleAsync=Rc,this.compileModuleAndAllComponentsSync=Pc,this.compileModuleAndAllComponentsAsync=Ic}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const Fc=new B("compilerOptions"),Vc=(()=>Promise.resolve(0))();function Hc(t){"undefined"==typeof Zone?Vc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Lc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Gl(!1),this.onMicrotaskEmpty=new Gl(!1),this.onStable=new Gl(!1),this.onError=new Gl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");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)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.lastRequestAnimationFrameId=-1,qc(t),$c(t)}),qc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return Bc(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),Yc(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return Bc(t),e.invoke(r,s,i,o,a)}finally{Yc(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,qc(t),$c(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Lc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Lc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,zc,Uc,Uc);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Uc(){}const zc={};function $c(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function qc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Bc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Yc(t){t._nesting--,$c(t)}class Wc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Gl,this.onMicrotaskEmpty=new Gl,this.onStable=new Gl,this.onError=new Gl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Gc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Lc.assertNotInAngularZone(),Hc(()=>{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())Hc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(et(Lc))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})(),Qc=(()=>{class t{constructor(){this._applications=new Map,Xc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Xc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();class Zc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Kc(t){Xc=t}let Jc,Xc=new Zc,tu=function(t,e,n){const r=t.get(Fc,[]).concat(e),s=new jl(n);if(0===Ei.size)return Promise.resolve(s);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===i.length)return Promise.resolve(s);const o=function(){const t=F.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=Ci.create({providers:i}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=r.then(Oi))}return e}return Ei.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(r(t.templateUrl).then(e=>{t.template=e}));const i=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;i&&i.forEach((e,n)=>{o.push(""),s.push(r(e).then(r=>{o[a+n]=r,i.splice(i.indexOf(e),1),0==i.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){Di.delete(t)}(n));e.push(l)}),Ei=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const eu=new B("AllowMultipleToken");class nu{constructor(t,e){this.name=t,this.token=e}}function ru(t,e,n=[]){const r="Platform: "+e,s=new B(r);return(e=[])=>{let i=su();if(!i||i.injector.get(eu,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:ci,useValue:"platform"});!function(t){if(Jc&&!Jc.destroyed&&!Jc.injector.get(eu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Jc=t.get(iu);const e=t.get(Cc,null);e&&e.forEach(t=>t())}(Ci.create({providers:t,name:r}))}return function(t){const e=su();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function su(){return Jc&&!Jc.destroyed?Jc:null}let iu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Wc:("zone.js"===t?void 0:t)||new Lc({enableLongStackTrace:Nn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Lc,useValue:n}];return n.run(()=>{const e=Ci.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(bn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>lu(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return eo(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(bc);return t.runInitializers(),t.donePromise.then(()=>(Ml(s.injector.get(Oc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=ou({},e);return tu(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(au);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${O(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(et(Ci))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function ou(t,e){return Array.isArray(e)?e.reduce(ou,t):Object.assign(Object.assign({},t),e)}let au=(()=>{class t{constructor(t,e,n,r,s,l){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Nn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Lc.assertNotInAngularZone(),Hc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Lc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof aa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(it),s=n.create(Ci.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(Gc,null);return i&&s.injector.get(Qc).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Nn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;lu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ec,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),lu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(et(Lc),et(Dc),et(Ci),et(bn),et(ca),et(bc))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function lu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cu{}class uu{}const hu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let du=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||hu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("crnd")(e).then(t=>t[r]).then(t=>fu(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>fu(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(et(Nc),et(uu,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function fu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const pu=function(t){return null},mu=ru(null,"core",[{provide:kc,useValue:"unknown"},{provide:iu,deps:[Ci]},{provide:Qc,deps:[]},{provide:Dc,deps:[]}]),gu=[{provide:au,useClass:au,deps:[Lc,Dc,Ci,bn,ca,bc]},{provide:Ua,deps:[Lc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:bc,useClass:bc,deps:[[new h,yc]]},{provide:Nc,useClass:Nc,deps:[]},wc,{provide:Ta,useFactory:function(){return Ra},deps:[]},{provide:Ma,useFactory:function(){return ja},deps:[]},{provide:Oc,useFactory:function(t){return Ml(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(Oc),new h,new f]]},{provide:xc,useValue:"USD"}];let _u=(()=>{class t{constructor(t){}}return t.\u0275mod=kt({type:t}),t.\u0275inj=y({factory:function(e){return new(e||t)(et(au))},providers:gu}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},hzby:function(t,e,n){"use strict";n.d(e,"a",(function(){return As})),n.d(e,"b",(function(){return ti})),n.d(e,"c",(function(){return Ns}));var r=n("2Vo4"),s=n("3N8a");class i extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const l=new a(i);var c=n("HDdC"),u=n("7o/Q"),h=n("WMd4");class d{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new f(t,this.scheduler,this.delay))}}class f extends u.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(f.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.a.createNext(t))}_error(t){this.scheduleMessage(h.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var m=n("Kqap"),g=n("lJxs"),_=n("/uUt");class y extends r.a{constructor(t,e,n){super(t),e.pipe(function(t,e=0){return function(n){return n.lift(new d(t,e))}}(l)).pipe(Object(m.a)((t,e)=>e?n(t,e):t,t)).subscribe(t=>this.next(t))}}class b extends c.a{constructor(t,e,n){super(),this._dispatcher=t,this._reducer=e,this.source=n}select(t){return this.source.pipe(Object(g.a)(t)).pipe(Object(_.a)())}lift(t){const e=new b(this._dispatcher,this._reducer,this);return e.operator=t,e}dispatch(t){this._dispatcher.next(t)}next(t){this._dispatcher.next(t)}error(t){this._dispatcher.error(t)}complete(){}}var v=n("fXoL"),w=n("ofXK"),S=n("XNiG"),C=n("VRyK"),k=n("xgIS"),E=n("LRne");class D extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class O extends o.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,n){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw n}}}const x=new O(D);function T(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function M(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function A(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:r}=T(t);return/(auto|scroll|overlay)/.test(String(e)+String(r)+String(n))?t:A(M(t))}const R="undefined"!=typeof window&&"undefined"!=typeof document,j=R&&!(!window.MSInputMethodContext||!document.documentMode),P=R&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function I(t){return 11===t?j:10===t?P:j||P}function N(t){if(!t)return document.documentElement;const e=I(10)?document.body:null;let n,r=t.offsetParent||null;for(;r===e&&t.nextElementSibling&&"BODY"!==t.nodeName;)n=t.nextElementSibling,r=n.offsetParent;const s=r&&r.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===T(r,"position")?N(r):r:n?n.ownerDocument.documentElement:document.documentElement}function F(t){return null!==t.parentNode?F(t.parentNode):t}function V(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,s=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(s,0);const{commonAncestorContainer:o}=i;if(t!==o&&e!==o||r.contains(s))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||N(t.firstElementChild)===t)}(o)?o:N(o);const a=F(t);return a.host?V(a.host,e):V(t,F(e).host)}function H(t,e){const n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${r}Width`])}function L(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],I(10)?parseInt(n["offset"+t],10)+parseInt(r["margin"+("Height"===t?"Top":"Left")],10)+parseInt(r["margin"+("Height"===t?"Bottom":"Right")],10):0)}function U(t){const e=t.body,n=t.documentElement,r=I(10)&&getComputedStyle(n);return{height:L("Height",e,n,r),width:L("Width",e,n,r)}}function z(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function $(t){return Object.assign({},t,{right:t.left+t.width,bottom:t.top+t.height})}function q(t){let e={};try{if(I(10)){e=t.getBoundingClientRect();const n=z(t,"top"),r=z(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(o){return}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?U(t.ownerDocument):{};let s=t.offsetWidth-(r.width||t.clientWidth||n.right-n.left),i=t.offsetHeight-(r.height||t.clientHeight||n.bottom-n.top);if(s||i){const e=T(t);s-=H(e,"x"),i-=H(e,"y"),n.width-=s,n.height-=i}return $(n)}function B(t,e,n=!1){const r=I(10),s="HTML"===e.nodeName,i=q(t),o=q(e),a=A(t),l=T(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&s&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));let h=$({top:i.top-o.top-c,left:i.left-o.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&s){const t=parseFloat(l.marginTop),e=parseFloat(l.marginLeft);h.top-=c-t,h.bottom-=c-t,h.left-=u-e,h.right-=u-e,h.marginTop=t,h.marginLeft=e}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=function(t,e,n=!1){const r=z(e,"top"),s=z(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=s*i,t.right+=s*i,t}(h,e)),h}function Y(t){if(!t||!t.parentElement||I())return document.documentElement;let e=t.parentElement;for(;e&&"none"===T(e,"transform");)e=e.parentElement;return e||document.documentElement}function W(t,e,n=0,r,s=!1){let i={top:0,left:0};const o=s?Y(t):V(t,e);if("viewport"===r)i=function(t,e=!1){const n=t.ownerDocument.documentElement,r=B(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:z(n),a=e?0:z(n,"left");return $({top:o-Number(r.top)+Number(r.marginTop),left:a-Number(r.left)+Number(r.marginLeft),width:s,height:i})}(o,s);else{let n;"scrollParent"===r?(n=A(M(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===r?t.ownerDocument.documentElement:r;const a=B(n,o,s);if("HTML"!==n.nodeName||function t(e){const n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===T(e,"position")||t(M(e)))}(o))i=a;else{const{height:e,width:n}=U(t.ownerDocument);i.top+=a.top-a.marginTop,i.bottom=Number(e)+Number(a.top),i.left+=a.left-a.marginLeft,i.right=Number(n)+Number(a.left)}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function G({width:t,height:e}){return t*e}function Q(t,e,n,r,s=["top","bottom","right","left"],i="viewport",o=0){if(-1===t.indexOf("auto"))return t;const a=W(n,r,o,i),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(t=>Object.assign({key:t},l[t],{area:G(l[t])})).sort((t,e)=>e.area-t.area);let u=c.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);u=u.filter(t=>s.some(e=>e===t.key));const h=u.length>0?u[0].key:c[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+h),h+(d?"-"+d:"")}function Z(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function K(t,e,n=null){return B(e,n?Y(t):V(t,e),n)}function J(t,e,n){const r=n.split(" ")[0],s=Z(t),i={width:s.width,height:s.height},o=-1!==["right","left"].indexOf(r),a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[a]=e[a]+e[c]/2-s[c]/2,i[l]=r===l?e[l]-s[u]:e[function(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,t=>e[t])}(l)],i}function X(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function tt(t,e,n){Object.keys(e).forEach(r=>{let s="";var i;-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(i=e[r])&&!isNaN(parseFloat(i))&&isFinite(i)&&(s="px"),n?n.setStyle(t,r,`${String(e[r])}${s}`):t.style[r]=String(e[r])+s})}function et(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const r=-1!==["left","right"].indexOf(t.placement),s=r?"height":"width",i=r?"Top":"Left",o=i.toLowerCase(),a=r?"left":"top",l=r?"bottom":"right",c=Z(n)[s];t.offsets.host[l]-c<e[o]&&(e[o]-=e[o]-(t.offsets.host[l]-c)),Number(t.offsets.host[o])+Number(c)>e[l]&&(e[o]+=Number(t.offsets.host[o])+Number(c)-Number(e[l])),e=$(e);const u=Number(t.offsets.host[o])+Number(t.offsets.host[s]/2-c/2),h=T(t.instance.target),d=parseFloat(h["margin"+i]),f=parseFloat(h[`border${i}Width`]);let p=u-e[o]-d-f;return p=Math.max(Math.min(e[s]-c,p),0),t.offsets.arrow={[o]:Math.round(p),[a]:""},t.instance.arrow=n,t}function nt(t){if(t.offsets.target=$(t.offsets.target),!X(t.options,"flip"))return t.offsets.target=Object.assign({},t.offsets.target,J(t.instance.target,t.offsets.host,t.placement)),t;const e=W(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"";const s=Q("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),i=[n,s];return i.forEach((s,o)=>{if(n!==s||i.length===o+1)return t;n=t.placement.split(" ")[0];const a="left"===n&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)<Math.floor(t.offsets.host.right)||"top"===n&&Math.floor(t.offsets.target.bottom)>Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)<Math.floor(t.offsets.host.bottom),l=Math.floor(t.offsets.target.left)<Math.floor(e.left),c=Math.floor(t.offsets.target.right)>Math.floor(e.right),u=Math.floor(t.offsets.target.top)<Math.floor(e.top),h=Math.floor(t.offsets.target.bottom)>Math.floor(e.bottom),d="left"===n&&l||"right"===n&&c||"top"===n&&u||"bottom"===n&&h,f=-1!==["top","bottom"].indexOf(n),p=f&&"left"===r&&l||f&&"right"===r&&c||!f&&"left"===r&&u||!f&&"right"===r&&h;(a||d||p)&&((a||d)&&(n=i[o+1]),p&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" "+r:""),t.offsets.target=Object.assign({},t.offsets.target,J(t.instance.target,t.offsets.host,t.placement)))}),t}function rt(t){if(!X(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:r,left:s,[e]:i}=n;n.top="",n.left="",n[e]="";const o=W(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=r,n.left=s,n[e]=i;const a={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]<o[e]&&(n=Math.max(t.offsets.target[e],o[e])),{[e]:n}},secondary(e){const n="right"===e?"left":"top";let r=t.offsets.target[n];return t.offsets.target[e]>o[e]&&(r=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:r}}};let l;return["left","right","top","bottom"].forEach(e=>{l=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign({},t.offsets.target,a[l](e))}),t}function st(t){const e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){const{host:e,target:s}=t.offsets,i=-1!==["bottom","top"].indexOf(n),o=i?"left":"top",a=i?"width":"height";t.offsets.target=Object.assign({},s,{start:{[o]:e[o]},end:{[o]:e[o]+e[a]-s[a]}}[r])}return t}const it=new class{position(t,e,n=!0){return this.offset(t,e,!1)}offset(t,e,n=!0){return K(e,t)}positionElements(t,e,n,r,s){return[nt,st,rt,et].reduce((t,e)=>e(t),function(t,e,n,r){const s=K(t,e);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*\s*(start|end)*$/)||(n="auto");const i=!!n.match(/auto/g);let o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;const a=J(t,s,o);return o=Q(o,s,t,e,r?r.allowedPositions:void 0),{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:a,host:s,arrow:null},positionFixed:!1,placement:o,placementAuto:i}}(e,t,n,s))}};let ot=(()=>{class t{constructor(t,e){this.update$$=new S.a,this.positionElements=new Map,Object(w.A)(e)&&Object(C.a)(Object(k.a)(window,"scroll"),Object(k.a)(window,"resize"),Object(E.a)(0,x),this.update$$).subscribe(()=>{this.positionElements.forEach(e=>{!function(t,e,n,r,s,i){const o=it.positionElements(t,e,n,r,s),a=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(o);tt(e,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},i),o.instance.arrow&&tt(o.instance.arrow,o.offsets.arrow,i),function(t,e){const n=t.instance.target;let r=n.className;t.placementAuto&&(r=r.replace(/bs-popover-auto/g,"bs-popover-"+t.placement),r=r.replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement),r=r.replace(/\sauto/g," "+t.placement),-1!==r.indexOf("popover")&&-1===r.indexOf("popover-auto")&&(r+=" popover-auto"),-1!==r.indexOf("tooltip")&&-1===r.indexOf("tooltip-auto")&&(r+=" tooltip-auto")),r=r.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0]),e?e.setAttribute(n,"class",r):n.className=r}(o,i)}(at(e.target),at(e.element),e.attachment,e.appendToBody,this.options,t.createRenderer(null,null))})})}position(t){this.addPositionElement(t)}addPositionElement(t){this.positionElements.set(at(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(at(t))}setOptions(t){this.options=t}}return t.\u0275fac=function(e){return new(e||t)(v.Zb(v.E),v.Zb(v.B))},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();function at(t){return"string"==typeof t?document.querySelector(t):t instanceof v.l?t.nativeElement:t}class lt{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const ct={hover:["mouseover","mouseout"],focus:["focusin","focusout"]},ut="undefined"!=typeof window&&window||{};let ht;function dt(){return void 0===ut||(void 0===ut.__theme?(ht||(ht=function(){if("undefined"==typeof document)return null;const t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");const e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()),"bs3"===ht):"bs4"!==ut.__theme)}"undefined"==typeof console||console;class ft{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class pt{constructor(t,e,n,r,s,i,o,a){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=r,this._componentFactoryResolver=s,this._ngZone=i,this._applicationRef=o,this._posService=a,this.onBeforeShow=new v.n,this.onShown=new v.n,this.onBeforeHide=new v.n,this.onHidden=new v.n,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);const e=v.r.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof v.l&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),n=this._listenOpts.show=e=>{t.show?t.show(e):this.show(e),e()};return this._unregisterListenersFn=function(t,e){const n=function(t,e=ct){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{const n=e[t[0]]||t;return new lt(n[0],n[1])}),s=r.filter(t=>t.isManual());if(s.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===s.length&&r.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return r}(e.triggers),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const s=[],i=[],o=()=>{i.forEach(t=>s.push(t())),i.length=0};return n.forEach(n=>{const a=n.open===n.close,l=a?e.toggle:e.show;a||i.push(()=>t.listen(r,n.close,e.hide)),s.push(t.listen(r,n.open,()=>l(o)))}),()=>{s.forEach(t=>t())}}(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{var e;this._globalListener=(e={targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()}).outsideClick?this._renderer.listen("document","click",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype})}var t;this._listenOpts.outsideEsc&&(this._globalListener=(t={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?this._renderer.listen("document","keyup.esc",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(t=>t.contains(e.target))||t.hide()}):Function.prototype)}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(t,e,n){if(!t)return new ft([]);if(t instanceof v.K){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(t,e);return n.markForCheck(),new ft([n.rootNodes],n)}const n=t.createEmbeddedView({});return this._applicationRef.attachView(n),new ft([n.rootNodes],n)}if("function"==typeof t){const e=this._componentFactoryResolver.resolveComponentFactory(t),r=v.r.create({providers:this._providers,parent:this._injector}),s=e.create(r);return Object.assign(s.instance,n),this._applicationRef.attachView(s.hostView),new ft([[s.location.nativeElement]],s.hostView,s)}return new ft([[this._renderer.createText(""+t)]])}}let mt=(()=>{class t{constructor(t,e,n,r,s){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=s}createLoader(t,e,n){return new pt(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return t.\u0275fac=function(e){return new(e||t)(v.Zb(v.j),v.Zb(v.z),v.Zb(v.r),v.Zb(ot),v.Zb(v.g))},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();var gt=n("pLZG");function _t(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function yt(t){return"string"==typeof t}function bt(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function vt(t){return t&&t.getTime&&!isNaN(t.getTime())}function wt(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function St(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Ct(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function kt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Et(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function Dt(t){return void 0===t}function Ot(t){const e=+t;let n=0;return 0!==e&&isFinite(e)&&(n=_t(e)),n}const xt={},Tt={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function Mt(t,e){const n=t.toLowerCase();let r=t;n in Tt&&(r=Tt[n]),xt[n]=xt[n+"s"]=xt[e]=r}function At(t){return yt(t)?xt[t]||xt[t.toLowerCase()]:void 0}function Rt(t,e,n){const r=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-r.length)).toString().substr(1)+r}let jt={},Pt={};const It=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Nt(t,e,n,r){t&&(Pt[t]=r),e&&(Pt[e[0]]=function(){return Rt(r.apply(null,arguments),e[1],e[2])}),n&&(Pt[n]=function(e,n){return n.locale.ordinal(r.apply(null,arguments),t)})}function Ft(t,e,n){const r=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(r.getUTCFullYear())&&r.setUTCFullYear(t),r}function Vt(t,e=0,n=1,r=0,s=0,i=0,o=0){const a=new Date(t,e,n,r,s,i,o);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function Ht(t,e=!1){return e?t.getUTCHours():t.getHours()}function Lt(t,e=!1){return e?t.getUTCMinutes():t.getMinutes()}function Ut(t,e=!1){return e?t.getUTCSeconds():t.getSeconds()}function zt(t,e=!1){return e?t.getUTCMilliseconds():t.getMilliseconds()}function $t(t,e=!1){return e?t.getUTCDay():t.getDay()}function qt(t,e=!1){return e?t.getUTCDate():t.getDate()}function Bt(t,e=!1){return e?t.getUTCMonth():t.getMonth()}function Yt(t,e=!1){return e?t.getUTCFullYear():t.getFullYear()}function Wt(t,e){return!(!t||!e)&&Gt(t,e)&&Bt(t)===Bt(e)}function Gt(t,e){return!(!t||!e)&&Yt(t)===Yt(e)}function Qt(t,e){return!(!t||!e)&&Gt(t,e)&&Wt(t,e)&&qt(t)===qt(e)}const Zt=/\d/,Kt=/\d\d/,Jt=/\d{3}/,Xt=/\d{4}/,te=/[+-]?\d{6}/,ee=/\d\d?/,ne=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,se=/\d{1,3}/,ie=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ae=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[+-]?\d+(\.\d{1,3})?/,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function fe(t,e,n){de[t]=wt(e)?e:function(t,r){return t&&n?n:e}}function pe(t,e){return kt(de,t)?de[t](!1,e):new RegExp(me(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(t,e,n,r,s)=>e||n||r||s)))}function me(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const ge={};function _e(t,e){const n=yt(t)?[t]:t;let r=e;if(St(e)&&(r=function(t,n,r){return n[e]=Ot(t),r}),Ct(n)&&wt(r)){let t;for(t=0;t<n.length;t++)ge[n[t]]=r}}function ye(t,e){_e(t,(function(t,n,r,s){return r._w=r._w||{},e(t,r._w,r,s)}))}function be(t,e,n){return null!=e&&kt(ge,t)&&ge[t](e,n._a,n,t),n}function ve(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function we(t,e){return Yt(t,e.isUTC).toString()}function Se(t){return Ot(t)+(Ot(t)>68?1900:2e3)}function Ce(t){return ke(t)?366:365}function ke(t){return t%4==0&&t%100!=0||t%400==0}function Ee(t,e){if(isNaN(t)||isNaN(e))return NaN;const n=(e%12+12)%12;return 1===n?ke(t+(e-n)/12)?29:28:31-n%7%2}const De={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function Oe(t,e){const n=Object.assign({},De,e),r=t.getFullYear()+(n.year||0),s=t.getMonth()+(n.month||0);let i=t.getDate()+(n.day||0);return n.month&&!n.day&&(i=Math.min(i,Ee(r,s))),Vt(r,s,i,t.getHours()+(n.hour||0),t.getMinutes()+(n.minute||0),t.getSeconds()+(n.seconds||0))}function xe(t,e){return St(e)?e:t}function Te(t,e,n){const r=Math.min(qt(t),Ee(Yt(t),e));return n?t.setUTCMonth(e,r):t.setMonth(e,r),t}function Me(t,e,n){return n?t.setUTCDate(e):t.setDate(e),t}function Ae(t){return new Date(t.getTime())}function Re(t,e,n){const r=Ae(t);switch(e){case"year":Te(r,0,n);case"quarter":case"month":Me(r,1,n);case"week":case"isoWeek":case"day":case"date":!function(t,e,n){n?t.setUTCHours(0):t.setHours(0)}(r,0,n);case"hours":!function(t,e,n){n?t.setUTCMinutes(0):t.setMinutes(0)}(r,0,n);case"minutes":!function(t,e,n){n?t.setUTCSeconds(0):t.setSeconds(0)}(r,0,n);case"seconds":!function(t,e,n){n?t.setUTCMilliseconds(0):t.setMilliseconds(0)}(r,0,n)}return"week"===e&&function(t,e,n={}){Yn(t,0-Qn(t,n.locale,n.isUTC),"day")}(r,0,{isUTC:n}),"isoWeek"===e&&function(t,e,n={}){const r=function(t,e=cn()){return yt(t)?e.weekdaysParse(t)%7||7:St(t)&&isNaN(t)?null:t}(1,n.locale);Gn(t,function(t,e){return $t(t,e)}(t)%7?r:r-7)}(r),"quarter"===e&&Te(r,3*Math.floor(Bt(r,n)/3),n),r}function je(t,e,n){let r=e;return"date"===r&&(r="day"),function(t,e,n,r){return Wn(t,$n(1,"milliseconds"),-1,r)}(Yn(Re(t,r,n),1,"isoWeek"===r?"week":r,n),0,0,n)}function Pe(t,e){const n=+Re(t,"day",e),r=+Re(t,"year",e);return Math.round((n-r)/864e5)+1}function Ie(t,e,n){const r=e-n+7;return-(Ft(t,0,r).getUTCDay()-e+7)%7+r-1}function Ne(t,e,n,r){const s=Ie(Yt(t,r),e,n),i=Math.floor((Pe(t,r)-s-1)/7)+1;let o,a;return i<1?(a=Yt(t,r)-1,o=i+Fe(a,e,n)):i>Fe(Yt(t,r),e,n)?(o=i-Fe(Yt(t,r),e,n),a=Yt(t,r)+1):(a=Yt(t,r),o=i),{week:o,year:a}}function Fe(t,e,n){const r=Ie(t,e,n),s=Ie(t+1,e,n);return(Ce(t)-r+s)/7}const Ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Be=he,Ye=he;class We{constructor(t){t&&this.set(t)}set(t){let e;for(e in t){if(!t.hasOwnProperty(e))continue;const n=t[e];this[wt(n)?e:"_"+e]=n}this._config=t}calendar(t,e,n){const r=this._calendar[t]||this._calendar.sameElse;return wt(r)?r.call(null,e,n):r}longDateFormat(t){const e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])}get invalidDate(){return this._invalidDate}set invalidDate(t){this._invalidDate=t}ordinal(t,e){return this._ordinal.replace("%d",t.toString(10))}preparse(t){return t}postformat(t){return t}relativeTime(t,e,n,r){const s=this._relativeTime[n];return wt(s)?s(t,e,n,r):s.replace(/%d/i,t.toString(10))}pastFuture(t,e){const n=this._relativeTime[t>0?"future":"past"];return wt(n)?n(e):n.replace(/%s/i,e)}months(t,e,n=!1){if(!t)return Ct(this._months)?this._months:this._months.standalone;if(Ct(this._months))return this._months[Bt(t,n)];const r=(this._months.isFormat||Ve).test(e)?"format":"standalone";return this._months[r][Bt(t,n)]}monthsShort(t,e,n=!1){if(!t)return Ct(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(Ct(this._monthsShort))return this._monthsShort[Bt(t,n)];const r=Ve.test(e)?"format":"standalone";return this._monthsShort[r][Bt(t,n)]}monthsParse(t,e,n){let r,s,i;if(this._monthsParseExact)return this.handleMonthStrictParse(t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=new Date(Date.UTC(2e3,i)),n&&!this._longMonthsParse[i]){const t=this.months(r,"",!0).replace(".",""),e=this.monthsShort(r,"",!0).replace(".","");this._longMonthsParse[i]=new RegExp(`^${t}$`,"i"),this._shortMonthsParse[i]=new RegExp(`^${e}$`,"i")}if(n||this._monthsParse[i]||(s=`^${this.months(r,"",!0)}|^${this.monthsShort(r,"",!0)}`,this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}monthsRegex(t){return this._monthsParseExact?(kt(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsStrictRegex:this._monthsRegex):(kt(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(t){return this._monthsParseExact?(kt(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsShortStrictRegex:this._monthsShortRegex):(kt(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}week(t,e){return Ne(t,this._week.dow,this._week.doy,e).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(t,e,n){if(!t)return Ct(this._weekdays)?this._weekdays:this._weekdays.standalone;if(Ct(this._weekdays))return this._weekdays[$t(t,n)];const r=this._weekdays.isFormat.test(e)?"format":"standalone";return this._weekdays[r][$t(t,n)]}weekdaysMin(t,e,n){return t?this._weekdaysMin[$t(t,n)]:this._weekdaysMin}weekdaysShort(t,e,n){return t?this._weekdaysShort[$t(t,n)]:this._weekdaysShort}weekdaysParse(t,e,n){let r,s;if(this._weekdaysParseExact)return this.handleWeekStrictParse(t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){const i=Gn(new Date(Date.UTC(2e3,1)),r,null,!0);if(n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(`^${this.weekdays(i,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[r]=new RegExp(`^${this.weekdaysShort(i,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[r]=new RegExp(`^${this.weekdaysMin(i,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[r]||(s=`^${this.weekdays(i,"",!0)}|^${this.weekdaysShort(i,"",!0)}|^${this.weekdaysMin(i,"",!0)}`,this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),!(Ct(this._fullWeekdaysParse)&&Ct(this._shortWeekdaysParse)&&Ct(this._minWeekdaysParse)&&Ct(this._weekdaysParse)))return;if(n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}weekdaysRegex(t){return this._weekdaysParseExact?(kt(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysStrictRegex:this._weekdaysRegex):(kt(this,"_weekdaysRegex")||(this._weekdaysRegex=he),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(t){return this._weekdaysParseExact?(kt(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(kt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=he),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(t){return this._weekdaysParseExact?(kt(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(kt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=he),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(t){return"p"===t.toLowerCase().charAt(0)}meridiem(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}formatLongDate(t){this._longDateFormat=this._longDateFormat?this._longDateFormat:qe;const e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,t=>t.slice(1)),this._longDateFormat[t])}handleMonthStrictParse(t,e,n){const r=t.toLocaleLowerCase();let s,i,o;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=new Date(2e3,s),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?(i=this._shortMonthsParse.indexOf(r),-1!==i?i:null):(i=this._longMonthsParse.indexOf(r),-1!==i?i:null):"MMM"===e?(i=this._shortMonthsParse.indexOf(r),-1!==i?i:(i=this._longMonthsParse.indexOf(r),-1!==i?i:null)):(i=this._longMonthsParse.indexOf(r),-1!==i?i:(i=this._shortMonthsParse.indexOf(r),-1!==i?i:null))}handleWeekStrictParse(t,e,n){let r;const s=t.toLocaleLowerCase();if(!this._weekdaysParse){let t;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],t=0;t<7;++t){const e=Gn(new Date(Date.UTC(2e3,1)),t,null,!0);this._minWeekdaysParse[t]=this.weekdaysMin(e).toLocaleLowerCase(),this._shortWeekdaysParse[t]=this.weekdaysShort(e).toLocaleLowerCase(),this._weekdaysParse[t]=this.weekdays(e,"").toLocaleLowerCase()}}if(Ct(this._weekdaysParse)&&Ct(this._shortWeekdaysParse)&&Ct(this._minWeekdaysParse))return n?"dddd"===e?(r=this._weekdaysParse.indexOf(s),-1!==r?r:null):"ddd"===e?(r=this._shortWeekdaysParse.indexOf(s),-1!==r?r:null):(r=this._minWeekdaysParse.indexOf(s),-1!==r?r:null):"dddd"===e?(r=this._weekdaysParse.indexOf(s),-1!==r?r:(r=this._shortWeekdaysParse.indexOf(s),-1!==r?r:(r=this._minWeekdaysParse.indexOf(s),-1!==r?r:null))):"ddd"===e?(r=this._shortWeekdaysParse.indexOf(s),-1!==r?r:(r=this._weekdaysParse.indexOf(s),-1!==r?r:(r=this._minWeekdaysParse.indexOf(s),-1!==r?r:null))):(r=this._minWeekdaysParse.indexOf(s),-1!==r?r:(r=this._weekdaysParse.indexOf(s),-1!==r?r:(r=this._shortWeekdaysParse.indexOf(s),-1!==r?r:null)))}computeMonthsParse(){const t=[],e=[],n=[];let r,s;for(s=0;s<12;s++)r=new Date(2e3,s),t.push(this.monthsShort(r,"")),e.push(this.months(r,"")),n.push(this.months(r,"")),n.push(this.monthsShort(r,""));for(t.sort(Ge),e.sort(Ge),n.sort(Ge),s=0;s<12;s++)t[s]=me(t[s]),e[s]=me(e[s]);for(s=0;s<24;s++)n[s]=me(n[s]);this._monthsRegex=new RegExp(`^(${n.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}computeWeekdaysParse(){const t=[],e=[],n=[],r=[];let s;for(s=0;s<7;s++){const i=Gn(new Date(Date.UTC(2e3,1)),s,null,!0),o=this.weekdaysMin(i),a=this.weekdaysShort(i),l=this.weekdays(i);t.push(o),e.push(a),n.push(l),r.push(o),r.push(a),r.push(l)}for(t.sort(Ge),e.sort(Ge),n.sort(Ge),r.sort(Ge),s=0;s<7;s++)e[s]=me(e[s]),n[s]=me(n[s]),r[s]=me(r[s]);this._weekdaysRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}}function Ge(t,e){return e.length-t.length}const Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:qe,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i};function Ze(t,e,n){const r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length);let i,o=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&Ot(t[i])!==Ot(e[i]))&&o++;return o+s}function Ke(t,e){Nt(null,[t,t.length,!1],null,e)}function Je(t,e){return tn(t,e.locale).toString()}function Xe(t){return en(t).toString()}function tn(t,e=cn(),n){return Ne(t,e.firstDayOfWeek(),e.firstDayOfYear(),n).year}function en(t,e){return Ne(t,1,4,e).year}function nn(t,e){Nt(t,null,null,(function(t,n){let r=function(t,e={}){return e._isUTC?e._offset||0:function(t){return 15*-Math.round(t.getTimezoneOffset()/15)}(t)}(t,{_isUTC:n.isUTC,_offset:n.offset}),s="+";return r<0&&(r=-r,s="-"),s+Rt(~~(r/60),2)+e+Rt(~~r%60,2)}))}const rn=/([\+\-]|\d\d)/gi,sn={},on={};let an;function ln(t){return t?t.toLowerCase().replace("_","-"):t}function cn(t){return sn.en||(function t(e,n){let r;return e&&(Dt(n)?r=cn(e):yt(e)&&(r=function e(n,r){if(null===r)return delete sn[n],an=cn("en"),null;if(!r)return;let s=Qe;if(r.abbr=n,null!=r.parentLocale){if(null==sn[r.parentLocale])return on[r.parentLocale]||(on[r.parentLocale]=[]),on[r.parentLocale].push({name:n,config:r}),null;s=sn[r.parentLocale]._config}return sn[n]=new We(function(t,e){const n=Object.assign({},t);for(const s in e)kt(e,s)&&(Et(t[s])&&Et(e[s])?(n[s]={},Object.assign(n[s],t[s]),Object.assign(n[s],e[s])):null!=e[s]?n[s]=e[s]:delete n[s]);let r;for(r in t)kt(t,r)&&!kt(e,r)&&Et(t[r])&&(n[r]=Object.assign({},n[r]));return n}(s,r)),on[n]&&on[n].forEach((function(t){e(t.name,t.config)})),t(n),sn[n]}(e,n)),r&&(an=r)),an&&an._abbr}("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(t){const e=t%10;return t+(1===Ot(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),Nt("w",["ww",2,!1],"wo",(function(t,e){return function(t,e=cn(),n){return e.week(t,void 0)}(t,e.locale).toString(10)})),Nt("W",["WW",2,!1],"Wo",(function(t){return function(t,e){return Ne(t,1,4,void 0).week}(t).toString(10)})),Mt("week","w"),Mt("isoWeek","W"),fe("w",ee),fe("ww",ee,Kt),fe("W",ee),fe("WW",ee,Kt),ye(["w","ww","W","WW"],(function(t,e,n,r){return e[r.substr(0,1)]=Ot(t),n})),Nt(null,["gg",2,!1],null,(function(t,e){return(tn(t,e.locale)%100).toString()})),Nt(null,["GG",2,!1],null,(function(t){return(en(t)%100).toString()})),Ke("gggg",Je),Ke("ggggg",Je),Ke("GGGG",Xe),Ke("GGGGG",Xe),Mt("weekYear","gg"),Mt("isoWeekYear","GG"),fe("G",le),fe("g",le),fe("GG",ee,Kt),fe("gg",ee,Kt),fe("GGGG",ie,Xt),fe("gggg",ie,Xt),fe("GGGGG",oe,te),fe("ggggg",oe,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){return e[r.substr(0,2)]=Ot(t),n})),ye(["gg","GG"],(function(t,e,n,r){return e[r]=Se(t),n})),Nt("Y",null,null,(function(t,e){const n=Yt(t,e.isUTC);return n<=9999?n.toString(10):"+"+n})),Nt(null,["YY",2,!1],null,(function(t,e){return(Yt(t,e.isUTC)%100).toString(10)})),Nt(null,["YYYY",4,!1],null,we),Nt(null,["YYYYY",5,!1],null,we),Nt(null,["YYYYYY",6,!0],null,we),Mt("year","y"),fe("Y",le),fe("YY",ee,Kt),fe("YYYY",ie,Xt),fe("YYYYY",oe,te),fe("YYYYYY",oe,te),_e(["YYYYY","YYYYYY"],0),_e("YYYY",(function(t,e,n){return e[0]=2===t.length?Se(t):Ot(t),n})),_e("YY",(function(t,e,n){return e[0]=Se(t),n})),_e("Y",(function(t,e,n){return e[0]=parseInt(t,10),n})),Nt("z",null,null,(function(t,e){return e.isUTC?"UTC":""})),Nt("zz",null,null,(function(t,e){return e.isUTC?"Coordinated Universal Time":""})),Nt("X",null,null,(function(t){return function(t){return Math.floor(t.valueOf()/1e3)}(t).toString(10)})),Nt("x",null,null,(function(t){return t.valueOf().toString(10)})),fe("x",le),fe("X",ue),_e("X",(function(t,e,n){return n._d=new Date(1e3*parseFloat(t)),n})),_e("x",(function(t,e,n){return n._d=new Date(Ot(t)),n})),Nt("s",["ss",2,!1],null,(function(t,e){return Ut(t,e.isUTC).toString(10)})),Mt("second","s"),fe("s",ee),fe("ss",ee,Kt),_e(["s","ss"],5),Nt("Q",null,"Qo",(function(t,e){return function(t,e=!1){return Math.ceil((Bt(t,e)+1)/3)}(t,e.isUTC).toString(10)})),Mt("quarter","Q"),fe("Q",Zt),_e("Q",(function(t,e,n){return e[1]=3*(Ot(t)-1),n})),nn("Z",":"),nn("ZZ",""),fe("Z",ce),fe("ZZ",ce),_e(["Z","ZZ"],(function(t,e,n){return n._useUTC=!0,n._tzm=function(t,e){const n=(e||"").match(t);if(null===n)return null;const r=n[n.length-1].match(rn)||["-","0","0"],s=60*parseInt(r[1],10)+Ot(r[2]);return 0===s?0:"+"===r[0]?s:-s}(ce,t),n})),Nt("M",["MM",2,!1],"Mo",(function(t,e){return(Bt(t,e.isUTC)+1).toString(10)})),Nt("MMM",null,null,(function(t,e){return e.locale.monthsShort(t,e.format,e.isUTC)})),Nt("MMMM",null,null,(function(t,e){return e.locale.months(t,e.format,e.isUTC)})),Mt("month","M"),fe("M",ee),fe("MM",ee,Kt),fe("MMM",(function(t,e){return e.monthsShortRegex(t)})),fe("MMMM",(function(t,e){return e.monthsRegex(t)})),_e(["M","MM"],(function(t,e,n){return e[1]=Ot(t)-1,n})),_e(["MMM","MMMM"],(function(t,e,n,r){const s=n._locale.monthsParse(t,r,n._strict);return null!=s?e[1]=s:ve(n).invalidMonth=!!t,n})),Nt("m",["mm",2,!1],null,(function(t,e){return Lt(t,e.isUTC).toString(10)})),Mt("minute","m"),fe("m",ee),fe("mm",ee,Kt),_e(["m","mm"],4),function(){let t;for(Nt("S",null,null,(function(t,e){return(~~(zt(t,e.isUTC)/100)).toString(10)})),Nt(null,["SS",2,!1],null,(function(t,e){return(~~(zt(t,e.isUTC)/10)).toString(10)})),Nt(null,["SSS",3,!1],null,(function(t,e){return zt(t,e.isUTC).toString(10)})),Nt(null,["SSSS",4,!1],null,(function(t,e){return(10*zt(t,e.isUTC)).toString(10)})),Nt(null,["SSSSS",5,!1],null,(function(t,e){return(100*zt(t,e.isUTC)).toString(10)})),Nt(null,["SSSSSS",6,!1],null,(function(t,e){return(1e3*zt(t,e.isUTC)).toString(10)})),Nt(null,["SSSSSSS",7,!1],null,(function(t,e){return(1e4*zt(t,e.isUTC)).toString(10)})),Nt(null,["SSSSSSSS",8,!1],null,(function(t,e){return(1e5*zt(t,e.isUTC)).toString(10)})),Nt(null,["SSSSSSSSS",9,!1],null,(function(t,e){return(1e6*zt(t,e.isUTC)).toString(10)})),Mt("millisecond","ms"),fe("S",se,Zt),fe("SS",se,Kt),fe("SSS",se,Jt),t="SSSS";t.length<=9;t+="S")fe(t,ae);function e(t,e,n){return e[6]=Ot(1e3*parseFloat("0."+t)),n}for(t="S";t.length<=9;t+="S")_e(t,e)}(),function(){function t(t,e){return Ht(t,e)%12||12}function e(t,e){Nt(t,null,null,(function(t,n){return n.locale.meridiem(Ht(t,n.isUTC),Lt(t,n.isUTC),e)}))}function n(t,e){return e._meridiemParse}Nt("H",["HH",2,!1],null,(function(t,e){return Ht(t,e.isUTC).toString(10)})),Nt("h",["hh",2,!1],null,(function(e,n){return t(e,n.isUTC).toString(10)})),Nt("k",["kk",2,!1],null,(function(t,e){return function(t,e){return Ht(t,e)||24}(t,e.isUTC).toString(10)})),Nt("hmm",null,null,(function(e,n){return`${t(e,n.isUTC)}${Rt(Lt(e,n.isUTC),2)}`})),Nt("hmmss",null,null,(function(e,n){return`${t(e,n.isUTC)}${Rt(Lt(e,n.isUTC),2)}${Rt(Ut(e,n.isUTC),2)}`})),Nt("Hmm",null,null,(function(t,e){return`${Ht(t,e.isUTC)}${Rt(Lt(t,e.isUTC),2)}`})),Nt("Hmmss",null,null,(function(t,e){return`${Ht(t,e.isUTC)}${Rt(Lt(t,e.isUTC),2)}${Rt(Ut(t,e.isUTC),2)}`})),e("a",!0),e("A",!1),Mt("hour","h"),fe("a",n),fe("A",n),fe("H",ee),fe("h",ee),fe("k",ee),fe("HH",ee,Kt),fe("hh",ee,Kt),fe("kk",ee,Kt),fe("hmm",ne),fe("hmmss",re),fe("Hmm",ne),fe("Hmmss",re),_e(["H","HH"],3),_e(["k","kk"],(function(t,e,n){const r=Ot(t);return e[3]=24===r?0:r,n})),_e(["a","A"],(function(t,e,n){return n._isPm=n._locale.isPM(t),n._meridiem=t,n})),_e(["h","hh"],(function(t,e,n){return e[3]=Ot(t),ve(n).bigHour=!0,n})),_e("hmm",(function(t,e,n){const r=t.length-2;return e[3]=Ot(t.substr(0,r)),e[4]=Ot(t.substr(r)),ve(n).bigHour=!0,n})),_e("hmmss",(function(t,e,n){const r=t.length-4,s=t.length-2;return e[3]=Ot(t.substr(0,r)),e[4]=Ot(t.substr(r,2)),e[5]=Ot(t.substr(s)),ve(n).bigHour=!0,n})),_e("Hmm",(function(t,e,n){const r=t.length-2;return e[3]=Ot(t.substr(0,r)),e[4]=Ot(t.substr(r)),n})),_e("Hmmss",(function(t,e,n){const r=t.length-4,s=t.length-2;return e[3]=Ot(t.substr(0,r)),e[4]=Ot(t.substr(r,2)),e[5]=Ot(t.substr(s)),n}))}(),Nt("DDD",["DDDD",3,!1],"DDDo",(function(t){return Pe(t).toString(10)})),Mt("dayOfYear","DDD"),fe("DDD",se),fe("DDDD",Jt),_e(["DDD","DDDD"],(function(t,e,n){return n._dayOfYear=Ot(t),n})),Nt("d",null,"do",(function(t,e){return $t(t,e.isUTC).toString(10)})),Nt("dd",null,null,(function(t,e){return e.locale.weekdaysMin(t,e.format,e.isUTC)})),Nt("ddd",null,null,(function(t,e){return e.locale.weekdaysShort(t,e.format,e.isUTC)})),Nt("dddd",null,null,(function(t,e){return e.locale.weekdays(t,e.format,e.isUTC)})),Nt("e",null,null,(function(t,e){return Qn(t,e.locale,e.isUTC).toString(10)})),Nt("E",null,null,(function(t,e){return function(t,e){return $t(t,e)||7}(t,e.isUTC).toString(10)})),Mt("day","d"),Mt("weekday","e"),Mt("isoWeekday","E"),fe("d",ee),fe("e",ee),fe("E",ee),fe("dd",(function(t,e){return e.weekdaysMinRegex(t)})),fe("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),fe("dddd",(function(t,e){return e.weekdaysRegex(t)})),ye(["dd","ddd","dddd"],(function(t,e,n,r){const s=n._locale.weekdaysParse(t,r,n._strict);return null!=s?e.d=s:ve(n).invalidWeekday=!!t,n})),ye(["d","e","E"],(function(t,e,n,r){return e[r]=Ot(t),n})),Nt("D",["DD",2,!1],"Do",(function(t,e){return qt(t,e.isUTC).toString(10)})),Mt("date","D"),fe("D",ee),fe("DD",ee,Kt),fe("Do",(function(t,e){return e._dayOfMonthOrdinalParse||e._ordinalParse})),_e(["D","DD"],2),_e("Do",(function(t,e,n){return e[2]=Ot(t.match(ee)[0]),n}))),t?function(t){let e,n,r=0;for(;r<t.length;){const i=ln(t[r]).split("-");let o=i.length;for(e=ln(t[r+1]),e=e?e.split("-"):null;o>0;){if(s=i.slice(0,o).join("-"),sn[s]||console.error(`Khronos locale error: please load locale "${s}" before using it`),n=sn[s],n)return n;if(e&&e.length>=o&&Ze(i,e,!0)>=o-1)break;o--}r++}var s;return null}(Ct(t)?t:[t]):an}const un=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],hn=un.reduce((t,e)=>(t[e]=!0,t),{});function dn(t){return t<0?Math.floor(t):Math.ceil(t)}function fn(t){return 4800*t/146097}function pn(t){return 146097*t/4800}let mn=Math.round;function gn(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}class _n{constructor(t,e={}){this._data={},this._locale=cn(),this._locale=e&&e._locale||cn();const n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||0,o=t.day||0,a=t.hours||0,l=t.minutes||0,c=t.seconds||0,u=t.milliseconds||0;return this._isValid=function(t){if(Object.keys(t).some(e=>e in hn&&null===t[e]||isNaN(t[e])))return!1;let e=!1;for(let n=0;n<un.length;++n)if(t[un[n]]){if(e)return!1;t[un[n]]!==Ot(t[un[n]])&&(e=!0)}return!0}(t),this._milliseconds=+u+1e3*c+60*l*1e3+1e3*a*60*60,this._days=+o+7*i,this._months=+s+3*r+12*n,function(t){let e=t._milliseconds,n=t._days,r=t._months;const s=t._data;e>=0&&n>=0&&r>=0||e<=0&&n<=0&&r<=0||(e+=864e5*dn(pn(r)+n),n=0,r=0),s.milliseconds=e%1e3;const i=_t(e/1e3);s.seconds=i%60;const o=_t(i/60);s.minutes=o%60;const a=_t(o/60);s.hours=a%24,n+=_t(a/24);const l=_t(fn(n));r+=l,n-=dn(pn(l));const c=_t(r/12);return r%=12,s.day=n,s.month=r,s.year=c,t}(this)}isValid(){return this._isValid}humanize(t){if(!this.isValid())return this.localeData().invalidDate;const e=this.localeData();let n=function(t,e,n){const r=$n(t).abs(),s=mn(r.as("s")),i=mn(r.as("m")),o=mn(r.as("h")),a=mn(r.as("d")),l=mn(r.as("M")),c=mn(r.as("y")),u=s<=44&&["s",s]||s<45&&["ss",s]||i<=1&&["m"]||i<45&&["mm",i]||o<=1&&["h"]||o<22&&["hh",o]||a<=1&&["d"]||a<26&&["dd",a]||l<=1&&["M"]||l<11&&["MM",l]||c<=1&&["y"]||["yy",c];return gn.apply(null,[u[0],u[1],e,+t>0,n])}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}localeData(){return this._locale}locale(t){return t?(this._locale=cn(t)||this._locale,this):this._locale._abbr}abs(){const t=Math.abs,e=this._data;return this._milliseconds=t(this._milliseconds),this._days=t(this._days),this._months=t(this._months),e.milliseconds=t(e.milliseconds),e.seconds=t(e.seconds),e.minutes=t(e.minutes),e.hours=t(e.hours),e.month=t(e.month),e.year=t(e.year),this}as(t){if(!this.isValid())return NaN;let e,n;const r=this._milliseconds,s=At(t);if("month"===s||"year"===s)return e=this._days+r/864e5,n=this._months+fn(e),"month"===s?n:n/12;switch(e=this._days+Math.round(pn(this._months)),s){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hours":return 24*e+r/36e5;case"minutes":return 1440*e+r/6e4;case"seconds":return 86400*e+r/1e3;case"milliseconds":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+s)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ot(this._months/12):NaN}}function yn(t){if(null==t._isValid){const e=ve(t),n=Array.prototype.some.call(e.parsedDateParts,(function(t){return null!=t}));let r=!isNaN(t._d&&t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function bn(t,e){return t._d=new Date(NaN),Object.assign(ve(t),e||{userInvalidated:!0}),t}const vn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((\-?\d+)/i,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function xn(t){if(!yt(t._i))return t;const e=t._i,n=vn.exec(e)||wn.exec(e);let r,s,i,o,a,l;if(!n)return t._isValid=!1,t;for(a=0,l=Cn.length;a<l;a++)if(Cn[a][1].exec(n[1])){s=Cn[a][0],r=!1!==Cn[a][2];break}if(null==s)return t._isValid=!1,t;if(n[3]){for(a=0,l=kn.length;a<l;a++)if(kn[a][1].exec(n[3])){i=(n[2]||" ")+kn[a][0];break}if(null==i)return t._isValid=!1,t}if(!r&&null!=i)return t._isValid=!1,t;if(n[4]){if(!Sn.exec(n[4]))return t._isValid=!1,t;o="Z"}return t._f=s+(i||"")+(o||""),Nn(t)}function Tn(t){const e=parseInt(t,10);return e<=49?e+2e3:e}function Mn(t){if(!yt(t._i))return t;const e=On.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(!e)return function(t){return t._isValid=!1,t}(t);const n=function(t,e,n,r,s,i){const o=[Tn(t),Le.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}(e[4],e[3],e[2],e[5],e[6],e[7]);return function(t,e,n){return!t||ze.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(ve(n).weekdayMismatch=!0,n._isValid=!1,!1)}(e[1],n,t)?(t._a=n,t._tzm=function(t,e,n){if(t)return Dn[t];if(e)return 0;{const t=parseInt(n,10),e=t%100;return(t-e)/100*60+e}}(e[8],e[9],e[10]),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),ve(t).rfc2822=!0,t):t}function An(t,e,n,r,s=0){const i=cn(n||"en");if(!i)throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);const o=function(t,e,n,r,s=0){if(!vt(t))return n.invalidDate;const i=Rn(e,n);return jt[i]=jt[i]||function(t){const e=t.match(It),n=e.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=Pt[e[i]]?Pt[e[i]]:(s=e[i]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");var s;return function(e,s,i,o=0){let a="";for(let l=0;l<n;l++)a+=wt(r[l])?r[l].call(null,e,{format:t,locale:s,isUTC:i,offset:o}):r[l];return a}}(i),jt[i](t,n,r,s)}(t,e||(r?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),i,r,s);return o?i.postformat(o):o}function Rn(t,e){let n=t,r=5;const s=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,i=t=>e.formatLongDate(t)||t;for(s.lastIndex=0;r>=0&&s.test(n);)n=n.replace(s,i),s.lastIndex=0,r-=1;return n}function jn(t,e,n){return null!=t?t:null!=e?e:n}function Pn(t){const e=[];let n,r,s,i,o;if(t._d)return t;for(s=function(t){const e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){let e,n,r,s,i,o,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,o=4,n=jn(e.GG,t._a[0],Ne(new Date,1,4).year),r=jn(e.W,1),s=jn(e.E,1),(s<1||s>7)&&(l=!0);else{i=t._locale._week.dow,o=t._locale._week.doy;const a=Ne(new Date,i,o);n=jn(e.gg,t._a[0],a.year),r=jn(e.w,a.week),null!=e.d?(s=e.d,(s<0||s>6)&&(l=!0)):null!=e.e?(s=e.e+i,(e.e<0||e.e>6)&&(l=!0)):s=i}r<1||r>Fe(n,i,o)?ve(t)._overflowWeeks=!0:null!=l?ve(t)._overflowWeekday=!0:(a=function(t,e,n,r,s){const i=1+7*(e-1)+(7+n-r)%7+Ie(t,r,s);let o,a;return i<=0?(o=t-1,a=Ce(o)+i):i>Ce(t)?(o=t+1,a=i-Ce(t)):(o=t,a=i),{year:o,dayOfYear:a}}(n,r,s,i,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=jn(t._a[0],s[0]),(t._dayOfYear>Ce(o)||0===t._dayOfYear)&&(ve(t)._overflowDayOfYear=!0),r=new Date(Date.UTC(o,0,t._dayOfYear)),t._a[1]=r.getUTCMonth(),t._a[2]=r.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=e[n]=s[n];for(;n<7;n++)t._a[n]=e[n]=null==t._a[n]?2===n?1:0:t._a[n];return 24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ft:Vt).apply(null,e),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(ve(t).weekdayMismatch=!0),t}function In(t){let e;const n=t._a;return n&&-2===ve(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ee(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,ve(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),ve(t)._overflowWeeks&&-1===e&&(e=7),ve(t)._overflowWeekday&&-1===e&&(e=8),ve(t).overflow=e),t}function Nn(t){if("ISO_8601"===t._f)return xn(t);if("RFC_2822"===t._f)return Mn(t);if(t._a=[],ve(t).empty=!0,Ct(t._f)||!t._i&&0!==t._i)return t;let e=t._i.toString(),n=0;const r=e.length,s=Rn(t._f,t._locale).match(It)||[];let i,o,a,l;for(i=0;i<s.length;i++)o=s[i],a=(e.match(pe(o,t._locale))||[])[0],a&&(l=e.substr(0,e.indexOf(a)),l.length>0&&ve(t).unusedInput.push(l),e=e.slice(e.indexOf(a)+a.length),n+=a.length),Pt[o]?(a?ve(t).empty=!1:ve(t).unusedTokens.push(o),be(o,a,t)):t._strict&&!a&&ve(t).unusedTokens.push(o);return ve(t).charsLeftOver=r-n,e.length>0&&ve(t).unusedInput.push(e),t._a[3]<=12&&!0===ve(t).bigHour&&t._a[3]>0&&(ve(t).bigHour=void 0),ve(t).parsedDateParts=t._a.slice(0),ve(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){let r=e;if(null==n)return r;if(null!=t.meridiemHour)return t.meridiemHour(r,n);if(null==t.isPM)return r;const s=t.isPM(n);return s&&r<12&&(r+=12),s||12!==r||(r=0),r}(t._locale,t._a[3],t._meridiem),Pn(t),In(t)}function Fn(t,e,n,r,s){return bt(t)?t:function(t,e,n,r,s){const i={};let o=t;return(Et(o)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;let e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(o)||Ct(o)&&0===o.length)&&(o=void 0),i._useUTC=i._isUTC=s,i._l=n,i._i=o,i._f=e,i._strict=r,function(t){const e=In(function(t){let e=t._i;const n=t._f;return t._locale=t._locale||cn(t._l),null===e||void 0===n&&""===e?bn(t,{nullInput:!0}):(yt(e)&&(t._i=e=t._locale.preparse(e)),bt(e)?(t._d=Ae(e),t):(Ct(n)?function(t){let e,n,r,s,i;if(!t._f||0===t._f.length)return ve(t).invalidFormat=!0,bn(t);for(i=0;i<t._f.length;i++)s=0,e=Object.assign({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Nn(e),yn(e)&&(s+=ve(e).charsLeftOver,s+=10*ve(e).unusedTokens.length,ve(e).score=s,(null==r||s<r)&&(r=s,n=e));Object.assign(t,n||e)}(t):n?Nn(t):function(t){const e=t._i;if(Dt(e))t._d=new Date;else if(bt(e))t._d=Ae(e);else if(yt(e))!function(t){if(!yt(t._i))return t;const e=En.exec(t._i);null!==e?t._d=new Date(+e[1]):(xn(t),!1!==t._isValid||(delete t._isValid,Mn(t),!1!==t._isValid||(delete t._isValid,bn(t))))}(t);else if(Ct(e)&&e.length){const n=e.slice(0);t._a=n.map(t=>yt(t)?parseInt(t,10):t),Pn(t)}else if(Et(e))!function(t){if(t._d)return t;const e=t._i;if(Et(e)){const n=function(t){const e={};let n,r;for(r in t)kt(t,r)&&(n=At(r),n&&(e[n]=t[r]));return e}(e);t._a=[n.year,n.month,n.day,n.hours,n.minutes,n.seconds,n.milliseconds].map(t=>yt(t)?parseInt(t,10):t)}Pn(t)}(t);else{if(!St(e))return bn(t);t._d=new Date(e)}}(t),yn(t)||(t._d=null),t))}(t));return e._d=new Date(null!=e._d?e._d.getTime():NaN),yn(Object.assign({},e,{_isValid:null}))||(e._d=new Date(NaN)),e}(i)}(t,e,n,r,s)._d}function Vn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Hn(t,e,n="milliseconds"){return!(!t||!e)&&("milliseconds"===n?t.valueOf()>e.valueOf():e.valueOf()<Re(t,n).valueOf())}function Ln(t,e,n="milliseconds"){return!(!t||!e)&&("milliseconds"===n?t.valueOf()<e.valueOf():je(t,n).valueOf()<e.valueOf())}const Un=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $n(t,e,n={}){const r=function(t,e){if(null==t)return{};if(t instanceof _n)return{milliseconds:t._milliseconds,day:t._days,month:t._months};if(St(t))return e?{[e]:t}:{milliseconds:t};if(yt(t)){let e=Un.exec(t);if(e){const t="-"===e[1]?-1:1;return{year:0,day:Ot(e[2])*t,hours:Ot(e[3])*t,minutes:Ot(e[4])*t,seconds:Ot(e[5])*t,milliseconds:Ot(Vn(1e3*Ot(e[6])))*t}}if(e=zn.exec(t),e){const t="-"===e[1]?-1:1;return{year:qn(e[2],t),month:qn(e[3],t),week:qn(e[4],t),day:qn(e[5],t),hours:qn(e[6],t),minutes:qn(e[7],t),seconds:qn(e[8],t)}}}if(Et(t)&&("from"in t||"to"in t)){const e=function(t,e){if(!vt(t)||!vt(e))return{milliseconds:0,months:0};let n;const r=function(t,e,n={}){if(!n._isUTC)return t;const r=Ae(e),s=6e4*(n._offset||0),i=t.valueOf()-r.valueOf()+s;return r.setTime(r.valueOf()+i),r}(e,t,{_offset:t.getTimezoneOffset()});return Ln(t,r)?n=Bn(t,r):(n=Bn(r,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}(Fn(t.from),Fn(t.to));return{milliseconds:e.milliseconds,month:e.months}}return t}(t,e);return new _n(r,n)}function qn(t,e){const n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Bn(t,e){const n={milliseconds:0,months:0};return n.months=Bt(e)-Bt(t)+12*(Yt(e)-Yt(t)),Hn(Yn(Ae(t),n.months,"month"),e)&&--n.months,n.milliseconds=+e-+Yn(Ae(t),n.months,"month"),n}function Yn(t,e,n,r){return Wn(t,$n(e,n),1,r)}function Wn(t,e,n,r){const s=e._milliseconds,i=Vn(e._days),o=Vn(e._months);return o&&Te(t,Bt(t,r)+o*n,r),i&&Me(t,qt(t,r)+i*n,r),s&&function(t,e){t.setTime(e)}(t,function(t){return t.getTime()}(t)+s*n),Ae(t)}function Gn(t,e,n=cn(),r){const s=$t(t,r);return Yn(t,function(t,e){if(!yt(t))return t;const n=parseInt(t,10);if(!isNaN(n))return n;const r=e.weekdaysParse(t);return St(r)?r:null}(e,n)-s,"day")}function Qn(t,e=cn(),n){return($t(t,n)+7-e.firstDayOfWeek())%7}const Zn=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},Kn={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},Jn=function(t){return function(e,n){const r=Zn(e);let s=Kn[t][Zn(e)];return 2===r&&(s=s[n?0:1]),s.replace(/%d/i,e.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),Jn("s"),Jn("s"),Jn("m"),Jn("m"),Jn("h"),Jn("h"),Jn("d"),Jn("d"),Jn("M"),Jn("M"),Jn("y"),Jn("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Xn="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),tr="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(t,e){let n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i")})(Xn,tr),function(t){let e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i")}(tr),function(t){let e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i")}(Xn),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var er=n("3Pt+");function nr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-days-calendar-view",9),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).dayHoverHandler(e)}))("onHoverWeek",(function(e){return v.zc(t),v.hc(3).weekHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).daySelectHandler(e)})),v.ic(1,"async"),v.ic(2,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,4,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)("options",v.jc(2,6,r.options))}}function rr(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,nr,3,8,"bs-days-calendar-view",8),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.daysCalendar))}}function sr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-month-calendar-view",11),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).monthHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).monthSelectHandler(e)})),v.ic(1,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,3,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)}}function ir(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,sr,2,5,"bs-month-calendar-view",10),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.monthsCalendar))}}function or(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-years-calendar-view",11),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).yearHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).yearSelectHandler(e)})),v.ic(1,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,3,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)}}function ar(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,or,2,5,"bs-years-calendar-view",10),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.yearsCalendar))}}function lr(t,e){1&t&&(v.Rb(0,"div",12),v.Rb(1,"button",13),v.Hc(2,"Apply"),v.Qb(),v.Rb(3,"button",14),v.Hc(4,"Cancel"),v.Qb(),v.Qb())}function cr(t,e){if(1&t&&(v.Rb(0,"div",15),v.Nb(1,"bs-custom-date-view",16),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ranges",t._customRangesFish)}}function ur(t,e){if(1&t&&(v.Rb(0,"div",1),v.Rb(1,"div",2),v.Rb(2,"div",3),v.ic(3,"async"),v.Fc(4,rr,3,3,"div",4),v.Fc(5,ir,3,3,"div",4),v.Fc(6,ar,3,3,"div",4),v.Qb(),v.Fc(7,lr,5,0,"div",5),v.Qb(),v.Fc(8,cr,2,1,"div",6),v.Qb()),2&t){const t=v.hc();v.nc("ngClass",t.containerClass),v.zb(2),v.nc("ngSwitch",v.jc(3,7,t.viewMode)),v.zb(2),v.nc("ngSwitchCase","day"),v.zb(1),v.nc("ngSwitchCase","month"),v.zb(1),v.nc("ngSwitchCase","year"),v.zb(1),v.nc("ngIf",!1),v.zb(1),v.nc("ngIf",!1)}}function hr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-days-calendar-view",9),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).dayHoverHandler(e)}))("onHoverWeek",(function(e){return v.zc(t),v.hc(3).weekHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).daySelectHandler(e)})),v.ic(1,"async"),v.ic(2,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,4,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)("options",v.jc(2,6,r.options))}}function dr(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,hr,3,8,"bs-days-calendar-view",8),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.daysCalendar))}}function fr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-month-calendar-view",11),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).monthHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).monthSelectHandler(e)})),v.ic(1,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,3,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)}}function pr(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,fr,2,5,"bs-month-calendar-view",10),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.monthsCalendar))}}function mr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"bs-years-calendar-view",11),v.dc("onNavigate",(function(e){return v.zc(t),v.hc(3).navigateTo(e)}))("onViewMode",(function(e){return v.zc(t),v.hc(3).setViewMode(e)}))("onHover",(function(e){return v.zc(t),v.hc(3).yearHoverHandler(e)}))("onSelect",(function(e){return v.zc(t),v.hc(3).yearSelectHandler(e)})),v.ic(1,"async"),v.Qb()}if(2&t){const t=e.$implicit,r=v.hc(3);var n;const s=(null==(n=v.jc(1,3,r.daysCalendar))?null:n.length)>1;v.Eb("bs-datepicker-multiple",s),v.nc("calendar",t)}}function gr(t,e){if(1&t&&(v.Rb(0,"div",7),v.Fc(1,mr,2,5,"bs-years-calendar-view",10),v.ic(2,"async"),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ngForOf",v.jc(2,1,t.yearsCalendar))}}function _r(t,e){1&t&&(v.Rb(0,"div",12),v.Rb(1,"button",13),v.Hc(2,"Apply"),v.Qb(),v.Rb(3,"button",14),v.Hc(4,"Cancel"),v.Qb(),v.Qb())}function yr(t,e){if(1&t&&(v.Rb(0,"div",15),v.Nb(1,"bs-custom-date-view",16),v.Qb()),2&t){const t=v.hc(2);v.zb(1),v.nc("ranges",t._customRangesFish)}}function br(t,e){if(1&t&&(v.Rb(0,"div",1),v.Rb(1,"div",2),v.Rb(2,"div",3),v.ic(3,"async"),v.Fc(4,dr,3,3,"div",4),v.Fc(5,pr,3,3,"div",4),v.Fc(6,gr,3,3,"div",4),v.Qb(),v.Fc(7,_r,5,0,"div",5),v.Qb(),v.Fc(8,yr,2,1,"div",6),v.Qb()),2&t){const t=v.hc();v.nc("ngClass",t.containerClass),v.zb(2),v.nc("ngSwitch",v.jc(3,7,t.viewMode)),v.zb(2),v.nc("ngSwitchCase","day"),v.zb(1),v.nc("ngSwitchCase","month"),v.zb(1),v.nc("ngSwitchCase","year"),v.zb(1),v.nc("ngIf",!1),v.zb(1),v.nc("ngIf",!1)}}function vr(t,e){1&t&&v.Nb(0,"bs-current-date",4)}function wr(t,e){1&t&&v.Nb(0,"bs-timepicker")}const Sr=[[["bs-datepicker-navigation-view"]],"*"],Cr=["bs-datepicker-navigation-view","*"];function kr(t,e){if(1&t&&(v.Rb(0,"button"),v.Hc(1),v.Qb()),2&t){const t=e.$implicit;v.zb(1),v.Ic(t.label)}}function Er(t,e){1&t&&(v.Rb(0,"button"),v.Hc(1,"Custom Range"),v.Qb())}const Dr=["bsDatepickerDayDecorator",""];function Or(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",2),v.dc("click",(function(){return v.zc(t),v.hc().view("month")})),v.Rb(1,"span"),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=v.hc();v.zb(2),v.Ic(t.calendar.monthTitle)}}function xr(t,e){1&t&&v.Nb(0,"th")}function Tr(t,e){if(1&t&&(v.Rb(0,"th",5),v.Hc(1),v.Qb()),2&t){const t=e.index,n=v.hc();v.zb(1),v.Jc("",n.calendar.weekdays[t]," ")}}function Mr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",8),v.Rb(1,"span",9),v.dc("click",(function(){v.zc(t);const e=v.hc().$implicit;return v.hc().selectWeek(e)}))("mouseenter",(function(){v.zc(t);const e=v.hc().$implicit;return v.hc().weekHoverHandler(e,!0)}))("mouseleave",(function(){v.zc(t);const e=v.hc().$implicit;return v.hc().weekHoverHandler(e,!1)})),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=v.hc().index,e=v.hc();v.Eb("active-week",e.isWeekHovered),v.zb(2),v.Ic(e.calendar.weekNumbers[t])}}function Ar(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",10),v.Rb(1,"span",11),v.dc("click",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).selectDay(n)}))("mouseenter",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverDay(n,!0)}))("mouseleave",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverDay(n,!1)})),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=e.$implicit;v.zb(1),v.nc("day",t),v.zb(1),v.Ic(t.label)}}function Rr(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,Mr,3,3,"td",6),v.Fc(2,Ar,3,2,"td",7),v.Qb()),2&t){const t=e.$implicit,n=v.hc();v.zb(1),v.nc("ngIf",n.options.showWeekNumbers),v.zb(1),v.nc("ngForOf",t.days)}}function jr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",4),v.dc("click",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).viewMonth(n)}))("mouseenter",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverMonth(n,!0)}))("mouseleave",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverMonth(n,!1)})),v.Rb(1,"span"),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=e.$implicit;v.Eb("disabled",t.isDisabled)("is-highlighted",t.isHovered),v.zb(2),v.Ic(t.label)}}function Pr(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,jr,3,5,"td",3),v.Qb()),2&t){const t=e.$implicit;v.zb(1),v.nc("ngForOf",t)}}function Ir(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",4),v.dc("click",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).viewYear(n)}))("mouseenter",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverYear(n,!0)}))("mouseleave",(function(){v.zc(t);const n=e.$implicit;return v.hc(2).hoverYear(n,!1)})),v.Rb(1,"span"),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=e.$implicit;v.Eb("disabled",t.isDisabled)("is-highlighted",t.isHovered),v.zb(2),v.Ic(t.label)}}function Nr(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,Ir,3,5,"td",3),v.Qb()),2&t){const t=e.$implicit;v.zb(1),v.nc("ngForOf",t)}}function Fr(t,e){1&t&&(v.Rb(0,"div",1),v.lc(1),v.Qb())}const Vr=["*"];function Hr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",8),v.dc("click",(function(){return v.zc(t),v.hc(2).datePicker.move(-1)})),v.Hc(1,"\u2039"),v.Qb()}}function Lr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",8),v.dc("click",(function(){return v.zc(t),v.hc(2).datePicker.move(-1)})),v.Hc(1,"<"),v.Qb()}}function Ur(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",9),v.dc("click",(function(){return v.zc(t),v.hc(2).datePicker.move(1)})),v.Hc(1,"\u203a"),v.Qb()}}function zr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",9),v.dc("click",(function(){return v.zc(t),v.hc(2).datePicker.move(1)})),v.Hc(1,"> "),v.Qb()}}function $r(t,e){1&t&&v.Nb(0,"th")}function qr(t,e){if(1&t&&(v.Rb(0,"th",10),v.Rb(1,"small",11),v.Rb(2,"b"),v.Hc(3),v.Qb(),v.Qb(),v.Qb()),2&t){const t=e.$implicit;v.zb(3),v.Ic(t.abbr)}}function Br(t,e){if(1&t&&(v.Rb(0,"td",10),v.Rb(1,"em"),v.Hc(2),v.Qb(),v.Qb()),2&t){const t=v.hc(2).index,e=v.hc(2);v.zb(2),v.Ic(e.weekNumbers[t])}}const Yr=function(t,e,n,r,s){return{"btn-secondary":t,"btn-info":e,disabled:n,active:r,"btn-default":s}},Wr=function(t,e){return{"text-muted":t,"text-info":e}};function Gr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"button",16),v.dc("click",(function(){v.zc(t);const e=v.hc().$implicit;return v.hc(4).datePicker.select(e.date)})),v.Rb(1,"span",17),v.Hc(2),v.Qb(),v.Qb()}if(2&t){const t=v.hc().$implicit,e=v.hc(4);v.Cb("btn btn-sm ",t.customClass,""),v.nc("ngClass",v.vc(7,Yr,e.isBs4&&!t.selected&&!e.datePicker.isActive(t),t.selected,t.disabled,!e.isBs4&&e.datePicker.isActive(t),!e.isBs4))("disabled",t.disabled),v.zb(1),v.nc("ngClass",v.sc(13,Wr,t.secondary||t.current,!e.isBs4&&t.current)),v.zb(1),v.Ic(t.label)}}function Qr(t,e){if(1&t&&(v.Rb(0,"td",14),v.Fc(1,Gr,3,16,"button",15),v.Qb()),2&t){const t=e.$implicit,n=v.hc(4);v.nc("id",t.uid),v.zb(1),v.nc("ngIf",!(n.datePicker.onlyCurrentMonth&&t.secondary))}}function Zr(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,Br,3,1,"td",12),v.Fc(2,Qr,2,2,"td",13),v.Qb()),2&t){const t=v.hc().$implicit,e=v.hc(2);v.zb(1),v.nc("ngIf",e.datePicker.showWeeks),v.zb(1),v.nc("ngForOf",t)}}function Kr(t,e){if(1&t&&v.Fc(0,Zr,3,2,"tr",5),2&t){const t=e.$implicit,n=v.hc(2);v.nc("ngIf",!(n.datePicker.onlyCurrentMonth&&t[0].secondary&&t[6].secondary))}}const Jr=function(t){return{disabled:t}};function Xr(t,e){if(1&t){const t=v.Sb();v.Rb(0,"table",1),v.Rb(1,"thead"),v.Rb(2,"tr"),v.Rb(3,"th"),v.Fc(4,Hr,2,0,"button",2),v.Fc(5,Lr,2,0,"button",2),v.Qb(),v.Rb(6,"th"),v.Rb(7,"button",3),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.toggleMode(0)})),v.Rb(8,"strong"),v.Hc(9),v.Qb(),v.Qb(),v.Qb(),v.Rb(10,"th"),v.Fc(11,Ur,2,0,"button",4),v.Fc(12,zr,2,0,"button",4),v.Qb(),v.Qb(),v.Rb(13,"tr"),v.Fc(14,$r,1,0,"th",5),v.Fc(15,qr,4,1,"th",6),v.Qb(),v.Qb(),v.Rb(16,"tbody"),v.Fc(17,Kr,1,1,"ng-template",7),v.Qb(),v.Qb()}if(2&t){const t=v.hc();v.Ab("aria-labelledby",t.datePicker.uniqueId+"-title"),v.zb(4),v.nc("ngIf",!t.isBs4),v.zb(1),v.nc("ngIf",t.isBs4),v.zb(1),v.Ab("colspan",5+(t.datePicker.showWeeks?1:0)),v.zb(1),v.nc("id",t.datePicker.uniqueId+"-title")("disabled",t.datePicker.datepickerMode===t.datePicker.maxMode)("ngClass",v.rc(13,Jr,t.datePicker.datepickerMode===t.datePicker.maxMode)),v.zb(2),v.Ic(t.title),v.zb(2),v.nc("ngIf",!t.isBs4),v.zb(1),v.nc("ngIf",t.isBs4),v.zb(2),v.nc("ngIf",t.datePicker.showWeeks),v.zb(1),v.nc("ngForOf",t.labels),v.zb(2),v.nc("ngForOf",t.rows)}}const ts=function(t,e,n,r){return{"btn-link":t,"btn-info":e,disabled:n,active:r}},es=function(t,e){return{"text-success":t,"text-info":e}};function ns(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",7),v.Rb(1,"button",8),v.dc("click",(function(){v.zc(t);const n=e.$implicit;return v.hc(3).datePicker.select(n.date)})),v.Rb(2,"span",9),v.Hc(3),v.Qb(),v.Qb(),v.Qb()}if(2&t){const t=e.$implicit,n=v.hc(3);v.nc("ngClass",t.customClass),v.Ab("id",t.uid),v.zb(1),v.nc("ngClass",v.uc(6,ts,n.isBs4&&!t.selected&&!n.datePicker.isActive(t),t.selected||n.isBs4&&!t.selected&&n.datePicker.isActive(t),t.disabled,!n.isBs4&&n.datePicker.isActive(t)))("disabled",t.disabled),v.zb(1),v.nc("ngClass",v.sc(11,es,n.isBs4&&t.current,!n.isBs4&&t.current)),v.zb(1),v.Ic(t.label)}}function rs(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,ns,4,14,"td",6),v.Qb()),2&t){const t=e.$implicit;v.zb(1),v.nc("ngForOf",t)}}function ss(t,e){if(1&t){const t=v.Sb();v.Rb(0,"table",1),v.Rb(1,"thead"),v.Rb(2,"tr"),v.Rb(3,"th"),v.Rb(4,"button",2),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.move(-1)})),v.Hc(5,"\u2039"),v.Qb(),v.Qb(),v.Rb(6,"th"),v.Rb(7,"button",3),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.toggleMode(0)})),v.Rb(8,"strong"),v.Hc(9),v.Qb(),v.Qb(),v.Qb(),v.Rb(10,"th"),v.Rb(11,"button",4),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.move(1)})),v.Hc(12,"\u203a"),v.Qb(),v.Qb(),v.Qb(),v.Qb(),v.Rb(13,"tbody"),v.Fc(14,rs,2,1,"tr",5),v.Qb(),v.Qb()}if(2&t){const t=v.hc();v.zb(6),v.Ab("colspan",t.datePicker.monthColLimit-2<=0?1:t.datePicker.monthColLimit-2),v.zb(1),v.nc("id",t.datePicker.uniqueId+"-title")("disabled",t.datePicker.datepickerMode===t.maxMode)("ngClass",v.rc(6,Jr,t.datePicker.datepickerMode===t.maxMode)),v.zb(2),v.Ic(t.title),v.zb(5),v.nc("ngForOf",t.rows)}}function is(t,e){if(1&t){const t=v.Sb();v.Rb(0,"td",7),v.Rb(1,"button",8),v.dc("click",(function(){v.zc(t);const n=e.$implicit;return v.hc(3).datePicker.select(n.date)})),v.Rb(2,"span",9),v.Hc(3),v.Qb(),v.Qb(),v.Qb()}if(2&t){const t=e.$implicit,n=v.hc(3);v.Ab("id",t.uid),v.zb(1),v.nc("ngClass",v.uc(5,ts,n.isBs4&&!t.selected&&!n.datePicker.isActive(t),t.selected||n.isBs4&&!t.selected&&n.datePicker.isActive(t),t.disabled,!n.isBs4&&n.datePicker.isActive(t)))("disabled",t.disabled),v.zb(1),v.nc("ngClass",v.sc(10,es,n.isBs4&&t.current,!n.isBs4&&t.current)),v.zb(1),v.Ic(t.label)}}function os(t,e){if(1&t&&(v.Rb(0,"tr"),v.Fc(1,is,4,13,"td",6),v.Qb()),2&t){const t=e.$implicit;v.zb(1),v.nc("ngForOf",t)}}function as(t,e){if(1&t){const t=v.Sb();v.Rb(0,"table",1),v.Rb(1,"thead"),v.Rb(2,"tr"),v.Rb(3,"th"),v.Rb(4,"button",2),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.move(-1)})),v.Hc(5,"\u2039"),v.Qb(),v.Qb(),v.Rb(6,"th"),v.Rb(7,"button",3),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.toggleMode(0)})),v.Rb(8,"strong"),v.Hc(9),v.Qb(),v.Qb(),v.Qb(),v.Rb(10,"th"),v.Rb(11,"button",4),v.dc("click",(function(){return v.zc(t),v.hc().datePicker.move(1)})),v.Hc(12,"\u203a"),v.Qb(),v.Qb(),v.Qb(),v.Qb(),v.Rb(13,"tbody"),v.Fc(14,os,2,1,"tr",5),v.Qb(),v.Qb()}if(2&t){const t=v.hc();v.zb(6),v.Ab("colspan",t.datePicker.yearColLimit-2<=0?1:t.datePicker.yearColLimit-2),v.zb(1),v.nc("id",t.datePicker.uniqueId+"-title")("disabled",t.datePicker.datepickerMode===t.datePicker.maxMode)("ngClass",v.rc(6,Jr,t.datePicker.datepickerMode===t.datePicker.maxMode)),v.zb(2),v.Ic(t.title),v.zb(5),v.nc("ngForOf",t.rows)}}let ls=(()=>{class t{constructor(){this.adaptivePosition=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();class cs{constructor(){this._customRangesFish=[]}set minDate(t){this._effects.setMinDate(t)}set maxDate(t){this._effects.setMaxDate(t)}set daysDisabled(t){this._effects.setDaysDisabled(t)}set datesDisabled(t){this._effects.setDatesDisabled(t)}set isDisabled(t){this._effects.setDisabled(t)}set dateCustomClasses(t){this._effects.setDateCustomClasses(t)}setViewMode(t){}navigateTo(t){}dayHoverHandler(t){}weekHoverHandler(t){}monthHoverHandler(t){}yearHoverHandler(t){}daySelectHandler(t){}monthSelectHandler(t){}yearSelectHandler(t){}_stopPropagation(t){t.stopPropagation()}}let us=(()=>{class t{calculate(){return{type:t.CALCULATE}}format(){return{type:t.FORMAT}}flag(){return{type:t.FLAG}}select(e){return{type:t.SELECT,payload:e}}changeViewMode(e){return{type:t.CHANGE_VIEWMODE,payload:e}}navigateTo(e){return{type:t.NAVIGATE_TO,payload:e}}navigateStep(e){return{type:t.NAVIGATE_OFFSET,payload:e}}setOptions(e){return{type:t.SET_OPTIONS,payload:e}}selectRange(e){return{type:t.SELECT_RANGE,payload:e}}hoverDay(e){return{type:t.HOVER,payload:e.isHovered?e.cell.date:null}}minDate(e){return{type:t.SET_MIN_DATE,payload:e}}maxDate(e){return{type:t.SET_MAX_DATE,payload:e}}daysDisabled(e){return{type:t.SET_DAYSDISABLED,payload:e}}datesDisabled(e){return{type:t.SET_DATESDISABLED,payload:e}}isDisabled(e){return{type:t.SET_IS_DISABLED,payload:e}}setDateCustomClasses(e){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:e}}setLocale(e){return{type:t.SET_LOCALE,payload:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t.CALCULATE="[datepicker] calculate dates matrix",t.FORMAT="[datepicker] format datepicker values",t.FLAG="[datepicker] set flags",t.SELECT="[datepicker] select date",t.NAVIGATE_OFFSET="[datepicker] shift view date",t.NAVIGATE_TO="[datepicker] change view date",t.SET_OPTIONS="[datepicker] update render options",t.HOVER="[datepicker] hover date",t.CHANGE_VIEWMODE="[datepicker] switch view mode",t.SET_MIN_DATE="[datepicker] set min date",t.SET_MAX_DATE="[datepicker] set max date",t.SET_DAYSDISABLED="[datepicker] set days disabled",t.SET_DATESDISABLED="[datepicker] set dates disabled",t.SET_IS_DISABLED="[datepicker] set is disabled",t.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",t.SET_LOCALE="[datepicker] set datepicker locale",t.SELECT_RANGE="[daterangepicker] select dates range",t})(),hs=(()=>{class t{constructor(){this._defaultLocale="en",this._locale=new r.a(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(t){t!==this.currentLocale&&this._locale.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})(),ds=(()=>{class t{constructor(t,e){this._actions=t,this._localeService=e,this._subs=[]}init(t){return this._store=t,this}setValue(t){this._store.dispatch(this._actions.select(t))}setRangeValue(t){this._store.dispatch(this._actions.selectRange(t))}setMinDate(t){return this._store.dispatch(this._actions.minDate(t)),this}setMaxDate(t){return this._store.dispatch(this._actions.maxDate(t)),this}setDaysDisabled(t){return this._store.dispatch(this._actions.daysDisabled(t)),this}setDatesDisabled(t){return this._store.dispatch(this._actions.datesDisabled(t)),this}setDisabled(t){return this._store.dispatch(this._actions.isDisabled(t)),this}setDateCustomClasses(t){return this._store.dispatch(this._actions.setDateCustomClasses(t)),this}setOptions(t){const e=Object.assign({locale:this._localeService.currentLocale},t);return this._store.dispatch(this._actions.setOptions(e)),this}setBindings(t){return t.daysCalendar=this._store.select(t=>t.flaggedMonths).pipe(Object(gt.a)(t=>!!t)),t.monthsCalendar=this._store.select(t=>t.flaggedMonthsCalendar).pipe(Object(gt.a)(t=>!!t)),t.yearsCalendar=this._store.select(t=>t.yearsCalendarFlagged).pipe(Object(gt.a)(t=>!!t)),t.viewMode=this._store.select(t=>t.view.mode),t.options=this._store.select(t=>t.showWeekNumbers).pipe(Object(g.a)(t=>({showWeekNumbers:t}))),this}setEventHandlers(t){return t.setViewMode=t=>{this._store.dispatch(this._actions.changeViewMode(t))},t.navigateTo=t=>{this._store.dispatch(this._actions.navigateStep(t.step))},t.dayHoverHandler=t=>{const e=t.cell;e.isOtherMonth||e.isDisabled||(this._store.dispatch(this._actions.hoverDay(t)),e.isHovered=t.isHovered)},t.monthHoverHandler=t=>{t.cell.isHovered=t.isHovered},t.yearHoverHandler=t=>{t.cell.isHovered=t.isHovered},t.monthSelectHandler=t=>{t.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Bt(t.date),year:Yt(t.date)},viewMode:"day"}))},t.yearSelectHandler=t=>{t.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:Yt(t.date)},viewMode:"month"}))},this}registerDatepickerSideEffects(){return this._subs.push(this._store.select(t=>t.view).subscribe(t=>{this._store.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(t=>t.monthsModel).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.format()))),this._subs.push(this._store.select(t=>t.formattedMonths).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedDate).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedRange).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.monthsCalendar).subscribe(()=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.yearsCalendarModel).pipe(Object(gt.a)(t=>!!t)).subscribe(()=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.hoveredDate).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.dateCustomClasses).pipe(Object(gt.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(t=>this._store.dispatch(this._actions.setLocale(t)))),this}destroy(){for(const t of this._subs)t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v.Zb(us),v.Zb(hs))},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();const fs={date:new Date,mode:"day"},ps=Object.assign(new ls,{locale:"en",view:fs,selectedRange:[],monthViewOptions:{width:7,height:6}});function ms(t,e,n){const r=e&&Ln(je(t,"month"),e,"day"),s=n&&Hn(Re(t,"month"),n,"day");return r||s}function gs(t,e,n){const r=e&&Ln(je(t,"year"),e,"day"),s=n&&Hn(Re(t,"year"),n,"day");return r||s}function _s(t,e){let n=t.initialDate;const r=new Array(t.height);for(let s=0;s<t.height;s++){r[s]=new Array(t.width);for(let i=0;i<t.width;i++)r[s][i]=e(n),n=Oe(n,t.shift)}return r}function ys(t,e){const n=Vt((r=t).getFullYear(),r.getMonth(),1,r.getHours(),r.getMinutes(),r.getSeconds());var r;const s=function(t,e){return function(t,e){return t.getDay()===e}(t,e.firstDayOfWeek)?t:Oe(t,{day:-function(t,e){if(0===e)return t;const n=t-e%7;return n<0?n+7:n}($t(t),e.firstDayOfWeek)})}(n,e);return{daysMatrix:_s({width:e.width,height:e.height,initialDate:s,shift:{day:1}},t=>t),month:n}}function bs(t){const e=cn(t),n=e.weekdaysShort(),r=e.firstDayOfWeek();return[...n.slice(r),...n.slice(0,r)]}function vs(t,e){return!e||t>=e}const ws={month:1};function Ss(t,e){return{months:_s({width:3,height:4,initialDate:Re(t,"year"),shift:ws},t=>({date:t,label:An(t,e.monthLabel,e.locale)})),monthTitle:"",yearTitle:An(t,e.yearTitle,e.locale)}}const Cs=-1*(Math.floor(8)-1),ks={year:1};function Es(t,e){const n=_s({width:4,height:4,initialDate:Oe(t,{year:Cs}),shift:ks},t=>({date:t,label:An(t,e.yearLabel,e.locale)}));return{years:n,monthTitle:"",yearTitle:function(t,e){return`${An(t[0][0].date,e.yearTitle,e.locale)} - ${An(t[3][3].date,e.yearTitle,e.locale)}`}(n,e)}}function Ds(t=ps,e){switch(e.type){case us.CALCULATE:return function(t){const e=t.displayMonths;let n=t.view.date;if("day"===t.view.mode){t.monthViewOptions.firstDayOfWeek=cn(t.locale).firstDayOfWeek();const r=new Array(e);for(let s=0;s<e;s++)r[s]=ys(n,t.monthViewOptions),n=Oe(n,{month:1});return Object.assign({},t,{monthsModel:r})}if("month"===t.view.mode){const r=new Array(e);for(let s=0;s<e;s++)r[s]=Ss(n,Os(t)),n=Oe(n,{year:1});return Object.assign({},t,{monthsCalendar:r})}if("year"===t.view.mode){const r=new Array(e);for(let s=0;s<e;s++)r[s]=Es(n,Os(t)),n=Oe(n,{year:16});return Object.assign({},t,{yearsCalendarModel:r})}return t}(t);case us.FORMAT:return function(t,e){if("day"===t.view.mode){const e=t.monthsModel.map((e,n)=>function(t,e,n){return{month:t.month,monthTitle:An(t.month,e.monthTitle,e.locale),yearTitle:An(t.month,e.yearTitle,e.locale),weekNumbers:(r=t.daysMatrix,s=e.weekNumbers,i=e.locale,r.map(t=>t[0]?An(t[0],s,i):"")),weekdays:bs(e.locale),weeks:t.daysMatrix.map((t,r)=>({days:t.map((t,s)=>({date:t,label:An(t,e.dayLabel,e.locale),monthIndex:n,weekIndex:r,dayIndex:s}))}))};var r,s,i}(e,Os(t),n));return Object.assign({},t,{formattedMonths:e})}const n=t.displayMonths;let r=t.view.date;if("month"===t.view.mode){const e=new Array(n);for(let s=0;s<n;s++)e[s]=Ss(r,Os(t)),r=Oe(r,{year:1});return Object.assign({},t,{monthsCalendar:e})}if("year"===t.view.mode){const e=new Array(n);for(let s=0;s<n;s++)e[s]=Es(r,Os(t)),r=Oe(r,{year:16});return Object.assign({},t,{yearsCalendarModel:e})}return t}(t);case us.FLAG:return function(t,e){if("day"===t.view.mode){const e=t.formattedMonths.map((e,n)=>function(t,e){return t.weeks.forEach(n=>{n.days.forEach((r,s)=>{const i=!Wt(r.date,t.month),o=!i&&Qt(r.date,e.hoveredDate),a=!i&&e.selectedRange&&Qt(r.date,e.selectedRange[0]),l=!i&&e.selectedRange&&Qt(r.date,e.selectedRange[1]),c=!i&&Qt(r.date,e.selectedDate)||a||l,u=!i&&e.selectedRange&&function(t,e,n){return!(!t||!e[0])&&(e[1]?t>e[0]&&t<=e[1]:!!n&&t>e[0]&&t<=n)}(r.date,e.selectedRange,e.hoveredDate),h=e.isDisabled||Ln(r.date,e.minDate,"day")||Hn(r.date,e.maxDate,"day")||(d=r.date,!(void 0===(f=e.daysDisabled)||!f||!f.length)&&f.some(t=>t===d.getDay()))||function(t,e){return!(void 0===e||!e||!e.length)&&e.some(e=>function(t,e,n="milliseconds"){if(!t||!e)return!1;if("milliseconds"===n)return t.valueOf()===e.valueOf();const r=e.valueOf();return Re(t,n).valueOf()<=r&&r<=je(t,n).valueOf()}(t,e,"date"))}(r.date,e.datesDisabled);var d,f;const p=new Date,m=!i&&Qt(r.date,p),g=e.dateCustomClasses&&e.dateCustomClasses.map(t=>Qt(r.date,t.date)?t.classes:[]).reduce((t,e)=>t.concat(e),[]).join(" ")||"",_=Object.assign({},r,{isOtherMonth:i,isHovered:o,isSelected:c,isSelectionStart:a,isSelectionEnd:l,isInRange:u,isDisabled:h,isToday:m,customClasses:g});r.isOtherMonth===_.isOtherMonth&&r.isHovered===_.isHovered&&r.isSelected===_.isSelected&&r.isSelectionStart===_.isSelectionStart&&r.isSelectionEnd===_.isSelectionEnd&&r.isDisabled===_.isDisabled&&r.isInRange===_.isInRange&&r.customClasses===_.customClasses||(n.days[s]=_)})}),t.hideLeftArrow=e.isDisabled||e.monthIndex>0&&e.monthIndex!==e.displayMonths,t.hideRightArrow=e.isDisabled||e.monthIndex<e.displayMonths&&e.monthIndex+1!==e.displayMonths,t.disableLeftArrow=ms(Oe(t.month,{month:-1}),e.minDate,e.maxDate),t.disableRightArrow=ms(Oe(t.month,{month:1}),e.minDate,e.maxDate),t}(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,daysDisabled:t.daysDisabled,datesDisabled:t.datesDisabled,hoveredDate:t.hoveredDate,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:t.displayMonths,dateCustomClasses:t.dateCustomClasses,monthIndex:n}));return Object.assign({},t,{flaggedMonths:e})}if("month"===t.view.mode){const e=t.monthsCalendar.map((e,n)=>{return s={isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredMonth:t.hoveredMonth,displayMonths:t.displayMonths,monthIndex:n},(r=e).months.forEach((t,e)=>{t.forEach((t,n)=>{const i=Wt(t.date,s.hoveredMonth),o=s.isDisabled||ms(t.date,s.minDate,s.maxDate),a=Object.assign(t,{isHovered:i,isDisabled:o});t.isHovered===a.isHovered&&t.isDisabled===a.isDisabled||(r.months[e][n]=a)})}),r.hideLeftArrow=s.monthIndex>0&&s.monthIndex!==s.displayMonths,r.hideRightArrow=s.monthIndex<s.displayMonths&&s.monthIndex+1!==s.displayMonths,r.disableLeftArrow=gs(Oe(r.months[0][0].date,{year:-1}),s.minDate,s.maxDate),r.disableRightArrow=gs(Oe(r.months[0][0].date,{year:1}),s.minDate,s.maxDate),r;var r,s});return Object.assign({},t,{flaggedMonthsCalendar:e})}if("year"===t.view.mode){const e=t.yearsCalendarModel.map((e,n)=>function(t,e){t.years.forEach((n,r)=>{n.forEach((n,s)=>{const i=Gt(n.date,e.hoveredYear),o=e.isDisabled||gs(n.date,e.minDate,e.maxDate),a=Object.assign(n,{isHovered:i,isDisabled:o});n.isHovered===a.isHovered&&n.isDisabled===a.isDisabled||(t.years[r][s]=a)})}),t.hideLeftArrow=e.yearIndex>0&&e.yearIndex!==e.displayMonths,t.hideRightArrow=e.yearIndex<e.displayMonths&&e.yearIndex+1!==e.displayMonths,t.disableLeftArrow=gs(Oe(t.years[0][0].date,{year:-1}),e.minDate,e.maxDate);const n=t.years.length-1;return t.disableRightArrow=gs(Oe(t.years[n][t.years[n].length-1].date,{year:1}),e.minDate,e.maxDate),t}(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredYear:t.hoveredYear,displayMonths:t.displayMonths,yearIndex:n}));return Object.assign({},t,{yearsCalendarFlagged:e})}return t}(t);case us.NAVIGATE_OFFSET:{const n=Oe(Re(t.view.date,"month"),e.payload);return Object.assign({},t,{view:{mode:t.view.mode,date:n}})}case us.NAVIGATE_TO:{const n=e.payload,r=function(t,e){return Vt(xe(t.getFullYear(),e.year),xe(t.getMonth(),e.month),xe(t.getDate(),e.day),xe(t.getHours(),e.hour),xe(t.getMinutes(),e.minute),xe(t.getSeconds(),e.seconds),xe(t.getMilliseconds(),e.milliseconds))}(t.view.date,n.unit);let s,i;return vs(n.viewMode,t.minMode)?(i=n.viewMode,s={view:{date:r,mode:i}}):(i=t.view.mode,s={selectedDate:r,view:{date:r,mode:i}}),Object.assign({},t,s)}case us.CHANGE_VIEWMODE:return vs(e.payload,t.minMode)?Object.assign({},t,{view:{date:t.view.date,mode:e.payload}}):t;case us.HOVER:return Object.assign({},t,{hoveredDate:e.payload});case us.SELECT:{const n={selectedDate:e.payload,view:t.view},r=t.view.mode,s=xs(e.payload||t.view.date,t.minDate,t.maxDate);return n.view={mode:r,date:s},Object.assign({},t,n)}case us.SET_OPTIONS:{const n=e.payload,r=n.minMode?n.minMode:t.view.mode,s=xs(vt(n.value)&&n.value||Ct(n.value)&&vt(n.value[0])&&n.value[0]||t.view.date,n.minDate,n.maxDate);return n.view={mode:r,date:s},n.value&&(Ct(n.value)&&(n.selectedRange=n.value),n.value instanceof Date&&(n.selectedDate=n.value)),Object.assign({},t,n)}case us.SELECT_RANGE:{const n={selectedRange:e.payload,view:t.view},r=t.view.mode,s=xs(e.payload&&e.payload[0]||t.view.date,t.minDate,t.maxDate);return n.view={mode:r,date:s},Object.assign({},t,n)}case us.SET_MIN_DATE:return Object.assign({},t,{minDate:e.payload});case us.SET_MAX_DATE:return Object.assign({},t,{maxDate:e.payload});case us.SET_IS_DISABLED:return Object.assign({},t,{isDisabled:e.payload});case us.SET_DATE_CUSTOM_CLASSES:return Object.assign({},t,{dateCustomClasses:e.payload});default:return t}}function Os(t){return{locale:t.locale,monthTitle:t.monthTitle,yearTitle:t.yearTitle,dayLabel:t.dayLabel,monthLabel:t.monthLabel,yearLabel:t.yearLabel,weekNumbers:t.weekNumbers}}function xs(t,e,n){const r=Array.isArray(t)?t[0]:t;return e&&Hn(e,r,"day")?e:n&&Ln(n,r,"day")?n:r}let Ts=(()=>{class t extends b{constructor(){const t=new r.a({type:"[datepicker] dispatcher init"});super(t,Ds,new y(ps,t,Ds))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})(),Ms=(()=>{class t extends cs{constructor(t,e,n,r,s){super(),this._config=t,this._store=e,this._actions=n,this._positionService=s,this.valueChange=new v.n,this._subs=[],this._effects=r}set value(t){this._effects.setValue(t)}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(t=>t.selectedDate).subscribe(t=>this.valueChange.emit(t)))}daySelectHandler(t){(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this._store.dispatch(this._actions.select(t.date))}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this._effects.destroy()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ls),v.Mb(Ts),v.Mb(us),v.Mb(ds),v.Mb(ot))},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-datepicker-container"]],hostAttrs:["role","dialog","aria-label","calendar",2,"position","absolute","display","block"],hostBindings:function(t,e){1&t&&v.dc("click",(function(t){return e._stopPropagation(t)}))},features:[v.yb([Ts,ds]),v.wb],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],[3,"calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],[1,"btn","btn-success"],[1,"btn","btn-default"],[1,"bs-datepicker-custom-range"],[3,"ranges"]],template:function(t,e){1&t&&(v.Fc(0,ur,9,9,"div",0),v.ic(1,"async")),2&t&&v.nc("ngIf",v.jc(1,1,e.viewMode))},directives:function(){return[w.n,w.l,w.o,w.p,w.m,Zs,Ks,Xs,Ys]},pipes:function(){return[w.b]},encapsulation:2}),t})(),As=(()=>{class t{constructor(t,e,n,r,s){this._config=t,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new v.n,this._subs=[],Object.assign(this,this._config),this._datepicker=s.createLoader(e,r,n),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden}get isOpen(){return this._datepicker.isShown}set isOpen(t){t?this.show():this.hide()}set bsValue(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ls,useValue:this._config}).attach(Ms).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.subscribe(t=>{this.bsValue=t,this.hide()})))}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode})}ngOnDestroy(){this._datepicker.dispose()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ls),v.Mb(v.l),v.Mb(v.D),v.Mb(v.N),v.Mb(mt))},t.\u0275dir=v.Hb({type:t,selectors:[["","bsDatepicker",""]],inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",dateCustomClasses:"dateCustomClasses"},outputs:{bsValueChange:"bsValueChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bsDatepicker"],features:[v.xb]}),t})(),Rs=(()=>{class t extends ls{}return t.\u0275fac=function(e){return js(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();const js=v.Tb(Rs),Ps={provide:er.h,useExisting:Object(v.S)(()=>Ns),multi:!0},Is={provide:er.g,useExisting:Object(v.S)(()=>Ns),multi:!0};let Ns=(()=>{class t{constructor(t,e,n,r,s){this._picker=t,this._localeService=e,this._renderer=n,this._elRef=r,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe(t=>{this._setInputValue(t),this._value!==t&&(this._value=t,this._onChange(t),this._onTouched()),this.changeDetection.markForCheck()}),this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})}_setInputValue(t){const e=t?An(t,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",e)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._onTouched()}validate(t){const e=t.value;if(null==e||""===e)return null;if(bt(e)){if(!vt(e))return{bsDate:{invalid:e}};if(this._picker&&this._picker.minDate&&Ln(e,this._picker.minDate,"date"))return{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Hn(e,this._picker.maxDate,"date"))return{bsDate:{maxDate:this._picker.maxDate}}}}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const e=this._localeService.currentLocale;if(!cn(e))throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);this._value=Fn(t,this._picker._config.dateInputFormat,this._localeService.currentLocale)}else this._value=null;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(As,1),v.Mb(hs),v.Mb(v.D),v.Mb(v.l),v.Mb(v.h))},t.\u0275dir=v.Hb({type:t,selectors:[["input","bsDatepicker",""]],hostBindings:function(t,e){1&t&&v.dc("change",(function(t){return e.onChange(t)}))("keyup.esc",(function(){return e.hide()}))("blur",(function(){return e.onBlur()}))},features:[v.yb([Ps,Is])]}),t})(),Fs=(()=>{class t extends ls{constructor(){super(...arguments),this.displayMonths=2}}return t.\u0275fac=function(e){return Vs(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();const Vs=v.Tb(Fs);let Hs=(()=>{class t extends cs{constructor(t,e,n,r,s){super(),this._actions=e,this._config=n,this._store=r,this._positionService=s,this.valueChange=new v.n,this._rangeStack=[],this._subs=[],this._effects=t}set value(t){this._effects.setRangeValue(t)}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(t=>t.selectedRange).subscribe(t=>this.valueChange.emit(t)))}daySelectHandler(t){(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||(1===this._rangeStack.length&&(this._rangeStack=t.date>=this._rangeStack[0]?[this._rangeStack[0],t.date]:[t.date]),0===this._rangeStack.length&&(this._rangeStack=[t.date]),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[]))}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this._effects.destroy()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ds),v.Mb(us),v.Mb(ls),v.Mb(Ts),v.Mb(ot))},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-daterangepicker-container"]],hostAttrs:["role","dialog","aria-label","calendar",2,"position","absolute","display","block"],hostBindings:function(t,e){1&t&&v.dc("click",(function(t){return e._stopPropagation(t)}))},features:[v.yb([Ts,ds]),v.wb],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],[3,"calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],[1,"btn","btn-success"],[1,"btn","btn-default"],[1,"bs-datepicker-custom-range"],[3,"ranges"]],template:function(t,e){1&t&&(v.Fc(0,br,9,9,"div",0),v.ic(1,"async")),2&t&&v.nc("ngIf",v.jc(1,1,e.viewMode))},directives:function(){return[w.n,w.l,w.o,w.p,w.m,Zs,Ks,Xs,Ys]},pipes:function(){return[w.b]},encapsulation:2}),t})(),Ls=(()=>{class t{constructor(t,e,n,r,s){this._config=t,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new v.n,this._subs=[],this._datepicker=s.createLoader(e,r,n),Object.assign(this,t),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden}get isOpen(){return this._datepicker.isShown}set isOpen(t){t?this.show():this.hide()}set bsValue(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ls,useValue:this._config}).attach(Hs).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.pipe(Object(gt.a)(t=>t&&t[0]&&!!t[1])).subscribe(t=>{this.bsValue=t,this.hide()})))}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled})}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe()}toggle(){if(this.isOpen)return this.hide();this.show()}ngOnDestroy(){this._datepicker.dispose()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(Fs),v.Mb(v.l),v.Mb(v.D),v.Mb(v.N),v.Mb(mt))},t.\u0275dir=v.Hb({type:t,selectors:[["","bsDaterangepicker",""]],inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",datesDisabled:"datesDisabled"},outputs:{bsValueChange:"bsValueChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bsDaterangepicker"],features:[v.xb]}),t})();const Us={provide:er.h,useExisting:Object(v.S)(()=>$s),multi:!0},zs={provide:er.g,useExisting:Object(v.S)(()=>$s),multi:!0};let $s=(()=>{class t{constructor(t,e,n,r,s){this._picker=t,this._localeService=e,this._renderer=n,this._elRef=r,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe(t=>{this._setInputValue(t),this._value!==t&&(this._value=t,this._onChange(t),this._onTouched()),this.changeDetection.markForCheck()}),this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})}_setInputValue(t){let e="";if(t){const n=t[0]?An(t[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",r=t[1]?An(t[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";e=n&&r?n+this._picker._config.rangeSeparator+r:""}this._renderer.setProperty(this._elRef.nativeElement,"value",e)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._onTouched()}validate(t){const e=t.value;if(null==e||!Ct(e))return null;const n=vt(e[0]),r=vt(e[1]);return n?r?this._picker&&this._picker.minDate&&Ln(e[0],this._picker.minDate,"date")?{bsDate:{minDate:this._picker.minDate}}:this._picker&&this._picker.maxDate&&Hn(e[1],this._picker.maxDate,"date")?{bsDate:{maxDate:this._picker.maxDate}}:void 0:{bsDate:{invalid:e[1]}}:{bsDate:{invalid:e[0]}}}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const e=this._localeService.currentLocale;if(!cn(e))throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);let n=[];"string"==typeof t&&(n=t.split(this._picker._config.rangeSeparator)),Array.isArray(t)&&(n=t),this._value=n.map(t=>Fn(t,this._picker._config.dateInputFormat,this._localeService.currentLocale)).map(t=>isNaN(t.valueOf())?null:t)}else this._value=null;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(Ls,1),v.Mb(hs),v.Mb(v.D),v.Mb(v.l),v.Mb(v.h))},t.\u0275dir=v.Hb({type:t,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(t,e){1&t&&v.dc("change",(function(t){return e.onChange(t)}))("keyup.esc",(function(){return e.hide()}))("blur",(function(){return e.onBlur()}))},features:[v.yb([Us,zs])]}),t})(),qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-calendar-layout"]],ngContentSelectors:Cr,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(t,e){1&t&&(v.mc(Sr),v.Fc(0,vr,1,0,"bs-current-date",0),v.Rb(1,"div",1),v.lc(2),v.Qb(),v.Rb(3,"div",2),v.lc(4,1),v.Qb(),v.Fc(5,wr,1,0,"bs-timepicker",3)),2&t&&(v.nc("ngIf",!1),v.zb(5),v.nc("ngIf",!1))},directives:function(){return[w.n,Bs,Js]},encapsulation:2}),t})(),Bs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(t,e){1&t&&(v.Rb(0,"div",0),v.Rb(1,"span"),v.Hc(2),v.Qb(),v.Qb()),2&t&&(v.zb(2),v.Ic(e.title))},encapsulation:2}),t})(),Ys=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-custom-date-view"]],inputs:{isCustomRangeShown:"isCustomRangeShown",ranges:"ranges"},decls:3,vars:2,consts:[[1,"bs-datepicker-predefined-btns"],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(t,e){1&t&&(v.Rb(0,"div",0),v.Fc(1,kr,2,1,"button",1),v.Fc(2,Er,2,0,"button",2),v.Qb()),2&t&&(v.zb(1),v.nc("ngForOf",e.ranges),v.zb(1),v.nc("ngIf",e.isCustomRangeShown))},directives:[w.m,w.n],encapsulation:2,changeDetection:0}),t})(),Ws=(()=>{class t{constructor(t,e,n){this._config=t,this._elRef=e,this._renderer=n}ngOnInit(){this.day.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day.customClasses&&this.day.customClasses.split(" ").filter(t=>t).forEach(t=>{this._renderer.addClass(this._elRef.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ls),v.Mb(v.l),v.Mb(v.D))},t.\u0275cmp=v.Gb({type:t,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(t,e){2&t&&v.Eb("disabled",e.day.isDisabled)("is-highlighted",e.day.isHovered)("is-other-month",e.day.isOtherMonth)("is-active-other-month",e.day.isOtherMonthHovered)("in-range",e.day.isInRange)("select-start",e.day.isSelectionStart)("select-end",e.day.isSelectionEnd)("selected",e.day.isSelected)},inputs:{day:"day"},attrs:Dr,decls:1,vars:1,template:function(t,e){1&t&&v.Hc(0),2&t&&v.Ic(e.day.label)},encapsulation:2,changeDetection:0}),t})();const Gs=function(){var t={UP:0,DOWN:1};return t[t.UP]="UP",t[t.DOWN]="DOWN",t}();let Qs=(()=>{class t{constructor(){this.onNavigate=new v.n,this.onViewMode=new v.n}navTo(t){this.onNavigate.emit(t?Gs.DOWN:Gs.UP)}view(t){this.onViewMode.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:13,vars:8,consts:[[1,"previous",3,"disabled","click"],["class","current",3,"click",4,"ngIf"],[1,"current",3,"click"],[1,"next",3,"disabled","click"]],template:function(t,e){1&t&&(v.Rb(0,"button",0),v.dc("click",(function(){return e.navTo(!0)})),v.Rb(1,"span"),v.Hc(2,"\u2039"),v.Qb(),v.Qb(),v.Hc(3," \u200b "),v.Fc(4,Or,3,1,"button",1),v.Hc(5," \u200b "),v.Rb(6,"button",2),v.dc("click",(function(){return e.view("year")})),v.Rb(7,"span"),v.Hc(8),v.Qb(),v.Qb(),v.Hc(9," \u200b "),v.Rb(10,"button",3),v.dc("click",(function(){return e.navTo(!1)})),v.Rb(11,"span"),v.Hc(12,"\u203a"),v.Qb(),v.Qb()),2&t&&(v.Ec("visibility",e.calendar.hideLeftArrow?"hidden":"visible"),v.nc("disabled",e.calendar.disableLeftArrow),v.zb(4),v.nc("ngIf",e.calendar.monthTitle),v.zb(4),v.Ic(e.calendar.yearTitle),v.zb(2),v.Ec("visibility",e.calendar.hideRightArrow?"hidden":"visible"),v.nc("disabled",e.calendar.disableRightArrow))},directives:[w.n],encapsulation:2,changeDetection:0}),t})(),Zs=(()=>{class t{constructor(t){this._config=t,this.onNavigate=new v.n,this.onViewMode=new v.n,this.onSelect=new v.n,this.onHover=new v.n,this.onHoverWeek=new v.n}navigateTo(t){this.onNavigate.emit({step:{month:Gs.DOWN===t?-1:1}})}changeViewMode(t){this.onViewMode.emit(t)}selectDay(t){this.onSelect.emit(t)}selectWeek(t){if(!this._config.selectWeek)return;if(t.days&&t.days[0]&&!t.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(t.days[0]);if(0===t.days.length)return;const e=t.days.find(t=>(this._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled);this.onSelect.emit(e)}weekHoverHandler(t,e){this._config.selectWeek&&t.days.find(t=>(this._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled)&&(t.isHovered=e,this.isWeekHovered=e,this.onHoverWeek.emit(t))}hoverDay(t,e){this._config.selectFromOtherMonth&&t.isOtherMonth&&(t.isOtherMonthHovered=e),this.onHover.emit({cell:t,isHovered:e})}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ls))},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:4,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"]],template:function(t,e){1&t&&(v.Rb(0,"bs-calendar-layout"),v.Rb(1,"bs-datepicker-navigation-view",0),v.dc("onNavigate",(function(t){return e.navigateTo(t)}))("onViewMode",(function(t){return e.changeViewMode(t)})),v.Qb(),v.Rb(2,"table",1),v.Rb(3,"thead"),v.Rb(4,"tr"),v.Fc(5,xr,1,0,"th",2),v.Fc(6,Tr,2,1,"th",3),v.Qb(),v.Qb(),v.Rb(7,"tbody"),v.Fc(8,Rr,3,2,"tr",4),v.Qb(),v.Qb(),v.Qb()),2&t&&(v.zb(1),v.nc("calendar",e.calendar),v.zb(4),v.nc("ngIf",e.options.showWeekNumbers),v.zb(1),v.nc("ngForOf",e.calendar.weekdays),v.zb(2),v.nc("ngForOf",e.calendar.weeks))},directives:[qs,Qs,w.n,w.m,Ws],encapsulation:2}),t})(),Ks=(()=>{class t{constructor(){this.onNavigate=new v.n,this.onViewMode=new v.n,this.onSelect=new v.n,this.onHover=new v.n}navigateTo(t){this.onNavigate.emit({step:{year:Gs.DOWN===t?-1:1}})}viewMonth(t){this.onSelect.emit(t)}hoverMonth(t,e){this.onHover.emit({cell:t,isHovered:e})}changeViewMode(t){this.onViewMode.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(t,e){1&t&&(v.Rb(0,"bs-calendar-layout"),v.Rb(1,"bs-datepicker-navigation-view",0),v.dc("onNavigate",(function(t){return e.navigateTo(t)}))("onViewMode",(function(t){return e.changeViewMode(t)})),v.Qb(),v.Rb(2,"table",1),v.Rb(3,"tbody"),v.Fc(4,Pr,2,1,"tr",2),v.Qb(),v.Qb(),v.Qb()),2&t&&(v.zb(1),v.nc("calendar",e.calendar),v.zb(3),v.nc("ngForOf",e.calendar.months))},directives:[qs,Qs,w.m],encapsulation:2}),t})(),Js=(()=>{class t{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],[1,"bs-decrease"],["type","text","placeholder","00",3,"value"],[1,"bs-increase"],[1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(t,e){1&t&&(v.Rb(0,"div",0),v.Rb(1,"div",1),v.Rb(2,"button",2),v.Hc(3,"-"),v.Qb(),v.Nb(4,"input",3),v.Rb(5,"button",4),v.Hc(6,"+"),v.Qb(),v.Qb(),v.Rb(7,"div",1),v.Rb(8,"button",2),v.Hc(9,"-"),v.Qb(),v.Nb(10,"input",3),v.Rb(11,"button",4),v.Hc(12,"+"),v.Qb(),v.Qb(),v.Rb(13,"button",5),v.Hc(14),v.Nb(15,"img",6),v.Qb(),v.Qb()),2&t&&(v.zb(4),v.nc("value",e.hours),v.zb(6),v.nc("value",e.minutes),v.zb(4),v.Jc("",e.ampm," "))},encapsulation:2}),t})(),Xs=(()=>{class t{constructor(){this.onNavigate=new v.n,this.onViewMode=new v.n,this.onSelect=new v.n,this.onHover=new v.n}navigateTo(t){this.onNavigate.emit({step:{year:16*(Gs.DOWN===t?-1:1)}})}viewYear(t){this.onSelect.emit(t)}hoverYear(t,e){this.onHover.emit({cell:t,isHovered:e})}changeViewMode(t){this.onViewMode.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(t,e){1&t&&(v.Rb(0,"bs-calendar-layout"),v.Rb(1,"bs-datepicker-navigation-view",0),v.dc("onNavigate",(function(t){return e.navigateTo(t)}))("onViewMode",(function(t){return e.changeViewMode(t)})),v.Qb(),v.Rb(2,"table",1),v.Rb(3,"tbody"),v.Fc(4,Nr,2,1,"tr",2),v.Qb(),v.Qb(),v.Qb()),2&t&&(v.zb(1),v.nc("calendar",e.calendar),v.zb(3),v.nc("ngForOf",e.calendar.years))},directives:[qs,Qs,w.m],encapsulation:2}),t})(),ti=(()=>{class t{static forRoot(){return{ngModule:t,providers:[mt,ot,Ts,us,ls,Fs,Rs,ds,hs]}}}return t.\u0275mod=v.Kb({type:t}),t.\u0275inj=v.Jb({factory:function(e){return new(e||t)},imports:[[w.c]]}),t})();class ei{format(t,e,n){return An(t,e,n)}}let ni=(()=>{class t{constructor(){this.selectionDone=new v.n(void 0),this.update=new v.n(!1),this.activeDateChange=new v.n(void 0),this.stepDay={},this.stepMonth={},this.stepYear={},this.modes=["day","month","year"],this.dateFormatter=new ei}get activeDate(){return this._activeDate}set activeDate(t){this._activeDate=t}ngOnInit(){this.uniqueId="datepicker--"+Math.floor(1e4*Math.random()),this.initDate?(this.activeDate=this.initDate,this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate)):void 0===this.activeDate&&(this.activeDate=new Date)}ngOnChanges(t){this.refreshView(),this.checkIfActiveDateGotUpdated(t.activeDate)}checkIfActiveDateGotUpdated(t){if(t&&!t.firstChange){const e=t.previousValue;e&&e instanceof Date&&e.getTime()!==t.currentValue.getTime()&&this.activeDateChange.emit(this.activeDate)}}setCompareHandler(t,e){"day"===e&&(this.compareHandlerDay=t),"month"===e&&(this.compareHandlerMonth=t),"year"===e&&(this.compareHandlerYear=t)}compare(t,e){if(void 0!==t&&void 0!==e)return"day"===this.datepickerMode&&this.compareHandlerDay?this.compareHandlerDay(t,e):"month"===this.datepickerMode&&this.compareHandlerMonth?this.compareHandlerMonth(t,e):"year"===this.datepickerMode&&this.compareHandlerYear?this.compareHandlerYear(t,e):void 0}setRefreshViewHandler(t,e){"day"===e&&(this.refreshViewHandlerDay=t),"month"===e&&(this.refreshViewHandlerMonth=t),"year"===e&&(this.refreshViewHandlerYear=t)}refreshView(){"day"===this.datepickerMode&&this.refreshViewHandlerDay&&this.refreshViewHandlerDay(),"month"===this.datepickerMode&&this.refreshViewHandlerMonth&&this.refreshViewHandlerMonth(),"year"===this.datepickerMode&&this.refreshViewHandlerYear&&this.refreshViewHandlerYear()}dateFilter(t,e){return this.dateFormatter.format(t,e,this.locale)}isActive(t){return 0===this.compare(t.date,this.activeDate)&&(this.activeDateId=t.uid,!0)}createDateObject(t,e){const n={};return n.date=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n.date=this.fixTimeZone(n.date),n.label=this.dateFilter(t,e),n.selected=0===this.compare(t,this.selectedDate),n.disabled=this.isDisabled(t),n.current=0===this.compare(t,new Date),n.customClass=this.getCustomClassForDate(n.date),n}split(t,e){const n=[];for(;t.length>0;)n.push(t.splice(0,e));return n}fixTimeZone(t){const e=t.getHours();return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23===e?e+2:0)}select(t,e=!0){this.datepickerMode===this.minMode?(this.activeDate||(this.activeDate=new Date(0,0,0,0,0,0,0)),this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&this.selectionDone.emit(this.activeDate)):(this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)-1])),this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate),this.refreshView()}move(t){let e;if("day"===this.datepickerMode&&(e=this.stepDay),"month"===this.datepickerMode&&(e=this.stepMonth),"year"===this.datepickerMode&&(e=this.stepYear),e){const n=this.activeDate.getFullYear()+t*(e.years||0),r=this.activeDate.getMonth()+t*(e.months||0);this.activeDate=new Date(n,r,1),this.refreshView(),this.activeDateChange.emit(this.activeDate)}}toggleMode(t){const e=t||1;this.datepickerMode===this.maxMode&&1===e||this.datepickerMode===this.minMode&&-1===e||(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)+e],this.refreshView())}getCustomClassForDate(t){if(!this.customClass)return"";const e=this.customClass.find(e=>e.date.valueOf()===t.valueOf()&&e.mode===this.datepickerMode,this);return void 0===e?"":e.clazz}compareDateDisabled(t,e){if(void 0!==t&&void 0!==e)return"day"===t.mode&&this.compareHandlerDay?this.compareHandlerDay(t.date,e):"month"===t.mode&&this.compareHandlerMonth?this.compareHandlerMonth(t.date,e):"year"===t.mode&&this.compareHandlerYear?this.compareHandlerYear(t.date,e):void 0}isDisabled(t){let e=!1;return this.dateDisabled&&this.dateDisabled.forEach(n=>{0===this.compareDateDisabled(n,t)&&(e=!0)}),this.dayDisabled&&(e=e||this.dayDisabled.indexOf(t.getDay())>-1),e||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=v.Gb({type:t,selectors:[["datepicker-inner"]],inputs:{activeDate:"activeDate",datepickerMode:"datepickerMode",locale:"locale",startingDay:"startingDay",yearRange:"yearRange",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",maxMode:"maxMode",showWeeks:"showWeeks",formatDay:"formatDay",formatMonth:"formatMonth",formatYear:"formatYear",formatDayHeader:"formatDayHeader",formatDayTitle:"formatDayTitle",formatMonthTitle:"formatMonthTitle",onlyCurrentMonth:"onlyCurrentMonth",shortcutPropagation:"shortcutPropagation",customClass:"customClass",monthColLimit:"monthColLimit",yearColLimit:"yearColLimit",dateDisabled:"dateDisabled",dayDisabled:"dayDisabled",initDate:"initDate"},outputs:{selectionDone:"selectionDone",update:"update",activeDateChange:"activeDateChange"},features:[v.xb],ngContentSelectors:Vr,decls:1,vars:1,consts:[["class","well well-sm bg-faded p-a card","role","application",4,"ngIf"],["role","application",1,"well","well-sm","bg-faded","p-a","card"]],template:function(t,e){1&t&&(v.mc(),v.Fc(0,Fr,2,0,"div",0)),2&t&&v.nc("ngIf",e.datepickerMode)},directives:[w.n],encapsulation:2}),t})(),ri=(()=>{class t{constructor(){this.locale="en",this.datepickerMode="day",this.startingDay=0,this.yearRange=20,this.minMode="day",this.maxMode="year",this.showWeeks=!0,this.formatDay="DD",this.formatMonth="MMMM",this.formatYear="YYYY",this.formatDayHeader="dd",this.formatDayTitle="MMMM YYYY",this.formatMonthTitle="YYYY",this.onlyCurrentMonth=!1,this.monthColLimit=3,this.yearColLimit=5,this.shortcutPropagation=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v.Ib({token:t,factory:t.\u0275fac}),t})();const si={provide:er.h,useExisting:Object(v.S)(()=>ii),multi:!0};let ii=(()=>{class t{constructor(t){this.datepickerMode="day",this.showWeeks=!0,this.selectionDone=new v.n(void 0),this.activeDateChange=new v.n(void 0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this._now=new Date,this.config=t,this.configureOptions()}get activeDate(){return this._activeDate||this._now}set activeDate(t){this._activeDate=t}configureOptions(){Object.assign(this,this.config)}onUpdate(t){this.activeDate=t,this.onChange(t)}onSelectionDone(t){this.selectionDone.emit(t)}onActiveDateChange(t){this.activeDateChange.emit(t)}writeValue(t){if(0!==this._datePicker.compare(t,this._activeDate))return t&&t instanceof Date?(this.activeDate=t,void this._datePicker.select(t,!1)):void(this.activeDate=t?new Date(t):void 0)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ri))},t.\u0275cmp=v.Gb({type:t,selectors:[["datepicker"]],viewQuery:function(t,e){var n;1&t&&v.Lc(ni,!0),2&t&&v.wc(n=v.ec())&&(e._datePicker=n.first)},inputs:{datepickerMode:"datepickerMode",showWeeks:"showWeeks",activeDate:"activeDate",initDate:"initDate",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",maxMode:"maxMode",formatDay:"formatDay",formatMonth:"formatMonth",formatYear:"formatYear",formatDayHeader:"formatDayHeader",formatDayTitle:"formatDayTitle",formatMonthTitle:"formatMonthTitle",startingDay:"startingDay",yearRange:"yearRange",onlyCurrentMonth:"onlyCurrentMonth",shortcutPropagation:"shortcutPropagation",monthColLimit:"monthColLimit",yearColLimit:"yearColLimit",customClass:"customClass",dateDisabled:"dateDisabled",dayDisabled:"dayDisabled"},outputs:{selectionDone:"selectionDone",activeDateChange:"activeDateChange"},features:[v.yb([si])],decls:4,vars:24,consts:[[3,"activeDate","locale","datepickerMode","initDate","minDate","maxDate","minMode","maxMode","showWeeks","formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","startingDay","yearRange","customClass","dateDisabled","dayDisabled","onlyCurrentMonth","shortcutPropagation","monthColLimit","yearColLimit","update","selectionDone","activeDateChange"],["tabindex","0"]],template:function(t,e){1&t&&(v.Rb(0,"datepicker-inner",0),v.dc("update",(function(t){return e.onUpdate(t)}))("selectionDone",(function(t){return e.onSelectionDone(t)}))("activeDateChange",(function(t){return e.onActiveDateChange(t)})),v.Nb(1,"daypicker",1),v.Nb(2,"monthpicker",1),v.Nb(3,"yearpicker",1),v.Qb()),2&t&&v.nc("activeDate",e.activeDate)("locale",e.config.locale)("datepickerMode",e.datepickerMode)("initDate",e.initDate)("minDate",e.minDate)("maxDate",e.maxDate)("minMode",e.minMode)("maxMode",e.maxMode)("showWeeks",e.showWeeks)("formatDay",e.formatDay)("formatMonth",e.formatMonth)("formatYear",e.formatYear)("formatDayHeader",e.formatDayHeader)("formatDayTitle",e.formatDayTitle)("formatMonthTitle",e.formatMonthTitle)("startingDay",e.startingDay)("yearRange",e.yearRange)("customClass",e.customClass)("dateDisabled",e.dateDisabled)("dayDisabled",e.dayDisabled)("onlyCurrentMonth",e.onlyCurrentMonth)("shortcutPropagation",e.shortcutPropagation)("monthColLimit",e.monthColLimit)("yearColLimit",e.yearColLimit)},directives:function(){return[ni,oi,ai,li]},encapsulation:2}),t})(),oi=(()=>{class t{constructor(t){this.labels=[],this.rows=[],this.weekNumbers=[],this.datePicker=t}get isBs4(){return!dt()}ngOnInit(){const t=this;this.datePicker.stepDay={months:1},this.datePicker.setRefreshViewHandler((function(){const e=this.activeDate.getFullYear(),n=this.activeDate.getMonth(),r=new Date(e,n,1),s=this.startingDay-r.getDay(),i=s>0?7-s:-s,o=new Date(r.getTime());i>0&&o.setDate(1-i);const a=t.getDates(o,42),l=[];for(let t=0;t<42;t++){const e=this.createDateObject(a[t],this.formatDay);e.secondary=a[t].getMonth()!==n,e.uid=this.uniqueId+"-"+t,l[t]=e}t.labels=[];for(let c=0;c<7;c++)t.labels[c]={},t.labels[c].abbr=this.dateFilter(l[c].date,this.formatDayHeader),t.labels[c].full=this.dateFilter(l[c].date,"EEEE");if(t.title=this.dateFilter(this.activeDate,this.formatDayTitle),t.rows=this.split(l,7),this.showWeeks){t.weekNumbers=[];const e=(11-this.startingDay)%7,n=t.rows.length;for(let r=0;r<n;r++)t.weekNumbers.push(t.getISO8601WeekNumber(t.rows[r][e].date))}}),"day"),this.datePicker.setCompareHandler((function(t,e){const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.getTime()-r.getTime()}),"day"),this.datePicker.refreshView()}getDates(t,e){const n=new Array(e);let r,s=new Date(t.getTime()),i=0;for(;i<e;)r=new Date(s.getTime()),r=this.datePicker.fixTimeZone(r),n[i++]=r,s=new Date(r.getFullYear(),r.getMonth(),r.getDate()+1);return n}getISO8601WeekNumber(t){const e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));const n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e.getTime())/864e5)/7)+1}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ni))},t.\u0275cmp=v.Gb({type:t,selectors:[["daypicker"]],decls:1,vars:1,consts:[["role","grid","aria-activedescendant","activeDateId",4,"ngIf"],["role","grid","aria-activedescendant","activeDateId"],["type","button","class","btn btn-default btn-secondary btn-sm pull-left float-left","tabindex","-1",3,"click",4,"ngIf"],["type","button","tabindex","-1",1,"btn","btn-default","btn-secondary","btn-sm",2,"width","100%",3,"id","disabled","ngClass","click"],["type","button","class","btn btn-default btn-secondary btn-sm pull-right float-right","tabindex","-1",3,"click",4,"ngIf"],[4,"ngIf"],["class","text-center",4,"ngFor","ngForOf"],["ngFor","",3,"ngForOf"],["type","button","tabindex","-1",1,"btn","btn-default","btn-secondary","btn-sm","pull-left","float-left",3,"click"],["type","button","tabindex","-1",1,"btn","btn-default","btn-secondary","btn-sm","pull-right","float-right",3,"click"],[1,"text-center"],["aria-label","labelz.full"],["class","h6","class","text-center",4,"ngIf"],["class","text-center","role","gridcell",3,"id",4,"ngFor","ngForOf"],["role","gridcell",1,"text-center",3,"id"],["type","button","style","min-width:100%;","tabindex","-1",3,"class","ngClass","disabled","click",4,"ngIf"],["type","button","tabindex","-1",2,"min-width","100%",3,"ngClass","disabled","click"],[3,"ngClass"]],template:function(t,e){1&t&&v.Fc(0,Xr,18,15,"table",0),2&t&&v.nc("ngIf","day"===e.datePicker.datepickerMode)},directives:[w.n,w.l,w.m],styles:["[_nghost-%COMP%]   .btn-secondary[_ngcontent-%COMP%] {\n      color: #292b2c;\n      background-color: #fff;\n      border-color: #ccc;\n    }\n    [_nghost-%COMP%]   .btn-info[_ngcontent-%COMP%]   .text-muted[_ngcontent-%COMP%] {\n      color: #292b2c !important;\n    }"]}),t})(),ai=(()=>{class t{constructor(t){this.rows=[],this.datePicker=t}get isBs4(){return!dt()}ngOnInit(){const t=this;this.datePicker.stepMonth={years:1},this.datePicker.setRefreshViewHandler((function(){const e=new Array(12),n=this.activeDate.getFullYear();let r;for(let t=0;t<12;t++)r=new Date(n,t,1),r=this.fixTimeZone(r),e[t]=this.createDateObject(r,this.formatMonth),e[t].uid=this.uniqueId+"-"+t;t.title=this.dateFilter(this.activeDate,this.formatMonthTitle),t.rows=this.split(e,t.datePicker.monthColLimit)}),"month"),this.datePicker.setCompareHandler((function(t,e){const n=new Date(t.getFullYear(),t.getMonth()),r=new Date(e.getFullYear(),e.getMonth());return n.getTime()-r.getTime()}),"month"),this.datePicker.refreshView()}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ni))},t.\u0275cmp=v.Gb({type:t,selectors:[["monthpicker"]],decls:1,vars:1,consts:[["role","grid",4,"ngIf"],["role","grid"],["type","button","tabindex","-1",1,"btn","btn-default","btn-sm","pull-left","float-left",3,"click"],["type","button","tabindex","-1",1,"btn","btn-default","btn-sm",2,"width","100%",3,"id","disabled","ngClass","click"],["type","button","tabindex","-1",1,"btn","btn-default","btn-sm","pull-right","float-right",3,"click"],[4,"ngFor","ngForOf"],["class","text-center","role","gridcell",3,"ngClass",4,"ngFor","ngForOf"],["role","gridcell",1,"text-center",3,"ngClass"],["type","button","tabindex","-1",1,"btn","btn-default",2,"min-width","100%",3,"ngClass","disabled","click"],[3,"ngClass"]],template:function(t,e){1&t&&v.Fc(0,ss,15,8,"table",0),2&t&&v.nc("ngIf","month"===e.datePicker.datepickerMode)},directives:[w.n,w.l,w.m],styles:["[_nghost-%COMP%]   .btn-info[_ngcontent-%COMP%]   .text-success[_ngcontent-%COMP%] {\n      color: #fff !important;\n    }"]}),t})(),li=(()=>{class t{constructor(t){this.rows=[],this.datePicker=t}get isBs4(){return!dt()}ngOnInit(){const t=this;this.datePicker.stepYear={years:this.datePicker.yearRange},this.datePicker.setRefreshViewHandler((function(){const e=new Array(this.yearRange);let n;const r=t.getStartingYear(this.activeDate.getFullYear());for(let t=0;t<this.yearRange;t++)n=new Date(r+t,0,1),n=this.fixTimeZone(n),e[t]=this.createDateObject(n,this.formatYear),e[t].uid=this.uniqueId+"-"+t;t.title=[e[0].label,e[this.yearRange-1].label].join(" - "),t.rows=this.split(e,t.datePicker.yearColLimit)}),"year"),this.datePicker.setCompareHandler((function(t,e){return t.getFullYear()-e.getFullYear()}),"year"),this.datePicker.refreshView()}getStartingYear(t){return(t-1)/this.datePicker.yearRange*this.datePicker.yearRange+1}}return t.\u0275fac=function(e){return new(e||t)(v.Mb(ni))},t.\u0275cmp=v.Gb({type:t,selectors:[["yearpicker"]],decls:1,vars:1,consts:[["role","grid",4,"ngIf"],["role","grid"],["type","button","tabindex","-1",1,"btn","btn-default","btn-sm","pull-left","float-left",3,"click"],["role","heading","type","button","tabindex","-1",1,"btn","btn-default","btn-sm",2,"width","100%",3,"id","disabled","ngClass","click"],["type","button","tabindex","-1",1,"btn","btn-default","btn-sm","pull-right","float-right",3,"click"],[4,"ngFor","ngForOf"],["class","text-center","role","gridcell",4,"ngFor","ngForOf"],["role","gridcell",1,"text-center"],["type","button","tabindex","-1",1,"btn","btn-default",2,"min-width","100%",3,"ngClass","disabled","click"],[3,"ngClass"]],template:function(t,e){1&t&&v.Fc(0,as,15,8,"table",0),2&t&&v.nc("ngIf","year"===e.datePicker.datepickerMode)},directives:[w.n,w.l,w.m],styles:["[_nghost-%COMP%]   .btn-info[_ngcontent-%COMP%]   .text-success[_ngcontent-%COMP%] {\n      color: #fff !important;\n    }"]}),t})()},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("z+Ro"),s=n("DH7j"),i=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function c(...t){let e=null,n=null;return Object(r.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends i.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(o.a)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===l?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC"),s=n("quSY");function i(t,e){return new r.a(n=>{const r=new s.a;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var r=n("SpAZ");function s(...t){return i(t)}function i(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return Dt})),n.d(e,"c",(function(){return Mt})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return Ot})),n.d(e,"f",(function(){return xt})),n.d(e,"g",(function(){return x})),n.d(e,"h",(function(){return S})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return C})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return ut})),n.d(e,"m",(function(){return dt})),n.d(e,"n",(function(){return pt})),n.d(e,"o",(function(){return yt})),n.d(e,"p",(function(){return bt})),n.d(e,"q",(function(){return vt})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return c})),n.d(e,"t",(function(){return Tt})),n.d(e,"u",(function(){return T})),n.d(e,"v",(function(){return jt})),n.d(e,"w",(function(){return Q})),n.d(e,"x",(function(){return j})),n.d(e,"y",(function(){return R})),n.d(e,"z",(function(){return P})),n.d(e,"A",(function(){return Rt})),n.d(e,"B",(function(){return a})),n.d(e,"C",(function(){return At})),n.d(e,"D",(function(){return i})),n.d(e,"E",(function(){return ct})),n.d(e,"F",(function(){return o}));var r=n("fXoL");let s=null;function i(){return s}function o(t){s||(s=t)}class a{}const l=new r.q("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.Zb)(d)}const h=new r.q("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(l))},t.\u0275prov=Object(r.Ib)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r.Zb)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=Object(r.Zb)(l).location;return new w(Object(r.Zb)(c),e&&e.origin||"")}const v=new r.q("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+_(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+_(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(c),r.Zb(v,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+_(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+_(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(c),r.Zb(v,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(E(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,E(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(y),r.Zb(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Ib)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C(Object(r.Zb)(y),Object(r.Zb)(c))}function E(t){return t.replace(/\/index.html$/,"")}const D=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),O=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),x=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),T=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),M=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),A=function(){var t={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 t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function R(t,e,n){const s=Object(r.ib)(t),i=U([s[r.Y.DayPeriodsFormat],s[r.Y.DayPeriodsStandalone]],e);return U(i,n)}function j(t,e,n){const s=Object(r.ib)(t),i=U([s[r.Y.DaysFormat],s[r.Y.DaysStandalone]],e);return U(i,n)}function P(t,e,n){const s=Object(r.ib)(t),i=U([s[r.Y.MonthsFormat],s[r.Y.MonthsStandalone]],e);return U(i,n)}function I(t,e){return U(Object(r.ib)(t)[r.Y.DateFormat],e)}function N(t,e){return U(Object(r.ib)(t)[r.Y.TimeFormat],e)}function F(t,e){return U(Object(r.ib)(t)[r.Y.DateTimeFormat],e)}function V(t,e){const n=Object(r.ib)(t),s=n[r.Y.NumberSymbols][e];if(void 0===s){if(e===A.CurrencyDecimal)return n[r.Y.NumberSymbols][A.Decimal];if(e===A.CurrencyGroup)return n[r.Y.NumberSymbols][A.Group]}return s}const H=r.lb;function L(t){if(!t[r.Y.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.Y.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function U(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function z(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const $=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},B=/((?:[^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]*)/,Y=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),W=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),G=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function Q(t,e,n,s){let i=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match($))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const s=function(t){return Object(r.ib)(t)[r.Y.LocaleId]}(e);if(q[s]=q[s]||{},q[s][n])return q[s][n];let i="";switch(n){case"shortDate":i=I(e,M.Short);break;case"mediumDate":i=I(e,M.Medium);break;case"longDate":i=I(e,M.Long);break;case"fullDate":i=I(e,M.Full);break;case"shortTime":i=N(e,M.Short);break;case"mediumTime":i=N(e,M.Medium);break;case"longTime":i=N(e,M.Long);break;case"fullTime":i=N(e,M.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");i=Z(F(e,M.Short),[n,r]);break;case"medium":const s=t(e,"mediumTime"),o=t(e,"mediumDate");i=Z(F(e,M.Medium),[s,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");i=Z(F(e,M.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),u=t(e,"fullDate");i=Z(F(e,M.Full),[c,u])}return i&&(q[s][n]=i),i}(n,e)||e;let o,a=[];for(;e;){if(o=B.exec(e),!o){a.push(e);break}{a=a.concat(o.slice(1));const t=a.pop();if(!t)break;e=t}}let l=i.getTimezoneOffset();s&&(l=rt(s,l),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(rt(e,r)-r))}(i,s));let c="";return a.forEach(t=>{const e=function(t){if(nt[t])return nt[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(G.Eras,T.Abbreviated);break;case"GGGG":e=X(G.Eras,T.Wide);break;case"GGGGG":e=X(G.Eras,T.Narrow);break;case"y":e=J(W.FullYear,1,0,!1,!0);break;case"yy":e=J(W.FullYear,2,0,!0,!0);break;case"yyy":e=J(W.FullYear,3,0,!1,!0);break;case"yyyy":e=J(W.FullYear,4,0,!1,!0);break;case"M":case"L":e=J(W.Month,1,1);break;case"MM":case"LL":e=J(W.Month,2,1);break;case"MMM":e=X(G.Months,T.Abbreviated);break;case"MMMM":e=X(G.Months,T.Wide);break;case"MMMMM":e=X(G.Months,T.Narrow);break;case"LLL":e=X(G.Months,T.Abbreviated,x.Standalone);break;case"LLLL":e=X(G.Months,T.Wide,x.Standalone);break;case"LLLLL":e=X(G.Months,T.Narrow,x.Standalone);break;case"w":e=et(1);break;case"ww":e=et(2);break;case"W":e=et(1,!0);break;case"d":e=J(W.Date,1);break;case"dd":e=J(W.Date,2);break;case"E":case"EE":case"EEE":e=X(G.Days,T.Abbreviated);break;case"EEEE":e=X(G.Days,T.Wide);break;case"EEEEE":e=X(G.Days,T.Narrow);break;case"EEEEEE":e=X(G.Days,T.Short);break;case"a":case"aa":case"aaa":e=X(G.DayPeriods,T.Abbreviated);break;case"aaaa":e=X(G.DayPeriods,T.Wide);break;case"aaaaa":e=X(G.DayPeriods,T.Narrow);break;case"b":case"bb":case"bbb":e=X(G.DayPeriods,T.Abbreviated,x.Standalone,!0);break;case"bbbb":e=X(G.DayPeriods,T.Wide,x.Standalone,!0);break;case"bbbbb":e=X(G.DayPeriods,T.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(G.DayPeriods,T.Abbreviated,x.Format,!0);break;case"BBBB":e=X(G.DayPeriods,T.Wide,x.Format,!0);break;case"BBBBB":e=X(G.DayPeriods,T.Narrow,x.Format,!0);break;case"h":e=J(W.Hours,1,-12);break;case"hh":e=J(W.Hours,2,-12);break;case"H":e=J(W.Hours,1);break;case"HH":e=J(W.Hours,2);break;case"m":e=J(W.Minutes,1);break;case"mm":e=J(W.Minutes,2);break;case"s":e=J(W.Seconds,1);break;case"ss":e=J(W.Seconds,2);break;case"S":e=J(W.FractionalSeconds,1);break;case"SS":e=J(W.FractionalSeconds,2);break;case"SSS":e=J(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=tt(Y.Short);break;case"ZZZZZ":e=tt(Y.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=tt(Y.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=tt(Y.Long);break;default:return null}return nt[t]=e,e}(t);c+=e?e(i,n,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Z(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function K(t,e,n="-",r,s){let i="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,i=n));let o=String(t);for(;o.length<e;)o="0"+o;return r&&(o=o.substr(o.length-e)),i+o}function J(t,e,n=0,r=!1,s=!1){return function(i,o){let a=function(t,e){switch(t){case W.FullYear:return e.getFullYear();case W.Month:return e.getMonth();case W.Date:return e.getDate();case W.Hours:return e.getHours();case W.Minutes:return e.getMinutes();case W.Seconds:return e.getSeconds();case W.FractionalSeconds:return e.getMilliseconds();case W.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,i);if((n>0||a>-n)&&(a+=n),t===W.Hours)0===a&&-12===n&&(a=12);else if(t===W.FractionalSeconds)return l=e,K(a,3).substr(0,l);var l;const c=V(o,A.MinusSign);return K(a,e,c,r,s)}}function X(t,e,n=x.Format,s=!1){return function(i,o){return function(t,e,n,s,i,o){switch(n){case G.Months:return P(e,i,s)[t.getMonth()];case G.Days:return j(e,i,s)[t.getDay()];case G.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=Object(r.ib)(t);return L(e),(e[r.Y.ExtraData][2]||[]).map(t=>"string"==typeof t?z(t):[z(t[0]),z(t[1])])}(e),n=function(t,e,n){const s=Object(r.ib)(t);L(s);const i=U([s[r.Y.ExtraData][0],s[r.Y.ExtraData][1]],e)||[];return U(i,n)||[]}(e,i,s);let o;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:r,minutes:s}=t[0],{hours:i,minutes:c}=t[1];a>=r&&l>=s&&(a<i||a===i&&l<c)&&(o=n[e])}else{const{hours:r,minutes:s}=t;r===a&&s===l&&(o=n[e])}}),o)return o}return R(e,i,s)[a<12?0:1];case G.Eras:return function(t,e){return U(Object(r.ib)(t)[r.Y.Eras],e)}(e,s)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,o,t,e,n,s)}}function tt(t){return function(e,n,r){const s=-1*r,i=V(n,A.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Y.Short:return(s>=0?"+":"")+K(o,2,i)+K(Math.abs(s%60),2,i);case Y.ShortGMT:return"GMT"+(s>=0?"+":"")+K(o,1,i);case Y.Long:return"GMT"+(s>=0?"+":"")+K(o,2,i)+":"+K(Math.abs(s%60),2,i);case Y.Extended:return 0===r?"Z":(s>=0?"+":"")+K(o,2,i)+":"+K(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function et(t,e=!1){return function(n,r){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))).getTime()-t.getTime();s=1+Math.round(e/6048e5)}var i;return K(s,t,V(r,A.MinusSign))}}const nt={};function rt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const it=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ot(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class at{}let lt=(()=>{class t extends at{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(H(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.u))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();function ct(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let ut=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.ob)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.ub)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.s),r.Mb(r.t),r.Mb(r.l),r.Mb(r.D))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ht{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(r.T)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ht(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new ft(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new ft(t,s);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.K),r.Mb(r.s))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ft{constructor(t,e){this.record=t,this.view=e}}let pt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new mt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.K))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class mt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.ub)(e)}'.`)}class _t{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let yt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),bt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new _t(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.K),r.Mb(yt,1))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),vt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.xb]}),t})();function wt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.ub)(t)}'`)}class St{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ct{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const kt=new Ct,Et=new St;let Dt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Object(r.rb)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.P.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(r.qb)(e))return kt;if(Object(r.pb)(e))return Et;throw wt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(r.bc())},t.\u0275pipe=r.Lb({name:"async",type:t,pure:!1}),t})(),Ot=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return Q(e,n,s||this.locale,r)}catch(i){throw wt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.u))},t.\u0275pipe=r.Lb({name:"date",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale;try{return function(t,e,n){return function(t,e,n,r,s,i,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,r,s,i,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;"0"===o.charAt(r);r++);if(r===(i=o.length))e=[0],n=1;else{for(i--;"0"===o.charAt(i);)i--;for(n-=r,e=[],s=0;r<=i;r++,s++)e[s]=Number(o.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(i){const t=i.match(it);if(null===t)throw new Error(i+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(u=ot(e)),null!=n&&(h=ot(n)),null!=r?d=ot(r):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,s=r.length-t.integerLen;const i=Math.min(Math.max(e,s),n);let o=i+t.integerLen,a=r[o];if(o>0){r.splice(Math.max(t.integerLen,o));for(let t=o;t<r.length;t++)r[t]=0}else{s=Math.max(0,s),t.integerLen=1,r.length=Math.max(1,o=i+1),r[0]=0;for(let t=1;t<o;t++)r[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[o-1]++;for(;s<Math.max(0,i);s++)r.push(0);let l=0!==i;const c=e+t.integerLen,u=r.reduceRight((function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,l&&(0===r[n]&&n>=c?r.pop():l=!1),e>=10?1:0}),0);u&&(r.unshift(u),t.integerLen++)}(c,h,d);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(t=>!t);p<u;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?g=f.splice(p,f.length):(g=f,f=[0]);const _=[];for(f.length>=e.lgSize&&_.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)_.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(V(n,r)),g.length&&(a+=V(n,s)+g.join("")),m&&(a+=V(n,A.Exponential)+"+"+m)}else a=V(n,A.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),s=r[0],i=r[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const t=l.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,i){const t=s.length-n.posPre.length-n.posSuf.length,e=i.indexOf("#");n.negPre=i.substr(0,e).replace(/'/g,""),n.negSuf=i.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Object(r.ib)(t)[r.Y.NumberFormats][e]}(e,D.Decimal),V(e,A.MinusSign)),e,A.Group,A.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(e),s,n)}catch(i){throw wt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.u))},t.\u0275pipe=r.Lb({name:"number",type:t,pure:!0}),t})(),Tt=(()=>{class t{transform(e,n,r){if(null==e)return e;if(!this.supports(e))throw wt(t,e);return e.slice(n,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"slice",type:t,pure:!1}),t})(),Mt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[{provide:at,useClass:lt}]}),t})();const At="browser";function Rt(t){return t===At}let jt=(()=>{class t{}return t.\u0275prov=Object(r.Ib)({token:t,providedIn:"root",factory:()=>new Pt(Object(r.Zb)(l),window,Object(r.Zb)(r.m))}),t})();class Pt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(i.a)(a))try{a.call(this)}catch(u){e=u instanceof o?l(u.errors):[u]}if(Object(r.a)(c)){let t=-1,n=c.length;for(;++t<n;){const n=c[t];if(Object(s.a)(n))try{n.unsubscribe()}catch(u){e=e||[],u instanceof o?e=e.concat(l(u.errors)):e.push(u)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function l(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return U})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return C}));var r=n("fXoL"),s=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class b{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:g(this.body)||_(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||y(this.body)?null:_(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new b(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const v=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let D=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof b)r=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new b(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(s.a)(r).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof b||"events"===n.observe)return i;const c=i.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(u))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class O{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x=new r.q("HTTP_INTERCEPTORS");let T=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;class A{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new S({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new k({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new k({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:v.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(A))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const P=new r.q("XSRF_COOKIE_NAME"),I=new r.q("XSRF_HEADER_NAME");class N{}let F=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.E)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(c.d),r.Zb(r.B),r.Zb(P))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(N),r.Zb(I))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(x,[]);this.chain=t.reduceRight((t,e)=>new O(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(h),r.Zb(r.r))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:T}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:I,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[V,{provide:x,useExisting:V,multi:!0},{provide:N,useClass:F},{provide:P,useValue:"XSRF-TOKEN"},{provide:I,useValue:"X-XSRF-TOKEN"}]}),t})(),U=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[D,{provide:u,useClass:H},j,{provide:h,useExisting:j},R,{provide:A,useExisting:R}],imports:[[L.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return te})),n.d(e,"b",(function(){return Q})),n.d(e,"c",(function(){return cn})),n.d(e,"d",(function(){return fn})),n.d(e,"e",(function(){return hn})),n.d(e,"f",(function(){return Dn})),n.d(e,"g",(function(){return gn}));var r=n("ofXK"),s=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("HDdC");const c=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("itXk"),h=n("EY2u");function d(t){return new l.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(o.a)(n):Object(h.b)()).subscribe(e)})}var f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),g=n("pLZG"),_=n("7o/Q"),y=n("4I5i");function b(t){return function(e){return 0===t?Object(h.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new y.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends _.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}function S(t=E){return e=>e.lift(new C(t))}class C{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new k(t,this.errorFactory))}}class k extends _.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function E(){return new c}function D(t=null){return e=>e.lift(new O(t))}class O{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new x(t,this.defaultValue))}}class x extends _.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var T=n("SpAZ");function M(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):T.a,b(1),n?D(e):S(()=>new c))}var A=n("JIr8"),R=n("IzEk");function j(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):T.a,Object(R.a)(1),n?D(e):S(()=>new c))}var P=n("5+tZ");class I{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new N(t,this.predicate,this.thisArg,this.source))}}class N extends _.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var F=n("eIep"),V=n("JX91"),H=n("Kqap"),L=n("bOdf"),U=n("mCNh"),z=n("vkgz"),$=n("quSY");class q{constructor(t){this.callback=t}call(t,e){return e.subscribe(new B(t,this.callback))}}class B extends _.a{constructor(t,e){super(t),this.add(new $.a(e))}}var Y=n("bHdf");class W{constructor(t,e){this.id=t,this.url=e}}class G extends W{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Q extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Z extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class K extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class J extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends W{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class et extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class st{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Nb(0,"router-outlet")},directives:function(){return[gn]},encapsulation:2}),t})();class ht{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function dt(t){return new ht(t)}function ft(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pt(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class mt{constructor(t,e){this.routes=t,this.module=e}}function gt(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];_t(r,yt(e,r))}}function _t(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&gt(t.children,e)}function yt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function bt(t){const e=t.children&&t.children.map(bt),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=ut),n}function vt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!wt(t[s],e[s]))return!1;return!0}function wt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function St(t){return Array.prototype.concat.apply([],t)}function Ct(t){return t.length>0?t[t.length-1]:null}function kt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return Object(s.pb)(t)?t:Object(s.qb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function Dt(t,e,n){return n?function(t,e){return vt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Mt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>wt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!Mt(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Mt(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Mt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class Ot{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}toString(){return Pt.serialize(this)}}class xt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,kt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return It(this)}}class Tt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=dt(this.parameters)),this._parameterMap}toString(){return Ut(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function At(t,e){let n=[];return kt(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),kt(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Rt{}class jt{parse(t){const e=new Yt(t);return new Ot(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return It(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return kt(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=At(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${It(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Ft(e)}=${Ft(t)}`).join("&"):`${Ft(e)}=${Ft(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Pt=new jt;function It(t){return t.segments.map(t=>Ut(t)).join("/")}function Nt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(t){return Nt(t).replace(/%3B/gi,";")}function Vt(t){return Nt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(t){return decodeURIComponent(t)}function Lt(t){return Ht(t.replace(/\+/g,"%20"))}function Ut(t){return`${Vt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Vt(t)}=${Vt(e[t])}`).join("")}`;var e}const zt=/^[^\/()?;=#]+/;function $t(t){const e=t.match(zt);return e?e[0]:""}const qt=/^[^=?&#]+/,Bt=/^[^?&#]+/;class Yt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xt([],{}):new xt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new xt(t,e)),n}parseSegment(){const t=$t(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Tt(Ht(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=$t(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=$t(this.remaining);t&&(n=t,this.capture(n))}t[Ht(e)]=Ht(n)}parseQueryParam(t){const e=function(t){const e=t.match(qt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Bt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Lt(e),s=Lt(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=$t(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new xt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Wt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Gt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Qt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Qt(t,this._root).map(t=>t.value)}}function Gt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Gt(t,n);if(e)return e}return null}function Qt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Qt(t,n);if(r.length)return r.unshift(e),r}return[]}class Zt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Kt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Jt extends Wt{constructor(t,e){super(t),this.snapshot=e,se(this,t)}toString(){return this.snapshot.toString()}}function Xt(t,e){const n=function(t,e){const n=new ne([],{},{},"",{},"primary",e,null,t.root,-1,{});return new re("",new Zt(n,[]))}(t,e),r=new a.a([new Tt("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),c=new te(r,s,o,l,i,"primary",e,n.root);return c.snapshot=n.root,new Jt(new Zt(c,[]),n)}class te{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(t=>dt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>dt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ee(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ne{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=dt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class re extends Wt{constructor(t,e){super(e),this.url=t,se(this,e)}toString(){return ie(this._root)}}function se(t,e){e.value._routerState=t,e.children.forEach(e=>se(t,e))}function ie(t){const e=t.children.length>0?` { ${t.children.map(ie).join(", ")} } `:"";return`${t.value}${e}`}function oe(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,vt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),vt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!vt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),vt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ae(t,e){var n,r;return vt(t.params,e.params)&&Mt(n=t.url,r=e.url)&&n.every((t,e)=>vt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||ae(t.parent,e.parent))}function le(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ce(t,e,n,r,s){let i={};return r&&kt(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Ot(n.root===t?e:function t(e,n,r){const s={};return kt(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new xt(e.segments,s)}(n.root,t,e),i,s)}class ue{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&le(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class he{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function de(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function fe(t,e,n){if(t||(t=new xt([],{})),0===t.segments.length&&t.hasChildren())return pe(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=de(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ye(o,a,e))return i;r+=2}else{if(!ye(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new xt(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new xt(t.segments.slice(r.pathIndex),t.children),pe(e,0,s)}return r.match&&0===s.length?new xt(t.segments,{}):r.match&&!t.hasChildren()?me(t,e,n):r.match?pe(t,0,s):me(t,e,n)}function pe(t,e,n){if(0===n.length)return new xt(t.segments,{});{const r=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),s={};return kt(r,(n,r)=>{null!==n&&(s[r]=fe(t.children[r],e,n))}),kt(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new xt(t.segments,s)}}function me(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=ge(n[s].outlets);return new xt(r,t)}if(0===s&&le(n[0])){r.push(new Tt(t.segments[e].path,n[0])),s++;continue}const i=de(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&le(o)?(r.push(new Tt(i,_e(o))),s+=2):(r.push(new Tt(i,{})),s++)}return new xt(r,{})}function ge(t){const e={};return kt(t,(t,n)=>{null!==t&&(e[n]=me(new xt([],{}),0,t))}),e}function _e(t){const e={};return kt(t,(t,n)=>e[n]=""+t),e}function ye(t,e,n){return t==n.path&&vt(e,n.parameters)}class be{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),oe(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Kt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),kt(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Kt(t),s=t.value.component?n.children:e;kt(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Kt(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new lt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ot(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(oe(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ve(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ve(t){oe(t.value),t.children.forEach(ve)}function we(t){return"function"==typeof t}function Se(t){return t instanceof Ot}class Ce{constructor(t){this.segmentGroup=t||null}}class ke{constructor(t){this.urlTree=t}}function Ee(t){return new l.a(e=>e.error(new Ce(t)))}function De(t){return new l.a(e=>e.error(new ke(t)))}function Oe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class xe{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(s.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(A.a)(t=>{if(t instanceof ke)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ce)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(A.a)(t=>{if(t instanceof Ce)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new xt([],{primary:t}):t;return new Ot(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new xt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],s={};return kt(t,(t,i)=>{const o=e(i,t).pipe(Object(p.a)(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(Object(m.a)(),M(),Object(p.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Object(i.a)(...n).pipe(Object(p.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(Object(A.a)(t=>{if(t instanceof Ce)return Object(i.a)(null);throw t}))),Object(m.a)(),j(t=>!!t),Object(A.a)((t,n)=>{if(t instanceof c||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Object(i.a)(new xt([],{}));throw new Ce(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return Re(r)!==i?Ee(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):Ee(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?De(s):this.lineralizeSegments(n,s).pipe(Object(P.a)(n=>{const s=new xt(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Te(e,r,s);if(!o)return Ee(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?De(u):this.lineralizeSegments(r,u).pipe(Object(P.a)(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new xt(r,{})))):Object(i.a)(new xt(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Te(e,n,r);if(!s)return Ee(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(P.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Ae(t,e,n)&&"primary"!==Re(n))}(t,n,r)?{segmentGroup:Me(new xt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==Re(r)&&(n[Re(r)]=new xt([],{}));return n}(r,new xt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ae(t,e,n))}(t,n,r)?{segmentGroup:Me(new xt(t.segments,function(t,e,n,r){const s={};for(const i of n)Ae(t,e,i)&&!r[Re(i)]&&(s[Re(i)]=new xt([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(p.a)(t=>new xt(o,t))):0===r.length&&0===a.length?Object(i.a)(new xt(o,{})):this.expandSegment(n,s,r,a,"primary",!0).pipe(Object(p.a)(t=>new xt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new mt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(p.a)(r=>{const s=t.get(r);let i;if(function(t){return t&&we(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!we(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Et(i)})).pipe(Object(m.a)(),(s=t=>!0===t,t=>t.lift(new I(s,void 0,t)))):Object(i.a)(!0);var s}(t.injector,e,n).pipe(Object(P.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(ft(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new mt([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Oe(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Ot(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return kt(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return kt(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new xt(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Te(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||pt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Me(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new xt(t.segments.concat(e.segments),e.children)}return t}function Ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Re(t){return t.outlet||"primary"}class je{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Pe{constructor(t,e){this.component=t,this.route=e}}function Ie(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Kt(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ae(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!ae(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new je(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new Pe(l&&l.outlet&&l.outlet.component||null,a))}else a&&Fe(n,l,i),i.canActivateChecks.push(new je(s)),t(e,null,o.component?l?l.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),kt(o,(t,e)=>Fe(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function Ne(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Fe(t,e,n){const r=Kt(t),s=t.value;kt(r,(t,r)=>{Fe(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Pe(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Ve=Symbol("INITIAL_VALUE");function He(){return Object(F.a)(t=>Object(u.a)(...t.map(t=>t.pipe(Object(R.a)(1),Object(V.a)(Ve)))).pipe(Object(H.a)((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Ve)return t;if(r===Ve&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Se(r))return r}return t},t)},Ve),Object(g.a)(t=>t!==Ve),Object(p.a)(t=>Se(t)?t:!0===t),Object(R.a)(1)))}function Le(t,e){return null!==t&&e&&e(new at(t)),Object(i.a)(!0)}function Ue(t,e){return null!==t&&e&&e(new it(t)),Object(i.a)(!0)}function ze(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>d(()=>{const s=Ne(r,e,n);let i;if(function(t){return t&&we(t.canActivate)}(s))i=Et(s.canActivate(e,t));else{if(!we(s))throw new Error("Invalid CanActivate guard");i=Et(s(e,t))}return i.pipe(j())}));return Object(i.a)(s).pipe(He())}function $e(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>d(()=>{const s=e.guards.map(s=>{const i=Ne(s,e.node,n);let o;if(function(t){return t&&we(t.canActivateChild)}(i))o=Et(i.canActivateChild(r,t));else{if(!we(i))throw new Error("Invalid CanActivateChild guard");o=Et(i(r,t))}return o.pipe(j())});return Object(i.a)(s).pipe(He())}));return Object(i.a)(s).pipe(He())}class qe{}class Be{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=Ge(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new ne([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zt(n,e),s=new re(this.url,r);return this.inheritParamsAndData(s._root),Object(i.a)(s)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=ee(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=At(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof qe))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new qe}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new qe;if((t.outlet||"primary")!==r)throw new qe;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?Ct(n).parameters:{};s=new ne(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Ye(e),We(e)+n.length,Je(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new qe;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||pt)(n,t,e);if(!r)throw new qe;const s={};kt(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new ne(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Ye(e),We(e)+i.length,Je(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ge(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Zt(s,t)]}if(0===a.length&&0===c.length)return[new Zt(s,[])];const u=this.processSegment(a,l,c,"primary");return[new Zt(s,u)]}}function Ye(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function We(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ge(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>Qe(t,e,n)&&"primary"!==Ze(n))}(t,n,r)){const s=new xt(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==Ze(i)){const n=new xt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Ze(i)]=n}return s}(t,e,r,new xt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Qe(t,e,n))}(t,n,r)){const i=new xt(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Qe(t,n,a)&&!s[Ze(a)]){const n=new xt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Ze(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new xt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Qe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ze(t){return t.outlet||"primary"}function Ke(t){return t.data||{}}function Je(t){return t.resolve||{}}function Xe(t,e,n,r){const s=Ne(t,e,r);return Et(s.resolve?s.resolve(e,n):s(e,n))}function tn(t){return function(e){return e.pipe(Object(F.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)(()=>e)):Object(o.a)([e])}))}}class en{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const nn=new s.q("ROUTES");class rn{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new mt(St(r.injector.get(nn)).map(bt),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):Et(t()).pipe(Object(P.a)(t=>t instanceof s.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class sn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function on(t){throw t}function an(t,e,n){return e.parse("/")}function ln(t,e){return Object(i.a)(null)}let cn=(()=>{class t{constructor(t,e,n,r,i,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=on,this.malformedUriErrorHandler=an,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ln,afterPreactivation:ln},this.urlHandlingStrategy=new sn,this.routeReuseStrategy=new en,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.x),this.console=i.get(s.W);const u=i.get(s.z);this.isNgZoneEnabled=u instanceof s.z,this.resetConfig(c),this.currentUrlTree=new Ot(new xt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rn(o,l,t=>this.triggerEvent(new rt(t)),t=>this.triggerEvent(new st(t))),this.routerState=Xt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(g.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(F.a)(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(z.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(F.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(F.a)(t=>{const n=this.transitions.getValue();return e.next(new G(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?h.a:[t]}),Object(F.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(F.a)(t=>function(t,e,n,r,s){return new xe(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(z.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(Object(P.a)(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Be(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(p.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(z.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(z.a)(t=>{const n=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=t,l=new G(n,this.serializeUrl(r),s,o);e.next(l);const c=Xt(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),h.a}),tn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(z.a)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:Ie(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(P.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object(P.a)(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=Ne(i,e,s);let a;if(function(t){return t&&we(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,r));else{if(!we(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,r))}return a.pipe(j())});return Object(i.a)(a).pipe(He())}(t.component,t.route,n,e,r)),j(t=>!0!==t,!0))}(l,r,s,t).pipe(Object(P.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(Object(L.a)(e=>Object(o.a)([Ue(e.route.parent,r),Le(e.route,r),$e(t,e.path,n),ze(t,e.route,n)]).pipe(Object(m.a)(),j(t=>!0!==t,!0))),j(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(z.a)(t=>{if(Se(t.guardsResult)){const e=ft(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(z.a)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Z(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),tn(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(z.a)(t=>{const e=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(Object(P.a)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;return s.length?Object(o.a)(s).pipe(Object(L.a)(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Object(i.a)({});if(1===s.length){const i=s[0];return Xe(t[i],e,n,r).pipe(Object(p.a)(t=>({[i]:t})))}const a={};return Object(o.a)(s).pipe(Object(P.a)(s=>Xe(t[s],e,n,r).pipe(Object(p.a)(t=>(a[s]=t,t))))).pipe(M(),Object(p.a)(()=>a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ee(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return Object(U.a)(Object(H.a)(t,e),b(1),D(e))(n)}:function(e){return Object(U.a)(Object(H.a)((e,n,r)=>t(e,n,r+1)),b(1))(e)}}((t,e)=>t),Object(p.a)(e=>t)):Object(i.a)(t)}))}),Object(z.a)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),tn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(p.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new Zt(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new te(new a.a((s=n.value).url),new a.a(s.params),new a.a(s.queryParams),new a.a(s.fragment),new a.a(s.data),s.outlet,s.component,s),i=n.children.map(n=>t(e,n));return new Zt(r,i)}}var s}(t,e._root,n?n._root:void 0);return new Jt(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(z.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(l=this.rootContexts,c=this.routeReuseStrategy,u=t=>this.triggerEvent(t),Object(p.a)(t=>(new be(c,t.targetRouterState,t.currentRouterState,u).activate(l),t))),Object(z.a)({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Z(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new q(s))),Object(A.a)(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Se(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Z(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new K(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return h.a}));var s,l,c,u}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){gt(t),this.config=t.map(bt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=e;Object(s.T)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,s){if(0===n.length)return ce(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ue(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return kt(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new ue(n,e,r)}(n);if(i.toRoot())return ce(e.root,new xt([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new he(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new he(n.snapshot._urlSegment,!0,0);const r=le(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new he(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?pe(o.segmentGroup,o.index,i.commands):fe(o.segmentGroup,o.index,i.commands);return ce(o.segmentGroup,a,e,r,s)}(c,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.T)()&&this.isNgZoneEnabled&&!s.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Se(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Se(t))return Dt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Dt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.cc()},t.\u0275dir=s.Hb({type:t}),t})(),un=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:dn(this.skipLocationChange),replaceUrl:dn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:dn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:dn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(cn),s.Mb(te),s.ac("tabindex"),s.Mb(s.D),s.Mb(s.l))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.dc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),hn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof Q&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:dn(this.skipLocationChange),replaceUrl:dn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!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:dn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:dn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(cn),s.Mb(te),s.Mb(r.k))},t.\u0275dir=s.Hb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.dc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Ub("href",e.href,s.Ac),s.Ab("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.xb]}),t})();function dn(t){return""===t||!!t}let fn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.element=e,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof Q&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(cn),s.Mb(s.l),s.Mb(s.D),s.Mb(un,8),s.Mb(hn,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(s.Fb(n,un,!0),s.Fb(n,hn,!0)),2&t&&(s.wc(r=s.ec())&&(e.links=r),s.wc(r=s.ec())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.xb]}),t})();class pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mn,this.attachRef=null}}class mn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new pn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let gn=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.n,this.deactivateEvents=new s.n,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new _n(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(mn),s.Mb(s.N),s.Mb(s.j),s.ac("name"),s.Mb(s.h))},t.\u0275dir=s.Hb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class _n{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===te?this.route:t===mn?this.childContexts:this.parent.get(t,e)}}class yn{}class bn{preload(t,e){return Object(i.a)(null)}}let vn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new rn(e,n,e=>t.triggerEvent(new rt(e)),e=>t.triggerEvent(new st(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof Q),Object(L.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(o.a)(n).pipe(Object(Y.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(P.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(cn),s.Zb(s.w),s.Zb(s.i),s.Zb(s.r),s.Zb(yn))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),wn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof G?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Q&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ct&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ct(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.cc()},t.\u0275dir=s.Hb({type:t}),t})();const Sn=new s.q("ROUTER_CONFIGURATION"),Cn=new s.q("ROUTER_FORROOT_GUARD"),kn=[r.j,{provide:Rt,useClass:jt},{provide:cn,useFactory:function(t,e,n,s,i,o,a,l={},c,u){const h=new cn(null,t,e,n,s,i,o,St(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const t=Object(r.D)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h},deps:[Rt,mn,r.j,s.r,s.w,s.i,nn,Sn,[class{},new s.A],[class{},new s.A]]},mn,{provide:te,useFactory:function(t){return t.routerState.root},deps:[cn]},{provide:s.w,useClass:s.J},vn,bn,class{preload(t,e){return e().pipe(Object(A.a)(()=>Object(i.a)(null)))}},{provide:Sn,useValue:{enableTracing:!1}}];function En(){return new s.y("Router",cn)}let Dn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[kn,Mn(e),{provide:Cn,useFactory:Tn,deps:[[cn,new s.A,new s.I]]},{provide:Sn,useValue:n||{}},{provide:r.k,useFactory:xn,deps:[r.s,[new s.p(r.a),new s.A],Sn]},{provide:wn,useFactory:On,deps:[cn,r.v,Sn]},{provide:yn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:bn},{provide:s.y,multi:!0,useFactory:En},[An,{provide:s.d,multi:!0,useFactory:Rn,deps:[An]},{provide:Pn,useFactory:jn,deps:[An]},{provide:s.b,multi:!0,useExisting:Pn}]]}}static forChild(e){return{ngModule:t,providers:[Mn(e)]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Zb(Cn,8),s.Zb(cn,8))}}),t})();function On(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new wn(t,e,n)}function xn(t,e,n={}){return n.useHash?new r.h(t,e):new r.r(t,e)}function Tn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Mn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:nn,multi:!0,useValue:t}]}let An=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(r.i,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(cn),r=this.injector.get(Sn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Sn),n=this.injector.get(vn),r=this.injector.get(wn),i=this.injector.get(cn),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(s.r))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();function Rn(t){return t.appInitializer.bind(t)}function jn(t){return t.bootstrapListener.bind(t)}const Pn=new s.q("Router Initializer")},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(t,e,n,r){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("XNiG"),s=n("HDdC"),i=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new l(t))}}class l{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new c(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class c extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class u extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends r.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function f(){return new r.a}function p(){return t=>{return a()((e=f,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,h);return r.source=t,r.subjectFactory=n,r})(t));var e}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),s=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(i.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?l(...t):l(t))):new r.a(r=>{!function t(e,n,r,s,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),o=()=>t.removeEventListener(n,r,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,r,s,i)}s.add(o)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),s=n("ngJS"),i=n("jZKg");function o(t,e){return e?Object(i.a)(t,e):new r.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC");function s(t,e){return new r.a(e?n=>e.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("fXoL"),s=n("ofXK"),i=n("tk/3"),o=n("3Pt+");class a extends s.B{constructor(){super()}supportsDOMEvents(){return!0}}class l extends a{static makeCurrent(){Object(s.F)(new l)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=u||(u=document.querySelector("base"),u)?u.getAttribute("href"):null;return null==e?null:(n=e,c||(c=document.createElement("a")),c.setAttribute("href",n),"/"===c.pathname.charAt(0)?c.pathname:"/"+c.pathname);var n}resetBaseElement(){u=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(s.E)(document.cookie,t)}}let c,u=null;const h=new r.q("TRANSITION_ID"),d=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(s.D)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[h,s.d,r.r],multi:!0}];class f{static init(){Object(r.V)(new f)}addToWindow(t){r.nb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},r.nb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.nb.getAllAngularRootElements=()=>t.getAllRootElements(),r.nb.frameworkStabilizers||(r.nb.frameworkStabilizers=[]),r.nb.frameworkStabilizers.push(t=>{const e=r.nb.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(s.D)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const p=new r.q("EventManagerPlugins");let m=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(p),r.Zb(r.z))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class g{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Object(s.D)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let _=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t extends _{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(s.D)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.d))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const b={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/"},v=/%COMP%/g;function w(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?w(t,s,n):(s=s.replace(v,t),n.push(s))}return n}function S(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new k(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.O.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new E(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case r.O.Native:case r.O.ShadowDom:return new D(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(m),r.Zb(y),r.Zb(r.c))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class k{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=b[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=b[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&r.F.DashCase?t.style.setProperty(e,n,s&r.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.F.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,S(n)):this.eventManager.addEventListener(t,e,S(n))}}class E extends k{constructor(t,e,n,r){super(t),this.component=n;const s=w(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(v,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class D extends k{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===r.O.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=w(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let O=(()=>{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.d))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const x=["alt","control","meta","shift"],T={"\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"},M={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(s.D)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(x.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&M.hasOwnProperty(e)&&(e=M[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),x.forEach(r=>{r!=n&&(0,A[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.d))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const j=[{provide:r.B,useValue:s.C},{provide:r.C,useValue:function(){l.makeCurrent(),f.init()},multi:!0},{provide:s.d,useFactory:function(){return Object(r.tb)(document),document},deps:[]}],P=Object(r.Q)(r.U,"browser",j),I=[[],{provide:r.X,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:p,useClass:O,multi:!0,deps:[s.d,r.z,r.B]},{provide:p,useClass:R,multi:!0,deps:[s.d]},[],{provide:C,useClass:C,deps:[m,y,r.c]},{provide:r.E,useExisting:C},{provide:_,useExisting:y},{provide:y,useClass:y,deps:[s.d]},{provide:r.L,useClass:r.L,deps:[r.z]},{provide:m,useClass:m,deps:[p,r.z]},[]];let N=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:h,useExisting:r.c},d]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)(r.Zb(t,12))},providers:I,imports:[s.c,r.f]}),t})();"undefined"!=typeof window&&window;var F=n("R0Ic");function V(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function H(t){switch(t.length){case 0:return new F.d;case 1:return t[0];default:return new F.k(t)}}function L(t,e,n,r,s={},i={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==l,u=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),a){case F.l:a=s[n];break;case F.a:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function U(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&z(n,"start",t)));break;case"done":t.onDone(()=>r(n&&z(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&z(n,"destroy",t)))}}function z(t,e,n){const r=n.totalTime,s=$(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(s._data=i),s}function $(t,e,n,r,s="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function q(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function B(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Y=(t,e)=>!1,W=(t,e)=>!1,G=(t,e,n)=>[];const Q=V();(Q||"undefined"!=typeof Element)&&(Y=(t,e)=>t.contains(e),W=(()=>{if(Q||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):W}})(),G=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let Z=null,K=!1;function J(t){Z||(Z=("undefined"!=typeof document?document.body:null)||{},K=!!Z.style&&"WebkitAppearance"in Z.style);let e=!0;return Z.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Z.style,!e&&K)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Z.style),e}const X=W,tt=Y,et=G;function nt(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let rt=(()=>{class t{validateStyleProperty(t){return J(t)}matchesElement(t,e){return X(t,e)}containsElement(t,e){return tt(t,e)}query(t,e,n){return et(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,s,i=[],o){return new F.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),st=(()=>{class t{}return t.NOOP=new rt,t})();function it(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ot(parseFloat(e[1]),e[2])}function ot(t,e){switch(e){case"s":return 1e3*t;default:return t}}function at(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,s=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=ot(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=ot(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:i}}(t,e,n)}function lt(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function ct(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else lt(t,n);return n}function ut(t,e,n){return n?e+":"+n+";":""}function ht(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=ut(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=ut(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function dt(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const s=vt(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[s]),t.style[s]=e[r]}),V()&&ht(t))}function ft(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=vt(e);t.style[n]=""}),V()&&ht(t))}function pt(t){return Array.isArray(t)?1==t.length?t[0]:Object(F.f)(t):t}const mt=new RegExp("{{\\s*(.+?)\\s*}}","g");function gt(t){let e=[];if("string"==typeof t){let n;for(;n=mt.exec(t);)e.push(n[1]);mt.lastIndex=0}return e}function _t(t,e,n){const r=t.toString(),s=r.replace(mt,(t,r)=>{let s=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),s=""),s.toString()});return s==r?t:s}function yt(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const bt=/-+([a-z0-9])/g;function vt(t){return t.replace(bt,(...t)=>t[1].toUpperCase())}function wt(t,e){return 0===t||0===e}function St(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=kt(t,e)}))}}return e}function Ct(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function kt(t,e){return window.getComputedStyle(t)[e]}function Et(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(xt(s,o)),"<"!=i[0]||"*"==s&&"*"==o||e.push(xt(o,s))}(t,n,e)):n.push(t),n}const Dt=new Set(["true","1"]),Ot=new Set(["false","0"]);function xt(t,e){const n=Dt.has(t)||Ot.has(t),r=Dt.has(e)||Ot.has(e);return(s,i)=>{let o="*"==t||t==s,a="*"==e||e==i;return!o&&n&&"boolean"==typeof s&&(o=s?Dt.has(t):Ot.has(t)),!a&&r&&"boolean"==typeof i&&(a=i?Dt.has(e):Ot.has(e)),o&&a}}const Tt=new RegExp("s*:selfs*,?","g");function Mt(t,e,n){return new At(t).build(e,n)}class At{constructor(t){this._driver=t}build(t,e){const n=new Rt(e);return this._resetContextStyleTimingState(n),Ct(this,pt(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,r+=s.depCount,i.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(t=>{if(jt(t)){const e=t;Object.keys(e).forEach(t=>{gt(e[t]).forEach(t=>{i.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=yt(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ct(this,pt(t.animation),e);return{type:1,matchers:Et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Pt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ct(this,t,e)),options:Pt(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Ct(this,t,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:s,options:Pt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return It(at(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=It(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||at(r,e),It(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(F.h)({});if(5==s.type)r=this.visitKeyframes(s,e);else{let s=t.styles,i=!1;if(!s){i=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(F.h)(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=i,r=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==F.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,s=null;return n.forEach(t=>{if(jt(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},s=gt(t);s.length&&s.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(jt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(jt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,r)=>{const i=u>0?r==h?1:u*r:s[r],o=i*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ct(this,pt(t.animation),e),options:Pt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Pt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Pt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Tt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,q(e.collectedStyles,e.currentQuerySelector,{});const o=Ct(this,pt(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:Pt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:at(t.timings,e.errors,!0);return{type:12,animation:Ct(this,pt(t.animation),e),timings:n,options:null}}}class Rt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function jt(t){return!Array.isArray(t)&&"object"==typeof t}function Pt(t){var e;return t?(t=lt(t)).params&&(t.params=(e=t.params)?lt(e):null):t={},t}function It(t,e,n){return{duration:t,delay:e,easing:n}}function Nt(t,e,n,r,s,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class Ft{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Vt=new RegExp(":enter","g"),Ht=new RegExp(":leave","g");function Lt(t,e,n,r,s,i={},o={},a,l,c=[]){return(new Ut).buildKeyframes(t,e,n,r,s,i,o,a,l,c)}class Ut{buildKeyframes(t,e,n,r,s,i,o,a,l,c=[]){l=l||new Ft;const u=new $t(t,e,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Ct(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Nt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?it(n.duration):null,i=null!=n.delay?it(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),Ct(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zt);const t=it(s.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ct(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?it(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Ct(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return at(e.params?_t(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*s),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?it(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=zt);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Ct(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,i=Math.abs(s.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ct(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const zt={};class $t{constructor(t,e,n,r,s,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new qt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=it(n.duration)),null!=n.delay&&(r.delay=it(n.delay));const s=n.params;if(s){let t=r.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=_t(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new $t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=zt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new Bt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,i){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(Vt,"."+this._enterClassName)).replace(Ht,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class qt{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new qt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||F.a,this._currentKeyframe[t]=F.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},i=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=F.a})):ct(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(i).forEach(t=>{const e=_t(i[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:F.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=ct(s,!0);Object.keys(o).forEach(n=>{const r=o[n];r==F.l?t.add(n):r==F.a&&e.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=t.size?yt(t.values()):[],i=e.size?yt(e.values()):[];if(n){const t=r[0],e=lt(t);t.offset=0,e.offset=1,r=[t,e]}return Nt(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Bt extends qt{constructor(t,e,n,r,s,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],i=n+e,o=e/i,a=ct(t[0],!1);a.offset=0,s.push(a);const l=ct(t[0],!1);l.offset=Yt(o),s.push(l);const c=t.length-1;for(let r=1;r<=c;r++){let o=ct(t[r],!1);o.offset=Yt((e+o.offset*n)/i),s.push(o)}n=i,e=0,r="",t=s}return Nt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function Yt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Wt{}class Gt extends Wt{normalizePropertyName(t,e){return vt(t)}normalizeStyleValue(t,e,n,r){let s="";const i=n.toString().trim();if(Qt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+s}}const Qt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Zt(t,e,n,r,s,i,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Kt={};class Jt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,s){return t.some(t=>t(e,n,r,s))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):i}build(t,e,n,r,s,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Kt,d=this.buildStyles(n,o&&o.params||Kt,u),f=a&&a.params||Kt,p=this.buildStyles(r,f,u),m=new Set,g=new Map,_=new Map,y="void"===r,b={params:Object.assign(Object.assign({},h),f)},v=c?[]:Lt(t,e,this.ast.animation,s,i,d,p,b,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return Zt(e,this._triggerName,n,r,y,d,p,[],[],g,_,w,u);v.forEach(t=>{const n=t.element,r=q(g,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const s=q(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const S=yt(m.values());return Zt(e,this._triggerName,n,r,y,d,p,v,S,g,_,w)}}class Xt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=lt(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let i=s[t];i.length>1&&(i=_t(i,r,e)),n[t]=i})}}),n}}class te{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Xt(t.style,t.options&&t.options.params||{})}),ee(this.states,"true","1"),ee(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Jt(t,e,this.states))}),this.fallbackTransition=new Jt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function ee(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const ne=new Ft;class re{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=Mt(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=L(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let i;const o=new Map;if(s?(i=Lt(this._driver,e,s,"ng-enter","ng-leave",{},{},n,ne,r),i.forEach(t=>{const e=q(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,F.a)})});const a=H(i.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const s=$(e,"","","");return U(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const se=[],ie={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ae{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=lt(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const le=new ae("void");class ce{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ge(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const i=q(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const a=q(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ge(t,"ng-trigger"),ge(t,"ng-trigger-"+e),a[e]=le),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),i=new he(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(ge(t,"ng-trigger"),ge(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new ae(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=le),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),r=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{ft(t,n),dt(t,r)})}return}const c=q(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(ge(t,"ng-animate-queued"),i.onStart(()=>{_e(t,"ng-animate-queued")})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),c.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t);if(s){const i=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&H(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(t)[r]||le,o=new ae("void"),a=new he(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==ie||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ge(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(e=>{if(e.name==n.triggerName){const r=$(s,n.triggerName,n.fromState.value,n.toState.value);r._data=t,U(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class ue{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new ce(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const s=n[t[r]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(de(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!de(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ge(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),_e(t,"ng-animate-disabled"))}removeNode(t,e,n,r){if(de(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,s){return de(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return H(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=ie,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ge(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?H(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Ft,r=[],s=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=me(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n="ng-enter"+p++;f.set(e,n),t.forEach(t=>ge(t,n))});const m=[],g=new Set,_=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,b=me(h,Array.from(g));b.forEach((t,e)=>{const n="ng-leave"+p++;y.set(e,n),t.forEach(t=>ge(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>_e(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>_e(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),h=y.get(s),d=f.get(s),p=this._buildInstruction(t,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>ft(s,p.fromStyles)),e.onDestroy(()=>dt(s,p.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>ft(s,p.fromStyles)),e.onDestroy(()=>dt(s,p.toStyles)),void r.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,p.timelines),i.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>q(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,C=new Map;i.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{q(S,e,[]).push(t),t.destroy()})});const k=m.filter(t=>be(t,a,l)),E=new Map;pe(E,this.driver,_,l,F.a).forEach(t=>{be(t,a,l)&&k.push(t)});const D=new Map;d.forEach((t,e)=>{pe(D,this.driver,new Set(t),a,F.l)}),k.forEach(t=>{const e=E.get(t),n=D.get(t);E.set(t,Object.assign(Object.assign({},e),n))});const O=[],x=[],T={};i.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(c.has(e))return i.onDestroy(()=>dt(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let t=T;if(C.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>C.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,S,s,D,E);if(i.setRealPlayer(n),t===T)O.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=H(e)),r.push(i)}}else ft(e,o.fromStyles),i.onDestroy(()=>dt(e,o.toStyles)),x.push(i),c.has(e)&&r.push(i)}),x.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=H(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<m.length;M++){const t=m[M],e=t.__ng_removed;if(_e(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,".ng-animating",!0);for(let t=0;t<r.length;t++){let e=o.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?ye(this,t,r):this.processLeaveNode(t)}return m.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,l=q(n,t,[]);this._getPreviousPlayers(t,a,s,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}ft(r,e.fromStyles)}_buildAnimation(t,e,n,r,s,i){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new F.d(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const s=e[r];s instanceof F.k?t(s.players,n):n.push(s)}}(t,e),e}((n.get(h)||se).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=i.get(h),_=L(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,p);if(e.subTimeline&&r&&u.add(h),f){const e=new he(t,o,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{q(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>ge(t,"ng-animating"));const d=H(h);return d.onDestroy(()=>{c.forEach(t=>_e(t,"ng-animating")),dt(a,e.toStyles)}),u.forEach(t=>{q(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new F.d(t.duration,t.delay)}}class he{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new F.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>U(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){q(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function de(t){return t&&1===t.nodeType}function fe(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function pe(t,e,n,r,s){const i=[];n.forEach(t=>i.push(fe(t)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(r,t,s);n&&0!=n.length||(r.__ng_removed=oe,o.push(r))}),t.set(r,i)});let a=0;return n.forEach(t=>fe(t,i[a++])),o}function me(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let i=s.get(e);if(i)return i;const o=e.parentNode;return i=n.has(o)?o:r.has(o)?1:t(o),s.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}function ge(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function _e(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function ye(t,e,n){H(n).onDone(()=>t.processLeaveNode(e))}function be(t,e,n){const r=n.get(t);if(!r)return!1;let s=e.get(t);return s?r.forEach(t=>s.add(t)):e.set(t,r),n.delete(t),!0}class ve{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new ue(t,e,n),this._timelineEngine=new re(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,s){const i=t+"-"+r;let o=this._triggerCache[i];if(!o){const t=[],e=Mt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new te(t,e)}(r,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,s]=B(n);this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[t,r]=B(n);return this._timelineEngine.listen(t,e,r,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function we(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ce(e[0]),e.length>1&&(r=Ce(e[e.length-1]))):e&&(n=Ce(e)),n||r?new Se(t,n,r):null}let Se=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&dt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dt(this._element,this._initialStyles),this._endStyles&&(dt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),dt(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Ce(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const s=n[r];ke(s)&&(e=e||{},e[s]=t[s])}return e}function ke(t){return"display"===t||"position"===t}class Ee{constructor(t,e,n,r,s,i,o){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Ae(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),Me(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Te(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){De(this._element,this._name,"paused")}resume(){De(this._element,this._name,"running")}setPosition(t){const e=Oe(this._element,this._name);this._position=t*this._duration,Me(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Te(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Ae(t,"").split(","),r=xe(n,e);r>=0&&(n.splice(r,1),Me(t,"",n.join(",")))}(this._element,this._name))}}function De(t,e,n){Me(t,"PlayState",n,Oe(t,e))}function Oe(t,e){const n=Ae(t,"");return n.indexOf(",")>0?xe(n.split(","),e):xe([n],e)}function xe(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Te(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Me(t,e,n,r){const s="animation"+e;if(null!=r){const e=t.style[s];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[s]=n}function Ae(t,e){return t.style["animation"+e]}class Re{constructor(t,e,n,r,s,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){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 Ee(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:kt(this.element,n))})}this.currentSnapshot=t}}class je extends F.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=nt(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Pe{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return J(t)}matchesElement(t,e){return X(t,e)}containsElement(t,e){return tt(t,e)}query(t,e,n){return et(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>nt(t));let r=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);r+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${e}: ${n};\n`)}}),r+=s+"}\n"}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(t,e,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(t=>t instanceof Re),l={};wt(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=St(t,e,l));if(0==n)return new je(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=we(t,e),f=new Re(t,e,u,n,r,s,c,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_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 Ie{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:kt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ne{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Fe().toString()),this._cssKeyframesDriver=new Pe}validateStyleProperty(t){return J(t)}matchesElement(t,e){return X(t,e)}containsElement(t,e){return tt(t,e)}query(t,e,n){return et(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=i.filter(t=>t instanceof Ie);wt(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=we(t,e=St(t,e=e.map(t=>ct(t,!1)),l));return new Ie(t,e,a,u)}}function Fe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Ve=(()=>{class t extends F.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:r.O.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(F.f)(t):t;return Ue(this._renderer,null,e,"register",[n]),new He(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.E),r.Zb(s.d))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class He extends F.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Le(this._id,t,e||{},this._renderer)}}class Le{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Ue(t,e,n,r,s){return t.setProperty(e,`@@${n}:${r}`,s)}let ze=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new $e("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const i=e=>{Array.isArray(e)?e.forEach(i):this.engine.registerTrigger(r,s,t,e.name,e)};return e.data.animation.forEach(i),new qe(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.E),r.Zb(ve),r.Zb(r.z))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class $e{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class qe extends $e{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),i="";return"@"!=s.charAt(0)&&([s,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Be=(()=>{class t extends ve{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.d),r.Zb(st),r.Zb(Wt))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const Ye=[{provide:st,useFactory:function(){return"function"==typeof Fe()?new Ne:new Pe}},{provide:new r.q("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:F.b,useClass:Ve},{provide:Wt,useFactory:function(){return new Gt}},{provide:ve,useClass:Be},{provide:r.E,useFactory:function(t,e,n){return new ze(t,e,n)},deps:[C,ve,r.z]}];let We=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:Ye,imports:[N]}),t})();var Ge=n("z6cu"),Qe=n("JIr8"),Ze=n("vkgz");let Ke=(()=>{class t{constructor(){}intercept(t,e){return e.handle(t).pipe(Object(Ze.a)(t=>{if(t instanceof i.e){const e=t.headers.get("Access-Token");sessionStorage.setItem("accesstoken",""),sessionStorage.setItem("accesstoken",e)}}),Object(Qe.a)(t=>{401===t.status&&location.reload(!0),console.log(t);const e=t.error||t.statusText;return Object(Ge.a)(e)}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),Je=(()=>{class t{constructor(){this.urlsToNotcheck=["/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=chkUserIDExists","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=RegisterNewUser","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=OTPController","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=forgetPwrdSendOtp","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=forgetPwrdVerifyOtp","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=getProductDetails","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=chkUserPWExists","/gcs/com.equifax.gt.eport.web.NewUserRegistrationRouter?endPoint=getSuitFileDetails"]}intercept(t,e){if(!this.urlsToNotcheck.some((function(e){return e==t.url}))){const n=t.clone({headers:t.headers.set("Access-Token",sessionStorage.getItem("accesstoken"))});return e.handle(n)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();var Xe=n("tyNb");let tn=(()=>{class t{constructor(t){this.router=t}canActivate(t,e){if(null!==sessionStorage.getItem("accesstoken")||null!=sessionStorage.getItem("accesstoken"))return console.log("guard"),!0;this.router.navigate(["/gcs/portalRouter/UnAuthorized"])}canActivateChild(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(Xe.c))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const en=[{path:"",loadChildren:()=>Promise.all([n.e(1),n.e(11)]).then(n.bind(null,"Tx//")).then(t=>t.LayoutModule),canActivate:[tn]},{path:"gcs/portalRouter/forgotpassword",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(0),n.e(14)]).then(n.bind(null,"IoKB")).then(t=>t.ForgotPasswordModule)},{path:"gcs/portalRouter/registration",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(0),n.e(4)]).then(n.bind(null,"c5AZ")).then(t=>t.UserregistrationModule)},{path:"gcs/portalRouter/registration/:id",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(0),n.e(4)]).then(n.bind(null,"c5AZ")).then(t=>t.UserregistrationModule)},{path:"gcs/portalRouter/landing-page",loadChildren:()=>Promise.all([n.e(1),n.e(0),n.e(26)]).then(n.bind(null,"OaG1")).then(t=>t.UserLandingPageModule)},{path:"gcs/portalRouter/suitfiled",loadChildren:()=>Promise.all([n.e(1),n.e(0),n.e(27)]).then(n.bind(null,"b7/P")).then(t=>t.UserSuitFiledModule)},{path:"gcs/portalRouter/faq",loadChildren:()=>Promise.all([n.e(3),n.e(13)]).then(n.bind(null,"/6n6")).then(t=>t.FaqModule)},{path:"error",loadChildren:()=>n.e(25).then(n.bind(null,"3sFj")).then(t=>t.ServerErrorModule)},{path:"gcs/portalRouter/access-denied",loadChildren:()=>n.e(12).then(n.bind(null,"LzIi")).then(t=>t.AccessDeniedModule)},{path:"gcs/portalRouter/not-found",loadChildren:()=>n.e(24).then(n.bind(null,"QFL/")).then(t=>t.NotFoundModule)},{path:"**",redirectTo:"not-found"}];let nn=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[Xe.f.forRoot(en,{useHash:!0})],Xe.f]}),t})(),rn=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r.Nb(0,"router-outlet")},directives:[Xe.g],styles:[""]}),t})();var sn=n("hzby");let on=(()=>{class t{}return t.\u0275mod=r.Kb({type:t,bootstrap:[rn]}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[tn,s.e,{provide:i.a,useClass:Ke,multi:!0},{provide:i.a,useClass:Je,multi:!0}],imports:[[s.c,o.f,N,We,i.c,nn,sn.b.forRoot()]]}),t})();Object(r.R)(),P().bootstrapModule(on).catch(t=>console.error(t))}},[[0,2]]]);