blob: 9df6a151a487aaafc0c32ce9922087a5d93a9617 [file] [log] [blame]
{"version":3,"sources":["src/cdk/cdk-overlay.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","cdk","overlay","scrolling","common","core","coercion","platform","bidi","portal","rxjs","operators","keycodes","this","i1","i1$1","i0","i2","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","constructor","create","__values","o","s","Symbol","iterator","m","i","length","next","value","done","scrollBehaviorSupported","supportsScrollBehavior","BlockScrollStrategy","_viewportRuler","document","_previousHTMLStyles","top","left","_isEnabled","_document","attach","enable","_canBeEnabled","root","documentElement","_previousScrollPosition","getViewportScrollPosition","style","coerceCssPixelValue","classList","add","disable","html","htmlStyle","bodyStyle","body","previousHtmlScrollBehavior","scrollBehavior","previousBodyScrollBehavior","remove","window","scroll","contains","viewport","getViewportSize","scrollHeight","height","scrollWidth","width","CloseScrollStrategy","_scrollDispatcher","_ngZone","_config","_this","_scrollSubscription","_detach","_overlayRef","hasAttached","run","detach","overlayRef","stream","scrolled","threshold","_initialScrollPosition","subscribe","scrollPosition","Math","abs","updatePosition","unsubscribe","NoopScrollStrategy","isElementScrolledOutsideView","element","scrollContainers","some","containerBounds","bottom","right","isElementClippedByScrolling","scrollContainerRect","ScrollStrategyOptions","RepositionScrollStrategy","scrollThrottle","autoClose","overlayRect","overlayElement","getBoundingClientRect","_a","noop","close","config","block","reposition","ɵprov","ɵɵdefineInjectable","ScrollStrategyOptions_Factory","ɵɵinject","ScrollDispatcher","ViewportRuler","NgZone","DOCUMENT","token","providedIn","decorators","type","Injectable","args","ctorParameters","undefined","Inject","ConnectedOverlayPositionChange","OverlayConfig","e_1","scrollStrategy","panelClass","hasBackdrop","backdropClass","disposeOnNavigation","configKeys","keys","configKeys_1","configKeys_1_1","key","e_1_1","error","return","ConnectionPositionPair","origin","offsetX","offsetY","originX","originY","overlayX","overlayY","ScrollingVisibility","connectionPair","scrollableViewProperties","Optional","BaseOverlayDispatcher","_attachedOverlays","ngOnDestroy","push","index","indexOf","splice","BaseOverlayDispatcher_Factory","OverlayKeyboardDispatcher","_super","_keydownListener","event","overlays","_keydownEvents","observers","_isAttached","addEventListener","removeEventListener","OverlayKeyboardDispatcher_Factory","OverlayOutsideClickDispatcher","_platform","_cursorStyleIsSet","_clickListener","target","composedPath","slice","_outsidePointerEvents","IOS","_cursorOriginalValue","cursor","OverlayOutsideClickDispatcher_Factory","Platform","isTestEnvironment","__karma__","jasmine","OverlayContainer","container","_containerElement","parentNode","removeChild","getContainerElement","_createContainer","isBrowser","oppositePlatformContainers","querySelectorAll","createElement","setAttribute","appendChild","OverlayContainer_Factory","OverlayRef","_portalOutlet","_host","_pane","_keyboardDispatcher","_location","_outsideClickDispatcher","_backdropElement","_backdropClick","Subject","_attachments","_detachments","_locationChanges","Subscription","EMPTY","_backdropClickHandler","_scrollStrategy","_positionStrategy","positionStrategy","defineProperty","get","enumerable","configurable","attachResult","parentElement","_previousHostParent","_updateStackingOrder","_updateElementSize","_updateElementDirection","onStable","pipe","take","_togglePointerEvents","_attachBackdrop","_toggleClasses","dispose","detachBackdrop","detachmentResult","_detachContentWhenStable","isAttached","_disposeScrollStrategy","complete","backdropClick","attachments","detachments","keydownEvents","outsidePointerEvents","getConfig","apply","updatePositionStrategy","strategy","updateSize","sizeConfig","assign","setDirection","dir","direction","addPanelClass","classes","removePanelClass","getDirection","updateScrollStrategy","minWidth","minHeight","maxWidth","maxHeight","enablePointer","pointerEvents","insertBefore","requestAnimationFrame","runOutsideAngular","nextSibling","backdropToDetach","timeoutId","finishDetach","clearTimeout","setTimeout","cssClasses","isAdd","coerceArray","forEach","cssClass","subscription","takeUntil","merge","children","cssUnitPattern","FlexibleConnectedPositionStrategy","connectedTo","_overlayContainer","_lastBoundingBoxSize","_isPushed","_canPush","_growAfterOpen","_hasFlexibleDimensions","_positionLocked","_viewportMargin","_scrollables","_preferredPositions","_positionChanges","_resizeSubscription","_offsetX","_offsetY","_appliedPanelClasses","positionChanges","setOrigin","_validatePositions","hostElement","_boundingBox","_isDisposed","_isInitialRender","_lastPosition","change","e_2","_b","reapplyLastPosition","_clearPanelClasses","_resetOverlayElementStyles","_resetBoundingBoxStyles","_viewportRect","_getNarrowedViewportRect","_originRect","_getOriginRect","_overlayRect","fallback","originRect","viewportRect","flexibleFits","_c","_d","pos","originPoint","_getOriginPoint","overlayPoint","_getOverlayPoint","overlayFit","_getOverlayFit","isCompletelyWithinViewport","_applyPosition","_canFitWithFlexibleDimensions","position","boundingBoxRect","_calculateBoundingBoxRect","visibleArea","bestFit","bestScore","flexibleFits_1","flexibleFits_1_1","fit","score","weight","e_2_1","_previousPushAmount","extendStyles","alignItems","justifyContent","lastPosition","withScrollableContainers","scrollables","withPositions","positions","withViewportMargin","margin","withFlexibleDimensions","flexibleDimensions","withGrowAfterOpen","growAfterOpen","withPush","canPush","withLockedPosition","isLocked","_origin","withDefaultOffsetX","offset","withDefaultOffsetY","withTransformOriginOn","selector","_transformOriginSelector","x","startX","_isRtl","endX","y","overlayStartX","point","rawOverlayRect","getRoundedBoundingClientRect","_getOffset","topOverflow","bottomOverflow","visibleWidth","_subtractOverflows","visibleHeight","fitsInViewportVertically","fitsInViewportHorizontally","availableHeight","availableWidth","getPixelValue","_pushOverlayOnScreen","start","pushX","pushY","overflowRight","max","overflowBottom","overflowTop","overflowLeft","_setTransformOrigin","_setOverlayElementStyles","_setBoundingBoxStyles","_addPanelClasses","_getScrollVisibility","changeEvent","xOrigin","elements","yOrigin","transformOrigin","isRtl","smallestDistanceToViewportEdge","min","previousHeight","previousWidth","styles","_hasExactPosition","transform","hasExactPosition","hasFlexibleDimensions","_getExactOverlayY","_getExactOverlayX","transformString","trim","virtualKeyboardOffset","clientHeight","clientWidth","originBounds","overlayBounds","scrollContainerBounds","map","scrollable","getElementRef","nativeElement","isOriginClipped","isOriginOutsideView","isOverlayClipped","isOverlayOutsideView","overflows","_i","arguments","reduce","currentValue","currentOverflow","axis","ElementRef","Element","destination","source","input","__read","n","r","e","ar","split","units","parseFloat","clientRect","floor","ConnectedPositionStrategy","originPos","overlayPos","viewportRuler","overlayContainer","withFallbackPosition","onPositionChange","_direction","recalculateLastPosition","withDirection","withOffsetX","withOffsetY","GlobalPositionStrategy","_cssPosition","_topOffset","_bottomOffset","_leftOffset","_rightOffset","_alignItems","_justifyContent","_width","_height","centerHorizontally","centerVertically","parentStyles","shouldBeFlushHorizontally","shouldBeFlushVertically","marginLeft","marginTop","marginBottom","marginRight","parent","OverlayPositionBuilder","elementRef","flexibleConnectedTo","OverlayPositionBuilder_Factory","nextUniqueId","Overlay","scrollStrategies","_componentFactoryResolver","_positionBuilder","_injector","_directionality","host","_createHostElement","pane","_createPaneElement","portalOutlet","_createPortalOutlet","overlayConfig","id","_appRef","ApplicationRef","DomPortalOutlet","ComponentFactoryResolver","Injector","Directionality","Location","CdkOverlayOrigin","defaultPositionList","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY","InjectionToken","Directive","exportAs","CdkConnectedOverlay","_overlay","templateRef","viewContainerRef","scrollStrategyFactory","_dir","_hasBackdrop","_lockPosition","_flexibleDimensions","_push","_backdropSubscription","_attachSubscription","_detachSubscription","_positionSubscription","viewportMargin","open","disableClose","EventEmitter","positionChange","overlayKeydown","overlayOutsideClick","_templatePortal","TemplatePortal","_scrollStrategyFactory","set","_position","_updatePositionStrategy","coerceBooleanProperty","ngOnChanges","changes","_attachOverlay","_detachOverlay","_createOverlay","_buildConfig","emit","keyCode","ESCAPE","hasModifierKey","preventDefault","_createPositionStrategy","currentPosition","lockPosition","transformOriginSelector","takeWhile","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY","TemplateRef","ViewContainerRef","propDecorators","Input","Output","OverlayModule","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER","provide","deps","useFactory","NgModule","imports","BidiModule","PortalModule","ScrollingModule","declarations","providers","FullscreenOverlayContainer","_fullScreenEventName","_fullScreenListener","_adjustParentForFullscreenChange","_addFullscreenChangeListener","getFullscreenElement","fn","eventName","_getEventName","fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","FullscreenOverlayContainer_Factory","CdkScrollable","validateHorizontalPosition","property","Error","validateVerticalPosition","ɵangular_material_src_cdk_overlay_overlay_a","ɵangular_material_src_cdk_overlay_overlay_b","ɵangular_material_src_cdk_overlay_overlay_c","ɵangular_material_src_cdk_overlay_overlay_d"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,0BAA2BA,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,yBAA0BA,QAAQ,yBAA0BA,QAAQ,qBAAsBA,QAAQ,uBAAwBA,QAAQ,QAASA,QAAQ,kBAAmBA,QAAQ,0BAC7U,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uBAAwB,CAAC,UAAW,yBAA0B,kBAAmB,gBAAiB,wBAAyB,wBAAyB,oBAAqB,sBAAuB,OAAQ,iBAAkB,yBAA0BJ,GAC9QA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,IAAMT,EAAOQ,GAAGC,KAAO,GAAIT,EAAOQ,GAAGC,IAAIC,QAAU,IAAKV,EAAOQ,GAAGC,IAAIE,UAAWX,EAAOQ,GAAGI,OAAQZ,EAAOQ,GAAGK,KAAMb,EAAOQ,GAAGC,IAAIK,SAAUd,EAAOQ,GAAGC,IAAIM,SAAUf,EAAOQ,GAAGC,IAAIO,KAAMhB,EAAOQ,GAAGC,IAAIQ,OAAQjB,EAAOkB,KAAMlB,EAAOkB,KAAKC,UAAWnB,EAAOQ,GAAGC,IAAIW,UAH7U,CAIEC,MAAM,SAAWnB,EAASoB,EAAIC,EAAMC,EAAIV,EAAUW,EAAIT,EAAMC,EAAQC,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QijB,oBAAsBA,EAC9BjjB,EAAQ2iB,iBAAmBA,EAC3B3iB,EAAQ2F,oBAAsBA,EAC9B3F,EAAQyJ,+BAAiCA,EACzCzJ,EAAQif,0BAA4BA,EACpCjf,EAAQyK,uBAAyBA,EACjCzK,EAAQ6T,kCAAoCA,EAC5C7T,EAAQ+mB,2BAA6BA,EACrC/mB,EAAQ6f,uBAAyBA,EACjC7f,EAAQiH,mBAAqBA,EAC7BjH,EAAQshB,QAAUA,EAClBthB,EAAQ0J,cAAgBA,EACxB1J,EAAQwN,iBAAmBA,EAC3BxN,EAAQ6L,0BAA4BA,EACpC7L,EAAQmmB,cAAgBA,EACxBnmB,EAAQwM,8BAAgCA,EACxCxM,EAAQihB,uBAAyBA,EACjCjhB,EAAQsO,WAAaA,EACrBtO,EAAQ4H,yBAA2BA,EACnC5H,EAAQ2H,sBAAwBA,EAChC3H,EAAQiL,oBAAsBA,EAC9BjL,EAAQkoB,2BA5rFR,SAASA,EAA2BC,EAAUjlB,GAC1C,GAAc,UAAVA,GAA+B,QAAVA,GAA6B,WAAVA,EACxC,MAAMklB,MAAM,8BAAgCD,EAAW,KAAQjlB,EAAnD,4CA2rFpBlD,EAAQqoB,yBAzsFR,SAASA,EAAyBF,EAAUjlB,GACxC,GAAc,QAAVA,GAA6B,WAAVA,GAAgC,WAAVA,EACzC,MAAMklB,MAAM,8BAAgCD,EAAW,KAAQjlB,EAAnD,6CAwsFpBlD,EAAQsoB,4CAA8CzF,EACtD7iB,EAAQuoB,4CAA8C1C,EACtD7lB,EAAQwoB,4CAA8CpC,EACtDpmB,EAAQyoB,4CAA8Cpd,EAEtD1J,OAAO8N,eAAezP,EAAS,aAAc,CAAEkD,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/scrolling'), require('@angular/common'), require('@angular/core'), require('@angular/cdk/coercion'), require('@angular/cdk/platform'), require('@angular/cdk/bidi'), require('@angular/cdk/portal'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/keycodes')) :\n typeof define === 'function' && define.amd ? define('@angular/cdk/overlay', ['exports', '@angular/cdk/scrolling', '@angular/common', '@angular/core', '@angular/cdk/coercion', '@angular/cdk/platform', '@angular/cdk/bidi', '@angular/cdk/portal', 'rxjs', 'rxjs/operators', '@angular/cdk/keycodes'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.overlay = {}), global.ng.cdk.scrolling, global.ng.common, global.ng.core, global.ng.cdk.coercion, global.ng.cdk.platform, global.ng.cdk.bidi, global.ng.cdk.portal, global.rxjs, global.rxjs.operators, global.ng.cdk.keycodes));\n}(this, (function (exports, i1, i1$1, i0, coercion, i2, bidi, portal, rxjs, operators, keycodes) { 'use strict';\n\n /*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */\n /* global Reflect, Promise */\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b)\n if (Object.prototype.hasOwnProperty.call(b, p))\n d[p] = b[p]; };\n return extendStatics(d, b);\n };\n function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n }\n var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n function __rest(s, e) {\n var t = {};\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n }\n function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n }\n function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); };\n }\n function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(metadataKey, metadataValue);\n }\n function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try {\n step(generator.next(value));\n }\n catch (e) {\n reject(e);\n } }\n function rejected(value) { try {\n step(generator[\"throw\"](value));\n }\n catch (e) {\n reject(e);\n } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n }\n function __generator(thisArg, body) {\n var _ = { label: 0, sent: function () { if (t[0] & 1)\n throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f)\n throw new TypeError(\"Generator is already executing.\");\n while (_)\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)\n return t;\n if (y = 0, t)\n op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return { value: op[1], done: false };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2])\n _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n }\n catch (e) {\n op = [6, e];\n y = 0;\n }\n finally {\n f = t = 0;\n }\n if (op[0] & 5)\n throw op[1];\n return { value: op[0] ? op[1] : void 0, done: true };\n }\n }\n var __createBinding = Object.create ? (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });\n }) : (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n o[k2] = m[k];\n });\n function __exportStar(m, o) {\n for (var p in m)\n if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p))\n __createBinding(o, m, p);\n }\n function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m)\n return m.call(o);\n if (o && typeof o.length === \"number\")\n return {\n next: function () {\n if (o && i >= o.length)\n o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n }\n function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m)\n return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done)\n ar.push(r.value);\n }\n catch (error) {\n e = { error: error };\n }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"]))\n m.call(i);\n }\n finally {\n if (e)\n throw e.error;\n }\n }\n return ar;\n }\n /** @deprecated */\n function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n }\n /** @deprecated */\n function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n }\n function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\n }\n function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n }\n function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n])\n i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try {\n step(g[n](v));\n }\n catch (e) {\n settle(q[0][3], e);\n } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length)\n resume(q[0][0], q[0][1]); }\n }\n function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\n }\n function __asyncValues(o) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }\n }\n function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", { value: raw });\n }\n else {\n cooked.raw = raw;\n }\n return cooked;\n }\n ;\n var __setModuleDefault = Object.create ? (function (o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n }) : function (o, v) {\n o[\"default\"] = v;\n };\n function __importStar(mod) {\n if (mod && mod.__esModule)\n return mod;\n var result = {};\n if (mod != null)\n for (var k in mod)\n if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k))\n __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n }\n function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n }\n function __classPrivateFieldGet(receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return privateMap.get(receiver);\n }\n function __classPrivateFieldSet(receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to set private field on non-instance\");\n }\n privateMap.set(receiver, value);\n return value;\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var scrollBehaviorSupported = i2.supportsScrollBehavior();\n /**\n * Strategy that will prevent the user from scrolling while the overlay is visible.\n */\n var BlockScrollStrategy = /** @class */ (function () {\n function BlockScrollStrategy(_viewportRuler, document) {\n this._viewportRuler = _viewportRuler;\n this._previousHTMLStyles = { top: '', left: '' };\n this._isEnabled = false;\n this._document = document;\n }\n /** Attaches this scroll strategy to an overlay. */\n BlockScrollStrategy.prototype.attach = function () { };\n /** Blocks page-level scroll while the attached overlay is open. */\n BlockScrollStrategy.prototype.enable = function () {\n if (this._canBeEnabled()) {\n var root = this._document.documentElement;\n this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition();\n // Cache the previous inline styles in case the user had set them.\n this._previousHTMLStyles.left = root.style.left || '';\n this._previousHTMLStyles.top = root.style.top || '';\n // Note: we're using the `html` node, instead of the `body`, because the `body` may\n // have the user agent margin, whereas the `html` is guaranteed not to have one.\n root.style.left = coercion.coerceCssPixelValue(-this._previousScrollPosition.left);\n root.style.top = coercion.coerceCssPixelValue(-this._previousScrollPosition.top);\n root.classList.add('cdk-global-scrollblock');\n this._isEnabled = true;\n }\n };\n /** Unblocks page-level scroll while the attached overlay is open. */\n BlockScrollStrategy.prototype.disable = function () {\n if (this._isEnabled) {\n var html = this._document.documentElement;\n var body = this._document.body;\n var htmlStyle = html.style;\n var bodyStyle = body.style;\n var previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';\n var previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';\n this._isEnabled = false;\n htmlStyle.left = this._previousHTMLStyles.left;\n htmlStyle.top = this._previousHTMLStyles.top;\n html.classList.remove('cdk-global-scrollblock');\n // Disable user-defined smooth scrolling temporarily while we restore the scroll position.\n // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`,\n // because it can throw off feature detections in `supportsScrollBehavior` which\n // checks for `'scrollBehavior' in documentElement.style`.\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';\n }\n window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = previousHtmlScrollBehavior;\n bodyStyle.scrollBehavior = previousBodyScrollBehavior;\n }\n }\n };\n BlockScrollStrategy.prototype._canBeEnabled = function () {\n // Since the scroll strategies can't be singletons, we have to use a global CSS class\n // (`cdk-global-scrollblock`) to make sure that we don't try to disable global\n // scrolling multiple times.\n var html = this._document.documentElement;\n if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {\n return false;\n }\n var body = this._document.body;\n var viewport = this._viewportRuler.getViewportSize();\n return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;\n };\n return BlockScrollStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.\n */\n function getMatScrollStrategyAlreadyAttachedError() {\n return Error(\"Scroll strategy has already been attached.\");\n }\n\n /**\n * Strategy that will close the overlay as soon as the user starts scrolling.\n */\n var CloseScrollStrategy = /** @class */ (function () {\n function CloseScrollStrategy(_scrollDispatcher, _ngZone, _viewportRuler, _config) {\n var _this = this;\n this._scrollDispatcher = _scrollDispatcher;\n this._ngZone = _ngZone;\n this._viewportRuler = _viewportRuler;\n this._config = _config;\n this._scrollSubscription = null;\n /** Detaches the overlay ref and disables the scroll strategy. */\n this._detach = function () {\n _this.disable();\n if (_this._overlayRef.hasAttached()) {\n _this._ngZone.run(function () { return _this._overlayRef.detach(); });\n }\n };\n }\n /** Attaches this scroll strategy to an overlay. */\n CloseScrollStrategy.prototype.attach = function (overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n };\n /** Enables the closing of the attached overlay on scroll. */\n CloseScrollStrategy.prototype.enable = function () {\n var _this = this;\n if (this._scrollSubscription) {\n return;\n }\n var stream = this._scrollDispatcher.scrolled(0);\n if (this._config && this._config.threshold && this._config.threshold > 1) {\n this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n this._scrollSubscription = stream.subscribe(function () {\n var scrollPosition = _this._viewportRuler.getViewportScrollPosition().top;\n if (Math.abs(scrollPosition - _this._initialScrollPosition) > _this._config.threshold) {\n _this._detach();\n }\n else {\n _this._overlayRef.updatePosition();\n }\n });\n }\n else {\n this._scrollSubscription = stream.subscribe(this._detach);\n }\n };\n /** Disables the closing the attached overlay on scroll. */\n CloseScrollStrategy.prototype.disable = function () {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n };\n CloseScrollStrategy.prototype.detach = function () {\n this.disable();\n this._overlayRef = null;\n };\n return CloseScrollStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Scroll strategy that doesn't do anything. */\n var NoopScrollStrategy = /** @class */ (function () {\n function NoopScrollStrategy() {\n }\n /** Does nothing, as this scroll strategy is a no-op. */\n NoopScrollStrategy.prototype.enable = function () { };\n /** Does nothing, as this scroll strategy is a no-op. */\n NoopScrollStrategy.prototype.disable = function () { };\n /** Does nothing, as this scroll strategy is a no-op. */\n NoopScrollStrategy.prototype.attach = function () { };\n return NoopScrollStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // TODO(jelbourn): move this to live with the rest of the scrolling code\n // TODO(jelbourn): someday replace this with IntersectionObservers\n /**\n * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is scrolled out of view\n * @docs-private\n */\n function isElementScrolledOutsideView(element, scrollContainers) {\n return scrollContainers.some(function (containerBounds) {\n var outsideAbove = element.bottom < containerBounds.top;\n var outsideBelow = element.top > containerBounds.bottom;\n var outsideLeft = element.right < containerBounds.left;\n var outsideRight = element.left > containerBounds.right;\n return outsideAbove || outsideBelow || outsideLeft || outsideRight;\n });\n }\n /**\n * Gets whether an element is clipped by any of its scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is clipped\n * @docs-private\n */\n function isElementClippedByScrolling(element, scrollContainers) {\n return scrollContainers.some(function (scrollContainerRect) {\n var clippedAbove = element.top < scrollContainerRect.top;\n var clippedBelow = element.bottom > scrollContainerRect.bottom;\n var clippedLeft = element.left < scrollContainerRect.left;\n var clippedRight = element.right > scrollContainerRect.right;\n return clippedAbove || clippedBelow || clippedLeft || clippedRight;\n });\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Strategy that will update the element position as the user is scrolling.\n */\n var RepositionScrollStrategy = /** @class */ (function () {\n function RepositionScrollStrategy(_scrollDispatcher, _viewportRuler, _ngZone, _config) {\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n this._config = _config;\n this._scrollSubscription = null;\n }\n /** Attaches this scroll strategy to an overlay. */\n RepositionScrollStrategy.prototype.attach = function (overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n };\n /** Enables repositioning of the attached overlay on scroll. */\n RepositionScrollStrategy.prototype.enable = function () {\n var _this = this;\n if (!this._scrollSubscription) {\n var throttle = this._config ? this._config.scrollThrottle : 0;\n this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(function () {\n _this._overlayRef.updatePosition();\n // TODO(crisbeto): make `close` on by default once all components can handle it.\n if (_this._config && _this._config.autoClose) {\n var overlayRect = _this._overlayRef.overlayElement.getBoundingClientRect();\n var _a = _this._viewportRuler.getViewportSize(), width = _a.width, height = _a.height;\n // TODO(crisbeto): include all ancestor scroll containers here once\n // we have a way of exposing the trigger element to the scroll strategy.\n var parentRects = [{ width: width, height: height, bottom: height, right: width, top: 0, left: 0 }];\n if (isElementScrolledOutsideView(overlayRect, parentRects)) {\n _this.disable();\n _this._ngZone.run(function () { return _this._overlayRef.detach(); });\n }\n }\n });\n }\n };\n /** Disables repositioning of the attached overlay on scroll. */\n RepositionScrollStrategy.prototype.disable = function () {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n };\n RepositionScrollStrategy.prototype.detach = function () {\n this.disable();\n this._overlayRef = null;\n };\n return RepositionScrollStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Options for how an overlay will handle scrolling.\n *\n * Users can provide a custom value for `ScrollStrategyOptions` to replace the default\n * behaviors. This class primarily acts as a factory for ScrollStrategy instances.\n */\n var ScrollStrategyOptions = /** @class */ (function () {\n function ScrollStrategyOptions(_scrollDispatcher, _viewportRuler, _ngZone, document) {\n var _this = this;\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n /** Do nothing on scroll. */\n this.noop = function () { return new NoopScrollStrategy(); };\n /**\n * Close the overlay as soon as the user scrolls.\n * @param config Configuration to be used inside the scroll strategy.\n */\n this.close = function (config) { return new CloseScrollStrategy(_this._scrollDispatcher, _this._ngZone, _this._viewportRuler, config); };\n /** Block scrolling. */\n this.block = function () { return new BlockScrollStrategy(_this._viewportRuler, _this._document); };\n /**\n * Update the overlay's position on scroll.\n * @param config Configuration to be used inside the scroll strategy.\n * Allows debouncing the reposition calls.\n */\n this.reposition = function (config) { return new RepositionScrollStrategy(_this._scrollDispatcher, _this._viewportRuler, _this._ngZone, config); };\n this._document = document;\n }\n return ScrollStrategyOptions;\n }());\n ScrollStrategyOptions.ɵprov = i0.ɵɵdefineInjectable({ factory: function ScrollStrategyOptions_Factory() { return new ScrollStrategyOptions(i0.ɵɵinject(i1.ScrollDispatcher), i0.ɵɵinject(i1.ViewportRuler), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1$1.DOCUMENT)); }, token: ScrollStrategyOptions, providedIn: \"root\" });\n ScrollStrategyOptions.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n ScrollStrategyOptions.ctorParameters = function () { return [\n { type: i1.ScrollDispatcher },\n { type: i1.ViewportRuler },\n { type: i0.NgZone },\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /** Initial configuration used when creating an overlay. */\n var OverlayConfig = /** @class */ (function () {\n function OverlayConfig(config) {\n var e_1, _a;\n /** Strategy to be used when handling scroll events while the overlay is open. */\n this.scrollStrategy = new NoopScrollStrategy();\n /** Custom class to add to the overlay pane. */\n this.panelClass = '';\n /** Whether the overlay has a backdrop. */\n this.hasBackdrop = false;\n /** Custom class to add to the backdrop */\n this.backdropClass = 'cdk-overlay-dark-backdrop';\n /**\n * Whether the overlay should be disposed of when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.disposeOnNavigation = false;\n if (config) {\n // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n var configKeys = Object.keys(config);\n try {\n for (var configKeys_1 = __values(configKeys), configKeys_1_1 = configKeys_1.next(); !configKeys_1_1.done; configKeys_1_1 = configKeys_1.next()) {\n var key = configKeys_1_1.value;\n if (config[key] !== undefined) {\n // TypeScript, as of version 3.5, sees the left-hand-side of this expression\n // as \"I don't know *which* key this is, so the only valid value is the intersection\n // of all the posible values.\" In this case, that happens to be `undefined`. TypeScript\n // is not smart enough to see that the right-hand-side is actually an access of the same\n // exact type with the same exact key, meaning that the value type must be identical.\n // So we use `any` to work around this.\n this[key] = config[key];\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (configKeys_1_1 && !configKeys_1_1.done && (_a = configKeys_1.return)) _a.call(configKeys_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n }\n return OverlayConfig;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** The points of the origin element and the overlay element to connect. */\n var ConnectionPositionPair = /** @class */ (function () {\n function ConnectionPositionPair(origin, overlay, \n /** Offset along the X axis. */\n offsetX, \n /** Offset along the Y axis. */\n offsetY, \n /** Class(es) to be applied to the panel while this position is active. */\n panelClass) {\n this.offsetX = offsetX;\n this.offsetY = offsetY;\n this.panelClass = panelClass;\n this.originX = origin.originX;\n this.originY = origin.originY;\n this.overlayX = overlay.overlayX;\n this.overlayY = overlay.overlayY;\n }\n return ConnectionPositionPair;\n }());\n /**\n * Set of properties regarding the position of the origin and overlay relative to the viewport\n * with respect to the containing Scrollable elements.\n *\n * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the\n * bounds of any one of the strategy's Scrollable's bounding client rectangle.\n *\n * The overlay and origin are outside view if there is no overlap between their bounding client\n * rectangle and any one of the strategy's Scrollable's bounding client rectangle.\n *\n * ----------- -----------\n * | outside | | clipped |\n * | view | --------------------------\n * | | | | | |\n * ---------- | ----------- |\n * -------------------------- | |\n * | | | Scrollable |\n * | | | |\n * | | --------------------------\n * | Scrollable |\n * | |\n * --------------------------\n *\n * @docs-private\n */\n var ScrollingVisibility = /** @class */ (function () {\n function ScrollingVisibility() {\n }\n return ScrollingVisibility;\n }());\n /** The change event emitted by the strategy when a fallback position is used. */\n var ConnectedOverlayPositionChange = /** @class */ (function () {\n function ConnectedOverlayPositionChange(\n /** The position used as a result of this change. */\n connectionPair, \n /** @docs-private */\n scrollableViewProperties) {\n this.connectionPair = connectionPair;\n this.scrollableViewProperties = scrollableViewProperties;\n }\n return ConnectedOverlayPositionChange;\n }());\n ConnectedOverlayPositionChange.ctorParameters = function () { return [\n { type: ConnectionPositionPair },\n { type: ScrollingVisibility, decorators: [{ type: i0.Optional }] }\n ]; };\n /**\n * Validates whether a vertical position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\n function validateVerticalPosition(property, value) {\n if (value !== 'top' && value !== 'bottom' && value !== 'center') {\n throw Error(\"ConnectedPosition: Invalid \" + property + \" \\\"\" + value + \"\\\". \" +\n \"Expected \\\"top\\\", \\\"bottom\\\" or \\\"center\\\".\");\n }\n }\n /**\n * Validates whether a horizontal position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\n function validateHorizontalPosition(property, value) {\n if (value !== 'start' && value !== 'end' && value !== 'center') {\n throw Error(\"ConnectedPosition: Invalid \" + property + \" \\\"\" + value + \"\\\". \" +\n \"Expected \\\"start\\\", \\\"end\\\" or \\\"center\\\".\");\n }\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Service for dispatching events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\n var BaseOverlayDispatcher = /** @class */ (function () {\n function BaseOverlayDispatcher(document) {\n /** Currently attached overlays in the order they were attached. */\n this._attachedOverlays = [];\n this._document = document;\n }\n BaseOverlayDispatcher.prototype.ngOnDestroy = function () {\n this.detach();\n };\n /** Add a new overlay to the list of attached overlay refs. */\n BaseOverlayDispatcher.prototype.add = function (overlayRef) {\n // Ensure that we don't get the same overlay multiple times.\n this.remove(overlayRef);\n this._attachedOverlays.push(overlayRef);\n };\n /** Remove an overlay from the list of attached overlay refs. */\n BaseOverlayDispatcher.prototype.remove = function (overlayRef) {\n var index = this._attachedOverlays.indexOf(overlayRef);\n if (index > -1) {\n this._attachedOverlays.splice(index, 1);\n }\n // Remove the global listener once there are no more overlays.\n if (this._attachedOverlays.length === 0) {\n this.detach();\n }\n };\n return BaseOverlayDispatcher;\n }());\n BaseOverlayDispatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function BaseOverlayDispatcher_Factory() { return new BaseOverlayDispatcher(i0.ɵɵinject(i1$1.DOCUMENT)); }, token: BaseOverlayDispatcher, providedIn: \"root\" });\n BaseOverlayDispatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n BaseOverlayDispatcher.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] }\n ]; };\n\n /**\n * Service for dispatching keyboard events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\n var OverlayKeyboardDispatcher = /** @class */ (function (_super) {\n __extends(OverlayKeyboardDispatcher, _super);\n function OverlayKeyboardDispatcher(document) {\n var _this = _super.call(this, document) || this;\n /** Keyboard event listener that will be attached to the body. */\n _this._keydownListener = function (event) {\n var overlays = _this._attachedOverlays;\n for (var i = overlays.length - 1; i > -1; i--) {\n // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.\n // We want to target the most recent overlay, rather than trying to match where the event came\n // from, because some components might open an overlay, but keep focus on a trigger element\n // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,\n // because we don't want overlays that don't handle keyboard events to block the ones below\n // them that do.\n if (overlays[i]._keydownEvents.observers.length > 0) {\n overlays[i]._keydownEvents.next(event);\n break;\n }\n }\n };\n return _this;\n }\n /** Add a new overlay to the list of attached overlay refs. */\n OverlayKeyboardDispatcher.prototype.add = function (overlayRef) {\n _super.prototype.add.call(this, overlayRef);\n // Lazily start dispatcher once first overlay is added\n if (!this._isAttached) {\n this._document.body.addEventListener('keydown', this._keydownListener);\n this._isAttached = true;\n }\n };\n /** Detaches the global keyboard event listener. */\n OverlayKeyboardDispatcher.prototype.detach = function () {\n if (this._isAttached) {\n this._document.body.removeEventListener('keydown', this._keydownListener);\n this._isAttached = false;\n }\n };\n return OverlayKeyboardDispatcher;\n }(BaseOverlayDispatcher));\n OverlayKeyboardDispatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function OverlayKeyboardDispatcher_Factory() { return new OverlayKeyboardDispatcher(i0.ɵɵinject(i1$1.DOCUMENT)); }, token: OverlayKeyboardDispatcher, providedIn: \"root\" });\n OverlayKeyboardDispatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n OverlayKeyboardDispatcher.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] }\n ]; };\n\n /**\n * Service for dispatching mouse click events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\n var OverlayOutsideClickDispatcher = /** @class */ (function (_super) {\n __extends(OverlayOutsideClickDispatcher, _super);\n function OverlayOutsideClickDispatcher(document, _platform) {\n var _this = _super.call(this, document) || this;\n _this._platform = _platform;\n _this._cursorStyleIsSet = false;\n /** Click event listener that will be attached to the body propagate phase. */\n _this._clickListener = function (event) {\n // Get the target through the `composedPath` if possible to account for shadow DOM.\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n // We copy the array because the original may be modified asynchronously if the\n // outsidePointerEvents listener decides to detach overlays resulting in index errors inside\n // the for loop.\n var overlays = _this._attachedOverlays.slice();\n // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.\n // We want to target all overlays for which the click could be considered as outside click.\n // As soon as we reach an overlay for which the click is not outside click we break off\n // the loop.\n for (var i = overlays.length - 1; i > -1; i--) {\n var overlayRef = overlays[i];\n if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {\n continue;\n }\n // If it's a click inside the overlay, just break - we should do nothing\n // If it's an outside click dispatch the mouse event, and proceed with the next overlay\n if (overlayRef.overlayElement.contains(target)) {\n break;\n }\n overlayRef._outsidePointerEvents.next(event);\n }\n };\n return _this;\n }\n /** Add a new overlay to the list of attached overlay refs. */\n OverlayOutsideClickDispatcher.prototype.add = function (overlayRef) {\n _super.prototype.add.call(this, overlayRef);\n // Safari on iOS does not generate click events for non-interactive\n // elements. However, we want to receive a click for any element outside\n // the overlay. We can force a \"clickable\" state by setting\n // `cursor: pointer` on the document body. See:\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile\n // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n if (!this._isAttached) {\n var body = this._document.body;\n body.addEventListener('click', this._clickListener, true);\n body.addEventListener('auxclick', this._clickListener, true);\n body.addEventListener('contextmenu', this._clickListener, true);\n // click event is not fired on iOS. To make element \"clickable\" we are\n // setting the cursor to pointer\n if (this._platform.IOS && !this._cursorStyleIsSet) {\n this._cursorOriginalValue = body.style.cursor;\n body.style.cursor = 'pointer';\n this._cursorStyleIsSet = true;\n }\n this._isAttached = true;\n }\n };\n /** Detaches the global keyboard event listener. */\n OverlayOutsideClickDispatcher.prototype.detach = function () {\n if (this._isAttached) {\n var body = this._document.body;\n body.removeEventListener('click', this._clickListener, true);\n body.removeEventListener('auxclick', this._clickListener, true);\n body.removeEventListener('contextmenu', this._clickListener, true);\n if (this._platform.IOS && this._cursorStyleIsSet) {\n body.style.cursor = this._cursorOriginalValue;\n this._cursorStyleIsSet = false;\n }\n this._isAttached = false;\n }\n };\n return OverlayOutsideClickDispatcher;\n }(BaseOverlayDispatcher));\n OverlayOutsideClickDispatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function OverlayOutsideClickDispatcher_Factory() { return new OverlayOutsideClickDispatcher(i0.ɵɵinject(i1$1.DOCUMENT), i0.ɵɵinject(i2.Platform)); }, token: OverlayOutsideClickDispatcher, providedIn: \"root\" });\n OverlayOutsideClickDispatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n OverlayOutsideClickDispatcher.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] },\n { type: i2.Platform }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Whether we're in a testing environment.\n * TODO(crisbeto): remove this once we have an overlay testing module.\n */\n var isTestEnvironment = typeof window !== 'undefined' && !!window &&\n !!(window.__karma__ || window.jasmine);\n /** Container inside which all overlays will render. */\n var OverlayContainer = /** @class */ (function () {\n function OverlayContainer(document, _platform) {\n this._platform = _platform;\n this._document = document;\n }\n OverlayContainer.prototype.ngOnDestroy = function () {\n var container = this._containerElement;\n if (container && container.parentNode) {\n container.parentNode.removeChild(container);\n }\n };\n /**\n * This method returns the overlay container element. It will lazily\n * create the element the first time it is called to facilitate using\n * the container in non-browser environments.\n * @returns the container element\n */\n OverlayContainer.prototype.getContainerElement = function () {\n if (!this._containerElement) {\n this._createContainer();\n }\n return this._containerElement;\n };\n /**\n * Create the overlay container element, which is simply a div\n * with the 'cdk-overlay-container' class on the document body.\n */\n OverlayContainer.prototype._createContainer = function () {\n var containerClass = 'cdk-overlay-container';\n if (this._platform.isBrowser || isTestEnvironment) {\n var oppositePlatformContainers = this._document.querySelectorAll(\".\" + containerClass + \"[platform=\\\"server\\\"], \" +\n (\".\" + containerClass + \"[platform=\\\"test\\\"]\"));\n // Remove any old containers from the opposite platform.\n // This can happen when transitioning from the server to the client.\n for (var i = 0; i < oppositePlatformContainers.length; i++) {\n oppositePlatformContainers[i].parentNode.removeChild(oppositePlatformContainers[i]);\n }\n }\n var container = this._document.createElement('div');\n container.classList.add(containerClass);\n // A long time ago we kept adding new overlay containers whenever a new app was instantiated,\n // but at some point we added logic which clears the duplicate ones in order to avoid leaks.\n // The new logic was a little too aggressive since it was breaking some legitimate use cases.\n // To mitigate the problem we made it so that only containers from a different platform are\n // cleared, but the side-effect was that people started depending on the overly-aggressive\n // logic to clean up their tests for them. Until we can introduce an overlay-specific testing\n // module which does the cleanup, we try to detect that we're in a test environment and we\n // always clear the container. See #17006.\n // TODO(crisbeto): remove the test environment check once we have an overlay testing module.\n if (isTestEnvironment) {\n container.setAttribute('platform', 'test');\n }\n else if (!this._platform.isBrowser) {\n container.setAttribute('platform', 'server');\n }\n this._document.body.appendChild(container);\n this._containerElement = container;\n };\n return OverlayContainer;\n }());\n OverlayContainer.ɵprov = i0.ɵɵdefineInjectable({ factory: function OverlayContainer_Factory() { return new OverlayContainer(i0.ɵɵinject(i1$1.DOCUMENT), i0.ɵɵinject(i2.Platform)); }, token: OverlayContainer, providedIn: \"root\" });\n OverlayContainer.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n OverlayContainer.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] },\n { type: i2.Platform }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\n var OverlayRef = /** @class */ (function () {\n function OverlayRef(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher) {\n var _this = this;\n this._portalOutlet = _portalOutlet;\n this._host = _host;\n this._pane = _pane;\n this._config = _config;\n this._ngZone = _ngZone;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._document = _document;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n this._backdropElement = null;\n this._backdropClick = new rxjs.Subject();\n this._attachments = new rxjs.Subject();\n this._detachments = new rxjs.Subject();\n this._locationChanges = rxjs.Subscription.EMPTY;\n this._backdropClickHandler = function (event) { return _this._backdropClick.next(event); };\n /** Stream of keydown events dispatched to this overlay. */\n this._keydownEvents = new rxjs.Subject();\n /** Stream of mouse outside events dispatched to this overlay. */\n this._outsidePointerEvents = new rxjs.Subject();\n if (_config.scrollStrategy) {\n this._scrollStrategy = _config.scrollStrategy;\n this._scrollStrategy.attach(this);\n }\n this._positionStrategy = _config.positionStrategy;\n }\n Object.defineProperty(OverlayRef.prototype, \"overlayElement\", {\n /** The overlay's HTML element */\n get: function () {\n return this._pane;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(OverlayRef.prototype, \"backdropElement\", {\n /** The overlay's backdrop HTML element. */\n get: function () {\n return this._backdropElement;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(OverlayRef.prototype, \"hostElement\", {\n /**\n * Wrapper around the panel element. Can be used for advanced\n * positioning where a wrapper with specific styling is\n * required around the overlay pane.\n */\n get: function () {\n return this._host;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Attaches content, given via a Portal, to the overlay.\n * If the overlay is configured to have a backdrop, it will be created.\n *\n * @param portal Portal instance to which to attach the overlay.\n * @returns The portal attachment result.\n */\n OverlayRef.prototype.attach = function (portal) {\n var _this = this;\n var attachResult = this._portalOutlet.attach(portal);\n // Update the pane element with the given configuration.\n if (!this._host.parentElement && this._previousHostParent) {\n this._previousHostParent.appendChild(this._host);\n }\n if (this._positionStrategy) {\n this._positionStrategy.attach(this);\n }\n this._updateStackingOrder();\n this._updateElementSize();\n this._updateElementDirection();\n if (this._scrollStrategy) {\n this._scrollStrategy.enable();\n }\n // Update the position once the zone is stable so that the overlay will be fully rendered\n // before attempting to position it, as the position may depend on the size of the rendered\n // content.\n this._ngZone.onStable\n .pipe(operators.take(1))\n .subscribe(function () {\n // The overlay could've been detached before the zone has stabilized.\n if (_this.hasAttached()) {\n _this.updatePosition();\n }\n });\n // Enable pointer events for the overlay pane element.\n this._togglePointerEvents(true);\n if (this._config.hasBackdrop) {\n this._attachBackdrop();\n }\n if (this._config.panelClass) {\n this._toggleClasses(this._pane, this._config.panelClass, true);\n }\n // Only emit the `attachments` event once all other setup is done.\n this._attachments.next();\n // Track this overlay by the keyboard dispatcher\n this._keyboardDispatcher.add(this);\n if (this._config.disposeOnNavigation) {\n this._locationChanges = this._location.subscribe(function () { return _this.dispose(); });\n }\n this._outsideClickDispatcher.add(this);\n return attachResult;\n };\n /**\n * Detaches an overlay from a portal.\n * @returns The portal detachment result.\n */\n OverlayRef.prototype.detach = function () {\n if (!this.hasAttached()) {\n return;\n }\n this.detachBackdrop();\n // When the overlay is detached, the pane element should disable pointer events.\n // This is necessary because otherwise the pane element will cover the page and disable\n // pointer events therefore. Depends on the position strategy and the applied pane boundaries.\n this._togglePointerEvents(false);\n if (this._positionStrategy && this._positionStrategy.detach) {\n this._positionStrategy.detach();\n }\n if (this._scrollStrategy) {\n this._scrollStrategy.disable();\n }\n var detachmentResult = this._portalOutlet.detach();\n // Only emit after everything is detached.\n this._detachments.next();\n // Remove this overlay from keyboard dispatcher tracking.\n this._keyboardDispatcher.remove(this);\n // Keeping the host element in the DOM can cause scroll jank, because it still gets\n // rendered, even though it's transparent and unclickable which is why we remove it.\n this._detachContentWhenStable();\n this._locationChanges.unsubscribe();\n this._outsideClickDispatcher.remove(this);\n return detachmentResult;\n };\n /** Cleans up the overlay from the DOM. */\n OverlayRef.prototype.dispose = function () {\n var isAttached = this.hasAttached();\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._disposeScrollStrategy();\n this.detachBackdrop();\n this._locationChanges.unsubscribe();\n this._keyboardDispatcher.remove(this);\n this._portalOutlet.dispose();\n this._attachments.complete();\n this._backdropClick.complete();\n this._keydownEvents.complete();\n this._outsidePointerEvents.complete();\n this._outsideClickDispatcher.remove(this);\n if (this._host && this._host.parentNode) {\n this._host.parentNode.removeChild(this._host);\n this._host = null;\n }\n this._previousHostParent = this._pane = null;\n if (isAttached) {\n this._detachments.next();\n }\n this._detachments.complete();\n };\n /** Whether the overlay has attached content. */\n OverlayRef.prototype.hasAttached = function () {\n return this._portalOutlet.hasAttached();\n };\n /** Gets an observable that emits when the backdrop has been clicked. */\n OverlayRef.prototype.backdropClick = function () {\n return this._backdropClick;\n };\n /** Gets an observable that emits when the overlay has been attached. */\n OverlayRef.prototype.attachments = function () {\n return this._attachments;\n };\n /** Gets an observable that emits when the overlay has been detached. */\n OverlayRef.prototype.detachments = function () {\n return this._detachments;\n };\n /** Gets an observable of keydown events targeted to this overlay. */\n OverlayRef.prototype.keydownEvents = function () {\n return this._keydownEvents;\n };\n /** Gets an observable of pointer events targeted outside this overlay. */\n OverlayRef.prototype.outsidePointerEvents = function () {\n return this._outsidePointerEvents;\n };\n /** Gets the current overlay configuration, which is immutable. */\n OverlayRef.prototype.getConfig = function () {\n return this._config;\n };\n /** Updates the position of the overlay based on the position strategy. */\n OverlayRef.prototype.updatePosition = function () {\n if (this._positionStrategy) {\n this._positionStrategy.apply();\n }\n };\n /** Switches to a new position strategy and updates the overlay position. */\n OverlayRef.prototype.updatePositionStrategy = function (strategy) {\n if (strategy === this._positionStrategy) {\n return;\n }\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._positionStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n this.updatePosition();\n }\n };\n /** Update the size properties of the overlay. */\n OverlayRef.prototype.updateSize = function (sizeConfig) {\n this._config = Object.assign(Object.assign({}, this._config), sizeConfig);\n this._updateElementSize();\n };\n /** Sets the LTR/RTL direction for the overlay. */\n OverlayRef.prototype.setDirection = function (dir) {\n this._config = Object.assign(Object.assign({}, this._config), { direction: dir });\n this._updateElementDirection();\n };\n /** Add a CSS class or an array of classes to the overlay pane. */\n OverlayRef.prototype.addPanelClass = function (classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, true);\n }\n };\n /** Remove a CSS class or an array of classes from the overlay pane. */\n OverlayRef.prototype.removePanelClass = function (classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, false);\n }\n };\n /**\n * Returns the layout direction of the overlay panel.\n */\n OverlayRef.prototype.getDirection = function () {\n var direction = this._config.direction;\n if (!direction) {\n return 'ltr';\n }\n return typeof direction === 'string' ? direction : direction.value;\n };\n /** Switches to a new scroll strategy. */\n OverlayRef.prototype.updateScrollStrategy = function (strategy) {\n if (strategy === this._scrollStrategy) {\n return;\n }\n this._disposeScrollStrategy();\n this._scrollStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n strategy.enable();\n }\n };\n /** Updates the text direction of the overlay panel. */\n OverlayRef.prototype._updateElementDirection = function () {\n this._host.setAttribute('dir', this.getDirection());\n };\n /** Updates the size of the overlay element based on the overlay config. */\n OverlayRef.prototype._updateElementSize = function () {\n if (!this._pane) {\n return;\n }\n var style = this._pane.style;\n style.width = coercion.coerceCssPixelValue(this._config.width);\n style.height = coercion.coerceCssPixelValue(this._config.height);\n style.minWidth = coercion.coerceCssPixelValue(this._config.minWidth);\n style.minHeight = coercion.coerceCssPixelValue(this._config.minHeight);\n style.maxWidth = coercion.coerceCssPixelValue(this._config.maxWidth);\n style.maxHeight = coercion.coerceCssPixelValue(this._config.maxHeight);\n };\n /** Toggles the pointer events for the overlay pane element. */\n OverlayRef.prototype._togglePointerEvents = function (enablePointer) {\n this._pane.style.pointerEvents = enablePointer ? '' : 'none';\n };\n /** Attaches a backdrop for this overlay. */\n OverlayRef.prototype._attachBackdrop = function () {\n var _this = this;\n var showingClass = 'cdk-overlay-backdrop-showing';\n this._backdropElement = this._document.createElement('div');\n this._backdropElement.classList.add('cdk-overlay-backdrop');\n if (this._config.backdropClass) {\n this._toggleClasses(this._backdropElement, this._config.backdropClass, true);\n }\n // Insert the backdrop before the pane in the DOM order,\n // in order to handle stacked overlays properly.\n this._host.parentElement.insertBefore(this._backdropElement, this._host);\n // Forward backdrop clicks such that the consumer of the overlay can perform whatever\n // action desired when such a click occurs (usually closing the overlay).\n this._backdropElement.addEventListener('click', this._backdropClickHandler);\n // Add class to fade-in the backdrop after one frame.\n if (typeof requestAnimationFrame !== 'undefined') {\n this._ngZone.runOutsideAngular(function () {\n requestAnimationFrame(function () {\n if (_this._backdropElement) {\n _this._backdropElement.classList.add(showingClass);\n }\n });\n });\n }\n else {\n this._backdropElement.classList.add(showingClass);\n }\n };\n /**\n * Updates the stacking order of the element, moving it to the top if necessary.\n * This is required in cases where one overlay was detached, while another one,\n * that should be behind it, was destroyed. The next time both of them are opened,\n * the stacking will be wrong, because the detached element's pane will still be\n * in its original DOM position.\n */\n OverlayRef.prototype._updateStackingOrder = function () {\n if (this._host.nextSibling) {\n this._host.parentNode.appendChild(this._host);\n }\n };\n /** Detaches the backdrop (if any) associated with the overlay. */\n OverlayRef.prototype.detachBackdrop = function () {\n var _this = this;\n var backdropToDetach = this._backdropElement;\n if (!backdropToDetach) {\n return;\n }\n var timeoutId;\n var finishDetach = function () {\n // It may not be attached to anything in certain cases (e.g. unit tests).\n if (backdropToDetach) {\n backdropToDetach.removeEventListener('click', _this._backdropClickHandler);\n backdropToDetach.removeEventListener('transitionend', finishDetach);\n if (backdropToDetach.parentNode) {\n backdropToDetach.parentNode.removeChild(backdropToDetach);\n }\n }\n // It is possible that a new portal has been attached to this overlay since we started\n // removing the backdrop. If that is the case, only clear the backdrop reference if it\n // is still the same instance that we started to remove.\n if (_this._backdropElement == backdropToDetach) {\n _this._backdropElement = null;\n }\n if (_this._config.backdropClass) {\n _this._toggleClasses(backdropToDetach, _this._config.backdropClass, false);\n }\n clearTimeout(timeoutId);\n };\n backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');\n this._ngZone.runOutsideAngular(function () {\n backdropToDetach.addEventListener('transitionend', finishDetach);\n });\n // If the backdrop doesn't have a transition, the `transitionend` event won't fire.\n // In this case we make it unclickable and we try to remove it after a delay.\n backdropToDetach.style.pointerEvents = 'none';\n // Run this outside the Angular zone because there's nothing that Angular cares about.\n // If it were to run inside the Angular zone, every test that used Overlay would have to be\n // either async or fakeAsync.\n timeoutId = this._ngZone.runOutsideAngular(function () { return setTimeout(finishDetach, 500); });\n };\n /** Toggles a single CSS class or an array of classes on an element. */\n OverlayRef.prototype._toggleClasses = function (element, cssClasses, isAdd) {\n var classList = element.classList;\n coercion.coerceArray(cssClasses).forEach(function (cssClass) {\n // We can't do a spread here, because IE doesn't support setting multiple classes.\n // Also trying to add an empty string to a DOMTokenList will throw.\n if (cssClass) {\n isAdd ? classList.add(cssClass) : classList.remove(cssClass);\n }\n });\n };\n /** Detaches the overlay content next time the zone stabilizes. */\n OverlayRef.prototype._detachContentWhenStable = function () {\n var _this = this;\n // Normally we wouldn't have to explicitly run this outside the `NgZone`, however\n // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will\n // be patched to run inside the zone, which will throw us into an infinite loop.\n this._ngZone.runOutsideAngular(function () {\n // We can't remove the host here immediately, because the overlay pane's content\n // might still be animating. This stream helps us avoid interrupting the animation\n // by waiting for the pane to become empty.\n var subscription = _this._ngZone.onStable\n .pipe(operators.takeUntil(rxjs.merge(_this._attachments, _this._detachments)))\n .subscribe(function () {\n // Needs a couple of checks for the pane and host, because\n // they may have been removed by the time the zone stabilizes.\n if (!_this._pane || !_this._host || _this._pane.children.length === 0) {\n if (_this._pane && _this._config.panelClass) {\n _this._toggleClasses(_this._pane, _this._config.panelClass, false);\n }\n if (_this._host && _this._host.parentElement) {\n _this._previousHostParent = _this._host.parentElement;\n _this._previousHostParent.removeChild(_this._host);\n }\n subscription.unsubscribe();\n }\n });\n });\n };\n /** Disposes of a scroll strategy. */\n OverlayRef.prototype._disposeScrollStrategy = function () {\n var scrollStrategy = this._scrollStrategy;\n if (scrollStrategy) {\n scrollStrategy.disable();\n if (scrollStrategy.detach) {\n scrollStrategy.detach();\n }\n }\n };\n return OverlayRef;\n }());\n\n // TODO: refactor clipping detection into a separate thing (part of scrolling module)\n // TODO: doesn't handle both flexible width and height when it has to scroll along both axis.\n /** Class to be added to the overlay bounding box. */\n var boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';\n /** Regex used to split a string on its CSS units. */\n var cssUnitPattern = /([A-Za-z%]+)$/;\n /**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n */\n var FlexibleConnectedPositionStrategy = /** @class */ (function () {\n function FlexibleConnectedPositionStrategy(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */\n this._lastBoundingBoxSize = { width: 0, height: 0 };\n /** Whether the overlay was pushed in a previous positioning. */\n this._isPushed = false;\n /** Whether the overlay can be pushed on-screen on the initial open. */\n this._canPush = true;\n /** Whether the overlay can grow via flexible width/height after the initial open. */\n this._growAfterOpen = false;\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n this._hasFlexibleDimensions = true;\n /** Whether the overlay position is locked. */\n this._positionLocked = false;\n /** Amount of space that must be maintained between the overlay and the edge of the viewport. */\n this._viewportMargin = 0;\n /** The Scrollable containers used to check scrollable view properties on position change. */\n this._scrollables = [];\n /** Ordered list of preferred positions, from most to least desirable. */\n this._preferredPositions = [];\n /** Subject that emits whenever the position changes. */\n this._positionChanges = new rxjs.Subject();\n /** Subscription to viewport size changes. */\n this._resizeSubscription = rxjs.Subscription.EMPTY;\n /** Default offset for the overlay along the x axis. */\n this._offsetX = 0;\n /** Default offset for the overlay along the y axis. */\n this._offsetY = 0;\n /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */\n this._appliedPanelClasses = [];\n /** Observable sequence of position changes. */\n this.positionChanges = this._positionChanges;\n this.setOrigin(connectedTo);\n }\n Object.defineProperty(FlexibleConnectedPositionStrategy.prototype, \"positions\", {\n /** Ordered list of preferred positions, from most to least desirable. */\n get: function () {\n return this._preferredPositions;\n },\n enumerable: false,\n configurable: true\n });\n /** Attaches this position strategy to an overlay. */\n FlexibleConnectedPositionStrategy.prototype.attach = function (overlayRef) {\n var _this = this;\n if (this._overlayRef && overlayRef !== this._overlayRef &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('This position strategy is already attached to an overlay');\n }\n this._validatePositions();\n overlayRef.hostElement.classList.add(boundingBoxClass);\n this._overlayRef = overlayRef;\n this._boundingBox = overlayRef.hostElement;\n this._pane = overlayRef.overlayElement;\n this._isDisposed = false;\n this._isInitialRender = true;\n this._lastPosition = null;\n this._resizeSubscription.unsubscribe();\n this._resizeSubscription = this._viewportRuler.change().subscribe(function () {\n // When the window is resized, we want to trigger the next reposition as if it\n // was an initial render, in order for the strategy to pick a new optimal position,\n // otherwise position locking will cause it to stay at the old one.\n _this._isInitialRender = true;\n _this.apply();\n });\n };\n /**\n * Updates the position of the overlay element, using whichever preferred position relative\n * to the origin best fits on-screen.\n *\n * The selection of a position goes as follows:\n * - If any positions fit completely within the viewport as-is,\n * choose the first position that does so.\n * - If flexible dimensions are enabled and at least one satifies the given minimum width/height,\n * choose the position with the greatest available size modified by the positions' weight.\n * - If pushing is enabled, take the position that went off-screen the least and push it\n * on-screen.\n * - If none of the previous criteria were met, use the position that goes off-screen the least.\n * @docs-private\n */\n FlexibleConnectedPositionStrategy.prototype.apply = function () {\n var e_1, _a, e_2, _b;\n // We shouldn't do anything if the strategy was disposed or we're on the server.\n if (this._isDisposed || !this._platform.isBrowser) {\n return;\n }\n // If the position has been applied already (e.g. when the overlay was opened) and the\n // consumer opted into locking in the position, re-use the old position, in order to\n // prevent the overlay from jumping around.\n if (!this._isInitialRender && this._positionLocked && this._lastPosition) {\n this.reapplyLastPosition();\n return;\n }\n this._clearPanelClasses();\n this._resetOverlayElementStyles();\n this._resetBoundingBoxStyles();\n // We need the bounding rects for the origin and the overlay to determine how to position\n // the overlay relative to the origin.\n // We use the viewport rect to determine whether a position would go off-screen.\n this._viewportRect = this._getNarrowedViewportRect();\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n var originRect = this._originRect;\n var overlayRect = this._overlayRect;\n var viewportRect = this._viewportRect;\n // Positions where the overlay will fit with flexible dimensions.\n var flexibleFits = [];\n // Fallback if none of the preferred positions fit within the viewport.\n var fallback;\n try {\n // Go through each of the preferred positions looking for a good fit.\n // If a good fit is found, it will be applied immediately.\n for (var _c = __values(this._preferredPositions), _d = _c.next(); !_d.done; _d = _c.next()) {\n var pos = _d.value;\n // Get the exact (x, y) coordinate for the point-of-origin on the origin element.\n var originPoint = this._getOriginPoint(originRect, pos);\n // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the\n // overlay in this position. We use the top-left corner for calculations and later translate\n // this into an appropriate (top, left, bottom, right) style.\n var overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos);\n // Calculate how well the overlay would fit into the viewport with this point.\n var overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos);\n // If the overlay, without any further work, fits into the viewport, use this position.\n if (overlayFit.isCompletelyWithinViewport) {\n this._isPushed = false;\n this._applyPosition(pos, originPoint);\n return;\n }\n // If the overlay has flexible dimensions, we can use this position\n // so long as there's enough space for the minimum dimensions.\n if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {\n // Save positions where the overlay will fit with flexible dimensions. We will use these\n // if none of the positions fit *without* flexible dimensions.\n flexibleFits.push({\n position: pos,\n origin: originPoint,\n overlayRect: overlayRect,\n boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)\n });\n continue;\n }\n // If the current preferred position does not fit on the screen, remember the position\n // if it has more visible area on-screen than we've seen and move onto the next preferred\n // position.\n if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {\n fallback = { overlayFit: overlayFit, overlayPoint: overlayPoint, originPoint: originPoint, position: pos, overlayRect: overlayRect };\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_1) throw e_1.error; }\n }\n // If there are any positions where the overlay would fit with flexible dimensions, choose the\n // one that has the greatest area available modified by the position's weight\n if (flexibleFits.length) {\n var bestFit = null;\n var bestScore = -1;\n try {\n for (var flexibleFits_1 = __values(flexibleFits), flexibleFits_1_1 = flexibleFits_1.next(); !flexibleFits_1_1.done; flexibleFits_1_1 = flexibleFits_1.next()) {\n var fit = flexibleFits_1_1.value;\n var score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);\n if (score > bestScore) {\n bestScore = score;\n bestFit = fit;\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (flexibleFits_1_1 && !flexibleFits_1_1.done && (_b = flexibleFits_1.return)) _b.call(flexibleFits_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n this._isPushed = false;\n this._applyPosition(bestFit.position, bestFit.origin);\n return;\n }\n // When none of the preferred positions fit within the viewport, take the position\n // that went off-screen the least and attempt to push it on-screen.\n if (this._canPush) {\n // TODO(jelbourn): after pushing, the opening \"direction\" of the overlay might not make sense.\n this._isPushed = true;\n this._applyPosition(fallback.position, fallback.originPoint);\n return;\n }\n // All options for getting the overlay within the viewport have been exhausted, so go with the\n // position that went off-screen the least.\n this._applyPosition(fallback.position, fallback.originPoint);\n };\n FlexibleConnectedPositionStrategy.prototype.detach = function () {\n this._clearPanelClasses();\n this._lastPosition = null;\n this._previousPushAmount = null;\n this._resizeSubscription.unsubscribe();\n };\n /** Cleanup after the element gets destroyed. */\n FlexibleConnectedPositionStrategy.prototype.dispose = function () {\n if (this._isDisposed) {\n return;\n }\n // We can't use `_resetBoundingBoxStyles` here, because it resets\n // some properties to zero, rather than removing them.\n if (this._boundingBox) {\n extendStyles(this._boundingBox.style, {\n top: '',\n left: '',\n right: '',\n bottom: '',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: '',\n });\n }\n if (this._pane) {\n this._resetOverlayElementStyles();\n }\n if (this._overlayRef) {\n this._overlayRef.hostElement.classList.remove(boundingBoxClass);\n }\n this.detach();\n this._positionChanges.complete();\n this._overlayRef = this._boundingBox = null;\n this._isDisposed = true;\n };\n /**\n * This re-aligns the overlay element with the trigger in its last calculated position,\n * even if a position higher in the \"preferred positions\" list would now fit. This\n * allows one to re-align the panel without changing the orientation of the panel.\n */\n FlexibleConnectedPositionStrategy.prototype.reapplyLastPosition = function () {\n if (!this._isDisposed && (!this._platform || this._platform.isBrowser)) {\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n this._viewportRect = this._getNarrowedViewportRect();\n var lastPosition = this._lastPosition || this._preferredPositions[0];\n var originPoint = this._getOriginPoint(this._originRect, lastPosition);\n this._applyPosition(lastPosition, originPoint);\n }\n };\n /**\n * Sets the list of Scrollable containers that host the origin element so that\n * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n * Scrollable must be an ancestor element of the strategy's origin element.\n */\n FlexibleConnectedPositionStrategy.prototype.withScrollableContainers = function (scrollables) {\n this._scrollables = scrollables;\n return this;\n };\n /**\n * Adds new preferred positions.\n * @param positions List of positions options for this overlay.\n */\n FlexibleConnectedPositionStrategy.prototype.withPositions = function (positions) {\n this._preferredPositions = positions;\n // If the last calculated position object isn't part of the positions anymore, clear\n // it in order to avoid it being picked up if the consumer tries to re-apply.\n if (positions.indexOf(this._lastPosition) === -1) {\n this._lastPosition = null;\n }\n this._validatePositions();\n return this;\n };\n /**\n * Sets a minimum distance the overlay may be positioned to the edge of the viewport.\n * @param margin Required margin between the overlay and the viewport edge in pixels.\n */\n FlexibleConnectedPositionStrategy.prototype.withViewportMargin = function (margin) {\n this._viewportMargin = margin;\n return this;\n };\n /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */\n FlexibleConnectedPositionStrategy.prototype.withFlexibleDimensions = function (flexibleDimensions) {\n if (flexibleDimensions === void 0) { flexibleDimensions = true; }\n this._hasFlexibleDimensions = flexibleDimensions;\n return this;\n };\n /** Sets whether the overlay can grow after the initial open via flexible width/height. */\n FlexibleConnectedPositionStrategy.prototype.withGrowAfterOpen = function (growAfterOpen) {\n if (growAfterOpen === void 0) { growAfterOpen = true; }\n this._growAfterOpen = growAfterOpen;\n return this;\n };\n /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */\n FlexibleConnectedPositionStrategy.prototype.withPush = function (canPush) {\n if (canPush === void 0) { canPush = true; }\n this._canPush = canPush;\n return this;\n };\n /**\n * Sets whether the overlay's position should be locked in after it is positioned\n * initially. When an overlay is locked in, it won't attempt to reposition itself\n * when the position is re-applied (e.g. when the user scrolls away).\n * @param isLocked Whether the overlay should locked in.\n */\n FlexibleConnectedPositionStrategy.prototype.withLockedPosition = function (isLocked) {\n if (isLocked === void 0) { isLocked = true; }\n this._positionLocked = isLocked;\n return this;\n };\n /**\n * Sets the origin, relative to which to position the overlay.\n * Using an element origin is useful for building components that need to be positioned\n * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be\n * used for cases like contextual menus which open relative to the user's pointer.\n * @param origin Reference to the new origin.\n */\n FlexibleConnectedPositionStrategy.prototype.setOrigin = function (origin) {\n this._origin = origin;\n return this;\n };\n /**\n * Sets the default offset for the overlay's connection point on the x-axis.\n * @param offset New offset in the X axis.\n */\n FlexibleConnectedPositionStrategy.prototype.withDefaultOffsetX = function (offset) {\n this._offsetX = offset;\n return this;\n };\n /**\n * Sets the default offset for the overlay's connection point on the y-axis.\n * @param offset New offset in the Y axis.\n */\n FlexibleConnectedPositionStrategy.prototype.withDefaultOffsetY = function (offset) {\n this._offsetY = offset;\n return this;\n };\n /**\n * Configures that the position strategy should set a `transform-origin` on some elements\n * inside the overlay, depending on the current position that is being applied. This is\n * useful for the cases where the origin of an animation can change depending on the\n * alignment of the overlay.\n * @param selector CSS selector that will be used to find the target\n * elements onto which to set the transform origin.\n */\n FlexibleConnectedPositionStrategy.prototype.withTransformOriginOn = function (selector) {\n this._transformOriginSelector = selector;\n return this;\n };\n /**\n * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.\n */\n FlexibleConnectedPositionStrategy.prototype._getOriginPoint = function (originRect, pos) {\n var x;\n if (pos.originX == 'center') {\n // Note: when centering we should always use the `left`\n // offset, otherwise the position will be wrong in RTL.\n x = originRect.left + (originRect.width / 2);\n }\n else {\n var startX = this._isRtl() ? originRect.right : originRect.left;\n var endX = this._isRtl() ? originRect.left : originRect.right;\n x = pos.originX == 'start' ? startX : endX;\n }\n var y;\n if (pos.originY == 'center') {\n y = originRect.top + (originRect.height / 2);\n }\n else {\n y = pos.originY == 'top' ? originRect.top : originRect.bottom;\n }\n return { x: x, y: y };\n };\n /**\n * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and\n * origin point to which the overlay should be connected.\n */\n FlexibleConnectedPositionStrategy.prototype._getOverlayPoint = function (originPoint, overlayRect, pos) {\n // Calculate the (overlayStartX, overlayStartY), the start of the\n // potential overlay position relative to the origin point.\n var overlayStartX;\n if (pos.overlayX == 'center') {\n overlayStartX = -overlayRect.width / 2;\n }\n else if (pos.overlayX === 'start') {\n overlayStartX = this._isRtl() ? -overlayRect.width : 0;\n }\n else {\n overlayStartX = this._isRtl() ? 0 : -overlayRect.width;\n }\n var overlayStartY;\n if (pos.overlayY == 'center') {\n overlayStartY = -overlayRect.height / 2;\n }\n else {\n overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;\n }\n // The (x, y) coordinates of the overlay.\n return {\n x: originPoint.x + overlayStartX,\n y: originPoint.y + overlayStartY,\n };\n };\n /** Gets how well an overlay at the given point will fit within the viewport. */\n FlexibleConnectedPositionStrategy.prototype._getOverlayFit = function (point, rawOverlayRect, viewport, position) {\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n var overlay = getRoundedBoundingClientRect(rawOverlayRect);\n var x = point.x, y = point.y;\n var offsetX = this._getOffset(position, 'x');\n var offsetY = this._getOffset(position, 'y');\n // Account for the offsets since they could push the overlay out of the viewport.\n if (offsetX) {\n x += offsetX;\n }\n if (offsetY) {\n y += offsetY;\n }\n // How much the overlay would overflow at this position, on each side.\n var leftOverflow = 0 - x;\n var rightOverflow = (x + overlay.width) - viewport.width;\n var topOverflow = 0 - y;\n var bottomOverflow = (y + overlay.height) - viewport.height;\n // Visible parts of the element on each axis.\n var visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);\n var visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);\n var visibleArea = visibleWidth * visibleHeight;\n return {\n visibleArea: visibleArea,\n isCompletelyWithinViewport: (overlay.width * overlay.height) === visibleArea,\n fitsInViewportVertically: visibleHeight === overlay.height,\n fitsInViewportHorizontally: visibleWidth == overlay.width,\n };\n };\n /**\n * Whether the overlay can fit within the viewport when it may resize either its width or height.\n * @param fit How well the overlay fits in the viewport at some position.\n * @param point The (x, y) coordinates of the overlat at some position.\n * @param viewport The geometry of the viewport.\n */\n FlexibleConnectedPositionStrategy.prototype._canFitWithFlexibleDimensions = function (fit, point, viewport) {\n if (this._hasFlexibleDimensions) {\n var availableHeight = viewport.bottom - point.y;\n var availableWidth = viewport.right - point.x;\n var minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);\n var minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);\n var verticalFit = fit.fitsInViewportVertically ||\n (minHeight != null && minHeight <= availableHeight);\n var horizontalFit = fit.fitsInViewportHorizontally ||\n (minWidth != null && minWidth <= availableWidth);\n return verticalFit && horizontalFit;\n }\n return false;\n };\n /**\n * Gets the point at which the overlay can be \"pushed\" on-screen. If the overlay is larger than\n * the viewport, the top-left corner will be pushed on-screen (with overflow occuring on the\n * right and bottom).\n *\n * @param start Starting point from which the overlay is pushed.\n * @param overlay Dimensions of the overlay.\n * @param scrollPosition Current viewport scroll position.\n * @returns The point at which to position the overlay after pushing. This is effectively a new\n * originPoint.\n */\n FlexibleConnectedPositionStrategy.prototype._pushOverlayOnScreen = function (start, rawOverlayRect, scrollPosition) {\n // If the position is locked and we've pushed the overlay already, reuse the previous push\n // amount, rather than pushing it again. If we were to continue pushing, the element would\n // remain in the viewport, which goes against the expectations when position locking is enabled.\n if (this._previousPushAmount && this._positionLocked) {\n return {\n x: start.x + this._previousPushAmount.x,\n y: start.y + this._previousPushAmount.y\n };\n }\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n var overlay = getRoundedBoundingClientRect(rawOverlayRect);\n var viewport = this._viewportRect;\n // Determine how much the overlay goes outside the viewport on each\n // side, which we'll use to decide which direction to push it.\n var overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);\n var overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);\n var overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);\n var overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0);\n // Amount by which to push the overlay in each axis such that it remains on-screen.\n var pushX = 0;\n var pushY = 0;\n // If the overlay fits completely within the bounds of the viewport, push it from whichever\n // direction is goes off-screen. Otherwise, push the top-left corner such that its in the\n // viewport and allow for the trailing end of the overlay to go out of bounds.\n if (overlay.width <= viewport.width) {\n pushX = overflowLeft || -overflowRight;\n }\n else {\n pushX = start.x < this._viewportMargin ? (viewport.left - scrollPosition.left) - start.x : 0;\n }\n if (overlay.height <= viewport.height) {\n pushY = overflowTop || -overflowBottom;\n }\n else {\n pushY = start.y < this._viewportMargin ? (viewport.top - scrollPosition.top) - start.y : 0;\n }\n this._previousPushAmount = { x: pushX, y: pushY };\n return {\n x: start.x + pushX,\n y: start.y + pushY,\n };\n };\n /**\n * Applies a computed position to the overlay and emits a position change.\n * @param position The position preference\n * @param originPoint The point on the origin element where the overlay is connected.\n */\n FlexibleConnectedPositionStrategy.prototype._applyPosition = function (position, originPoint) {\n this._setTransformOrigin(position);\n this._setOverlayElementStyles(originPoint, position);\n this._setBoundingBoxStyles(originPoint, position);\n if (position.panelClass) {\n this._addPanelClasses(position.panelClass);\n }\n // Save the last connected position in case the position needs to be re-calculated.\n this._lastPosition = position;\n // Notify that the position has been changed along with its change properties.\n // We only emit if we've got any subscriptions, because the scroll visibility\n // calculcations can be somewhat expensive.\n if (this._positionChanges.observers.length) {\n var scrollableViewProperties = this._getScrollVisibility();\n var changeEvent = new ConnectedOverlayPositionChange(position, scrollableViewProperties);\n this._positionChanges.next(changeEvent);\n }\n this._isInitialRender = false;\n };\n /** Sets the transform origin based on the configured selector and the passed-in position. */\n FlexibleConnectedPositionStrategy.prototype._setTransformOrigin = function (position) {\n if (!this._transformOriginSelector) {\n return;\n }\n var elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);\n var xOrigin;\n var yOrigin = position.overlayY;\n if (position.overlayX === 'center') {\n xOrigin = 'center';\n }\n else if (this._isRtl()) {\n xOrigin = position.overlayX === 'start' ? 'right' : 'left';\n }\n else {\n xOrigin = position.overlayX === 'start' ? 'left' : 'right';\n }\n for (var i = 0; i < elements.length; i++) {\n elements[i].style.transformOrigin = xOrigin + \" \" + yOrigin;\n }\n };\n /**\n * Gets the position and size of the overlay's sizing container.\n *\n * This method does no measuring and applies no styles so that we can cheaply compute the\n * bounds for all positions and choose the best fit based on these results.\n */\n FlexibleConnectedPositionStrategy.prototype._calculateBoundingBoxRect = function (origin, position) {\n var viewport = this._viewportRect;\n var isRtl = this._isRtl();\n var height, top, bottom;\n if (position.overlayY === 'top') {\n // Overlay is opening \"downward\" and thus is bound by the bottom viewport edge.\n top = origin.y;\n height = viewport.height - top + this._viewportMargin;\n }\n else if (position.overlayY === 'bottom') {\n // Overlay is opening \"upward\" and thus is bound by the top viewport edge. We need to add\n // the viewport margin back in, because the viewport rect is narrowed down to remove the\n // margin, whereas the `origin` position is calculated based on its `ClientRect`.\n bottom = viewport.height - origin.y + this._viewportMargin * 2;\n height = viewport.height - bottom + this._viewportMargin;\n }\n else {\n // If neither top nor bottom, it means that the overlay is vertically centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.bottom - origin.y` and\n // `origin.y - viewport.top`.\n var smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);\n var previousHeight = this._lastBoundingBoxSize.height;\n height = smallestDistanceToViewportEdge * 2;\n top = origin.y - smallestDistanceToViewportEdge;\n if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {\n top = origin.y - (previousHeight / 2);\n }\n }\n // The overlay is opening 'right-ward' (the content flows to the right).\n var isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) ||\n (position.overlayX === 'end' && isRtl);\n // The overlay is opening 'left-ward' (the content flows to the left).\n var isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) ||\n (position.overlayX === 'start' && isRtl);\n var width, left, right;\n if (isBoundedByLeftViewportEdge) {\n right = viewport.width - origin.x + this._viewportMargin;\n width = origin.x - this._viewportMargin;\n }\n else if (isBoundedByRightViewportEdge) {\n left = origin.x;\n width = viewport.right - origin.x;\n }\n else {\n // If neither start nor end, it means that the overlay is horizontally centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.right - origin.x` and\n // `origin.x - viewport.left`.\n var smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);\n var previousWidth = this._lastBoundingBoxSize.width;\n width = smallestDistanceToViewportEdge * 2;\n left = origin.x - smallestDistanceToViewportEdge;\n if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {\n left = origin.x - (previousWidth / 2);\n }\n }\n return { top: top, left: left, bottom: bottom, right: right, width: width, height: height };\n };\n /**\n * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the\n * origin's connection point and stetches to the bounds of the viewport.\n *\n * @param origin The point on the origin element where the overlay is connected.\n * @param position The position preference\n */\n FlexibleConnectedPositionStrategy.prototype._setBoundingBoxStyles = function (origin, position) {\n var boundingBoxRect = this._calculateBoundingBoxRect(origin, position);\n // It's weird if the overlay *grows* while scrolling, so we take the last size into account\n // when applying a new size.\n if (!this._isInitialRender && !this._growAfterOpen) {\n boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);\n boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);\n }\n var styles = {};\n if (this._hasExactPosition()) {\n styles.top = styles.left = '0';\n styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';\n styles.width = styles.height = '100%';\n }\n else {\n var maxHeight = this._overlayRef.getConfig().maxHeight;\n var maxWidth = this._overlayRef.getConfig().maxWidth;\n styles.height = coercion.coerceCssPixelValue(boundingBoxRect.height);\n styles.top = coercion.coerceCssPixelValue(boundingBoxRect.top);\n styles.bottom = coercion.coerceCssPixelValue(boundingBoxRect.bottom);\n styles.width = coercion.coerceCssPixelValue(boundingBoxRect.width);\n styles.left = coercion.coerceCssPixelValue(boundingBoxRect.left);\n styles.right = coercion.coerceCssPixelValue(boundingBoxRect.right);\n // Push the pane content towards the proper direction.\n if (position.overlayX === 'center') {\n styles.alignItems = 'center';\n }\n else {\n styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';\n }\n if (position.overlayY === 'center') {\n styles.justifyContent = 'center';\n }\n else {\n styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';\n }\n if (maxHeight) {\n styles.maxHeight = coercion.coerceCssPixelValue(maxHeight);\n }\n if (maxWidth) {\n styles.maxWidth = coercion.coerceCssPixelValue(maxWidth);\n }\n }\n this._lastBoundingBoxSize = boundingBoxRect;\n extendStyles(this._boundingBox.style, styles);\n };\n /** Resets the styles for the bounding box so that a new positioning can be computed. */\n FlexibleConnectedPositionStrategy.prototype._resetBoundingBoxStyles = function () {\n extendStyles(this._boundingBox.style, {\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: '',\n });\n };\n /** Resets the styles for the overlay pane so that a new positioning can be computed. */\n FlexibleConnectedPositionStrategy.prototype._resetOverlayElementStyles = function () {\n extendStyles(this._pane.style, {\n top: '',\n left: '',\n bottom: '',\n right: '',\n position: '',\n transform: '',\n });\n };\n /** Sets positioning styles to the overlay element. */\n FlexibleConnectedPositionStrategy.prototype._setOverlayElementStyles = function (originPoint, position) {\n var styles = {};\n var hasExactPosition = this._hasExactPosition();\n var hasFlexibleDimensions = this._hasFlexibleDimensions;\n var config = this._overlayRef.getConfig();\n if (hasExactPosition) {\n var scrollPosition = this._viewportRuler.getViewportScrollPosition();\n extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));\n extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));\n }\n else {\n styles.position = 'static';\n }\n // Use a transform to apply the offsets. We do this because the `center` positions rely on\n // being in the normal flex flow and setting a `top` / `left` at all will completely throw\n // off the position. We also can't use margins, because they won't have an effect in some\n // cases where the element doesn't have anything to \"push off of\". Finally, this works\n // better both with flexible and non-flexible positioning.\n var transformString = '';\n var offsetX = this._getOffset(position, 'x');\n var offsetY = this._getOffset(position, 'y');\n if (offsetX) {\n transformString += \"translateX(\" + offsetX + \"px) \";\n }\n if (offsetY) {\n transformString += \"translateY(\" + offsetY + \"px)\";\n }\n styles.transform = transformString.trim();\n // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because\n // we need these values to both be set to \"100%\" for the automatic flexible sizing to work.\n // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.\n // Note that this doesn't apply when we have an exact position, in which case we do want to\n // apply them because they'll be cleared from the bounding box.\n if (config.maxHeight) {\n if (hasExactPosition) {\n styles.maxHeight = coercion.coerceCssPixelValue(config.maxHeight);\n }\n else if (hasFlexibleDimensions) {\n styles.maxHeight = '';\n }\n }\n if (config.maxWidth) {\n if (hasExactPosition) {\n styles.maxWidth = coercion.coerceCssPixelValue(config.maxWidth);\n }\n else if (hasFlexibleDimensions) {\n styles.maxWidth = '';\n }\n }\n extendStyles(this._pane.style, styles);\n };\n /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */\n FlexibleConnectedPositionStrategy.prototype._getExactOverlayY = function (position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the\n // preferred position has changed since the last `apply`.\n var styles = { top: '', bottom: '' };\n var overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n var virtualKeyboardOffset = this._overlayContainer.getContainerElement().getBoundingClientRect().top;\n // Normally this would be zero, however when the overlay is attached to an input (e.g. in an\n // autocomplete), mobile browsers will shift everything in order to put the input in the middle\n // of the screen and to make space for the virtual keyboard. We need to account for this offset,\n // otherwise our positioning will be thrown off.\n overlayPoint.y -= virtualKeyboardOffset;\n // We want to set either `top` or `bottom` based on whether the overlay wants to appear\n // above or below the origin and the direction in which the element will expand.\n if (position.overlayY === 'bottom') {\n // When using `bottom`, we adjust the y position such that it is the distance\n // from the bottom of the viewport rather than the top.\n var documentHeight = this._document.documentElement.clientHeight;\n styles.bottom = documentHeight - (overlayPoint.y + this._overlayRect.height) + \"px\";\n }\n else {\n styles.top = coercion.coerceCssPixelValue(overlayPoint.y);\n }\n return styles;\n };\n /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */\n FlexibleConnectedPositionStrategy.prototype._getExactOverlayX = function (position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the preferred position has\n // changed since the last `apply`.\n var styles = { left: '', right: '' };\n var overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n // We want to set either `left` or `right` based on whether the overlay wants to appear \"before\"\n // or \"after\" the origin, which determines the direction in which the element will expand.\n // For the horizontal axis, the meaning of \"before\" and \"after\" change based on whether the\n // page is in RTL or LTR.\n var horizontalStyleProperty;\n if (this._isRtl()) {\n horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';\n }\n else {\n horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';\n }\n // When we're setting `right`, we adjust the x position such that it is the distance\n // from the right edge of the viewport rather than the left edge.\n if (horizontalStyleProperty === 'right') {\n var documentWidth = this._document.documentElement.clientWidth;\n styles.right = documentWidth - (overlayPoint.x + this._overlayRect.width) + \"px\";\n }\n else {\n styles.left = coercion.coerceCssPixelValue(overlayPoint.x);\n }\n return styles;\n };\n /**\n * Gets the view properties of the trigger and overlay, including whether they are clipped\n * or completely outside the view of any of the strategy's scrollables.\n */\n FlexibleConnectedPositionStrategy.prototype._getScrollVisibility = function () {\n // Note: needs fresh rects since the position could've changed.\n var originBounds = this._getOriginRect();\n var overlayBounds = this._pane.getBoundingClientRect();\n // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers\n // every time, we should be able to use the scrollTop of the containers if the size of those\n // containers hasn't changed.\n var scrollContainerBounds = this._scrollables.map(function (scrollable) {\n return scrollable.getElementRef().nativeElement.getBoundingClientRect();\n });\n return {\n isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),\n isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),\n isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),\n isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds),\n };\n };\n /** Subtracts the amount that an element is overflowing on an axis from its length. */\n FlexibleConnectedPositionStrategy.prototype._subtractOverflows = function (length) {\n var overflows = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n overflows[_i - 1] = arguments[_i];\n }\n return overflows.reduce(function (currentValue, currentOverflow) {\n return currentValue - Math.max(currentOverflow, 0);\n }, length);\n };\n /** Narrows the given viewport rect by the current _viewportMargin. */\n FlexibleConnectedPositionStrategy.prototype._getNarrowedViewportRect = function () {\n // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,\n // because we want to use the `clientWidth` and `clientHeight` as the base. The difference\n // being that the client properties don't include the scrollbar, as opposed to `innerWidth`\n // and `innerHeight` that do. This is necessary, because the overlay container uses\n // 100% `width` and `height` which don't include the scrollbar either.\n var width = this._document.documentElement.clientWidth;\n var height = this._document.documentElement.clientHeight;\n var scrollPosition = this._viewportRuler.getViewportScrollPosition();\n return {\n top: scrollPosition.top + this._viewportMargin,\n left: scrollPosition.left + this._viewportMargin,\n right: scrollPosition.left + width - this._viewportMargin,\n bottom: scrollPosition.top + height - this._viewportMargin,\n width: width - (2 * this._viewportMargin),\n height: height - (2 * this._viewportMargin),\n };\n };\n /** Whether the we're dealing with an RTL context */\n FlexibleConnectedPositionStrategy.prototype._isRtl = function () {\n return this._overlayRef.getDirection() === 'rtl';\n };\n /** Determines whether the overlay uses exact or flexible positioning. */\n FlexibleConnectedPositionStrategy.prototype._hasExactPosition = function () {\n return !this._hasFlexibleDimensions || this._isPushed;\n };\n /** Retrieves the offset of a position along the x or y axis. */\n FlexibleConnectedPositionStrategy.prototype._getOffset = function (position, axis) {\n if (axis === 'x') {\n // We don't do something like `position['offset' + axis]` in\n // order to avoid breking minifiers that rename properties.\n return position.offsetX == null ? this._offsetX : position.offsetX;\n }\n return position.offsetY == null ? this._offsetY : position.offsetY;\n };\n /** Validates that the current position match the expected values. */\n FlexibleConnectedPositionStrategy.prototype._validatePositions = function () {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._preferredPositions.length) {\n throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');\n }\n // TODO(crisbeto): remove these once Angular's template type\n // checking is advanced enough to catch these cases.\n this._preferredPositions.forEach(function (pair) {\n validateHorizontalPosition('originX', pair.originX);\n validateVerticalPosition('originY', pair.originY);\n validateHorizontalPosition('overlayX', pair.overlayX);\n validateVerticalPosition('overlayY', pair.overlayY);\n });\n }\n };\n /** Adds a single CSS class or an array of classes on the overlay panel. */\n FlexibleConnectedPositionStrategy.prototype._addPanelClasses = function (cssClasses) {\n var _this = this;\n if (this._pane) {\n coercion.coerceArray(cssClasses).forEach(function (cssClass) {\n if (cssClass !== '' && _this._appliedPanelClasses.indexOf(cssClass) === -1) {\n _this._appliedPanelClasses.push(cssClass);\n _this._pane.classList.add(cssClass);\n }\n });\n }\n };\n /** Clears the classes that the position strategy has applied from the overlay panel. */\n FlexibleConnectedPositionStrategy.prototype._clearPanelClasses = function () {\n var _this = this;\n if (this._pane) {\n this._appliedPanelClasses.forEach(function (cssClass) {\n _this._pane.classList.remove(cssClass);\n });\n this._appliedPanelClasses = [];\n }\n };\n /** Returns the ClientRect of the current origin. */\n FlexibleConnectedPositionStrategy.prototype._getOriginRect = function () {\n var origin = this._origin;\n if (origin instanceof i0.ElementRef) {\n return origin.nativeElement.getBoundingClientRect();\n }\n // Check for Element so SVG elements are also supported.\n if (origin instanceof Element) {\n return origin.getBoundingClientRect();\n }\n var width = origin.width || 0;\n var height = origin.height || 0;\n // If the origin is a point, return a client rect as if it was a 0x0 element at the point.\n return {\n top: origin.y,\n bottom: origin.y + height,\n left: origin.x,\n right: origin.x + width,\n height: height,\n width: width\n };\n };\n return FlexibleConnectedPositionStrategy;\n }());\n /** Shallow-extends a stylesheet object with another stylesheet object. */\n function extendStyles(destination, source) {\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n destination[key] = source[key];\n }\n }\n return destination;\n }\n /**\n * Extracts the pixel value as a number from a value, if it's a number\n * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.\n */\n function getPixelValue(input) {\n if (typeof input !== 'number' && input != null) {\n var _a = __read(input.split(cssUnitPattern), 2), value = _a[0], units = _a[1];\n return (!units || units === 'px') ? parseFloat(value) : null;\n }\n return input || null;\n }\n /**\n * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to\n * the nearest pixel. This allows us to account for the cases where there may be sub-pixel\n * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage\n * size, see #21350).\n */\n function getRoundedBoundingClientRect(clientRect) {\n return {\n top: Math.floor(clientRect.top),\n right: Math.floor(clientRect.right),\n bottom: Math.floor(clientRect.bottom),\n left: Math.floor(clientRect.left),\n width: Math.floor(clientRect.width),\n height: Math.floor(clientRect.height)\n };\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative to some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n * @deprecated Use `FlexibleConnectedPositionStrategy` instead.\n * @breaking-change 8.0.0\n */\n var ConnectedPositionStrategy = /** @class */ (function () {\n function ConnectedPositionStrategy(originPos, overlayPos, connectedTo, viewportRuler, document, platform, overlayContainer) {\n /** Ordered list of preferred positions, from most to least desirable. */\n this._preferredPositions = [];\n // Since the `ConnectedPositionStrategy` is deprecated and we don't want to maintain\n // the extra logic, we create an instance of the positioning strategy that has some\n // defaults that make it behave as the old position strategy and to which we'll\n // proxy all of the API calls.\n this._positionStrategy = new FlexibleConnectedPositionStrategy(connectedTo, viewportRuler, document, platform, overlayContainer)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withViewportMargin(0);\n this.withFallbackPosition(originPos, overlayPos);\n this.onPositionChange = this._positionStrategy.positionChanges;\n }\n Object.defineProperty(ConnectedPositionStrategy.prototype, \"positions\", {\n /** Ordered list of preferred positions, from most to least desirable. */\n get: function () {\n return this._preferredPositions;\n },\n enumerable: false,\n configurable: true\n });\n /** Attach this position strategy to an overlay. */\n ConnectedPositionStrategy.prototype.attach = function (overlayRef) {\n this._overlayRef = overlayRef;\n this._positionStrategy.attach(overlayRef);\n if (this._direction) {\n overlayRef.setDirection(this._direction);\n this._direction = null;\n }\n };\n /** Disposes all resources used by the position strategy. */\n ConnectedPositionStrategy.prototype.dispose = function () {\n this._positionStrategy.dispose();\n };\n /** @docs-private */\n ConnectedPositionStrategy.prototype.detach = function () {\n this._positionStrategy.detach();\n };\n /**\n * Updates the position of the overlay element, using whichever preferred position relative\n * to the origin fits on-screen.\n * @docs-private\n */\n ConnectedPositionStrategy.prototype.apply = function () {\n this._positionStrategy.apply();\n };\n /**\n * Re-positions the overlay element with the trigger in its last calculated position,\n * even if a position higher in the \"preferred positions\" list would now fit. This\n * allows one to re-align the panel without changing the orientation of the panel.\n */\n ConnectedPositionStrategy.prototype.recalculateLastPosition = function () {\n this._positionStrategy.reapplyLastPosition();\n };\n /**\n * Sets the list of Scrollable containers that host the origin element so that\n * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n * Scrollable must be an ancestor element of the strategy's origin element.\n */\n ConnectedPositionStrategy.prototype.withScrollableContainers = function (scrollables) {\n this._positionStrategy.withScrollableContainers(scrollables);\n };\n /**\n * Adds a new preferred fallback position.\n * @param originPos\n * @param overlayPos\n */\n ConnectedPositionStrategy.prototype.withFallbackPosition = function (originPos, overlayPos, offsetX, offsetY) {\n var position = new ConnectionPositionPair(originPos, overlayPos, offsetX, offsetY);\n this._preferredPositions.push(position);\n this._positionStrategy.withPositions(this._preferredPositions);\n return this;\n };\n /**\n * Sets the layout direction so the overlay's position can be adjusted to match.\n * @param dir New layout direction.\n */\n ConnectedPositionStrategy.prototype.withDirection = function (dir) {\n // Since the direction might be declared before the strategy is attached,\n // we save the value in a temporary property and we'll transfer it to the\n // overlay ref on attachment.\n if (this._overlayRef) {\n this._overlayRef.setDirection(dir);\n }\n else {\n this._direction = dir;\n }\n return this;\n };\n /**\n * Sets an offset for the overlay's connection point on the x-axis\n * @param offset New offset in the X axis.\n */\n ConnectedPositionStrategy.prototype.withOffsetX = function (offset) {\n this._positionStrategy.withDefaultOffsetX(offset);\n return this;\n };\n /**\n * Sets an offset for the overlay's connection point on the y-axis\n * @param offset New offset in the Y axis.\n */\n ConnectedPositionStrategy.prototype.withOffsetY = function (offset) {\n this._positionStrategy.withDefaultOffsetY(offset);\n return this;\n };\n /**\n * Sets whether the overlay's position should be locked in after it is positioned\n * initially. When an overlay is locked in, it won't attempt to reposition itself\n * when the position is re-applied (e.g. when the user scrolls away).\n * @param isLocked Whether the overlay should locked in.\n */\n ConnectedPositionStrategy.prototype.withLockedPosition = function (isLocked) {\n this._positionStrategy.withLockedPosition(isLocked);\n return this;\n };\n /**\n * Overwrites the current set of positions with an array of new ones.\n * @param positions Position pairs to be set on the strategy.\n */\n ConnectedPositionStrategy.prototype.withPositions = function (positions) {\n this._preferredPositions = positions.slice();\n this._positionStrategy.withPositions(this._preferredPositions);\n return this;\n };\n /**\n * Sets the origin element, relative to which to position the overlay.\n * @param origin Reference to the new origin element.\n */\n ConnectedPositionStrategy.prototype.setOrigin = function (origin) {\n this._positionStrategy.setOrigin(origin);\n return this;\n };\n return ConnectedPositionStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Class to be added to the overlay pane wrapper. */\n var wrapperClass = 'cdk-global-overlay-wrapper';\n /**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * explicit position relative to the browser's viewport. We use flexbox, instead of\n * transforms, in order to avoid issues with subpixel rendering which can cause the\n * element to become blurry.\n */\n var GlobalPositionStrategy = /** @class */ (function () {\n function GlobalPositionStrategy() {\n this._cssPosition = 'static';\n this._topOffset = '';\n this._bottomOffset = '';\n this._leftOffset = '';\n this._rightOffset = '';\n this._alignItems = '';\n this._justifyContent = '';\n this._width = '';\n this._height = '';\n }\n GlobalPositionStrategy.prototype.attach = function (overlayRef) {\n var config = overlayRef.getConfig();\n this._overlayRef = overlayRef;\n if (this._width && !config.width) {\n overlayRef.updateSize({ width: this._width });\n }\n if (this._height && !config.height) {\n overlayRef.updateSize({ height: this._height });\n }\n overlayRef.hostElement.classList.add(wrapperClass);\n this._isDisposed = false;\n };\n /**\n * Sets the top position of the overlay. Clears any previously set vertical position.\n * @param value New top offset.\n */\n GlobalPositionStrategy.prototype.top = function (value) {\n if (value === void 0) { value = ''; }\n this._bottomOffset = '';\n this._topOffset = value;\n this._alignItems = 'flex-start';\n return this;\n };\n /**\n * Sets the left position of the overlay. Clears any previously set horizontal position.\n * @param value New left offset.\n */\n GlobalPositionStrategy.prototype.left = function (value) {\n if (value === void 0) { value = ''; }\n this._rightOffset = '';\n this._leftOffset = value;\n this._justifyContent = 'flex-start';\n return this;\n };\n /**\n * Sets the bottom position of the overlay. Clears any previously set vertical position.\n * @param value New bottom offset.\n */\n GlobalPositionStrategy.prototype.bottom = function (value) {\n if (value === void 0) { value = ''; }\n this._topOffset = '';\n this._bottomOffset = value;\n this._alignItems = 'flex-end';\n return this;\n };\n /**\n * Sets the right position of the overlay. Clears any previously set horizontal position.\n * @param value New right offset.\n */\n GlobalPositionStrategy.prototype.right = function (value) {\n if (value === void 0) { value = ''; }\n this._leftOffset = '';\n this._rightOffset = value;\n this._justifyContent = 'flex-end';\n return this;\n };\n /**\n * Sets the overlay width and clears any previously set width.\n * @param value New width for the overlay\n * @deprecated Pass the `width` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n GlobalPositionStrategy.prototype.width = function (value) {\n if (value === void 0) { value = ''; }\n if (this._overlayRef) {\n this._overlayRef.updateSize({ width: value });\n }\n else {\n this._width = value;\n }\n return this;\n };\n /**\n * Sets the overlay height and clears any previously set height.\n * @param value New height for the overlay\n * @deprecated Pass the `height` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n GlobalPositionStrategy.prototype.height = function (value) {\n if (value === void 0) { value = ''; }\n if (this._overlayRef) {\n this._overlayRef.updateSize({ height: value });\n }\n else {\n this._height = value;\n }\n return this;\n };\n /**\n * Centers the overlay horizontally with an optional offset.\n * Clears any previously set horizontal position.\n *\n * @param offset Overlay offset from the horizontal center.\n */\n GlobalPositionStrategy.prototype.centerHorizontally = function (offset) {\n if (offset === void 0) { offset = ''; }\n this.left(offset);\n this._justifyContent = 'center';\n return this;\n };\n /**\n * Centers the overlay vertically with an optional offset.\n * Clears any previously set vertical position.\n *\n * @param offset Overlay offset from the vertical center.\n */\n GlobalPositionStrategy.prototype.centerVertically = function (offset) {\n if (offset === void 0) { offset = ''; }\n this.top(offset);\n this._alignItems = 'center';\n return this;\n };\n /**\n * Apply the position to the element.\n * @docs-private\n */\n GlobalPositionStrategy.prototype.apply = function () {\n // Since the overlay ref applies the strategy asynchronously, it could\n // have been disposed before it ends up being applied. If that is the\n // case, we shouldn't do anything.\n if (!this._overlayRef || !this._overlayRef.hasAttached()) {\n return;\n }\n var styles = this._overlayRef.overlayElement.style;\n var parentStyles = this._overlayRef.hostElement.style;\n var config = this._overlayRef.getConfig();\n var width = config.width, height = config.height, maxWidth = config.maxWidth, maxHeight = config.maxHeight;\n var shouldBeFlushHorizontally = (width === '100%' || width === '100vw') &&\n (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');\n var shouldBeFlushVertically = (height === '100%' || height === '100vh') &&\n (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');\n styles.position = this._cssPosition;\n styles.marginLeft = shouldBeFlushHorizontally ? '0' : this._leftOffset;\n styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;\n styles.marginBottom = this._bottomOffset;\n styles.marginRight = this._rightOffset;\n if (shouldBeFlushHorizontally) {\n parentStyles.justifyContent = 'flex-start';\n }\n else if (this._justifyContent === 'center') {\n parentStyles.justifyContent = 'center';\n }\n else if (this._overlayRef.getConfig().direction === 'rtl') {\n // In RTL the browser will invert `flex-start` and `flex-end` automatically, but we\n // don't want that because our positioning is explicitly `left` and `right`, hence\n // why we do another inversion to ensure that the overlay stays in the same position.\n // TODO: reconsider this if we add `start` and `end` methods.\n if (this._justifyContent === 'flex-start') {\n parentStyles.justifyContent = 'flex-end';\n }\n else if (this._justifyContent === 'flex-end') {\n parentStyles.justifyContent = 'flex-start';\n }\n }\n else {\n parentStyles.justifyContent = this._justifyContent;\n }\n parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;\n };\n /**\n * Cleans up the DOM changes from the position strategy.\n * @docs-private\n */\n GlobalPositionStrategy.prototype.dispose = function () {\n if (this._isDisposed || !this._overlayRef) {\n return;\n }\n var styles = this._overlayRef.overlayElement.style;\n var parent = this._overlayRef.hostElement;\n var parentStyles = parent.style;\n parent.classList.remove(wrapperClass);\n parentStyles.justifyContent = parentStyles.alignItems = styles.marginTop =\n styles.marginBottom = styles.marginLeft = styles.marginRight = styles.position = '';\n this._overlayRef = null;\n this._isDisposed = true;\n };\n return GlobalPositionStrategy;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Builder for overlay position strategy. */\n var OverlayPositionBuilder = /** @class */ (function () {\n function OverlayPositionBuilder(_viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n }\n /**\n * Creates a global position strategy.\n */\n OverlayPositionBuilder.prototype.global = function () {\n return new GlobalPositionStrategy();\n };\n /**\n * Creates a relative position strategy.\n * @param elementRef\n * @param originPos\n * @param overlayPos\n * @deprecated Use `flexibleConnectedTo` instead.\n * @breaking-change 8.0.0\n */\n OverlayPositionBuilder.prototype.connectedTo = function (elementRef, originPos, overlayPos) {\n return new ConnectedPositionStrategy(originPos, overlayPos, elementRef, this._viewportRuler, this._document, this._platform, this._overlayContainer);\n };\n /**\n * Creates a flexible position strategy.\n * @param origin Origin relative to which to position the overlay.\n */\n OverlayPositionBuilder.prototype.flexibleConnectedTo = function (origin) {\n return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);\n };\n return OverlayPositionBuilder;\n }());\n OverlayPositionBuilder.ɵprov = i0.ɵɵdefineInjectable({ factory: function OverlayPositionBuilder_Factory() { return new OverlayPositionBuilder(i0.ɵɵinject(i1.ViewportRuler), i0.ɵɵinject(i1$1.DOCUMENT), i0.ɵɵinject(i2.Platform), i0.ɵɵinject(OverlayContainer)); }, token: OverlayPositionBuilder, providedIn: \"root\" });\n OverlayPositionBuilder.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n OverlayPositionBuilder.ctorParameters = function () { return [\n { type: i1.ViewportRuler },\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] },\n { type: i2.Platform },\n { type: OverlayContainer }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Next overlay unique ID. */\n var nextUniqueId = 0;\n // Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver\n // which needs to be different depending on where OverlayModule is imported.\n /**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.\n */\n var Overlay = /** @class */ (function () {\n function Overlay(\n /** Scrolling strategies that can be used when creating an overlay. */\n scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher) {\n this.scrollStrategies = scrollStrategies;\n this._overlayContainer = _overlayContainer;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._positionBuilder = _positionBuilder;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._injector = _injector;\n this._ngZone = _ngZone;\n this._document = _document;\n this._directionality = _directionality;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n }\n /**\n * Creates an overlay.\n * @param config Configuration applied to the overlay.\n * @returns Reference to the created overlay.\n */\n Overlay.prototype.create = function (config) {\n var host = this._createHostElement();\n var pane = this._createPaneElement(host);\n var portalOutlet = this._createPortalOutlet(pane);\n var overlayConfig = new OverlayConfig(config);\n overlayConfig.direction = overlayConfig.direction || this._directionality.value;\n return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher);\n };\n /**\n * Gets a position builder that can be used, via fluent API,\n * to construct and configure a position strategy.\n * @returns An overlay position builder.\n */\n Overlay.prototype.position = function () {\n return this._positionBuilder;\n };\n /**\n * Creates the DOM element for an overlay and appends it to the overlay container.\n * @returns Newly-created pane element\n */\n Overlay.prototype._createPaneElement = function (host) {\n var pane = this._document.createElement('div');\n pane.id = \"cdk-overlay-\" + nextUniqueId++;\n pane.classList.add('cdk-overlay-pane');\n host.appendChild(pane);\n return pane;\n };\n /**\n * Creates the host element that wraps around an overlay\n * and can be used for advanced positioning.\n * @returns Newly-create host element.\n */\n Overlay.prototype._createHostElement = function () {\n var host = this._document.createElement('div');\n this._overlayContainer.getContainerElement().appendChild(host);\n return host;\n };\n /**\n * Create a DomPortalOutlet into which the overlay content can be loaded.\n * @param pane The DOM element to turn into a portal outlet.\n * @returns A portal outlet for the given DOM element.\n */\n Overlay.prototype._createPortalOutlet = function (pane) {\n // We have to resolve the ApplicationRef later in order to allow people\n // to use overlay-based providers during app initialization.\n if (!this._appRef) {\n this._appRef = this._injector.get(i0.ApplicationRef);\n }\n return new portal.DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);\n };\n return Overlay;\n }());\n Overlay.decorators = [\n { type: i0.Injectable }\n ];\n Overlay.ctorParameters = function () { return [\n { type: ScrollStrategyOptions },\n { type: OverlayContainer },\n { type: i0.ComponentFactoryResolver },\n { type: OverlayPositionBuilder },\n { type: OverlayKeyboardDispatcher },\n { type: i0.Injector },\n { type: i0.NgZone },\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] },\n { type: bidi.Directionality },\n { type: i1$1.Location },\n { type: OverlayOutsideClickDispatcher }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Default set of positions for the overlay. Follows the behavior of a dropdown. */\n var defaultPositionList = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n }\n ];\n /** Injection token that determines the scroll handling while the connected overlay is open. */\n var CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new i0.InjectionToken('cdk-connected-overlay-scroll-strategy');\n /**\n * Directive applied to an element to make it usable as an origin for an Overlay using a\n * ConnectedPositionStrategy.\n */\n var CdkOverlayOrigin = /** @class */ (function () {\n function CdkOverlayOrigin(\n /** Reference to the element on which the directive is applied. */\n elementRef) {\n this.elementRef = elementRef;\n }\n return CdkOverlayOrigin;\n }());\n CdkOverlayOrigin.decorators = [\n { type: i0.Directive, args: [{\n selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',\n exportAs: 'cdkOverlayOrigin',\n },] }\n ];\n CdkOverlayOrigin.ctorParameters = function () { return [\n { type: i0.ElementRef }\n ]; };\n /**\n * Directive to facilitate declarative creation of an\n * Overlay using a FlexibleConnectedPositionStrategy.\n */\n var CdkConnectedOverlay = /** @class */ (function () {\n // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.\n function CdkConnectedOverlay(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {\n this._overlay = _overlay;\n this._dir = _dir;\n this._hasBackdrop = false;\n this._lockPosition = false;\n this._growAfterOpen = false;\n this._flexibleDimensions = false;\n this._push = false;\n this._backdropSubscription = rxjs.Subscription.EMPTY;\n this._attachSubscription = rxjs.Subscription.EMPTY;\n this._detachSubscription = rxjs.Subscription.EMPTY;\n this._positionSubscription = rxjs.Subscription.EMPTY;\n /** Margin between the overlay and the viewport edges. */\n this.viewportMargin = 0;\n /** Whether the overlay is open. */\n this.open = false;\n /** Whether the overlay can be closed by user interaction. */\n this.disableClose = false;\n /** Event emitted when the backdrop is clicked. */\n this.backdropClick = new i0.EventEmitter();\n /** Event emitted when the position has changed. */\n this.positionChange = new i0.EventEmitter();\n /** Event emitted when the overlay has been attached. */\n this.attach = new i0.EventEmitter();\n /** Event emitted when the overlay has been detached. */\n this.detach = new i0.EventEmitter();\n /** Emits when there are keyboard events that are targeted at the overlay. */\n this.overlayKeydown = new i0.EventEmitter();\n /** Emits when there are mouse outside click events that are targeted at the overlay. */\n this.overlayOutsideClick = new i0.EventEmitter();\n this._templatePortal = new portal.TemplatePortal(templateRef, viewContainerRef);\n this._scrollStrategyFactory = scrollStrategyFactory;\n this.scrollStrategy = this._scrollStrategyFactory();\n }\n Object.defineProperty(CdkConnectedOverlay.prototype, \"offsetX\", {\n /** The offset in pixels for the overlay connection point on the x-axis */\n get: function () { return this._offsetX; },\n set: function (offsetX) {\n this._offsetX = offsetX;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"offsetY\", {\n /** The offset in pixels for the overlay connection point on the y-axis */\n get: function () { return this._offsetY; },\n set: function (offsetY) {\n this._offsetY = offsetY;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"hasBackdrop\", {\n /** Whether or not the overlay should attach a backdrop. */\n get: function () { return this._hasBackdrop; },\n set: function (value) { this._hasBackdrop = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"lockPosition\", {\n /** Whether or not the overlay should be locked when scrolling. */\n get: function () { return this._lockPosition; },\n set: function (value) { this._lockPosition = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"flexibleDimensions\", {\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n get: function () { return this._flexibleDimensions; },\n set: function (value) {\n this._flexibleDimensions = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"growAfterOpen\", {\n /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */\n get: function () { return this._growAfterOpen; },\n set: function (value) { this._growAfterOpen = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"push\", {\n /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */\n get: function () { return this._push; },\n set: function (value) { this._push = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"overlayRef\", {\n /** The associated overlay reference. */\n get: function () {\n return this._overlayRef;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkConnectedOverlay.prototype, \"dir\", {\n /** The element's layout direction. */\n get: function () {\n return this._dir ? this._dir.value : 'ltr';\n },\n enumerable: false,\n configurable: true\n });\n CdkConnectedOverlay.prototype.ngOnDestroy = function () {\n this._attachSubscription.unsubscribe();\n this._detachSubscription.unsubscribe();\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n if (this._overlayRef) {\n this._overlayRef.dispose();\n }\n };\n CdkConnectedOverlay.prototype.ngOnChanges = function (changes) {\n if (this._position) {\n this._updatePositionStrategy(this._position);\n this._overlayRef.updateSize({\n width: this.width,\n minWidth: this.minWidth,\n height: this.height,\n minHeight: this.minHeight,\n });\n if (changes['origin'] && this.open) {\n this._position.apply();\n }\n }\n if (changes['open']) {\n this.open ? this._attachOverlay() : this._detachOverlay();\n }\n };\n /** Creates an overlay */\n CdkConnectedOverlay.prototype._createOverlay = function () {\n var _this = this;\n if (!this.positions || !this.positions.length) {\n this.positions = defaultPositionList;\n }\n var overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());\n this._attachSubscription = overlayRef.attachments().subscribe(function () { return _this.attach.emit(); });\n this._detachSubscription = overlayRef.detachments().subscribe(function () { return _this.detach.emit(); });\n overlayRef.keydownEvents().subscribe(function (event) {\n _this.overlayKeydown.next(event);\n if (event.keyCode === keycodes.ESCAPE && !_this.disableClose && !keycodes.hasModifierKey(event)) {\n event.preventDefault();\n _this._detachOverlay();\n }\n });\n this._overlayRef.outsidePointerEvents().subscribe(function (event) {\n _this.overlayOutsideClick.next(event);\n });\n };\n /** Builds the overlay config based on the directive's inputs */\n CdkConnectedOverlay.prototype._buildConfig = function () {\n var positionStrategy = this._position =\n this.positionStrategy || this._createPositionStrategy();\n var overlayConfig = new OverlayConfig({\n direction: this._dir,\n positionStrategy: positionStrategy,\n scrollStrategy: this.scrollStrategy,\n hasBackdrop: this.hasBackdrop\n });\n if (this.width || this.width === 0) {\n overlayConfig.width = this.width;\n }\n if (this.height || this.height === 0) {\n overlayConfig.height = this.height;\n }\n if (this.minWidth || this.minWidth === 0) {\n overlayConfig.minWidth = this.minWidth;\n }\n if (this.minHeight || this.minHeight === 0) {\n overlayConfig.minHeight = this.minHeight;\n }\n if (this.backdropClass) {\n overlayConfig.backdropClass = this.backdropClass;\n }\n if (this.panelClass) {\n overlayConfig.panelClass = this.panelClass;\n }\n return overlayConfig;\n };\n /** Updates the state of a position strategy, based on the values of the directive inputs. */\n CdkConnectedOverlay.prototype._updatePositionStrategy = function (positionStrategy) {\n var _this = this;\n var positions = this.positions.map(function (currentPosition) { return ({\n originX: currentPosition.originX,\n originY: currentPosition.originY,\n overlayX: currentPosition.overlayX,\n overlayY: currentPosition.overlayY,\n offsetX: currentPosition.offsetX || _this.offsetX,\n offsetY: currentPosition.offsetY || _this.offsetY,\n panelClass: currentPosition.panelClass || undefined,\n }); });\n return positionStrategy\n .setOrigin(this.origin.elementRef)\n .withPositions(positions)\n .withFlexibleDimensions(this.flexibleDimensions)\n .withPush(this.push)\n .withGrowAfterOpen(this.growAfterOpen)\n .withViewportMargin(this.viewportMargin)\n .withLockedPosition(this.lockPosition)\n .withTransformOriginOn(this.transformOriginSelector);\n };\n /** Returns the position strategy of the overlay to be set on the overlay config */\n CdkConnectedOverlay.prototype._createPositionStrategy = function () {\n var strategy = this._overlay.position().flexibleConnectedTo(this.origin.elementRef);\n this._updatePositionStrategy(strategy);\n return strategy;\n };\n /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */\n CdkConnectedOverlay.prototype._attachOverlay = function () {\n var _this = this;\n if (!this._overlayRef) {\n this._createOverlay();\n }\n else {\n // Update the overlay size, in case the directive's inputs have changed\n this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;\n }\n if (!this._overlayRef.hasAttached()) {\n this._overlayRef.attach(this._templatePortal);\n }\n if (this.hasBackdrop) {\n this._backdropSubscription = this._overlayRef.backdropClick().subscribe(function (event) {\n _this.backdropClick.emit(event);\n });\n }\n else {\n this._backdropSubscription.unsubscribe();\n }\n this._positionSubscription.unsubscribe();\n // Only subscribe to `positionChanges` if requested, because putting\n // together all the information for it can be expensive.\n if (this.positionChange.observers.length > 0) {\n this._positionSubscription = this._position.positionChanges\n .pipe(operators.takeWhile(function () { return _this.positionChange.observers.length > 0; }))\n .subscribe(function (position) {\n _this.positionChange.emit(position);\n if (_this.positionChange.observers.length === 0) {\n _this._positionSubscription.unsubscribe();\n }\n });\n }\n };\n /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */\n CdkConnectedOverlay.prototype._detachOverlay = function () {\n if (this._overlayRef) {\n this._overlayRef.detach();\n }\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n };\n return CdkConnectedOverlay;\n }());\n CdkConnectedOverlay.decorators = [\n { type: i0.Directive, args: [{\n selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',\n exportAs: 'cdkConnectedOverlay'\n },] }\n ];\n CdkConnectedOverlay.ctorParameters = function () { return [\n { type: Overlay },\n { type: i0.TemplateRef },\n { type: i0.ViewContainerRef },\n { type: undefined, decorators: [{ type: i0.Inject, args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,] }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n CdkConnectedOverlay.propDecorators = {\n origin: [{ type: i0.Input, args: ['cdkConnectedOverlayOrigin',] }],\n positions: [{ type: i0.Input, args: ['cdkConnectedOverlayPositions',] }],\n positionStrategy: [{ type: i0.Input, args: ['cdkConnectedOverlayPositionStrategy',] }],\n offsetX: [{ type: i0.Input, args: ['cdkConnectedOverlayOffsetX',] }],\n offsetY: [{ type: i0.Input, args: ['cdkConnectedOverlayOffsetY',] }],\n width: [{ type: i0.Input, args: ['cdkConnectedOverlayWidth',] }],\n height: [{ type: i0.Input, args: ['cdkConnectedOverlayHeight',] }],\n minWidth: [{ type: i0.Input, args: ['cdkConnectedOverlayMinWidth',] }],\n minHeight: [{ type: i0.Input, args: ['cdkConnectedOverlayMinHeight',] }],\n backdropClass: [{ type: i0.Input, args: ['cdkConnectedOverlayBackdropClass',] }],\n panelClass: [{ type: i0.Input, args: ['cdkConnectedOverlayPanelClass',] }],\n viewportMargin: [{ type: i0.Input, args: ['cdkConnectedOverlayViewportMargin',] }],\n scrollStrategy: [{ type: i0.Input, args: ['cdkConnectedOverlayScrollStrategy',] }],\n open: [{ type: i0.Input, args: ['cdkConnectedOverlayOpen',] }],\n disableClose: [{ type: i0.Input, args: ['cdkConnectedOverlayDisableClose',] }],\n transformOriginSelector: [{ type: i0.Input, args: ['cdkConnectedOverlayTransformOriginOn',] }],\n hasBackdrop: [{ type: i0.Input, args: ['cdkConnectedOverlayHasBackdrop',] }],\n lockPosition: [{ type: i0.Input, args: ['cdkConnectedOverlayLockPosition',] }],\n flexibleDimensions: [{ type: i0.Input, args: ['cdkConnectedOverlayFlexibleDimensions',] }],\n growAfterOpen: [{ type: i0.Input, args: ['cdkConnectedOverlayGrowAfterOpen',] }],\n push: [{ type: i0.Input, args: ['cdkConnectedOverlayPush',] }],\n backdropClick: [{ type: i0.Output }],\n positionChange: [{ type: i0.Output }],\n attach: [{ type: i0.Output }],\n detach: [{ type: i0.Output }],\n overlayKeydown: [{ type: i0.Output }],\n overlayOutsideClick: [{ type: i0.Output }]\n };\n /** @docs-private */\n function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return function () { return overlay.scrollStrategies.reposition(); };\n }\n /** @docs-private */\n var CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {\n provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var OverlayModule = /** @class */ (function () {\n function OverlayModule() {\n }\n return OverlayModule;\n }());\n OverlayModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [bidi.BidiModule, portal.PortalModule, i1.ScrollingModule],\n exports: [CdkConnectedOverlay, CdkOverlayOrigin, i1.ScrollingModule],\n declarations: [CdkConnectedOverlay, CdkOverlayOrigin],\n providers: [\n Overlay,\n CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,\n ],\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\n var FullscreenOverlayContainer = /** @class */ (function (_super) {\n __extends(FullscreenOverlayContainer, _super);\n function FullscreenOverlayContainer(_document, platform) {\n return _super.call(this, _document, platform) || this;\n }\n FullscreenOverlayContainer.prototype.ngOnDestroy = function () {\n _super.prototype.ngOnDestroy.call(this);\n if (this._fullScreenEventName && this._fullScreenListener) {\n this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);\n }\n };\n FullscreenOverlayContainer.prototype._createContainer = function () {\n var _this = this;\n _super.prototype._createContainer.call(this);\n this._adjustParentForFullscreenChange();\n this._addFullscreenChangeListener(function () { return _this._adjustParentForFullscreenChange(); });\n };\n FullscreenOverlayContainer.prototype._adjustParentForFullscreenChange = function () {\n if (!this._containerElement) {\n return;\n }\n var fullscreenElement = this.getFullscreenElement();\n var parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n };\n FullscreenOverlayContainer.prototype._addFullscreenChangeListener = function (fn) {\n var eventName = this._getEventName();\n if (eventName) {\n if (this._fullScreenListener) {\n this._document.removeEventListener(eventName, this._fullScreenListener);\n }\n this._document.addEventListener(eventName, fn);\n this._fullScreenListener = fn;\n }\n };\n FullscreenOverlayContainer.prototype._getEventName = function () {\n if (!this._fullScreenEventName) {\n var _document = this._document;\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n }\n else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n }\n else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n }\n else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\n }\n }\n return this._fullScreenEventName;\n };\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n FullscreenOverlayContainer.prototype.getFullscreenElement = function () {\n var _document = this._document;\n return _document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null;\n };\n return FullscreenOverlayContainer;\n }(OverlayContainer));\n FullscreenOverlayContainer.ɵprov = i0.ɵɵdefineInjectable({ factory: function FullscreenOverlayContainer_Factory() { return new FullscreenOverlayContainer(i0.ɵɵinject(i1$1.DOCUMENT), i0.ɵɵinject(i2.Platform)); }, token: FullscreenOverlayContainer, providedIn: \"root\" });\n FullscreenOverlayContainer.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n FullscreenOverlayContainer.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Inject, args: [i1$1.DOCUMENT,] }] },\n { type: i2.Platform }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n Object.defineProperty(exports, 'CdkScrollable', {\n enumerable: true,\n get: function () {\n return i1.CdkScrollable;\n }\n });\n Object.defineProperty(exports, 'ScrollDispatcher', {\n enumerable: true,\n get: function () {\n return i1.ScrollDispatcher;\n }\n });\n Object.defineProperty(exports, 'ViewportRuler', {\n enumerable: true,\n get: function () {\n return i1.ViewportRuler;\n }\n });\n exports.BlockScrollStrategy = BlockScrollStrategy;\n exports.CdkConnectedOverlay = CdkConnectedOverlay;\n exports.CdkOverlayOrigin = CdkOverlayOrigin;\n exports.CloseScrollStrategy = CloseScrollStrategy;\n exports.ConnectedOverlayPositionChange = ConnectedOverlayPositionChange;\n exports.ConnectedPositionStrategy = ConnectedPositionStrategy;\n exports.ConnectionPositionPair = ConnectionPositionPair;\n exports.FlexibleConnectedPositionStrategy = FlexibleConnectedPositionStrategy;\n exports.FullscreenOverlayContainer = FullscreenOverlayContainer;\n exports.GlobalPositionStrategy = GlobalPositionStrategy;\n exports.NoopScrollStrategy = NoopScrollStrategy;\n exports.Overlay = Overlay;\n exports.OverlayConfig = OverlayConfig;\n exports.OverlayContainer = OverlayContainer;\n exports.OverlayKeyboardDispatcher = OverlayKeyboardDispatcher;\n exports.OverlayModule = OverlayModule;\n exports.OverlayOutsideClickDispatcher = OverlayOutsideClickDispatcher;\n exports.OverlayPositionBuilder = OverlayPositionBuilder;\n exports.OverlayRef = OverlayRef;\n exports.RepositionScrollStrategy = RepositionScrollStrategy;\n exports.ScrollStrategyOptions = ScrollStrategyOptions;\n exports.ScrollingVisibility = ScrollingVisibility;\n exports.validateHorizontalPosition = validateHorizontalPosition;\n exports.validateVerticalPosition = validateVerticalPosition;\n exports.ɵangular_material_src_cdk_overlay_overlay_a = CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY;\n exports.ɵangular_material_src_cdk_overlay_overlay_b = CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY;\n exports.ɵangular_material_src_cdk_overlay_overlay_c = CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER;\n exports.ɵangular_material_src_cdk_overlay_overlay_d = BaseOverlayDispatcher;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=cdk-overlay.umd.js.map\n"]}