fossasia/loklak_search

View on GitHub
1.5d6530e3d95707c6e3c4.js

Summary

Maintainability
A
0 mins
Test Coverage
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"01xD":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){}},"4c35":function(t,e,n){"use strict";n.d(e,"d",function(){return a}),n.d(e,"h",function(){return c}),n.d(e,"a",function(){return h}),n.d(e,"e",function(){return u}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return p}),n.d(e,"g",function(){return f}),n.d(e,"f",function(){return d});var i=n("mrSG"),o=n("CcnG");function r(){throw Error("Host already has a portal attached")}var s=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&r(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),a=function(t){function e(e,n,i){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=i,o}return Object(i.__extends)(e,t),e}(s),c=function(t){function e(e,n,i){var o=t.call(this)||this;return o.templateRef=e,o.viewContainerRef=n,o.context=i,o}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(s),h=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&r(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),u=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.outletElement=e,r._componentFactoryResolver=n,r._appRef=i,r._defaultInjector=o,r}return Object(i.__extends)(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,i=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),i},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(h),l=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(i.__extends)(e,t),e}(c),p=function(t){function e(e,n){var i=t.call(this)||this;return i._componentFactoryResolver=e,i._viewContainerRef=n,i._isInitialized=!1,i.attached=new o.EventEmitter,i}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=this._componentFactoryResolver.resolveComponentFactory(e.component),o=n.createComponent(i,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e}(h),f=function(){},d=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}()},Fzqc:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return a});var i=n("Ip0R"),o=n("CcnG"),r=new o.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(o.inject)(i.d)}}),s=function(){function t(t){this.value="ltr",this.change=new o.EventEmitter,t&&(this.value=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr")}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(r,8))},token:t,providedIn:"root"}),t}(),a=function(){}},"Mr+X":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r});var i=n("CcnG"),o=(n("SMsm"),n("Fzqc"),n("Wf4p"),i["\u0275crt"]({encapsulation:2,styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1,1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],data:{}}));function r(t){return i["\u0275vid"](2,[i["\u0275ncd"](null,0)],null,null)}},SMsm:function(t,e,n){"use strict";var i=n("Ip0R"),o=n("t/Na"),r=n("CcnG"),s=n("ZYjt"),a=n("F/XL"),c=n("VNr4"),h=n("XlPw"),u=n("xMyE"),l=n("67Y/"),p=n("mrSG"),f=n("FFOo"),d=n("pugT"),_=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new g(t,this.callback))},t}(),g=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new d.a(n)),i}return p.__extends(e,t),e}(f.a),m=n("S1nX"),y=n("9Z1F"),v=n("t9fZ"),b=n("Wf4p"),w=n("n6gG");function O(t){return Error('Unable to find icon with the name "'+t+'"')}function I(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function E(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}n.d(e,"b",function(){return x}),n.d(e,"a",function(){return k}),n.d(e,"c",function(){return S});var C=function(t){t.nodeName?this.svgElement=t:this.url=t},S=function(){function t(t,e,n){this._httpClient=t,this._sanitizer=e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e){return this.addSvgIconInNamespace("",t,e)},t.prototype.addSvgIconLiteral=function(t,e){return this.addSvgIconLiteralInNamespace("",t,e)},t.prototype.addSvgIconInNamespace=function(t,e,n){return this._addSvgIconConfig(t,e,new C(n))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n){var i=this._sanitizer.sanitize(r.SecurityContext.HTML,n);if(!i)throw E(n);var o=this._createSvgElementForSingleIcon(i);return this._addSvgIconConfig(t,e,new C(o))},t.prototype.addSvgIconSet=function(t){return this.addSvgIconSetInNamespace("",t)},t.prototype.addSvgIconSetLiteral=function(t){return this.addSvgIconSetLiteralInNamespace("",t)},t.prototype.addSvgIconSetInNamespace=function(t,e){return this._addSvgIconSetConfig(t,new C(e))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e){var n=this._sanitizer.sanitize(r.SecurityContext.HTML,e);if(!n)throw E(e);var i=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new C(i))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,t);if(!n)throw I(t);var i=this._cachedIconsByUrl.get(n);return i?Object(a.a)(j(i)):this._loadSvgIconFromConfig(new C(t)).pipe(Object(u.a)(function(t){return e._cachedIconsByUrl.set(n,t)}),Object(l.a)(function(t){return j(t)}))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=R(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var o=this._iconSetConfigs.get(e);return o?this._getSvgFromIconSetConfigs(t,o):Object(h.a)(O(n))},t.prototype._getSvgFromConfig=function(t){return t.svgElement?Object(a.a)(j(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(u.a)(function(e){return t.svgElement=e}),Object(l.a)(function(t){return j(t)}))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);if(i)return Object(a.a)(i);var o=e.filter(function(t){return!t.svgElement}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(y.a)(function(e){var i=n._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,t.url);return console.error("Loading icon set URL: "+i+" failed: "+e.message),Object(a.a)(null)}))});return Object(c.a)(o).pipe(Object(l.a)(function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw O(t);return i}))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var o=this._extractSvgIconFromSet(i.svgElement,t);if(o)return o}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(l.a)(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Object(a.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(l.a)(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var i=n.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i));var o=this._svgElementFromString("<svg></svg>");return o.appendChild(i),this._setSvgAttributes(o)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=0;n<t.childNodes.length;n++)t.childNodes[n].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[n].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),t},t.prototype._fetchUrl=function(t){var e=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error('Cannot fetch icon from URL "'+t+'".');var n=this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,t);if(!n)throw I(t);var i=this._inProgressUrlFetches.get(n);if(i)return i;var o,s=this._httpClient.get(n,{responseType:"text"}).pipe((o=function(){return e._inProgressUrlFetches.delete(n)},function(t){return t.lift(new _(o))}),Object(m.a)());return this._inProgressUrlFetches.set(n,s),s},t.prototype._addSvgIconConfig=function(t,e,n){return this._svgIconConfigs.set(R(t,e),n),this},t.prototype._addSvgIconSetConfig=function(t,e){var n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this},t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t(Object(r.inject)(o.c,8),Object(r.inject)(s.c),Object(r.inject)(i.d,8))},token:t,providedIn:"root"}),t}();function j(t){return t.cloneNode(!0)}function R(t,e){return t+":"+e}var k=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o._iconRegistry=n,o._inline=!1,i||e.nativeElement.setAttribute("aria-hidden","true"),o}return Object(p.__extends)(e,t),Object.defineProperty(e.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=Object(w.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSet",{get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),e.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},e.prototype.ngOnChanges=function(t){var e=this;if(t.svgIcon)if(this.svgIcon){var n=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(n[1],n[0]).pipe(Object(v.a)(1)).subscribe(function(t){return e._setSvgElement(t)},function(t){return console.log("Error retrieving icon: "+t.message)})}else this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype._usingFontIcon=function(){return!this.svgIcon},e.prototype._setSvgElement=function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),n=0;n<e.length;n++)e[n].textContent+=" ";this._elementRef.nativeElement.appendChild(t)},e.prototype._clearSvgElement=function(){for(var t=this._elementRef.nativeElement,e=t.childNodes.length,n=0;n<e;n++){var i=t.childNodes[n];1===i.nodeType&&"svg"!==i.nodeName.toLowerCase()||t.removeChild(i)}},e.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},e.prototype._cleanupFontValue=function(t){return"string"==typeof t?t.trim().split(" ")[0]:t},e}(Object(b.B)(function(t){this._elementRef=t})),x=function(){}},Wf4p:function(t,e,n){"use strict";n.d(e,"k",function(){return l}),n.d(e,"d",function(){return u}),n.d(e,"D",function(){return p}),n.d(e,"B",function(){return f}),n.d(e,"C",function(){return d}),n.d(e,"F",function(){return _}),n.d(e,"E",function(){return g}),n.d(e,"x",function(){return R}),n.d(e,"n",function(){return k}),n.d(e,"f",function(){return m}),n.d(e,"a",function(){return y}),n.d(e,"e",function(){return v}),n.d(e,"w",function(){return S}),n.d(e,"h",function(){return j}),n.d(e,"b",function(){return x}),n.d(e,"g",function(){return D}),n.d(e,"c",function(){return A}),n.d(e,"m",function(){return P}),n.d(e,"l",function(){return F}),n.d(e,"q",function(){return $}),n.d(e,"r",function(){return U}),n.d(e,"i",function(){return K}),n.d(e,"p",function(){return q}),n.d(e,"z",function(){return J}),n.d(e,"A",function(){return Q}),n.d(e,"o",function(){return G}),n.d(e,"v",function(){return z}),n.d(e,"j",function(){return Y}),n.d(e,"u",function(){return V}),n.d(e,"y",function(){return N}),n.d(e,"t",function(){return W}),n.d(e,"s",function(){return H});var i=n("CcnG"),o=n("mrSG"),r=n("n6gG"),s=n("K9Ia"),a=(n("6blF"),n("dWZg")),c=n("ZYjt"),h=n("YSh2"),u=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),l=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&Object(i.isDevMode)()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function p(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,e)||this;return i._disabled=!1,i}return Object(o.__extends)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(r.b)(t)},enumerable:!0,configurable:!0}),e}(t)}function f(t,e){return function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t.apply(this,n)||this;return o.color=e,o}return Object(o.__extends)(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function d(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,e)||this;return i._disableRipple=!1,i}return Object(o.__extends)(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(r.b)(t)},enumerable:!0,configurable:!0}),e}(t)}function _(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t.apply(this,n)||this;return o._tabIndex=e,o}return Object(o.__extends)(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}function g(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,e)||this;return i.errorState=!1,i.stateChanges=new s.a,i}return Object(o.__extends)(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())},e}(t)}var m=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.inject)(i.LOCALE_ID)}}),y=function(){function t(){this._localeChanges=new s.a}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){if(t&&e){var n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),v=new i.InjectionToken("mat-date-formats"),b="undefined"!=typeof Intl,w={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},O=C(31,function(t){return String(t+1)}),I={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},E=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function C(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var S=function(t){function e(e,n){var i=t.call(this)||this;return i.useUtcForDisplay=!0,t.prototype.setLocale.call(i,e),i.useUtcForDisplay=!n.TRIDENT,i._clampDate=n.TRIDENT||n.EDGE,i}return Object(o.__extends)(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(b){var n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return C(12,function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))})}return w[t]},e.prototype.getDateNames=function(){var t=this;if(b){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return C(31,function(n){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))})}return O},e.prototype.getDayOfWeekNames=function(t){var e=this;if(b){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return C(7,function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))})}return I[t]},e.prototype.getYearName=function(t){if(b){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},e.prototype.createDate=function(t,e,n){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(b){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object(o.__assign)({},e,{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(E.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e}(y),j={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},R=function(){},k=function(){},x=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),D=new i.InjectionToken("MAT_HAMMER_OPTIONS"),A=function(t){function e(e,n){var i=t.call(this)||this;return i._hammerOptions=e,i._hammer="undefined"!=typeof window?window.Hammer:null,i.events=i._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],n&&n._checkHammerIsAvailable(),i}return Object(o.__extends)(e,t),e.prototype.buildHammer=function(t){var e=new this._hammer(t,this._hammerOptions||void 0),n=new this._hammer.Pan,i=new this._hammer.Swipe,o=new this._hammer.Press,r=this._createRecognizer(n,{event:"slide",threshold:0},i),s=this._createRecognizer(o,{event:"longpress",time:500});return n.recognizeWith(i),e.add([i,o,n,r,s]),e},e.prototype._createRecognizer=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=new t.constructor(e);return n.push(t),n.forEach(function(t){return o.recognizeWith(t)}),o},e}(c.g),P=function(){function t(t,e){var n=this;this._lines=t,this._element=e,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){n._setLineClass(n._lines.length)})}return t.prototype._setLineClass=function(t){this._resetClasses(),2===t||3===t?this._setClass("mat-"+t+"-line",!0):t>3&&this._setClass("mat-multi-line",!0)},t.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},t.prototype._setClass=function(t,e){e?this._element.nativeElement.classList.add(t):this._element.nativeElement.classList.remove(t)},t}(),F=function(){},T=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}(),L=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=T.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),M={enterDuration:450,exitDuration:400},B=800,N=function(){function t(t,e,n,i){var o=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!Object(a.c)()&&{passive:!0},this.onMousedown=function(t){var e=o._lastTouchStartEvent&&Date.now()<o._lastTouchStartEvent+B;o._target.rippleDisabled||e||(o._isPointerDown=!0,o.fadeInRipple(t.clientX,t.clientY,o._target.rippleConfig))},this.onTouchStart=function(t){o._target.rippleDisabled||(o._lastTouchStartEvent=Date.now(),o._isPointerDown=!0,o.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,o._target.rippleConfig))},this.onPointerUp=function(){o._isPointerDown&&(o._isPointerDown=!1,o._activeRipples.forEach(function(t){!t.config.persistent&&(t.state===T.VISIBLE||t.config.terminateOnPointerUp&&t.state===T.FADING_IN)&&t.fadeOut()}))},i.isBrowser&&(this._containerElement=n.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var i=this;void 0===n&&(n={});var r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object(o.__assign)({},M,n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),o=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+o*o)}(t,e,r),c=t-r.left,h=e-r.top,u=s.enterDuration/(n.speedFactor||1),l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-a+"px",l.style.top=h-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",l.style.backgroundColor=n.color||null,l.style.transitionDuration=u+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var p=new L(this,l,n);return p.state=T.FADING_IN,this._activeRipples.add(p),n.persistent||(this._mostRecentTransientRipple=p),this.runTimeoutOutsideZone(function(){var t=p===i._mostRecentTransientRipple;p.state=T.VISIBLE,n.persistent||t&&i._isPointerDown||p.fadeOut()},u),p},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object(o.__assign)({},M,t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=T.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=T.HIDDEN,n.parentNode.removeChild(n)},i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(n,i){return t.addEventListener(i,n,e._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e,t._eventOptions)})},t}(),Y=new i.InjectionToken("mat-ripple-global-options"),V=function(){function t(t,e,n,i,o){this._elementRef=t,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new N(this,e,t,n),"NoopAnimations"===o&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object(o.__assign)({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object(o.__assign)({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,Object(o.__assign)({},this.rippleConfig,t))},t}(),z=function(){},H=function(t){this._animationMode=t,this.state="unchecked",this.disabled=!1},W=function(){},X=0,G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+X++,e}return Object(o.__extends)(e,t),e}(p(function(){})),Z=0,U=function(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e},K=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),q=function(){function t(t,e,n,o){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._id="mat-option-"+Z++,this._mostRecentViewValue="",this.onSelectionChange=new i.EventEmitter,this._stateChanges=new s.a}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(r.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(){var t=this._getHostElement();"function"==typeof t.focus&&t.focus()},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==h.d&&t.keyCode!==h.j||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new U(this,t))},t}();function J(t,e,n){if(n.length){for(var i=e.toArray(),o=n.toArray(),r=0,s=0;s<t+1;s++)i[s].group&&i[s].group===o[r]&&r++;return r}return 0}function Q(t,e,n,i){var o=t*e;return o<n?o:o+e>n+i?Math.max(0,o-i+e):n}var $=function(){}},YSh2:function(t,e,n){"use strict";n.d(e,"k",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return r}),n.d(e,"j",function(){return s}),n.d(e,"c",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return h}),n.d(e,"l",function(){return u}),n.d(e,"i",function(){return l}),n.d(e,"b",function(){return p}),n.d(e,"n",function(){return f}),n.d(e,"h",function(){return d}),n.d(e,"a",function(){return _}),n.d(e,"m",function(){return g});var i=9,o=13,r=27,s=32,a=35,c=36,h=37,u=38,l=39,p=40,f=48,d=57,_=65,g=90},bne5:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("6blF"),o=n("isby"),r=n("2Bdj"),s=n("67Y/");function a(t,e,n,c){return Object(r.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(s.a)(function(t){return Object(o.a)(t)?c.apply(void 0,t):c(t)})):new i.a(function(i){!function t(e,n,i,o,r){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,i,r),s=function(){return a.removeEventListener(n,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,i),s=function(){return c.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var h=e;e.addListener(n,i),s=function(){return h.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u<l;u++)t(e[u],n,i,o,r)}o.add(s)}(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}Object},caBT:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("6blF"),o=function(){function t(){this.intersectionObserver=new IntersectionObserver(this.observerCallback.bind(this),{rootMargin:"50% 50%",threshold:1}),this.elementSubscriberMap=new Map,this.__setBindings()}return t.prototype.__setBindings=function(){this.processStatus=this.processStatus.bind(this),this.getBufferResponse=this.getBufferResponse.bind(this)},t.prototype.observerCallback=function(t,e){var n=this;t.forEach(function(t){n.elementSubscriberMap.has(t.target)&&t.target.getBoundingClientRect().bottom>=0&&t.target.getBoundingClientRect().right>=0&&t.target.getBoundingClientRect().left<=t.rootBounds.right&&t.target.getBoundingClientRect().top<=t.rootBounds.bottom&&(n.elementSubscriberMap.get(t.target).next(!0),n.elementSubscriberMap.delete(t.target))})},t.prototype.observe=function(t){var e=this,n=new i.a(function(n){e.elementSubscriberMap.set(t,n)});return this.intersectionObserver.observe(t),n},t.prototype.unobserve=function(t){this.elementSubscriberMap.has(t)&&this.elementSubscriberMap.delete(t),this.intersectionObserver.unobserve(t)},t.prototype.processStatus=function(t){return 200===t.status||0===t.status?Promise.resolve(t):Promise.reject(t)},t.prototype.getBufferResponse=function(t){return t.arrayBuffer()},t.prototype.arrayBufferToBase64=function(t){var e="";return[].slice.call(new Uint8Array(t)).forEach(function(t){return e+=String.fromCharCode(t)}),Promise.resolve(window.btoa(e))},t.prototype.fetch=function(t){var e=this;return t=t.split(",")[0],new i.a(function(n){fetch(t).then(e.processStatus).then(e.getBufferResponse).then(e.arrayBufferToBase64).then(function(t){n.next(t),n.complete()}).catch(function(t){n.error(t),n.complete()})})},t}()},dWZg:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return h});var i,o=n("CcnG"),r=n("Ip0R"),s="undefined"!=typeof Intl&&Intl.v8BreakIterator,a=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.t)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(o.PLATFORM_ID,8))},token:t,providedIn:"root"}),t}();function c(){if(null==i&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return i=!0}}))}finally{i=i||!1}return i}var h=function(){}},dzgT:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("mrSG"),o=n("nkY7"),r=n("isby"),s=n("MGBS"),a=n("zotm"),c=n("IUTb"),h={};function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,i=null;return Object(o.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(c.a)(t,i).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.resultSelector))},t}(),p=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(e,t),e.prototype._next=function(t){this.values.push(h),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(Object(a.a)(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,o){var r=this.values,s=this.toRespond?r[n]===h?--this.toRespond:this.toRespond:0;r[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.a)},eDkP:function(t,e,n){"use strict";n.d(e,"c",function(){return T}),n.d(e,"e",function(){return j}),n.d(e,"b",function(){return B}),n.d(e,"a",function(){return N}),n.d(e,"f",function(){return S}),n.d(e,"h",function(){return P}),n.d(e,"d",function(){return g}),n.d(e,"i",function(){return C}),n.d(e,"g",function(){return V}),n.d(e,"j",function(){return M}),n.d(e,"k",function(){return Y});var i=n("CcnG"),o=n("n6gG"),r=n("qAlS"),s=n("Ip0R"),a=n("mrSG"),c=n("K9Ia"),h=n("6blF"),u=n("pugT"),l=n("t9fZ"),p=n("dWZg"),f=n("4c35"),d=n("YSh2"),_=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),g=function(){return function(t){var e=this;this.scrollStrategy=new _,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}).forEach(function(n){return e[n]=t[n]})}}();function m(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function y(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var v=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(o.c)(-this._previousScrollPosition.left),t.style.top=Object(o.c)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",i=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function b(){return Error("Scroll strategy has already been attached.")}var w=function(){function t(t,e,n,i){var o=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw b();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function O(t,e){return e.some(function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right})}function I(t,e){return e.some(function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right})}var E=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw b();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,o=n.height;O(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),C=function(){function t(t,e,n,i){var o=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new _},this.close=function(t){return new w(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new v(o._viewportRuler,o._document)},this.reposition=function(t){return new E(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=i}return t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(r.b),Object(i.inject)(r.d),Object(i.inject)(i.NgZone),Object(i.inject)(s.d))},token:t,providedIn:"root"}),t}(),S=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,i=n.length-1;i>-1;i--)if(n[i]._keydownEventSubscriptions>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(s.d))},token:t,providedIn:"root"}),t}(),j=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(s.d))},token:t,providedIn:"root"}),t}(),R=function(){function t(t,e,n,i,o,r,s){var a=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=o,this._keyboardDispatcher=r,this._document=s,this._backdropElement=null,this._backdropClick=new c.a,this._attachments=new c.a,this._detachments=new c.a,this._keydownEventsObservable=h.a.create(function(t){var e=a._keydownEvents.subscribe(t);return a._keydownEventSubscriptions++,function(){e.unsubscribe(),a._keydownEventSubscriptions--}}),this._keydownEvents=new c.a,this._keydownEventSubscriptions=0,i.scrollStrategy&&i.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(l.a)(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEventsObservable},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=Object(a.__assign)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(a.__assign)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=Object(o.c)(this._config.width),t.height=Object(o.c)(this._config.height),t.minWidth=Object(o.c)(this._config.minWidth),t.minHeight=Object(o.c)(this._config.minHeight),t.maxWidth=Object(o.c)(this._config.maxWidth),t.maxHeight=Object(o.c)(this._config.maxHeight)},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n,i=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}},t.prototype._toggleClasses=function(t,e,n){var i=t.classList;Object(o.a)(e).forEach(function(t){n?i.add(t):i.remove(t)})},t}(),k=function(){function t(t,e,n,i){var o=this;this._viewportRuler=e,this._document=n,this._platform=i,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new c.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=h.a.create(function(t){var e=o._positionChanges.subscribe(t);return o._positionChangeSubscriptions++,function(){e.unsubscribe(),o._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,n=this._overlayRect,i=this._viewportRect,o=[],r=0,s=this._preferredPositions;r<s.length;r++){var a=s[r],c=this._getOriginPoint(e,a),h=this._getOverlayPoint(c,n,a),u=this._getOverlayFit(h,n,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(u,h,i)?o.push({position:a,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!t||t.overlayFit.visibleArea<u.visibleArea)&&(t={overlayFit:u,overlayPoint:h,originPoint:c,position:a,overlayRect:n})}if(o.length){for(var l=null,p=-1,f=0,d=o;f<d.length;f++){var _=d[f],g=_.boundingBoxRect.width*_.boundingBoxRect.height*(_.position.weight||1);g>p&&(p=g,l=_)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t instanceof i.ElementRef?t.nativeElement:t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;n="start"==e.originX?i:o}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var o=t.x,r=t.y,s=this._getOffset(i,"x"),a=this._getOffset(i,"y");s&&(o+=s),a&&(r+=a);var c=0-r,h=r+e.height-n.height,u=this._subtractOverflows(e.width,0-o,o+e.width-n.width),l=this._subtractOverflows(e.height,c,h),p=u*l;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:l===e.height,fitsInViewportHorizontally:u==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,o=n.right-e.x,r=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=r&&r<=i)&&(t.fitsInViewportHorizontally||null!=s&&s<=o)}},t.prototype._pushOverlayOnScreen=function(t,e){var n=this._viewportRect,i=Math.max(t.x+e.width-n.right,0),o=Math.max(t.y+e.height-n.bottom,0),r=Math.max(n.top-t.y,0),s=Math.max(n.left-t.x,0);return{x:t.x+(e.width<=n.width?s||-i:n.left-t.x),y:t.y+(e.height<=n.height?r||-o:n.top-t.y)}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t,this._positionChangeSubscriptions>0){var n=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<n.length;o++)n[o].style.transformOrigin=e+" "+i}},t.prototype._calculateBoundingBoxRect=function(t,e){var n,i,o,r,s,a,c=this._viewportRect,h=this._isRtl();if("top"===e.overlayY)i=t.y,n=c.bottom-t.y;else if("bottom"===e.overlayY)n=c.height-(o=c.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var u=Math.min(c.bottom-t.y,t.y-c.left),l=this._lastBoundingBoxSize.height;i=t.y-u,(n=2*u)>l&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-l/2)}if("end"===e.overlayX&&!h||"start"===e.overlayX&&h)a=c.right-t.x+this._viewportMargin,r=t.x-c.left;else if("start"===e.overlayX&&!h||"end"===e.overlayX&&h)s=t.x,r=c.right-t.x;else{u=Math.min(c.right-t.x,t.x-c.top);var p=this._lastBoundingBoxSize.width;s=t.x-u,(r=2*u)>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-p/2)}return{top:i,left:s,bottom:o,right:a,width:r,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(o.c)(n.height),i.top=Object(o.c)(n.top),i.bottom=Object(o.c)(n.bottom),i.width=Object(o.c)(n.width),i.left=Object(o.c)(n.left),i.right=Object(o.c)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Object(o.c)(r)),s&&(i.maxWidth=Object(o.c)(s))}this._lastBoundingBoxSize=n,x(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){x(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){x(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};this._hasExactPosition()?(x(n,this._getExactOverlayY(e,t)),x(n,this._getExactOverlayX(e,t))):n.position="static";var i="",o=this._getOffset(e,"x"),r=this._getOffset(e,"y");o&&(i+="translateX("+o+"px) "),r&&(i+="translateY("+r+"px)"),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),x(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e){var n={top:null,bottom:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":n.top=Object(o.c)(i.y),n},t.prototype._getExactOverlayX=function(t,e){var n={left:null,right:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":n.left=Object(o.c)(i.x),n},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:I(t,n),isOriginOutsideView:O(t,n),isOverlayClipped:I(e,n),isOverlayOutsideView:O(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getDirection()},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(function(t){y("originX",t.originX),m("originY",t.originY),y("overlayX",t.overlayX),m("overlayY",t.overlayY)})},t}();function x(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var D=function(){function t(t,e,n,i,o,r){this._preferredPositions=[],this._positionStrategy=new k(n,i,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,e,n,i){var o=new function(t,e,n,i){this.offsetX=n,this.offsetY=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}(t,e,n,i);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),A=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper")},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===n.width?"0":this._leftOffset,t.marginTop="100%"===n.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,"100%"===n.width?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems="100%"===n.height?"flex-start":this._alignItems}},t.prototype.dispose=function(){},t}(),P=function(){function t(t,e,n){this._viewportRuler=t,this._document=e,this._platform=n}return t.prototype.global=function(){return new A},t.prototype.connectedTo=function(t,e,n){return new D(e,n,t,this._viewportRuler,this._document)},t.prototype.flexibleConnectedTo=function(t){return new k(t,this._viewportRuler,this._document,this._platform)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(r.d),Object(i.inject)(s.d),Object(i.inject)(p.a,8))},token:t,providedIn:"root"}),t}(),F=0,T=function(){function t(t,e,n,i,o,r,s,a,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=r,this._ngZone=s,this._document=a,this._directionality=c}return t.prototype.create=function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),o=new g(t);return o.direction=o.direction||this._directionality.value,new R(i,e,n,o,this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+F++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(i.ApplicationRef)),new f.e(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),L=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],M=new i.InjectionToken("cdk-connected-overlay-scroll-strategy"),B=function(t){this.elementRef=t},N=function(){function t(t,e,n,o,r){this._overlay=t,this._scrollStrategy=o,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.a.EMPTY,this.viewportMargin=0,this.scrollStrategy=this._scrollStrategy(),this.open=!1,this.backdropClick=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.attach=new i.EventEmitter,this.detach=new i.EventEmitter,this._templatePortal=new f.h(e,n)}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._setPositions(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._setPositions(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(o.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lockPosition",{get:function(){return this._lockPosition},set:function(t){this._lockPosition=Object(o.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flexibleDiemsions",{get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=Object(o.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"growAfterOpen",{get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=Object(o.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"push",{get:function(){return this._push},set:function(t){this._push=Object(o.b)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyOverlay()},t.prototype.ngOnChanges=function(t){this._position&&(t.positions&&this._position.withPositions(this.positions),t.lockPosition&&this._position.withLockedPosition(this.lockPosition),t.origin&&(this._position.setOrigin(this.origin.elementRef),this.open&&this._position.apply())),t.open&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=L),this._overlayRef=this._overlay.create(this._buildConfig())},t.prototype._buildConfig=function(){var t=this._position=this._createPositionStrategy(),e=new g({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),e},t.prototype._createPositionStrategy=function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef).withFlexibleDimensions(this.flexibleDiemsions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition);return this._setPositions(e),e.positionChanges.subscribe(function(e){return t.positionChange.emit(e)}),e},t.prototype._setPositions=function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY}});t.withPositions(n)},t.prototype._attachOverlay=function(){var t=this;this._overlayRef?this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}):(this._createOverlay(),this._overlayRef.keydownEvents().subscribe(function(e){e.keyCode===d.e&&t._detachOverlay()})),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop&&(this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}))},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()},t.prototype._destroyOverlay=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()},t}();function Y(t){return function(){return t.scrollStrategies.reposition()}}var V=function(){}},lLAP:function(t,e,n){"use strict";n.d(e,"c",function(){return w}),n.d(e,"b",function(){return I}),n.d(e,"d",function(){return E}),n.d(e,"f",function(){return k}),n.d(e,"e",function(){return x}),n.d(e,"g",function(){return D}),n.d(e,"a",function(){return A});var i=n("Ip0R"),o=n("CcnG"),r=n("K9Ia"),s=n("pugT"),a=n("F/XL"),c=n("YSh2"),h=n("xMyE"),u=n("Gi3i"),l=n("VnD/"),p=n("67Y/"),f=n("t9fZ"),d=n("mrSG"),_=n("dWZg"),g=(n("n6gG")," ");function m(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var y=0,v=new Map,b=null,w=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&(v.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._canBeDescribed(t,e)){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=v.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),b&&0===b.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");b&&this._deleteMessagesContainer(),v.clear()},t.prototype._createMessageElement=function(t){var e=this._document.createElement("div");e.setAttribute("id","cdk-describedby-message-"+y++),e.appendChild(this._document.createTextNode(t)),this._createMessagesContainer(),b.appendChild(e),v.set(t,{messageElement:e,referenceCount:0})},t.prototype._deleteMessageElement=function(t){var e=v.get(t),n=e&&e.messageElement;b&&n&&b.removeChild(n),v.delete(t)},t.prototype._createMessagesContainer=function(){if(!b){var t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(b=this._document.createElement("div")).id="cdk-describedby-message-container",b.setAttribute("aria-hidden","true"),b.style.display="none",this._document.body.appendChild(b)}},t.prototype._deleteMessagesContainer=function(){b&&b.parentNode&&(b.parentNode.removeChild(b),b=null)},t.prototype._removeCdkDescribedByReferenceIds=function(t){var e=m(t,"aria-describedby").filter(function(t){return 0!=t.indexOf("cdk-describedby-message")});t.setAttribute("aria-describedby",e.join(" "))},t.prototype._addMessageReference=function(t,e){var n,i,o,r,s=v.get(e);o=s.messageElement.id,(r=m(n=t,i="aria-describedby")).some(function(t){return t.trim()==o.trim()})||(r.push(o.trim()),n.setAttribute(i,r.join(g))),t.setAttribute("cdk-describedby-host",""),s.referenceCount++},t.prototype._removeMessageReference=function(t,e){var n,i,o,r,s=v.get(e);s.referenceCount--,o=s.messageElement.id,r=m(n=t,i="aria-describedby").filter(function(t){return t!=o.trim()}),n.setAttribute(i,r.join(g)),t.removeAttribute("cdk-describedby-host")},t.prototype._isElementDescribedByMessage=function(t,e){var n=m(t,"aria-describedby"),i=v.get(e),o=i&&i.messageElement.id;return!!o&&-1!=n.indexOf(o)},t.prototype._canBeDescribed=function(t,e){return t.nodeType===this._document.ELEMENT_NODE&&null!=e&&!!(""+e).trim()},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(i.d))},token:t,providedIn:"root"}),t}(),O=function(){function t(t){var e=this;this._items=t,this._activeItemIndex=-1,this._wrap=!1,this._letterKeyStream=new r.a,this._typeaheadSubscription=s.a.EMPTY,this._vertical=!0,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new r.a,this.change=new r.a,t instanceof o.QueryList&&t.changes.subscribe(function(t){if(e._activeItem){var n=t.toArray().indexOf(e._activeItem);n>-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}})}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(h.a)(function(t){return e._pressedLetters.push(t)}),Object(u.a)(t),Object(l.a)(function(){return e._pressedLetters.length>0}),Object(p.a)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var o=(e._activeItemIndex+i)%n.length,r=n[o];if(!e._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(o);break}}e._pressedLetters=[]}),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)},t.prototype.onKeydown=function(t){var e=t.keyCode;switch(e){case c.k:return void this.tabOut.next();case c.b:if(this._vertical){this.setNextItemActive();break}return;case c.l:if(this._vertical){this.setPreviousItemActive();break}return;case c.i:if("ltr"===this._horizontal){this.setNextItemActive();break}if("rtl"===this._horizontal){this.setPreviousItemActive();break}return;case c.g:if("ltr"===this._horizontal){this.setPreviousItemActive();break}if("rtl"===this._horizontal){this.setNextItemActive();break}return;default:return void(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.m||e>=c.n&&e<=c.h)&&this._letterKeyStream.next(String.fromCharCode(e)))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);this._activeItemIndex=n,this._activeItem=e[n]},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof o.QueryList?this._items.toArray():this._items},t}(),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(O),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return Object(d.__extends)(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(O),C=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e=function(t){try{return t.frameElement}catch(t){return null}}(t.ownerDocument.defaultView||window);if(e){var n=e&&e.nodeName.toLowerCase();if(-1===j(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}var i=t.nodeName.toLowerCase(),o=j(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||S(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(_.a))},token:t,providedIn:"root"}),t}();function S(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function j(t){if(!S(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var R=function(){function t(t,e,n,i,o){void 0===o&&(o=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",function(){return t.focusLastTabbableElement()})),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",function(){return t.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 7.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 7.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 7.0.0",t),t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype.hasAttached=function(){return this._hasAttached},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(t)},t}(),k=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new R(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(C),Object(o.inject)(o.NgZone),Object(o.inject)(i.d))},token:t,providedIn:"root"}),t}(),x=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return Object(a.a)(null);if(this._elementInfo.has(t)){var i=this._elementInfo.get(t);return i.checkChildren=e,i.subject.asObservable()}var o={unlisten:function(){},checkChildren:e,subject:new r.a};this._elementInfo.set(t,o),this._incrementMonitoredElementCount();var s=function(e){return n._onFocus(e,t)},c=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",s,!0),t.addEventListener("blur",c,!0)}),o.unlisten=function(){t.removeEventListener("focus",s,!0),t.removeEventListener("blur",c,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},i=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",i,!Object(_.c)()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",i,!Object(_.c)()||{passive:!0,capture:!0}),window.removeEventListener("focus",o),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null})})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(o.NgZone),Object(o.inject)(_.a))},token:t,providedIn:"root"}),t}();function D(t){return 0===t.buttons}var A=function(){}},n6gG:function(t,e,n){"use strict";function i(t){return null!=t&&""+t!="false"}function o(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function r(t){return Array.isArray(t)?t:[t]}function s(t){return null==t?"":"string"==typeof t?t:t+"px"}n.d(e,"b",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return s})},nmLA:function(t,e,n){"use strict";var i=n("CcnG"),o=n("Ip0R");n("tHof"),n("caBT"),n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var r=i["\u0275crt"]({encapsulation:0,styles:[["div.container[_ngcontent-%COMP%]{position:relative}img[_ngcontent-%COMP%]{opacity:0;position:absolute;top:0;left:0;transition:opacity .15s ease-in}img.loaded[_ngcontent-%COMP%]{opacity:1}div.error[_ngcontent-%COMP%]{background-color:#fbfbfb;color:#777;width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:space-around;text-align:center;opacity:0;transition:opacity .15s ease-in;pointer-events:none}div.error.show[_ngcontent-%COMP%]{opacity:1;pointer-events:auto}"]],data:{}});function s(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","error"]],[[2,"show",null],[4,"height",null]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.loadError&&!n.isLoading,n.getHeight()),t(e,1,0,n.loadErrorMessage)})}function a(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","container"]],[[4,"width",null],[4,"height",null]],null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"img",[],[[2,"loaded",null],[8,"alt",0],[8,"title",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,s)),i["\u0275did"](3,16384,null,0,o.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,!0===e.component.showError)},function(t,e){var n=e.component;t(e,0,0,n.getWidth(),n.getHeight()),t(e,1,0,n.loaded&&!n.isLoading,i["\u0275inlineInterpolate"](1,"",n.alt,""),i["\u0275inlineInterpolate"](1,"",n.title,""),n.getWidth(),n.getHeight())})}},p0Sj:function(t,e,n){"use strict";var i=n("IUTb"),o=n("PU8L"),r=n("G5J1"),s=n("nkY7"),a=n("F/XL"),c=n("0/uQ"),h=n("Txjg");function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Object(s.a)(n)?t.pop():n=null;var u=t.length;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&Object(s.a)(t[1])?Object(c.a)(t[0]):Object(h.a)()(a.a.apply(void 0,t))}(1!==u||n?u>0?Object(i.a)(t,n):Object(r.b)(n):Object(o.a)(t[0]),e)}}n.d(e,"a",function(){return u})},qAlS:function(t,e,n){"use strict";var i=n("dWZg"),o=n("CcnG"),r=n("bne5"),s=n("F/XL"),a=n("K9Ia"),c=n("6blF"),h=n("p0ib"),u=n("T1DM"),l=n("mrSG"),p=n("Ehmk"),f=n("eihs"),d=n("MGBS"),_=n("zotm"),g=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.durationSelector))},t}(),m=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return l.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(p.a)(this.durationSelector)(t);if(e===f.a)this.destination.error(f.a.e);else{var n=Object(_.a)(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(d.a),y=n("gI3B");function v(t,e){return void 0===e&&(e=u.a),n=function(){return Object(y.a)(t,e)},function(t){return t.lift(new g(n))};var n}var b=n("VnD/");n.d(e,"b",function(){return w}),n.d(e,"d",function(){return O}),n.d(e,"c",function(){return I}),n.d(e,"a",function(){return E});var w=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new a.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?c.a.create(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(v(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Object(s.a)()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(b.a)(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,o){e._scrollableContainsElement(o,t)&&n.push(o)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Object(r.a)(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(o.NgZone),Object(o.inject)(i.a))},token:t,providedIn:"root"}),t}(),O=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(h.a)(Object(r.a)(window,"resize"),Object(r.a)(window,"orientationchange"))}):Object(s.a)(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(v(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=Object(o.defineInjectable)({factory:function(){return new t(Object(o.inject)(i.a),Object(o.inject)(o.NgZone))},token:t,providedIn:"root"}),t}(),I={provide:O,deps:[[new o.Optional,new o.SkipSelf,O],i.a,o.NgZone],useFactory:function(t,e,n){return t||new O(e,n)}},E=function(){}},tHof:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("CcnG"),o=(n("caBT"),function(){function t(t,e,n){this.elementRef=t,this.changeDetectorRef=e,this.lazyImgService=n,this.showError=!0,this.load=new i.EventEmitter,this.imageType=null,this.isLoading=!1,this.loaded=!1,this.loadError=!1,this.loadErrorMessage="Error"}return t.prototype.ngOnInit=function(){this.getImageTypeFromSrc(),this.setupIntersectionObserver()},t.prototype.ngOnDestroy=function(){this.lazyImgService.unobserve(this.elementRef.nativeElement)},t.prototype.getImageTypeFromSrc=function(){if(this.src){var e=this.src.split("/").pop().split(".").pop();this.imageType=-1===t.SUPPORTED_IMAGE_FORMATS.indexOf(e)?null:e}},t.prototype.setupIntersectionObserver=function(){var t=this;this.lazyImgService.observe(this.elementRef.nativeElement).subscribe(function(e){e&&t.loadImage()})},t.prototype.loadImage=function(){if(this.imageType)this.loaded||(this.isLoading=!0,this.lazyImgService.fetch(this.src).subscribe(this.handleResponse.bind(this),this.handleError.bind(this)));else{var t=new Error("Image type not supported: Only supports jpeg, jpg, png, gif, ico, bmp, svg");this.handleError({error:t,status:"400"}),this.load.emit(!1)}},t.prototype.handleResponse=function(t){var e=this,n="data:image/"+this.imageType+";base64,";this.elementRef.nativeElement.querySelector("img").src=n+t,requestAnimationFrame(function(){requestAnimationFrame(function(){e.isLoading=!1,e.loaded=!0,e.loadError=!1,e.changeDetectorRef.detectChanges()})})},t.prototype.handleError=function(t){this.isLoading=!1,this.loaded=!1,this.loadError=!0,this.loadErrorMessage=t.status.toString(),this.load.emit(!1)},t.prototype.getWidth=function(){return this.width?this.width+"px":"auto"},t.prototype.getHeight=function(){return this.height?this.height+"px":"auto"},t.SUPPORTED_IMAGE_FORMATS=["jpeg","jpg","png","gif","ico","bmp","svg"],t}())}}]);