vendor: 4,210 bytes, line 1
1!function(){function t(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,r,a=[],u=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;u=!1}else for(;!(u=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=n(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,s=function(){};return{s:s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,u=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){u=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(u)throw r}}}}function n(t,e){if(t){if("string"==typeof t)return o(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function s(t,e,i){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return r(t)}(t,a()?Reflect.construct(e,i||[],l(t).constructor):e.apply(t,i))}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t,e,i,n){var o=c(l(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,i){var n=h(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:i):o.value}}).apply(null,arguments)}function h(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function p(t,e,i){return e&&v(t.prototype,e),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:e+""}(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"1O3W":function(t,n,o){"use strict";o.d(n,"a",function(){return J}),o.d(n,"b",function(){return L}),o.d(n,"c",function(){return z}),o.d(n,"d",function(){return B}),o.d(n,"e",function(){return tt}),o.d(n,"f",function(){return F}),o.d(n,"g",function(){return G}),o.d(n,"h",function(){return j}),o.d(n,"i",function(){return Q}),o.d(n,"j",function(){return $});var r=o("7KAL"),a=o("SVse"),c=o("8Y7J"),h=o("8LU1"),l=o("1z/I"),f=o("SCoL"),v=o("XNiG"),g=o("quSY"),y=o("VRyK"),m=o("IzEk"),b=o("1G5W");o("7o/Q"),o("Ht+U");var k=function(){return p(function t(e,i){_(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i},[{key:"attach",value:function(){}},{key:"enable",value: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(h.c)(-this._previousScrollPosition.left),t.style.top=Object(h.c)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",o=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=n,i.scrollBehavior=o}}},{key:"_canBeEnabled",value: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}}])}(),w=function(){return p(function t(e,i,n,o){var s=this;_(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=o,this._scrollSubscription=null,this._detach=function(){s.disable(),s._overlayRef.hasAttached()&&s._ngZone.run(function(){return s._overlayRef.detach()})}},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),O=function(){return p(function t(){_(this,t)},[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function C(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 E(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 S,I,A,R,P,x=function(){return p(function t(e,i,n,o){_(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=o,this._scrollSubscription=null},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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(),i=t._viewportRuler.getViewportSize(),n=i.width,o=i.height;C(e,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),j=((S=p(function t(e,i,n,o){var s=this;
1_(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new O},this.close=function(t){return new w(s._scrollDispatcher,s._ngZone,s._viewportRuler,t)},this.block=function(){return new k(s._viewportRuler,s._document)},this.reposition=function(t){return new x(s._scrollDispatcher,s._viewportRuler,s._ngZone,t)},this._document=o})).\u0275prov=Object(c.ac)({factory:function(){return new S(Object(c.bc)(r.b),Object(c.bc)(r.d),Object(c.bc)(c.z),Object(c.bc)(a.d))},token:S,providedIn:"root"}),S),L=p(function t(e){if(_(this,t),this.scrollStrategy=new O,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i<n.length;i++){var o=n[i];void 0!==e[o]&&(this[o]=e[o])}}),D=p(function t(e,i,n,o,s){_(this,t),this.offsetX=n,this.offsetY=o,this.panelClass=s,this.originX=e.originX,this.originY=e.originY,this.overlayX=i.overlayX,this.overlayY=i.overlayY}),T=p(function t(e,i){_(this,t),this.connectionPair=e,this.scrollableViewProperties=i}),M=((R=function(){return p(function t(e){_(this,t),this._attachedOverlays=[],this._document=e},[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(t){this.remove(t),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}])}()).\u0275prov=Object(c.ac)({factory:function(){return new R(Object(c.bc)(a.d))},token:R,providedIn:"root"}),R),B=((A=function(t){function e(t){var i;return _(this,e),(i=s(this,e,[t]))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return d(e,t),p(e,[{key:"add",value:function(t){u(e,"add",this,3)([t]),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}])}(M)).\u0275prov=Object(c.ac)({factory:function(){return new A(Object(c.bc)(a.d))},token:A,providedIn:"root"}),A),F=((I=function(t){function e(t,i){var n;return _(this,e),(n=s(this,e,[t]))._platform=i,n._cursorStyleIsSet=!1,n._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,i=n._attachedOverlays.slice(),o=i.length-1;o>-1;o--){var s=i[o];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}},n}return d(e,t),p(e,[{key:"add",value:function(t){u(e,"add",this,3)([t]),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}])}(M)).\u0275prov=Object(c.ac)({factory:function(){return new I(Object(c.bc)(a.d),Object(c.bc)(f.a))},token:I,providedIn:"root"}),I),N=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),z=((P=function(){return p(function t(e,i){_(this,t),this._platform=i,this._document=e},[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||N)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),N?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}])}()).\u0275prov=Object(c.ac)({factory:function(){return new P(Object(c.bc)(a.d),Object(c.bc)(f.a))},token:P,providedIn:"root"}),P),V=function(){return p(function t(e,i,n,o,s,r,a,u,c){var h=this;_(this,t),this._portalOutlet=e,this._host=i,this._pane=n,this._config=o,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=u,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new v.a,this._attachments=new v.a,this._detachments=new v.a,this._locationChanges=g.a.EMPTY,this._backdropClickHandler=function(t){return h._backdropClick.next(t)}
1,this._keydownEvents=new v.a,this._outsidePointerEvents=new v.a,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy},[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(t){var e=this,i=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(m.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),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(function(){return e.dispose()})),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),i}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=Object(h.c)(this._config.width),t.height=Object(h.c)(this._config.height),t.minWidth=Object(h.c)(this._config.minWidth),t.minHeight=Object(h.c)(this._config.minHeight),t.maxWidth=Object(h.c)(this._config.maxWidth),t.maxHeight=Object(h.c)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"auto":"none"}},{key:"_attachBackdrop",value: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",this._backdropClickHandler),"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")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t,e=this,i=this._backdropElement;if(i){var n=function(){i&&(i.removeEventListener("click",e._backdropClickHandler),i.removeEventListener("transitionend",n),i.parentNode&&i.parentNode.removeChild(i)),e._backdropElement==i&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(i,e._config.backdropClass,!1),clearTimeout(t)};i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){i.addEventListener("transitionend",n)}),i.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(function(){return setTimeout(n,500)})}}}
1,{key:"_toggleClasses",value:function(t,e,i){var n=t.classList;Object(h.a)(e).forEach(function(t){t&&(i?n.add(t):n.remove(t))})}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._ngZone.onStable.pipe(Object(b.a)(Object(y.a)(t._attachments,t._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}])}(),H=/([A-Za-z%]+)$/,Y=function(){return p(function t(e,i,n,o,s){_(this,t),this._viewportRuler=i,this._document=n,this._platform=o,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v.a,this._resizeSubscription=g.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)},[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){var e=this;this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){e._isInitialRender=!0,e.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var t,e,n=this._originRect,o=this._overlayRect,s=this._viewportRect,r=[],a=i(this._preferredPositions);try{for(a.s();!(e=a.n()).done;){var u=e.value,c=this._getOriginPoint(n,u),h=this._getOverlayPoint(c,o,u),l=this._getOverlayFit(h,o,s,u);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(u,c);this._canFitWithFlexibleDimensions(l,h,s)?r.push({position:u,origin:c,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(c,u)}):(!t||t.overlayFit.visibleArea<l.visibleArea)&&(t={overlayFit:l,overlayPoint:h,originPoint:c,position:u,overlayRect:o})}}catch(y){a.e(y)}finally{a.f()}if(r.length){var d,f=null,_=-1,v=i(r);try{for(v.s();!(d=v.n()).done;){var p=d.value,g=p.boundingBoxRect.width*p.boundingBoxRect.height*(p.position.weight||1);g>_&&(_=g,f=p)}}catch(y){v.e(y)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),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)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._val
1idatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;i="start"==e.originX?n:o}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,o;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+o}}},{key:"_getOverlayFit",value:function(t,e,i,n){var o=t.x,s=t.y,r=this._getOffset(n,"x"),a=this._getOffset(n,"y");r&&(o+=r),a&&(s+=a);var u=0-s,c=s+e.height-i.height,h=this._subtractOverflows(e.width,0-o,o+e.width-i.width),l=this._subtractOverflows(e.height,u,c),d=h*l;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:l===e.height,fitsInViewportHorizontally:h==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,o=i.right-e.x,s=W(this._overlayRef.getConfig().minHeight),r=W(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=n)&&(t.fitsInViewportHorizontally||null!=r&&r<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,o,s=this._viewportRect,r=Math.max(t.x+e.width-s.width,0),a=Math.max(t.y+e.height-s.height,0),u=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);return n=e.width<=s.width?c||-r:t.x<this._viewportMargin?s.left-i.left-t.x:0,o=e.height<=s.height?u||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:n,y:o},{x:t.x+n,y:t.y+o}}},{key:"_applyPosition",value:function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var i=this._getScrollVisibility(),n=new T(t,i);this._positionChanges.next(n)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var e,i=this._boundingBox.querySelectorAll(this._transformOriginSelector),n=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<i.length;o++)i[o].style.transformOrigin="".concat(e," ").concat(n)}}},{key:"_calculateBoundingBoxRect",value:function(t,e){var i,n,o,s,r,a,u=this._viewportRect,c=this._isRtl();if("top"===e.overlayY)n=t.y,i=u.height-n+this._viewportMargin;else if("bottom"===e.overlayY)o=u.height-t.y+2*this._viewportMargin,i=u.height-o+this._viewportMargin;else{var h=Math.min(u.bottom-t.y+u.top,t.y),l=this._lastBoundingBoxSize.height;i=2*h,n=t.y-h,i>l&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-l/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)a=u.width-t.x+this._viewportMargin,s=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)r=t.x,s=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;s=2*d,r=t.x-d,s>f&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.x-f/2)}return{top:n,left:r,bottom:o,right:a,width:s,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var 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));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Object(h.c)(i.height),n.top=Object(h.c)(i.top),n.bottom=Object(h.c)(i.bottom),n.width=Object(h.c)(i.width),n.left=Object(h.c)(i.left),n.right=Object(h.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",o&&(n.maxHeight=Object(h.c)(o)),s&&(n.maxWidth=Object(h.c)(s))}this._lastBoundingBoxSize=i,X(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){var r=this._viewportRuler.getViewportScrollPosition();X(i,this._getExactOverlayY(e,t,r)),X(i,this._getExactOverlayX(e,t,r))}else i.position="static";var a="",u=this._getOffset(e,"x"),c=this._getOffset(e,"y");u&&(a+="translateX(".concat(u,"px) ")),c&&(a+="translateY(".concat(c,"px)")),i.transform=a.trim(),s.maxHeight&&(n?i.maxHeight=Object(h.c)(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=Object(h.c)(s.maxWidth):o&&(i.maxWidth="")),X(this._pane.style,i)}}
1,{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));var s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":n.top=Object(h.c)(o.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":n.left=Object(h.c)(o.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:E(t,i),isOriginOutsideView:C(t,i),isOverlayClipped:E(e,i),isOverlayOutsideView:C(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.reduce(function(t,e){return t-Math.max(e,0)},t)}},{key:"_getNarrowedViewportRect",value:function(){var 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}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(t){var e=this;this._pane&&Object(h.a)(t).forEach(function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))})}},{key:"_clearPanelClasses",value:function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach(function(e){t._pane.classList.remove(e)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof c.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}])}();function X(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function W(t){if("number"!=typeof t&&null!=t){var i=e(t.split(H),2),n=i[0],o=i[1];return o&&"px"!==o?null:parseFloat(n)}return t||null}var Z,K=function(){return p(function t(e,i,n,o,s,r,a){_(this,t),this._preferredPositions=[],this._positionStrategy=new Y(n,o,s,r,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,i),this.onPositionChange=this._positionStrategy.positionChanges},[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,e,i,n){var o=new D(t,e,i,n);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}}])}(),U=function(){return p(function t(){_(this,t),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""},[{key:"attach",value: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"),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,o=i.height,s=i.maxWidth,r=i.maxHeight,a=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),u=!("100%"!==o&&"100vh"!==o||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center"
1:"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=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),G=((Z=function(){return p(function t(e,i,n,o){_(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=o},[{key:"global",value:function(){return new U}},{key:"connectedTo",value:function(t,e,i){return new K(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Y(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}()).\u0275prov=Object(c.ac)({factory:function(){return new Z(Object(c.bc)(r.d),Object(c.bc)(a.d),Object(c.bc)(f.a),Object(c.bc)(z))},token:Z,providedIn:"root"}),Z),q=0,J=function(){return p(function t(e,i,n,o,s,r,a,u,c,h,l){_(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=r,this._ngZone=a,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=l},[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),o=new L(t);return o.direction=o.direction||this._directionality.value,new V(n,e,i,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+q++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(c.g)),new l.d(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}(),Q=new c.q("cdk-connected-overlay-scroll-strategy");function $(t){return function(){return t.scrollStrategies.reposition()}}var tt=p(function t(){_(this,t)})},"1z/I":function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return v}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return f}),i.d(e,"e",function(){return g}),i.d(e,"f",function(){return c});var n=i("8Y7J"),o=function(){return p(function t(){_(this,t)},[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}])}(),a=function(t){function e(t,i,n,o){var r;return _(this,e),(r=s(this,e)).component=t,r.viewContainerRef=i,r.injector=n,r.componentFactoryResolver=o,r}return d(e,t),p(e)}(o),c=function(t){function e(t,i,n){var o;return _(this,e),(o=s(this,e)).templateRef=t,o.viewContainerRef=i,o.context=n,o}return d(e,t),p(e,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=i,u(e,"attach",this,3)([t])}},{key:"detach",value:function(){return this.context=void 0,u(e,"detach",this,3)([])}}])}(o),h=function(t){function e(t){var i;return _(this,e),(i=s(this,e)).element=t instanceof n.l?t.nativeElement:t,i}return d(e,t),p(e)}(o),l=function(){return p(function t(){_(this,t),this._isDisposed=!1,this.attachDomPortal=null},[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof h?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDis
1poseFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}(),f=function(t){function e(t,i,n,o,a){var c;return _(this,e),(c=s(this,e)).outletElement=t,c._componentFactoryResolver=i,c._appRef=n,c._defaultInjector=o,c.attachDomPortal=function(t){var i=t.element,n=c._document.createComment("dom-portal");i.parentNode.insertBefore(n,i),c.outletElement.appendChild(i),u((r(c),e),"setDisposeFn",c,3)([function(){n.parentNode&&n.parentNode.replaceChild(i,n)}])},c._document=a,c}return d(e,t),p(e,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),n.detectChanges(),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),n}},{key:"dispose",value:function(){u(e,"dispose",this,3)([]),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}])}(l),v=function(t){function e(t,i,o){var a;return _(this,e),(a=s(this,e))._componentFactoryResolver=t,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new n.n,a.attachDomPortal=function(t){var i=t.element,n=a._document.createComment("dom-portal");t.setAttachedHost(r(a)),i.parentNode.insertBefore(n,i),a._getRootNode().appendChild(i),u((r(a),e),"setDisposeFn",a,3)([function(){n.parentNode&&n.parentNode.replaceChild(i,n)}])},a._document=o,a}return d(e,t),p(e,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&u(e,"detach",this,3)([]),t&&u(e,"attach",this,3)([t]),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){u(e,"dispose",this,3)([]),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=i.createComponent(n,i.length,t.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),u(e,"setDisposeFn",this,3)([function(){return o.destroy()}]),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var i=this;t.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return u(e,"setDisposeFn",this,3)([function(){return i._viewContainerRef.clear()}]),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}])}(l),g=p(function t(){_(this,t)})},"7+OI":function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC");function o(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7KAL":function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return v}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return g}),i("8LU1");var n=i("8Y7J"),o=i("XNiG"),s=i("LRne"),r=i("HDdC"),a=i("xgIS"),u=(i("eNwd"),i("7Hc7"),i("quSY"),i("7+OI"),i("/uUt"),i("3UWI")),c=i("pLZG");i("1G5W"),i("JX91"),i("7o/Q"),i("eIep"),i("UXun");var h=i("SCoL"),l=i("SVse");i("CtHx");var d,f,v=((f=function(){return p(function t(e,i,n){_(this,t),this._ngZone=e,this._platform=i,this._scrolled=new o.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n},[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new r.a(function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe(Object(u.a)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(s.a)()}},{key:"ngOnDestroy",value:function(){var t=this;
1this._removeGlobalListener(),this.scrollContainers.forEach(function(e,i){return t.deregister(i)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(function(t){return!t||i.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach(function(n,o){e._scrollableContainsElement(o,t)&&i.push(o)}),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return Object(a.a)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}()).\u0275prov=Object(n.ac)({factory:function(){return new f(Object(n.bc)(n.z),Object(n.bc)(h.a),Object(n.bc)(l.d,8))},token:f,providedIn:"root"}),f),g=((d=function(){return p(function t(e,i,n){var s=this;_(this,t),this._platform=e,this._change=new o.a,this._changeListener=function(t){s._change.next(t)},this._document=n,i.runOutsideAngular(function(){if(e.isBrowser){var t=s._getWindow();t.addEventListener("resize",s._changeListener),t.addEventListener("orientationchange",s._changeListener)}s.change().subscribe(function(){return s._updateViewportSize()})})},[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(u.a)(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}])}()).\u0275prov=Object(n.ac)({factory:function(){return new d(Object(n.bc)(h.a),Object(n.bc)(n.z),Object(n.bc)(l.d,8))},token:d,providedIn:"root"}),d),y=p(function t(){_(this,t)}),m=p(function t(){_(this,t)})},"8LU1":function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return u}),i.d(e,"e",function(){return s});var n=i("8Y7J");function o(t){return null!=t&&"false"!="".concat(t)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function r(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function u(t){return t instanceof n.l?t.nativeElement:t}},"9b/N":function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s}),i("8LU1");var n=i("8Y7J");i("HDdC"),i("XNiG"),i("Kj3r");var o=function(){var t=function(){return p(function t(){_(this,t)},[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}])}();return t.\u0275prov=Object(n.ac)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),s=p(function t(){_(this,t)})}
1,"9gLZ":function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return r});var n=i("8Y7J"),o=i("SVse"),s=new n.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.V)(o.d)}}),r=function(){var t=function(){return p(function t(e){if(_(this,t),this.value="ltr",this.change=new n.n,e){var i=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===i||"rtl"===i?i:"ltr"}},[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}();return t.\u0275prov=Object(n.ac)({factory:function(){return new t(Object(n.bc)(s,8))},token:t,providedIn:"root"}),t}(),a=p(function t(){_(this,t)})},CtHx:function(t,e,i){"use strict";i.d(e,"a",function(){return u}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return a});var n=i("7+OI"),o=i("LRne"),r=i("XNiG");function a(t){return t&&"function"==typeof t.connect}i("8Y7J");var u=function(t){function e(t){var i;return _(this,e),(i=s(this,e))._data=t,i}return d(e,t),p(e,[{key:"connect",value:function(){return Object(n.a)(this._data)?this._data:Object(o.a)(this._data)}},{key:"disconnect",value:function(){}}])}(p(function t(){_(this,t)})),c=function(){return p(function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(this,t),this._multiple=i,this._emitChanges=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.a,n&&n.length&&(i?n.forEach(function(t){return e._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)},[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach(function(e){return t._markSelected(e)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach(function(e){return t._unmarkSelected(e)}),this._emitChangeEvent()}},{key:"toggle",value:function(t){this.isSelected(t)?this.deselect(t):this.select(t)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(t){return this._selection.has(t)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(t){this._multiple&&this.selected&&this._selected.sort(t)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}},{key:"_unmarkSelected",value:function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}},{key:"_unmarkAll",value:function(){var t=this;this.isEmpty()||this._selection.forEach(function(e){return t._unmarkSelected(e)})}},{key:"_verifyValueAssignment",value:function(t){}}])}()},"Ht+U":function(t,e,i){"use strict";i.d(e,"a",function(){return v}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return o}),i.d(e,"e",function(){return s}),i.d(e,"f",function(){return u}),i.d(e,"g",function(){return c}),i.d(e,"h",function(){return _}),i.d(e,"i",function(){return l}),i.d(e,"j",function(){return r}),i.d(e,"k",function(){return n}),i.d(e,"l",function(){return h}),i.d(e,"m",function(){return p}),i.d(e,"n",function(){return f}),i.d(e,"o",function(){return g});var n=9,o=13,s=27,r=32,a=35,u=36,c=37,h=38,l=39,d=40,f=48,_=57,v=65,p=90;function g(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.length?i.some(function(e){return t[e]}):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}}
1,SCoL:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return g}),i.d(e,"d",function(){return v}),i.d(e,"e",function(){return d}),i.d(e,"f",function(){return f});var n,o=i("8Y7J"),s=i("SVse");try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){n=!1}var r,a,u,c,h=function(){var t=p(function t(e){_(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(s.C)(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&&!n)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return t.\u0275prov=Object(o.ac)({factory:function(){return new t(Object(o.bc)(o.B))},token:t,providedIn:"root"}),t}(),l=p(function t(){_(this,t)});function d(t){return function(){if(null==r&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return r=!0}}))}finally{r=r||!1}return r}()?t:!!t.capture}function f(){if(null==u)if("object"==typeof document&&document||(u=!1),"scrollBehavior"in document.documentElement.style)u=!0;else{var t=Element.prototype.scrollTo;u=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return u}function v(){if("object"!=typeof document||!document)return 0;if(null==a){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),a=0,0===t.scrollLeft&&(t.scrollLeft=1,a=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return a}function g(t){if(function(){if(null==c){var t="undefined"!=typeof document?document.head:null;c=!(!t||!t.createShadowRoot&&!t.attachShadow)}return c}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},"UhP/":function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return I}),i.d(e,"c",function(){return f}),i.d(e,"d",function(){return L}),i.d(e,"e",function(){return P}),i.d(e,"f",function(){return A}),i.d(e,"g",function(){return R}),i.d(e,"h",function(){return x}),i.d(e,"i",function(){return j}),i.d(e,"j",function(){return g}),i.d(e,"k",function(){return y}),i.d(e,"l",function(){return v}),i.d(e,"m",function(){return b}),i.d(e,"n",function(){return m});var n=i("8Y7J"),o=i("YEUz"),r=new n.P("10.2.7"),a=i("8LU1"),u=i("XNiG"),c=(i("HDdC"),i("SCoL"));i("JX91"),i("Ht+U");var h=new n.P("10.2.7"),l=new n.q("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),f=function(){return p(function t(e,i,n){_(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)},[{key:"_getDocument",value:function(){var t=this._document||document;return"object"==typeof t&&t?t:null}},{key:"_getWindow",value:function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(n.W)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);var n=getComputedStyle(i);n&&"none"!==n.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"),e.body.removeChild(i)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&h.full!==r.full&&console.warn("The Angular Material version ("+h.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}])}();function v(t){return function(t){function e(){var t;_(this,e);for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return(t=s(this,e,[].concat(n)))._disabled=!1,t}return d(e,t),p(e,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(a.b)(t)}}])}(t)}function g(t,e){return function(t){function i(){var t;_(this,i);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=s(this,i,[].concat(o))).defaultColor=e,t.color=e,t}
1return d(i,t),p(i,[{key:"color",get:function(){return this._color},set:function(t){var e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),e&&this._elementRef.nativeElement.classList.add("mat-".concat(e)),this._color=e)}}])}(t)}function y(t){return function(t){function e(){var t;_(this,e);for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return(t=s(this,e,[].concat(n)))._disableRipple=!1,t}return d(e,t),p(e,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(a.b)(t)}}])}(t)}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){function i(){var t;_(this,i);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=s(this,i,[].concat(o)))._tabIndex=e,t.defaultTabIndex=e,t}return d(i,t),p(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?Object(a.e)(t):this.defaultTabIndex}}])}(t)}function b(t){return function(t){function e(){var t;_(this,e);for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return(t=s(this,e,[].concat(n))).errorState=!1,t.stateChanges=new u.a,t}return d(e,t),p(e,[{key:"updateErrorState",value: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())}}])}(t)}try{"undefined"!=typeof Intl}catch(D){!1}var k=function(){return p(function t(e,i,n){_(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3},[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}])}(),w={enterDuration:450,exitDuration:400},O=Object(c.e)({passive:!0}),C=["mousedown","touchstart"],E=["mouseup","mouseleave","touchend","touchcancel"],S=function(){return p(function t(e,i,n,o){_(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Object(a.d)(n))},[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},w),n.animation);n.centered&&(t=o.left+o.width/2,e=o.top+o.height/2);var r=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),o=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+o*o)}(t,e,o),a=t-o.left,u=e-o.top,c=s.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=a-r+"px",h.style.top=u-r+"px",h.style.height=2*r+"px",h.style.width=2*r+"px",null!=n.color&&(h.style.backgroundColor=n.color),h.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(h),window.getComputedStyle(h).getPropertyValue("opacity"),h.style.transform="scale(1)";var l=new k(this,h,n);return l.state=0,this._activeRipples.add(l),n.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(function(){var t=l===i._mostRecentTransientRipple;l.state=1,n.persistent||t&&i._isPointerDown||l.fadeOut()},c),l}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},w),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=Object(a.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(C))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(E),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Object(o.g)(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||i||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEac
1h(function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,O)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(C.forEach(function(e){t._triggerElement.removeEventListener(e,t,O)}),this._pointerUpEventsRegistered&&E.forEach(function(e){t._triggerElement.removeEventListener(e,t,O)}))}}])}(),I=new n.q("mat-ripple-global-options"),A=function(){return p(function t(e,i,n,o,s){_(this,t),this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new S(this,i,e,n)},[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}])}(),R=p(function t(){_(this,t)}),P=p(function t(){_(this,t)});function x(t,e,i){if(i.length){for(var n=e.toArray(),o=i.toArray(),s=0,r=0;r<t+1;r++)n[r].group&&n[r].group===o[s]&&s++;return s}return 0}function j(t,e,i,n){return t<i?t:t+e>i+n?Math.max(0,t-n+e):i}var L=p(function t(){_(this,t)})},YEUz:function(t,e,i){"use strict";i.d(e,"a",function(){return T}),i.d(e,"b",function(){return w}),i.d(e,"c",function(){return O}),i.d(e,"d",function(){return j}),i.d(e,"e",function(){return A}),i.d(e,"f",function(){return D}),i.d(e,"g",function(){return R});var n=i("SVse"),o=i("8Y7J"),r=i("SCoL"),a=i("XNiG"),c=i("quSY"),h=i("LRne"),l=i("Ht+U"),f=i("vkgz"),v=i("Kj3r"),g=i("pLZG"),y=i("lJxs"),m=i("IzEk"),b=i("8LU1"),k=function(){return p(function t(e){var i=this;_(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new a.a,this._typeaheadSubscription=c.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new a.a,this.change=new a.a,e instanceof o.D&&e.changes.subscribe(function(t){if(i._activeItem){var e=t.toArray().indexOf(i._activeItem);e>-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}})},[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;
1return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(f.a)(function(e){return t._pressedLetters.push(e)}),Object(v.a)(e),Object(g.a)(function(){return t._pressedLetters.length>0}),Object(y.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var i=t._getItemsArray(),n=1;n<i.length+1;n++){var o=(t._activeItemIndex+n)%i.length,s=i[o];if(!t._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(o);break}}t._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1});switch(i){case l.k:return void this.tabOut.next();case l.b:if(this._vertical&&n){this.setNextItemActive();break}return;case l.l:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.g:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.f:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.c:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.o)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=l.a&&i<=l.m||i>=l.n&&i<=l.h)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof o.D?this._items.toArray():this._items}}])}(),w=function(t){function e(){return _(this,e),s(this,e,arguments)}return d(e,t),p(e,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),u(e,"setActiveItem",this,3)([t]),this.activeItem&&this.activeItem.setActiveStyles()}}])}(k),O=function(t){function e(){var t;return _(this,e),(t=s(this,e,arguments))._origin="program",t}return d(e,t),p(e,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){u(e,"setActiveItem",this,3)([t]),this.activeItem&&this.activeItem.focus(this._origin)}}])}(k),C=function(){var t=function(){return p(function t(e){_(this,t),this._platform=e},[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){if(-1===S(i))return!1;if(!this.isVisible(i))return!1}var n=t.nodeName.toLowerCase(),o=S(t);return t.hasAttribute("contenteditable")?-1!==o:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==o:"video"===n?-1!==o&&(null!==o||this._platform.FIRE
1FOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){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")||E(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}])}();return t.\u0275prov=Object(o.ac)({factory:function(){return new t(Object(o.bc)(r.a))},token:t,providedIn:"root"}),t}();function E(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 S(t){if(!E(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var I=function(){return p(function t(e,i,n,o){var s=this,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=o,this._hasAttached=!1,this.startAnchorListener=function(){return s.focusLastTabbableElement()},this.endAnchorListener=function(){return s.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()},[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i<e.length;i++)e[i].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', use 'cdkFocusRegion").concat(t,"' instead. The deprecated attribute will be removed in 8.0.0."),e[i]):e[i].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', use 'cdkFocusRegion").concat(t,"' instead. The deprecated attribute will be removed in 8.0.0."),e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value: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 8.0.0",t),t.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t}},{key:"focusLastTabbableElement",value:function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,i=0;i<e.length;i++){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,i=e.length-1;i>=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(m.a)(1)).subscribe(t)}}])}(),A=function(){var t=function(){return p(function t(e,i,n){_(this,t),this._checker=e,this._ngZone=i,this._document=n},[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new I(t,this._checker,this._ngZone,this._document,e)}}])}();return t.\u0275prov=Object(o.ac)({factory:function(){return new t(Object(o.bc)(C),Object(o.bc)(o.z),Object(o.bc)(n.d))},token:t,providedIn:"root"}),t}();function R(t){return 0===t.buttons}"undefined"!=typeof Element&∈var P=new o.q("cdk-focus-monitor-default-options"),x=Object(r.e)({passive:!0,capture:!0}),j=function(){var t=function(){return p(function t(e,i,n,o){var s=this;_(this,t),this._ngZone=e,this._platform=i,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){s._lastTouchTarget=null,s._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!s._lastTouchTarget){var e=R(t)?"keyboard":"mouse";s._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=s._touchTimeoutId&&clearTimeout(s._touchTimeoutId),s._lastTouchTarget=L(t),s._touchTimeoutId=setTimeout(function(){return s._lastTouchTarget=null},650)},this._windowFocusListener=function(){s._windowFocused=!0,s._windowFocusTimeoutId=setTimeout(function(){return s._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(t){for(var e=L(t),i="focus"===t.type?s._onFocus:s._onBlur,n=e;n;n=n.parentElement)i.call(s,t,n)},this._document=n,this._detectionMode=(null==o?void 0:o.detectionMode)||0},[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Object(b.d)(t);if(!this._platform.isBrowser||1!==i.nodeType)return Object(h.a)(null);var n=Object(r.c)(i)||this._getDocument(),o=this._elementInfo.get(i);if(o)return e&&(o.checkChildren=!0),o.subject;
1var s={checkChildren:e,subject:new a.a,rootNode:n};return this._elementInfo.set(i,s),this._registerGlobalListeners(s),s.subject}},{key:"stopMonitoring",value:function(t){var e=Object(b.d)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=Object(b.d)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,i){return t.stopMonitoring(i)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=L(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);if(i&&(i.checkChildren||e===L(t))){var n=this._getFocusOrigin(t);this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,x),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,x)}),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,x),t.addEventListener("mousedown",e._documentMousedownListener,x),t.addEventListener("touchstart",e._documentTouchstartListener,x),i.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),o=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,x),n.removeEventListener("mousedown",this._documentMousedownListener,x),n.removeEventListener("touchstart",this._documentTouchstartListener,x),o.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}])}();return t.\u0275prov=Object(o.ac)({factory:function(){return new t(Object(o.bc)(o.z),Object(o.bc)(r.a),Object(o.bc)(n.d,8),Object(o.bc)(P,8))},token:t,providedIn:"root"}),t}();function L(t){return t.composedPath?t.composedPath()[0]:t.target}var D=function(){var t=function(){return p(function t(e,i){_(this,t),this._platform=e,this._document=i},[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}}
1,{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}])}();return t.\u0275prov=Object(o.ac)({factory:function(){return new t(Object(o.bc)(r.a),Object(o.bc)(n.d))},token:t,providedIn:"root"}),t}(),T=p(function t(e){_(this,t),e._applyBodyHighContrastModeCssClasses()})},rJgo:function(i,n,o){"use strict";o.d(n,"a",function(){return j}),o.d(n,"b",function(){return R}),o.d(n,"c",function(){return M}),o.d(n,"d",function(){return D}),o.d(n,"e",function(){return x}),o.d(n,"f",function(){return V}),o.d(n,"g",function(){return N}),o.d(n,"h",function(){return T}),o.d(n,"i",function(){return z}),o.d(n,"j",function(){return B});var a=o("YEUz"),u=o("8LU1"),c=o("Ht+U"),h=o("8Y7J"),l=o("XNiG"),f=o("quSY"),v=o("VRyK"),g=o("LRne"),y=o("7Hc7"),m=o("JX91"),b=o("eIep"),k=o("IzEk"),w=o("pLZG"),O=o("1G5W"),C=o("3E0/"),E=(o("GS7A"),o("1z/I")),S=o("UhP/"),I=o("1O3W"),A=o("SCoL"),R=new h.q("MAT_MENU_PANEL"),P=p(function t(){_(this,t)}),x=function(t){function e(t,i,n,o){var a;return _(this,e),(a=s(this,e))._elementRef=t,a._focusMonitor=n,a._parentMenu=o,a.role="menuitem",a._hovered=new l.a,a._focused=new l.a,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(r(a)),a}return d(e,t),p(e,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons"),o=0;o<n.length;o++){var s=n[o];null===(t=s.parentNode)||void 0===t||t.removeChild(s)}return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}}])}(Object(S.k)(Object(S.l)(P))),j=new h.q("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),L=0,D=function(t){function e(){return _(this,e),s(this,e,arguments)}return d(e,t),p(e)}(function(){return p(function t(e,i,n){_(this,t),this._elementRef=e,this._ngZone=i,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.D,this._tabSubscription=f.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new l.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.n,this.close=this.closed,this.panelId="mat-menu-panel-"+L++},[{key:"xPosition",get:function(){return this._xPosition},set:function(t){this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Object(u.b)(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(u.b)(t)}},{key:"panelClass",set:function(t){var e=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(function(t){e._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(function(t){e._classList[t]=!0}
1),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new a.c(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Object(m.a)(this._directDescendantItems),Object(b.a)(function(e){return Object(v.a).apply(void 0,t(e.map(function(t){return t._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Object(m.a)(this._directDescendantItems),Object(b.a)(function(e){return Object(v.a).apply(void 0,t(e.map(function(t){return t._hovered})))}))}},{key:"addItem",value:function(t){}},{key:"removeItem",value:function(t){}},{key:"_handleKeydown",value:function(t){var e=t.keyCode,i=this._keyManager;switch(e){case c.e:Object(c.o)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case c.g:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.i:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==c.l&&e!==c.b||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}},{key:"focusFirstItem",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Object(k.a)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Object(m.a)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}])}()),T=function(t){function e(t,i,n){return _(this,e),s(this,e,[t,i,n])}return d(e,t),p(e)}(D),M=new h.q("mat-menu-scroll-strategy");function B(t){return function(){return t.scrollStrategies.reposition()}}var F=Object(A.e)({passive:!0}),N=function(){return p(function t(e,i,n,o,s,r,a,u){var c=this;_(this,t),this._overlay=e,this._element=i,this._viewContainerRef=n,this._parentMenu=s,this._menuItemInstance=r,this._dir=a,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.a.EMPTY,this._hoverSubscription=f.a.EMPTY,this._menuCloseSubscription=f.a.EMPTY,this._handleTouchStart=function(){return c._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new h.n,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.n,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,F),r&&(r._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=o},[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit
1(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,F),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof D&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof D?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Object(w.a)(function(t){return"void"===t.toState}),Object(k.a)(1),Object(O.a)(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new I.b({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var i=e("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=i[0],o=i[1],s=e("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=s[0],a=s[1],u=r,c=a,h=n,l=o,d=0;this.triggersSubmenu()?(l=n="before"===this.menu.xPosition?"start":"end",o=h="end"===n?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(u="top"===r?"bottom":"top",c="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:u,overlayX:h,overlayY:r,offsetY:d},{originX:o,originY:u,overlayX:l,overlayY:r,offsetY:d},{originX:n,originY:c,overlayX:h,overlayY:a,offsetY:-d},{originX:o,originY:c,overlayX:l,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Object(g.a)(),o=this._parentMenu?this._parentMenu._hovered().pipe(Object(w.a)(function(e){return e!==t._menuItemInstance}),Object(w.a)(function(){return t._menuOpen})):Object(g.a)();return Object(v.a)(e,n,o,i)}},{key:"_handleMousedown",value:function(t){Object(a.g)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(e===c.i&&"ltr"===this.dir||e===c.g&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object(w.a)(function(e){return e===t._menuItemInstance&&!e.disabled}),Object(C.a)(0,y.b)).subscribe(function(){t._openedBy="mouse",t.menu instanceof D&&t.menu._isAnimating?t.menu._animationDone.pipe(Object(k.a)(1),Object(C.a)(0,y.b),Object(O.a)(t._parentMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new E.f(this.menu.templateRef,this._viewContainerRef)),this._portal}}])}(),z=p(function t(){_(this,t)}),V=p(function t(){_(this,t)})}}])}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.