-
Notifications
You must be signed in to change notification settings - Fork 2
/
1-es2015.6de6788787a110055b42.js
2 lines (2 loc) · 51.4 KB
/
1-es2015.6de6788787a110055b42.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/ck9":function(t,e,i){"use strict";i.d(e,"a",function(){return s});class s{createFake(t){const e=document.documentElement,i="rtl"===e.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[i?"right":"left"]="-9999px";const s=window.pageYOffset||e.scrollTop;this.fakeElem.style.top=s+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=t,document.body.appendChild(this.fakeElem),this.fakeElem.select(),this.fakeElem.setSelectionRange(0,this.fakeElem.value.length)}removeFake(){this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}copyText(t){try{return this.createFake(t),document.execCommand("copy")}catch(e){return!1}finally{this.removeFake()}}}},"0GXo":function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"c",function(){return u}),i.d(e,"a",function(){return _});var s=i("8Y7J"),n=i("SVse"),o=i("6CTB"),r=i("dFDH"),a=i("vVVL"),h=i("/ck9"),l=i("vHPH"),c=s.mb({encapsulation:2,styles:[],data:{}});function d(t){return s.Gb(0,[(t()(),s.ob(0,0,null,null,4,"button",[["class","material-icons copy-button no-print"],["title","Copy code snippet"]],[[1,"aria-label",0]],[[null,"click"]],function(t,e,i){var s=!0;return"click"===e&&(s=!1!==t.component.doCopy()&&s),s},null,null)),(t()(),s.Eb(-1,null,["\n "])),(t()(),s.ob(2,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),s.Eb(-1,null,["content_copy"])),(t()(),s.Eb(-1,null,["\n "]))],null,function(t,e){t(e,0,0,e.component.ariaLabel)})}function u(t){return s.Gb(0,[s.Cb(402653184,1,{codeContainer:0}),(t()(),s.ob(1,0,null,null,6,"pre",[],[[8,"className",0]],null,null,null,null)),(t()(),s.Eb(-1,null,[" "])),(t()(),s.eb(16777216,null,null,1,null,d)),s.nb(4,16384,null,0,n.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.Eb(-1,null,["\n "])),(t()(),s.ob(6,0,[[1,0],["codeContainer",1]],null,0,"code",[["class","animated fadeIn"]],null,null,null,null,null)),(t()(),s.Eb(-1,null,["\n "]))],function(t,e){t(e,4,0,!e.component.hideCopy)},function(t,e){t(e,1,0,s.qb(1,"prettyprint lang-",e.component.language,""))})}function p(t){return s.Gb(0,[(t()(),s.ob(0,0,null,null,1,"aio-code",[],null,null,null,u,c)),s.nb(1,573440,null,0,o.a,[r.b,a.a,h.a,l.a],null,null)],null,null)}var _=s.kb("aio-code",o.a,p,{hideCopy:"hideCopy",language:"language",linenums:"linenums",path:"path",region:"region",header:"header"},{codeFormatted:"codeFormatted"},[])},"6CTB":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var s=i("8Y7J"),n=i("vkgz");const o=10;class r{constructor(t,e,i,n){this.snackbar=t,this.pretty=e,this.copier=i,this.logger=n,this.ariaLabel="",this.codeFormatted=new s.m}set code(t){this._code=t,this._code&&this._code.trim()?this.formatDisplayedCode():this.showMissingCodeMessage()}get code(){return this._code}set header(t){this._header=t,this.ariaLabel=this.header?`Copy code snippet from ${this.header}`:""}get header(){return this._header}ngOnChanges(){this.code&&this.formatDisplayedCode()}formatDisplayedCode(){const t=function(t){let e=Number.MAX_VALUE;const i=t.split("\n");return i.forEach(t=>{const i=t.search(/\S/);-1!==i&&(e=Math.min(i,e))}),i.map(t=>t.substr(e)).join("\n").trim()}(this.code);this.setCodeHtml(t),this.codeText=this.getCodeText(),this.pretty.formatCode(t,this.language,this.getLinenums(t)).pipe(Object(n.a)(()=>this.codeFormatted.emit())).subscribe(t=>this.setCodeHtml(t),t=>{})}showMissingCodeMessage(){const t=this.path?this.path+(this.region?"#"+this.region:""):"";this.setCodeHtml(`<p class="code-missing">The code sample is missing${t?` for\n${t}`:"."}</p>`)}setCodeHtml(t){this.codeContainer.nativeElement.innerHTML=t}getCodeText(){return this.codeContainer.nativeElement.textContent}doCopy(){const t=this.codeText;this.copier.copyText(t)?(this.logger.log("Copied code to clipboard:",t),this.snackbar.open("Code Copied","",{duration:800})):(this.logger.error(new Error(`ERROR copying code to clipboard: "${t}"`)),this.snackbar.open("Copy failed. Please try again!","",{duration:800}))}getLinenums(t){const e="boolean"==typeof this.linenums?this.linenums:"true"===this.linenums||"false"!==this.linenums&&("string"==typeof this.linenums?parseInt(this.linenums,10):this.linenums);return null==e||isNaN(e)?(t.match(/\n/g)||[]).length>o:e}}},QQfA:function(t,e,i){"use strict";i.d(e,"a",function(){return T}),i.d(e,"c",function(){return P}),i.d(e,"d",function(){return S}),i.d(e,"f",function(){return F}),i.d(e,"b",function(){return O}),i.d(e,"g",function(){return x}),i.d(e,"e",function(){return X}),i.d(e,"h",function(){return V}),i.d(e,"i",function(){return z});var s=i("KCVW"),n=i("hOhj"),o=i("SVse"),r=i("8Y7J"),a=i("XNiG"),h=i("quSY"),l=i("HDdC"),c=i("VRyK"),d=i("IzEk"),u=i("1G5W"),p=i("/HVE"),_=i("zMNK");i("dvZr");class f{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(s.c)(-this._previousScrollPosition.left),t.style.top=Object(s.c)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,s=e.scrollBehavior||"",n=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,i.scrollBehavior=n}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function m(){return Error("Scroll strategy has already been attached.")}class g{constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=(()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())})}attach(t){if(this._overlayRef)throw m();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class b{enable(){}disable(){}attach(){}}function y(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function v(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class w{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw m();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();y(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}const x=function(){class t{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=(()=>new b),this.close=(t=>new g(this._scrollDispatcher,this._ngZone,this._viewportRuler,t)),this.block=(()=>new f(this._viewportRuler,this._document)),this.reposition=(t=>new w(this._scrollDispatcher,this._viewportRuler,this._ngZone,t)),this._document=s}}return t.ngInjectableDef=Object(r.Ib)({factory:function(){return new t(Object(r.Mb)(n.b),Object(r.Mb)(n.e),Object(r.Mb)(r.y),Object(r.Mb)(o.d))},token:t,providedIn:"root"}),t}();class O{constructor(t){this.scrollStrategy=new b,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t&&Object.keys(t).forEach(e=>{void 0!==t[e]&&(this[e]=t[e])})}}class k{constructor(t,e,i,s,n){this.offsetX=i,this.offsetY=s,this.panelClass=n,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class C{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function R(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function E(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}const S=function(){class t{constructor(t){this._attachedOverlays=[],this._keydownListener=(t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}}),this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)}}return t.ngInjectableDef=Object(r.Ib)({factory:function(){return new t(Object(r.Mb)(o.d))},token:t,providedIn:"root"}),t}(),P=function(){class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.ngInjectableDef=Object(r.Ib)({factory:function(){return new t(Object(r.Mb)(o.d))},token:t,providedIn:"root"}),t}();class j{constructor(t,e,i,s,n,o,r,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=o,this._document=r,this._location=c,this._backdropElement=null,this._backdropClick=new a.a,this._attachments=new a.a,this._detachments=new a.a,this._locationChanges=h.a.EMPTY,this._keydownEventsObservable=new l.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new a.a,this._keydownEventSubscriptions=0,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(d.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign({},this._config,t),this._updateElementSize()}setDirection(t){this._config=Object.assign({},this._config,{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){const t=this._pane.style;t.width=Object(s.c)(this._config.width),t.height=Object(s.c)(this._config.height),t.minWidth=Object(s.c)(this._config.minWidth),t.minHeight=Object(s.c)(this._config.minHeight),t.maxWidth=Object(s.c)(this._config.maxWidth),t.maxHeight=Object(s.c)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",t=>this._backdropClick.next(t)),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&e.parentNode&&e.parentNode.removeChild(e),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Object(s.a)(e).forEach(t=>{i?n.add(t):n.remove(t)})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(u.a)(Object(c.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const B="cdk-overlay-connected-position-bounding-box";class A{constructor(t,e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n,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 a.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this._appliedPanelClasses=[],this.positionChanges=new l.a(t=>{const e=this._positionChanges.subscribe(t);return this._positionChangeSubscriptions++,()=>{e.unsubscribe(),this._positionChangeSubscriptions--}}),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add(B),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,s=[];let n;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),h=this._getOverlayFit(a,e,i,o);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(h,a,i)?s.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!n||n.overlayFit.visibleArea<h.visibleArea)&&(n={overlayFit:h,overlayPoint:a,originPoint:r,position:o,overlayRect:e})}if(s.length){let t=null,e=-1;for(const i of s){const s=i.boundingBoxRect.width*i.boundingBoxRect.height*(i.position.weight||1);s>e&&(e=s,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&D(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this.scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,s;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,n=this._isRtl()?t.left:t.right;i="start"==e.originX?s:n}return{x:i,y:s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}_getOverlayPoint(t,e,i){let s,n;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+s,y:t.y+(n="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height)}}_getOverlayFit(t,e,i,s){let{x:n,y:o}=t,r=this._getOffset(s,"x"),a=this._getOffset(s,"y");r&&(n+=r),a&&(o+=a);let h=0-o,l=o+e.height-i.height,c=this._subtractOverflows(e.width,0-n,n+e.width-i.width),d=this._subtractOverflows(e.height,h,l),u=c*d;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:c==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,n=i.right-e.x,o=this._overlayRef.getConfig().minHeight,r=this._overlayRef.getConfig().minWidth,a=t.fitsInViewportHorizontally||null!=r&&r<=n;return(t.fitsInViewportVertically||null!=o&&o<=s)&&a}}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,n=Math.max(t.x+e.width-s.right,0),o=Math.max(t.y+e.height-s.bottom,0),r=Math.max(s.top-i.top-t.y,0),a=Math.max(s.left-i.left-t.x,0);let h=0,l=0;return this._previousPushAmount={x:h=e.width<=s.width?a||-n:t.x<this._viewportMargin?s.left-i.left-t.x:0,y:l=e.height<=s.height?r||-o:t.y<this._viewportMargin?s.top-i.top-t.y:0},{x:t.x+h,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChangeSubscriptions>0){const e=this._getScrollVisibility(),i=new C(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,s=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let n=0;n<e.length;n++)e[n].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,s=this._isRtl();let n,o,r,a,h,l;if("top"===e.overlayY)n=i.height-(o=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)n=i.height-(r=i.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{const e=Math.min(i.bottom-t.y+i.top,t.y),s=this._lastBoundingBoxSize.height;o=t.y-e,(n=2*e)>s&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)l=i.right-t.x+this._viewportMargin,a=t.x-i.left;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)h=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),s=this._lastBoundingBoxSize.width;h=t.x-e,(a=2*e)>s&&!this._isInitialRender&&!this._growAfterOpen&&(h=t.x-s/2)}return{top:o,left:h,bottom:r,right:l,width:a,height:n}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=Object(s.c)(i.height),n.top=Object(s.c)(i.top),n.bottom=Object(s.c)(i.bottom),n.width=Object(s.c)(i.width),n.left=Object(s.c)(i.left),n.right=Object(s.c)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=Object(s.c)(t)),o&&(n.maxWidth=Object(s.c)(o))}this._lastBoundingBoxSize=i,D(this._boundingBox.style,n)}_resetBoundingBoxStyles(){D(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){D(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={};if(this._hasExactPosition()){const s=this._viewportRuler.getViewportScrollPosition();D(i,this._getExactOverlayY(e,t,s)),D(i,this._getExactOverlayX(e,t,s))}else i.position="static";let s="",n=this._getOffset(e,"x"),o=this._getOffset(e,"y");n&&(s+=`translateX(${n}px) `),o&&(s+=`translateY(${o}px)`),i.transform=s.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(i.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(i.maxWidth=""),D(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:null,bottom:null},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=r,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)}px`:n.top=Object(s.c)(o.y),n}_getExactOverlayX(t,e,i){let n,o={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"==(n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?o.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}px`:o.left=Object(s.c)(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this.scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:v(t,i),isOriginOutsideView:y(t,i),isOverlayClipped:v(e,i),isOverlayOutsideView:y(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{E("originX",t.originX),R("originY",t.originY),E("overlayX",t.overlayX),R("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(s.a)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;return t instanceof r.k?t.nativeElement.getBoundingClientRect():t instanceof HTMLElement?t.getBoundingClientRect():{top:t.y,bottom:t.y,left:t.x,right:t.x,height:0,width:0}}}function D(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}class M{constructor(t,e,i,s,n,o,r){this._preferredPositions=[],this._positionStrategy=new A(i,s,n,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,s){const n=new k(t,e,i,s);return this._preferredPositions.push(n),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const L="cdk-global-overlay-wrapper";class I{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(L),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===i.width?"0":this._leftOffset,t.marginTop="100%"===i.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,"100%"===i.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%"===i.height?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(L),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}const F=function(){class t{constructor(t,e,i,s){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=s}global(){return new I}connectedTo(t,e,i){return new M(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new A(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.ngInjectableDef=Object(r.Ib)({factory:function(){return new t(Object(r.Mb)(n.e),Object(r.Mb)(o.d),Object(r.Mb)(p.a),Object(r.Mb)(P))},token:t,providedIn:"root"}),t}();let H=0;class T{constructor(t,e,i,s,n,o,r,a,h,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=s,this._keyboardDispatcher=n,this._injector=o,this._ngZone=r,this._document=a,this._directionality=h,this._location=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),s=this._createPortalOutlet(i),n=new O(t);return n.direction=n.direction||this._directionality.value,new j(s,e,i,n,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${H++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.g)),new _.e(t,this._componentFactoryResolver,this._appRef,this._injector)}}const V=new r.p("cdk-connected-overlay-scroll-strategy");function z(t){return()=>t.scrollStrategies.reposition()}class X{}},V90o:function(t,e,i){"use strict";i.d(e,"a",function(){return s});class s{}},dFDH:function(t,e,i){"use strict";var s=i("XNiG"),n=i("8Y7J"),o=(i("GS7A"),i("zMNK")),r=i("IzEk"),a=i("1G5W"),h=i("QQfA"),l=i("5GAg"),c=i("/HVE"),d=i("itXk"),u=i("7Hc7"),p=i("HDdC"),_=i("Kj3r"),f=i("lJxs"),m=i("JX91"),g=i("KCVW");const b=new Set;let y;const v=function(){class t{constructor(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this.platform.WEBKIT&&function(t){if(!b.has(t))try{y||((y=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),b.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.ngInjectableDef=Object(n.Ib)({factory:function(){return new t(Object(n.Mb)(c.a))},token:t,providedIn:"root"}),t}();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}const x=function(){class t{constructor(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=new s.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return O(Object(g.a)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=O(Object(g.a)(t)).map(t=>this._registerQuery(t).observable);return Object(d.a)(e).pipe(Object(_.a)(0,u.a),Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this.mediaMatcher.matchMedia(t),i={observable:new p.a(t=>{const i=e=>this.zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(m.a)(e),Object(f.a)(e=>({query:t,matches:e.matches})),Object(a.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.ngInjectableDef=Object(n.Ib)({factory:function(){return new t(Object(n.Mb)(v),Object(n.Mb)(n.y))},token:t,providedIn:"root"}),t}();function O(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const k={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};i.d(e,"e",function(){return j}),i.d(e,"b",function(){return A}),i.d(e,"d",function(){return P}),i.d(e,"a",function(){return R}),i.d(e,"c",function(){return E}),i.d(e,"f",function(){return C}),i.d(e,"g",function(){return S});class C{constructor(t,e){this._overlayRef=e,this._afterDismissed=new s.a,this._afterOpened=new s.a,this._onAction=new s.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),t)}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const R=new n.p("MatSnackBarData");class E{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}class S{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}class P extends o.a{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new s.a,this._onEnter=new s.a,this._animationState="void",this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(r.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}class j{}const B=new n.p("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new E}}),A=function(){class t{constructor(t,e,i,s,n,o){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=s,this._parentSnackBar=n,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const s=Object.assign({},this._defaultConfig,i);return s.data={message:t,action:e},s.announcementMessage||(s.announcementMessage=t),this.openFromComponent(S,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new o.f(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[E,e]])),s=new o.d(P,e.viewContainerRef,i),n=t.attach(s);return n.instance.snackBarConfig=e,n.instance}_attach(t,e){const i=Object.assign({},new E,this._defaultConfig,e),s=this._createOverlay(i),h=this._attachSnackBarContainer(s,i),l=new C(h,s);if(t instanceof n.L){const e=new o.h(t,null,{$implicit:i.data,snackBarRef:l});l.instance=h.attachTemplatePortal(e)}else{const e=this._createInjector(i,l),s=new o.d(t,void 0,e),n=h.attachComponentPortal(s);l.instance=n.instance}return this._breakpointObserver.observe(k.Handset).pipe(Object(a.a)(s.detachments().pipe(Object(r.a)(1)))).subscribe(t=>{t.matches?s.overlayElement.classList.add("mat-snack-bar-handset"):s.overlayElement.classList.remove("mat-snack-bar-handset")}),this._animateSnackBar(l,i),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new h.b;e.direction=t.direction;let i=this._overlay.position().global();const s="rtl"===t.direction,n="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!s||"end"===t.horizontalPosition&&s,o=!n&&"center"!==t.horizontalPosition;return n?i.left("0"):o?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new o.f(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[C,e],[R,t.data]]))}}return t.ngInjectableDef=Object(n.Ib)({factory:function(){return new t(Object(n.Mb)(h.a),Object(n.Mb)(l.f),Object(n.Mb)(n.n),Object(n.Mb)(x),Object(n.Mb)(t,12),Object(n.Mb)(B))},token:t,providedIn:j}),t}()},vVVL:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var s=i("Cfvw"),n=i("w1tV"),o=i("lJxs"),r=i("SxV6");class a{constructor(t){this.logger=t,this.prettyPrintOne=Object(s.a)(this.getPrettyPrintOne()).pipe(Object(n.a)())}getPrettyPrintOne(){const t=window.prettyPrintOne;return t?Promise.resolve(t):i.e(14).then(i.t.bind(null,"Ue1H",7)).then(()=>window.prettyPrintOne,t=>{const e=`Cannot get prettify.js from server: ${t.message}`;return this.logger.error(new Error(e)),()=>{throw new Error(e)}})}formatCode(t,e,i){return this.prettyPrintOne.pipe(Object(o.a)(s=>{try{return s(t,e,i)}catch(n){const e=`Could not format code that begins '${t.substr(0,50)}...'.`;throw console.error(e,n),new Error(e)}}),Object(r.a)())}}},xYTU:function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return v});var s=i("8Y7J"),n=i("dFDH"),o=(i("QQfA"),i("SVse")),r=(i("IP0z"),i("zMNK")),a=(i("/HVE"),i("hOhj"),i("Xd0L"),i("cUpR"),i("Fwaw")),h=i("bujt"),l=i("5GAg"),c=i("omvX"),d=s.mb({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function u(t){return s.Gb(0,[(t()(),s.eb(0,null,null,0))],null,null)}function p(t){return s.Gb(0,[s.Cb(402653184,1,{_portalOutlet:0}),(t()(),s.eb(16777216,null,null,1,null,u)),s.nb(2,212992,[[1,4]],0,r.c,[s.j,s.O],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function _(t){return s.Gb(0,[(t()(),s.ob(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],function(t,e,i){var n=!0;return"component:@state.done"===e&&(n=!1!==s.yb(t,1).onAnimationEnd(i)&&n),n},p,d)),s.nb(1,180224,null,0,n.d,[s.y,s.k,s.h,n.c],null,null)],null,function(t,e){t(e,0,0,s.yb(e,1)._role,s.yb(e,1)._animationState)})}var f=s.kb("snack-bar-container",n.d,_,{},{},[]),m=s.mb({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;height:100%;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],data:{}});function g(t){return s.Gb(0,[(t()(),s.ob(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),s.ob(1,0,null,null,2,"button",[["mat-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,i){var s=!0;return"click"===e&&(s=!1!==t.component.action()&&s),s},h.b,h.a)),s.nb(2,180224,null,0,a.b,[s.k,l.d,[2,c.a]],null,null),(t()(),s.Eb(3,0,["",""]))],null,function(t,e){var i=e.component;t(e,1,0,s.yb(e,2).disabled||null,"NoopAnimations"===s.yb(e,2)._animationMode),t(e,3,0,i.data.action)})}function b(t){return s.Gb(2,[(t()(),s.ob(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),s.Eb(1,null,["",""])),(t()(),s.eb(16777216,null,null,1,null,g)),s.nb(3,16384,null,0,o.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.hasAction)},function(t,e){t(e,1,0,e.component.data.message)})}function y(t){return s.Gb(0,[(t()(),s.ob(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,b,m)),s.nb(1,49152,null,0,n.g,[n.f,n.a],null,null)],null,null)}var v=s.kb("simple-snack-bar",n.g,y,{},{},[])},zMNK:function(t,e,i){"use strict";i.d(e,"d",function(){return r}),i.d(e,"h",function(){return a}),i.d(e,"a",function(){return h}),i.d(e,"e",function(){return l}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return d}),i.d(e,"g",function(){return u}),i.d(e,"f",function(){return p});var s=i("8Y7J");function n(){throw Error("Host already has a portal attached")}class o{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&n(),this._attachedHost=t,t.attach(this)}detach(){let 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())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class r extends o{constructor(t,e,i,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class a extends o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class h{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&n(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof r?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(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.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class l extends h{constructor(t,e,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class c extends a{constructor(t,e){super(t,e)}}class d extends h{constructor(t,e){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.m}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=e.createComponent(i,e.length,t.injector||e.injector);return super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}}class u{}class p{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}}}]);
//# sourceMappingURL=1-es2015.6de6788787a110055b42.js.map