@angular/cdk 10.1.2 → 10.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/bundles/cdk-a11y.umd.js +425 -373
  2. package/bundles/cdk-a11y.umd.js.map +1 -1
  3. package/bundles/cdk-a11y.umd.min.js +34 -10
  4. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  5. package/bundles/cdk-accordion.umd.js +40 -40
  6. package/bundles/cdk-accordion.umd.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.min.js +10 -2
  8. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  9. package/bundles/cdk-bidi.umd.js +25 -25
  10. package/bundles/cdk-bidi.umd.js.map +1 -1
  11. package/bundles/cdk-bidi.umd.min.js +5 -4
  12. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  13. package/bundles/cdk-clipboard.umd.js +31 -31
  14. package/bundles/cdk-clipboard.umd.js.map +1 -1
  15. package/bundles/cdk-clipboard.umd.min.js +10 -2
  16. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  17. package/bundles/cdk-coercion.umd.js.map +1 -1
  18. package/bundles/cdk-collections.umd.js +303 -237
  19. package/bundles/cdk-collections.umd.js.map +1 -1
  20. package/bundles/cdk-collections.umd.min.js +3 -9
  21. package/bundles/cdk-collections.umd.min.js.map +1 -1
  22. package/bundles/cdk-drag-drop.umd.js +484 -425
  23. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  24. package/bundles/cdk-drag-drop.umd.min.js +68 -5
  25. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  26. package/bundles/cdk-keycodes.umd.js.map +1 -1
  27. package/bundles/cdk-layout.umd.js +18 -18
  28. package/bundles/cdk-layout.umd.js.map +1 -1
  29. package/bundles/cdk-layout.umd.min.js +6 -5
  30. package/bundles/cdk-layout.umd.min.js.map +1 -1
  31. package/bundles/cdk-observers.umd.js +34 -34
  32. package/bundles/cdk-observers.umd.js.map +1 -1
  33. package/bundles/cdk-observers.umd.min.js +2 -2
  34. package/bundles/cdk-observers.umd.min.js.map +1 -1
  35. package/bundles/cdk-overlay.umd.js +442 -383
  36. package/bundles/cdk-overlay.umd.js.map +1 -1
  37. package/bundles/cdk-overlay.umd.min.js +57 -11
  38. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  39. package/bundles/cdk-platform.umd.js +10 -10
  40. package/bundles/cdk-platform.umd.js.map +1 -1
  41. package/bundles/cdk-platform.umd.min.js +3 -10
  42. package/bundles/cdk-platform.umd.min.js.map +1 -1
  43. package/bundles/cdk-portal.umd.js +351 -299
  44. package/bundles/cdk-portal.umd.js.map +1 -1
  45. package/bundles/cdk-portal.umd.min.js +4 -5
  46. package/bundles/cdk-portal.umd.min.js.map +1 -1
  47. package/bundles/cdk-scrolling.umd.js +432 -378
  48. package/bundles/cdk-scrolling.umd.js.map +1 -1
  49. package/bundles/cdk-scrolling.umd.min.js +20 -19
  50. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  51. package/bundles/cdk-stepper.umd.js +117 -117
  52. package/bundles/cdk-stepper.umd.js.map +1 -1
  53. package/bundles/cdk-stepper.umd.min.js +11 -2
  54. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  55. package/bundles/cdk-table.umd.js +684 -588
  56. package/bundles/cdk-table.umd.js.map +1 -1
  57. package/bundles/cdk-table.umd.min.js +7 -14
  58. package/bundles/cdk-table.umd.min.js.map +1 -1
  59. package/bundles/cdk-testing-protractor.umd.js +300 -241
  60. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  61. package/bundles/cdk-testing-protractor.umd.min.js +2 -9
  62. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  63. package/bundles/cdk-testing-testbed.umd.js +301 -256
  64. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  65. package/bundles/cdk-testing-testbed.umd.min.js +7 -30
  66. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  67. package/bundles/cdk-testing.umd.js +326 -270
  68. package/bundles/cdk-testing.umd.js.map +1 -1
  69. package/bundles/cdk-testing.umd.min.js +1 -16
  70. package/bundles/cdk-testing.umd.min.js.map +1 -1
  71. package/bundles/cdk-text-field.umd.js +51 -51
  72. package/bundles/cdk-text-field.umd.js.map +1 -1
  73. package/bundles/cdk-text-field.umd.min.js +10 -2
  74. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  75. package/bundles/cdk-tree.umd.js +443 -394
  76. package/bundles/cdk-tree.umd.js.map +1 -1
  77. package/bundles/cdk-tree.umd.min.js +28 -3
  78. package/bundles/cdk-tree.umd.min.js.map +1 -1
  79. package/bundles/cdk.umd.js +1 -1
  80. package/bundles/cdk.umd.js.map +1 -1
  81. package/bundles/cdk.umd.min.js +1 -1
  82. package/bundles/cdk.umd.min.js.map +1 -1
  83. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  84. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  85. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  86. package/esm2015/bidi/directionality.js +1 -1
  87. package/esm2015/overlay/position/flexible-connected-position-strategy.js +3 -3
  88. package/esm2015/scrolling/scrolling-module.js +4 -1
  89. package/esm2015/table/cell.js +18 -3
  90. package/esm2015/table/coalesced-style-scheduler.js +21 -10
  91. package/esm2015/table/sticky-styler.js +21 -7
  92. package/esm2015/table/table.js +8 -2
  93. package/esm2015/tree/tree.js +9 -23
  94. package/esm2015/version.js +1 -1
  95. package/fesm2015/cdk.js +1 -1
  96. package/fesm2015/cdk.js.map +1 -1
  97. package/fesm2015/overlay.js +2 -2
  98. package/fesm2015/overlay.js.map +1 -1
  99. package/fesm2015/scrolling.js +3 -0
  100. package/fesm2015/scrolling.js.map +1 -1
  101. package/fesm2015/table.js +65 -19
  102. package/fesm2015/table.js.map +1 -1
  103. package/fesm2015/tree.js +7 -21
  104. package/fesm2015/tree.js.map +1 -1
  105. package/package.json +1 -1
  106. package/schematics/ng-add/index.js +1 -1
  107. package/scrolling/index.metadata.json +1 -1
  108. package/scrolling/scrolling-module.d.ts +3 -0
  109. package/table/cell.d.ts +13 -0
  110. package/table/coalesced-style-scheduler.d.ts +1 -0
  111. package/table/index.metadata.json +1 -1
  112. package/table/sticky-styler.d.ts +5 -1
  113. package/table/table.d.ts +6 -0
  114. package/tree/index.metadata.json +1 -1
  115. package/tree/tree.d.ts +2 -4
@@ -12,7 +12,22 @@
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license that can be
14
14
  * found in the LICENSE file at https://angular.io/license
15
- */var d=0,h=new Map,l=null,p=function(){function e(e,t){this._platform=t,this._document=e}return e.prototype.describe=function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),h.set(t,{messageElement:t,referenceCount:0})):h.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))},e.prototype.removeDescription=function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=h.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}l&&0===l.childNodes.length&&this._deleteMessagesContainer()}},e.prototype.ngOnDestroy=function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");l&&this._deleteMessagesContainer(),h.clear()},e.prototype._createMessageElement=function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),l.appendChild(t),h.set(e,{messageElement:t,referenceCount:0})},e.prototype._setMessageId=function(e){e.id||(e.id="cdk-describedby-message-"+d++)},e.prototype._deleteMessageElement=function(e){var t=h.get(e),n=t&&t.messageElement;l&&n&&l.removeChild(n),h.delete(e)},e.prototype._createMessagesContainer=function(){if(!l){var e=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(l=this._document.createElement("div")).id="cdk-describedby-message-container",l.classList.add("cdk-visually-hidden"),l.setAttribute("aria-hidden",e+""),this._document.body.appendChild(l)}},e.prototype._deleteMessagesContainer=function(){l&&l.parentNode&&(l.parentNode.removeChild(l),l=null)},e.prototype._removeCdkDescribedByReferenceIds=function(e){var t=u(e,"aria-describedby").filter((function(e){return 0!=e.indexOf("cdk-describedby-message")}));e.setAttribute("aria-describedby",t.join(" "))},e.prototype._addMessageReference=function(e,t){var n=h.get(t);!function r(e,t,n){var r=u(e,t);r.some((function(e){return e.trim()==n.trim()}))||(r.push(n.trim()),e.setAttribute(t,r.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++},e.prototype._removeMessageReference=function(e,t){var n=h.get(t);n.referenceCount--,function r(e,t,n){var r=u(e,t).filter((function(e){return e!=n.trim()}));r.length?e.setAttribute(t,r.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")},e.prototype._isElementDescribedByMessage=function(e,t){var n=u(e,"aria-describedby"),r=h.get(t),o=r&&r.messageElement.id;return!!o&&-1!=n.indexOf(o)},e.prototype._canBeDescribed=function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),r=e.getAttribute("aria-label");return!(!n||r&&r.trim()===n)},e.prototype._isElementNode=function(e){return e.nodeType===this._document.ELEMENT_NODE},e.ɵprov=n.ɵɵdefineInjectable({factory:function o(){return new e(n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(r.Platform))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:r.Platform}]},e}(),f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function _(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}
15
+ */var d=0,h=new Map,l=null,p=function(){function e(e,t){this._platform=t,this._document=e}return e.prototype.describe=function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),h.set(t,{messageElement:t,referenceCount:0})):h.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))},e.prototype.removeDescription=function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=h.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}l&&0===l.childNodes.length&&this._deleteMessagesContainer()}},e.prototype.ngOnDestroy=function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");l&&this._deleteMessagesContainer(),h.clear()},e.prototype._createMessageElement=function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),l.appendChild(t),h.set(e,{messageElement:t,referenceCount:0})},e.prototype._setMessageId=function(e){e.id||(e.id="cdk-describedby-message-"+d++)},e.prototype._deleteMessageElement=function(e){var t=h.get(e),n=t&&t.messageElement;l&&n&&l.removeChild(n),h.delete(e)},e.prototype._createMessagesContainer=function(){if(!l){var e=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(l=this._document.createElement("div")).id="cdk-describedby-message-container",l.classList.add("cdk-visually-hidden"),l.setAttribute("aria-hidden",e+""),this._document.body.appendChild(l)}},e.prototype._deleteMessagesContainer=function(){l&&l.parentNode&&(l.parentNode.removeChild(l),l=null)},e.prototype._removeCdkDescribedByReferenceIds=function(e){var t=u(e,"aria-describedby").filter((function(e){return 0!=e.indexOf("cdk-describedby-message")}));e.setAttribute("aria-describedby",t.join(" "))},e.prototype._addMessageReference=function(e,t){var n=h.get(t);!function r(e,t,n){var r=u(e,t);r.some((function(e){return e.trim()==n.trim()}))||(r.push(n.trim()),e.setAttribute(t,r.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++},e.prototype._removeMessageReference=function(e,t){var n=h.get(t);n.referenceCount--,function r(e,t,n){var r=u(e,t).filter((function(e){return e!=n.trim()}));r.length?e.setAttribute(t,r.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")},e.prototype._isElementDescribedByMessage=function(e,t){var n=u(e,"aria-describedby"),r=h.get(t),o=r&&r.messageElement.id;return!!o&&-1!=n.indexOf(o)},e.prototype._canBeDescribed=function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),r=e.getAttribute("aria-label");return!(!n||r&&r.trim()===n)},e.prototype._isElementNode=function(e){return e.nodeType===this._document.ELEMENT_NODE},e}();p.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new p(n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(r.Platform))},token:p,providedIn:"root"}),p.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],p.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:r.Platform}]};
16
+ /*! *****************************************************************************
17
+ Copyright (c) Microsoft Corporation.
18
+
19
+ Permission to use, copy, modify, and/or distribute this software for any
20
+ purpose with or without fee is hereby granted.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
+ PERFORMANCE OF THIS SOFTWARE.
29
+ ***************************************************************************** */
30
+ var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function _(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}
16
31
  /**
17
32
  * @license
18
33
  * Copyright Google LLC All Rights Reserved.
@@ -20,28 +35,35 @@
20
35
  * Use of this source code is governed by an MIT-style license that can be
21
36
  * found in the LICENSE file at https://angular.io/license
22
37
  */
23
- var y=function(){function e(e){var t=this;this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.Subject,this._typeaheadSubscription=o.Subscription.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new o.Subject,this.change=new o.Subject,e instanceof n.QueryList&&e.changes.subscribe((function(e){if(t._activeItem){var n=e.toArray().indexOf(t._activeItem);n>-1&&n!==t._activeItemIndex&&(t._activeItemIndex=n)}}))}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(e){return void 0===e&&(e=!0),this._wrap=e,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withAllowedModifierKeys=function(e){return this._allowedModifierKeys=e,this},e.prototype.withTypeAhead=function(e){var t=this;if(void 0===e&&(e=200),this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(s.tap((function(e){return t._pressedLetters.push(e)})),s.debounceTime(e),s.filter((function(){return t._pressedLetters.length>0})),s.map((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),r=1;r<n.length+1;r++){var o=(t._activeItemIndex+r)%n.length,i=n[o];if(!t._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(o);break}}t._pressedLetters=[]})),this},e.prototype.withHomeAndEnd=function(){return this._homeAndEnd=!0,this},e.prototype.setActiveItem=function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)},e.prototype.onKeydown=function(e){var t=this,n=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1}));switch(n){case i.TAB:return void this.tabOut.next();case i.DOWN_ARROW:if(this._vertical&&r){this.setNextItemActive();break}return;case i.UP_ARROW:if(this._vertical&&r){this.setPreviousItemActive();break}return;case i.RIGHT_ARROW:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case i.LEFT_ARROW:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case i.HOME:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case i.END:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||i.hasModifierKey(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=i.A&&n<=i.Z||n>=i.ZERO&&n<=i.NINE)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!1,configurable:!0}),e.prototype.isTyping=function(){return this._pressedLetters.length>0},e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItem=function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),r=t[n];this._activeItem=null==r?null:r,this._activeItemIndex=n},e.prototype._setActiveItemByDelta=function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)},e.prototype._setActiveInWrapMode=function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}},e.prototype._setActiveInDefaultMode=function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)},e.prototype._setActiveItemByIndex=function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e.prototype._getItemsArray=function(){return this._items instanceof n.QueryList?this._items.toArray():this._items},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.setActiveItem=function(t){this.activeItem&&this.activeItem.setInactiveStyles(),e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.setActiveStyles()},t}(y),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._origin="program",t}return _(t,e),t.prototype.setFocusOrigin=function(e){return this._origin=e,this},t.prototype.setActiveItem=function(t){e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.focus(this._origin)},t}(y),b=function b(){this.ignoreVisibility=!1},I=function(){function e(e){this._platform=e}return e.prototype.isDisabled=function(e){return e.hasAttribute("disabled")},e.prototype.isVisible=function(e){return function t(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility},e.prototype.isTabbable=function(e){if(!this._platform.isBrowser)return!1;var t=function r(e){try{return e.frameElement}catch(e){return null}}(function n(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}
38
+ var g=function(){function e(e){var t=this;this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.Subject,this._typeaheadSubscription=o.Subscription.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new o.Subject,this.change=new o.Subject,e instanceof n.QueryList&&e.changes.subscribe((function(e){if(t._activeItem){var n=e.toArray().indexOf(t._activeItem);n>-1&&n!==t._activeItemIndex&&(t._activeItemIndex=n)}}))}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(e){return void 0===e&&(e=!0),this._wrap=e,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withAllowedModifierKeys=function(e){return this._allowedModifierKeys=e,this},e.prototype.withTypeAhead=function(e){var t=this;if(void 0===e&&(e=200),this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(s.tap((function(e){return t._pressedLetters.push(e)})),s.debounceTime(e),s.filter((function(){return t._pressedLetters.length>0})),s.map((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),r=1;r<n.length+1;r++){var o=(t._activeItemIndex+r)%n.length,i=n[o];if(!t._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(o);break}}t._pressedLetters=[]})),this},e.prototype.withHomeAndEnd=function(){return this._homeAndEnd=!0,this},e.prototype.setActiveItem=function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)},e.prototype.onKeydown=function(e){var t=this,n=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1}));switch(n){case i.TAB:return void this.tabOut.next();case i.DOWN_ARROW:if(this._vertical&&r){this.setNextItemActive();break}return;case i.UP_ARROW:if(this._vertical&&r){this.setPreviousItemActive();break}return;case i.RIGHT_ARROW:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case i.LEFT_ARROW:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case i.HOME:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case i.END:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||i.hasModifierKey(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=i.A&&n<=i.Z||n>=i.ZERO&&n<=i.NINE)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!1,configurable:!0}),e.prototype.isTyping=function(){return this._pressedLetters.length>0},e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItem=function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),r=t[n];this._activeItem=null==r?null:r,this._activeItemIndex=n},e.prototype._setActiveItemByDelta=function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)},e.prototype._setActiveInWrapMode=function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}},e.prototype._setActiveInDefaultMode=function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)},e.prototype._setActiveItemByIndex=function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e.prototype._getItemsArray=function(){return this._items instanceof n.QueryList?this._items.toArray():this._items},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.setActiveItem=function(t){this.activeItem&&this.activeItem.setInactiveStyles(),e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.setActiveStyles()},t}(g),b=function(e){function t(){var t=e.apply(this,y(arguments))||this;return t._origin="program",t}return _(t,e),t.prototype.setFocusOrigin=function(e){return this._origin=e,this},t.prototype.setActiveItem=function(t){e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.focus(this._origin)},t}(g),I=function I(){this.ignoreVisibility=!1},E=function(){function e(e){this._platform=e}return e.prototype.isDisabled=function(e){return e.hasAttribute("disabled")},e.prototype.isVisible=function(e){return function t(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility},e.prototype.isTabbable=function(e){if(!this._platform.isBrowser)return!1;var t=function r(e){try{return e.frameElement}catch(e){return null}}(function n(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}
24
39
  /**
25
40
  * @license
26
41
  * Copyright Google LLC All Rights Reserved.
27
42
  *
28
43
  * Use of this source code is governed by an MIT-style license that can be
29
44
  * found in the LICENSE file at https://angular.io/license
30
- */(e));if(t){if(-1===A(t))return!1;if(!this.isVisible(t))return!1}var o=e.nodeName.toLowerCase(),i=A(e);return e.hasAttribute("contenteditable")?-1!==i:"iframe"!==o&&"object"!==o&&!(this._platform.WEBKIT&&this._platform.IOS&&!function s(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==i:"video"===o?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)},e.prototype.isFocusable=function(e,t){return function n(e){return!function t(e){return function t(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function n(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function r(e){return function t(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||E(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))},e.ɵprov=n.ɵɵdefineInjectable({factory:function t(){return new e(n.ɵɵinject(r.Platform))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:r.Platform}]},e}();
45
+ */(e));if(t){if(-1===T(t))return!1;if(!this.isVisible(t))return!1}var o=e.nodeName.toLowerCase(),i=T(e);return e.hasAttribute("contenteditable")?-1!==i:"iframe"!==o&&"object"!==o&&!(this._platform.WEBKIT&&this._platform.IOS&&!function s(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==i:"video"===o?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)},e.prototype.isFocusable=function(e,t){return function n(e){return!function t(e){return function t(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function n(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function r(e){return function t(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||A(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))},e}();function A(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function T(e){if(!A(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}E.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new E(n.ɵɵinject(r.Platform))},token:E,providedIn:"root"}),E.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],E.ctorParameters=function(){return[{type:r.Platform}]};var k=function(){function e(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return i.focusLastTabbableElement()},this.endAnchorListener=function(){return i.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)},e.prototype.focusInitialElement=function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),n.isDevMode()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()},e.prototype.focusFirstTabbableElement=function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e},e.prototype.focusLastTabbableElement=function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e},e.prototype.hasAttached=function(){return this._hasAttached},e.prototype._getFirstTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._getLastTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e},e.prototype._toggleAnchorTabIndex=function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},e.prototype.toggleAnchors=function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(s.take(1)).subscribe(e)},e}(),C=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new k(e,this._checker,this._ngZone,this._document,t)},e}();C.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new C(n.ɵɵinject(E),n.ɵɵinject(n.NgZone),n.ɵɵinject(t.DOCUMENT))},token:C,providedIn:"root"}),C.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],C.ctorParameters=function(){return[{type:E},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]};var w=function(){function e(e,t,n){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(e){this._autoCapture=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},e.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()},e.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},e.prototype.ngOnChanges=function(e){var t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()},e.prototype._captureFocus=function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()},e}();w.decorators=[{type:n.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],w.ctorParameters=function(){return[{type:n.ElementRef},{type:C},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},w.propDecorators={enabled:[{type:n.Input,args:["cdkTrapFocus"]}],autoCapture:[{type:n.Input,args:["cdkTrapFocusAutoCapture"]}]};var F=function(e){function t(t,n,r,o,i,s,c){var a=e.call(this,t,n,r,o,c.defer)||this;return a._focusTrapManager=i,a._inertStrategy=s,a._focusTrapManager.register(a),a}return _(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this._focusTrapManager.deregister(this),e.prototype.destroy.call(this)},t.prototype._enable=function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)},t.prototype._disable=function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)},t}(k),O="undefined"!=typeof Element&&!!Element.prototype.closest;
31
46
  /**
32
47
  * @license
33
48
  * Copyright Google LLC All Rights Reserved.
34
49
  *
35
50
  * Use of this source code is governed by an MIT-style license that can be
36
51
  * found in the LICENSE file at https://angular.io/license
37
- */function E(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function A(e){if(!E(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var T=function(){function e(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return i.focusLastTabbableElement()},this.endAnchorListener=function(){return i.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)},e.prototype.focusInitialElement=function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),n.isDevMode()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()},e.prototype.focusFirstTabbableElement=function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e},e.prototype.focusLastTabbableElement=function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e},e.prototype.hasAttached=function(){return this._hasAttached},e.prototype._getFirstTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._getLastTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e},e.prototype._toggleAnchorTabIndex=function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},e.prototype.toggleAnchors=function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(s.take(1)).subscribe(e)},e}(),k=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new T(e,this._checker,this._ngZone,this._document,t)},e.ɵprov=n.ɵɵdefineInjectable({factory:function r(){return new e(n.ɵɵinject(I),n.ɵɵinject(n.NgZone),n.ɵɵinject(t.DOCUMENT))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:I},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e}(),C=function(){function e(e,t,n){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(e){this._autoCapture=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},e.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()},e.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},e.prototype.ngOnChanges=function(e){var t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()},e.prototype._captureFocus=function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()},e.decorators=[{type:n.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:k},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e.propDecorators={enabled:[{type:n.Input,args:["cdkTrapFocus"]}],autoCapture:[{type:n.Input,args:["cdkTrapFocusAutoCapture"]}]},e}(),w=function(e){function t(t,n,r,o,i,s,c){var a=e.call(this,t,n,r,o,c.defer)||this;return a._focusTrapManager=i,a._inertStrategy=s,a._focusTrapManager.register(a),a}return _(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this._focusTrapManager.deregister(this),e.prototype.destroy.call(this)},t.prototype._enable=function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)},t.prototype._disable=function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)},t}(T),F="undefined"!=typeof Element&&!!Element.prototype.closest;function O(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)}
52
+ */function L(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)}
38
53
  /**
39
54
  * @license
40
55
  * Copyright Google LLC All Rights Reserved.
41
56
  *
42
57
  * Use of this source code is governed by an MIT-style license that can be
43
58
  * found in the LICENSE file at https://angular.io/license
44
- */var L=function(){function e(){this._listener=null}return e.prototype.preventFocus=function(e){var t=this;this._listener&&e._document.removeEventListener("focus",this._listener,!0),this._listener=function(n){return t._trapFocus(e,n)},e._ngZone.runOutsideAngular((function(){e._document.addEventListener("focus",t._listener,!0)}))},e.prototype.allowFocus=function(e){this._listener&&(e._document.removeEventListener("focus",this._listener,!0),this._listener=null)},e.prototype._trapFocus=function(e,t){var n=t.target,r=e._element;r.contains(n)||null!==
59
+ */var N=function(){function e(){this._listener=null}return e.prototype.preventFocus=function(e){var t=this;this._listener&&e._document.removeEventListener("focus",this._listener,!0),this._listener=function(n){return t._trapFocus(e,n)},e._ngZone.runOutsideAngular((function(){e._document.addEventListener("focus",t._listener,!0)}))},e.prototype.allowFocus=function(e){this._listener&&(e._document.removeEventListener("focus",this._listener,!0),this._listener=null)},e.prototype._trapFocus=function(e,t){var n=t.target,r=e._element;r.contains(n)||null!==function o(e,t){if(!(e instanceof Node))return null;for(var n=e;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(O?n.closest(t):function r(e,t){for(var n=e;null!=n&&!(n instanceof Element&&L(n,t));)n=n.parentNode;return n||null}(n,t))}(n,"div.cdk-overlay-pane")||setTimeout((function(){e.enabled&&!r.contains(e._document.activeElement)&&e.focusFirstTabbableElement()}))},e}(),M=function M(){this.defer=!1},j=new n.InjectionToken("FOCUS_TRAP_INERT_STRATEGY"),x=function(){function e(){this._focusTrapStack=[]}return e.prototype.register=function(e){this._focusTrapStack=this._focusTrapStack.filter((function(t){return t!==e}));var t=this._focusTrapStack;t.length&&t[t.length-1]._disable(),t.push(e),e._enable()},e.prototype.deregister=function(e){e._disable();var t=this._focusTrapStack,n=t.indexOf(e);-1!==n&&(t.splice(n,1),t.length&&t[t.length-1]._enable())},e}();
60
+ /**
61
+ * @license
62
+ * Copyright Google LLC All Rights Reserved.
63
+ *
64
+ * Use of this source code is governed by an MIT-style license that can be
65
+ * found in the LICENSE file at https://angular.io/license
66
+ */x.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new x},token:x,providedIn:"root"}),x.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}];
45
67
  /**
46
68
  * @license
47
69
  * Copyright Google LLC All Rights Reserved.
@@ -49,14 +71,15 @@ var y=function(){function e(e){var t=this;this._items=e,this._activeItemIndex=-1
49
71
  * Use of this source code is governed by an MIT-style license that can be
50
72
  * found in the LICENSE file at https://angular.io/license
51
73
  */
52
- function o(e,t){if(!(e instanceof Node))return null;for(var n=e;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(F?n.closest(t):function r(e,t){for(var n=e;null!=n&&!(n instanceof Element&&O(n,t));)n=n.parentNode;return n||null}(n,t))}(n,"div.cdk-overlay-pane")||setTimeout((function(){e.enabled&&!r.contains(e._document.activeElement)&&e.focusFirstTabbableElement()}))},e}(),N=function N(){this.defer=!1},M=new n.InjectionToken("FOCUS_TRAP_INERT_STRATEGY"),j=function(){function e(){this._focusTrapStack=[]}return e.prototype.register=function(e){this._focusTrapStack=this._focusTrapStack.filter((function(t){return t!==e}));var t=this._focusTrapStack;t.length&&t[t.length-1]._disable(),t.push(e),e._enable()},e.prototype.deregister=function(e){e._disable();var t=this._focusTrapStack,n=t.indexOf(e);-1!==n&&(t.splice(n,1),t.length&&t[t.length-1]._enable())},e.ɵprov=n.ɵɵdefineInjectable({factory:function t(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e}(),x=function(){function e(e,t,n,r,o){this._checker=e,this._ngZone=t,this._focusTrapManager=n,this._document=r,this._inertStrategy=o||new L}return e.prototype.create=function(e,t){var n;return void 0===t&&(t=new N),"boolean"==typeof t?(n=new N).defer=t:n=t,new w(e,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,n)},e.ɵprov=n.ɵɵdefineInjectable({factory:function r(){return new e(n.ɵɵinject(I),n.ɵɵinject(n.NgZone),n.ɵɵinject(j),n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(M,8))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:I},{type:n.NgZone},{type:j},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[M]}]}]},e}(),D=new n.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:S});
74
+ var D=function(){function e(e,t,n,r,o){this._checker=e,this._ngZone=t,this._focusTrapManager=n,this._document=r,this._inertStrategy=o||new N}return e.prototype.create=function(e,t){var n;return void 0===t&&(t=new M),"boolean"==typeof t?(n=new M).defer=t:n=t,new F(e,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,n)},e}();D.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new D(n.ɵɵinject(E),n.ɵɵinject(n.NgZone),n.ɵɵinject(x),n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(j,8))},token:D,providedIn:"root"}),D.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],D.ctorParameters=function(){return[{type:E},{type:n.NgZone},{type:x},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[j]}]}]};
53
75
  /**
54
76
  * @license
55
77
  * Copyright Google LLC All Rights Reserved.
56
78
  *
57
79
  * Use of this source code is governed by an MIT-style license that can be
58
80
  * found in the LICENSE file at https://angular.io/license
59
- */function S(){return null}var R=new n.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P=function(){function e(e,t,n,r){this._ngZone=t,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return e.prototype.announce=function(e){for(var t,n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i,s,c=this._defaultOptions;return 1===r.length&&"number"==typeof r[0]?s=r[0]:(i=(t=m(r,2))[0],s=t[1]),this.clear(),clearTimeout(this._previousTimeout),i||(i=c&&c.politeness?c.politeness:"polite"),null==s&&c&&(s=c.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(n._previousTimeout),n._previousTimeout=setTimeout((function(){n._liveElement.textContent=e,t(),"number"==typeof s&&(n._previousTimeout=setTimeout((function(){return n.clear()}),s))}),100)}))}))},e.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")},e.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)},e.prototype._createLiveElement=function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t},e.ɵprov=n.ɵɵdefineInjectable({factory:function r(){return new e(n.ɵɵinject(D,8),n.ɵɵinject(n.NgZone),n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(R,8))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[D]}]},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[R]}]}]},e}(),B=function(){function e(e,t,n,r){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=n,this._ngZone=r,this._politeness="off"}return Object.defineProperty(e.prototype,"politeness",{get:function(){return this._politeness},set:function(e){var t=this;this._politeness="polite"===e||"assertive"===e?e:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular((function(){return t._contentObserver.observe(t._elementRef).subscribe((function(){var e=t._elementRef.nativeElement.textContent;e!==t._previousAnnouncedText&&(t._liveAnnouncer.announce(e,t._politeness),t._previousAnnouncedText=e)}))})))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},e.decorators=[{type:n.Directive,args:[{selector:"[cdkAriaLive]",exportAs:"cdkAriaLive"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:P},{type:a.ContentObserver},{type:n.NgZone}]},e.propDecorators={politeness:[{type:n.Input,args:["cdkAriaLive"]}]},e}();
81
+ */
82
+ var S=new n.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:R});function R(){return null}var P=new n.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),B=function(){function e(e,t,n,r){this._ngZone=t,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return e.prototype.announce=function(e){for(var t,n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i,s,c=this._defaultOptions;return 1===r.length&&"number"==typeof r[0]?s=r[0]:(i=(t=m(r,2))[0],s=t[1]),this.clear(),clearTimeout(this._previousTimeout),i||(i=c&&c.politeness?c.politeness:"polite"),null==s&&c&&(s=c.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(n._previousTimeout),n._previousTimeout=setTimeout((function(){n._liveElement.textContent=e,t(),"number"==typeof s&&(n._previousTimeout=setTimeout((function(){return n.clear()}),s))}),100)}))}))},e.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")},e.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)},e.prototype._createLiveElement=function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t},e}();B.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new B(n.ɵɵinject(S,8),n.ɵɵinject(n.NgZone),n.ɵɵinject(t.DOCUMENT),n.ɵɵinject(P,8))},token:B,providedIn:"root"}),B.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[S]}]},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[P]}]}]};var U=function(){function e(e,t,n,r){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=n,this._ngZone=r,this._politeness="off"}return Object.defineProperty(e.prototype,"politeness",{get:function(){return this._politeness},set:function(e){var t=this;this._politeness="polite"===e||"assertive"===e?e:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular((function(){return t._contentObserver.observe(t._elementRef).subscribe((function(){var e=t._elementRef.nativeElement.textContent;e!==t._previousAnnouncedText&&(t._liveAnnouncer.announce(e,t._politeness),t._previousAnnouncedText=e)}))})))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},e}();
60
83
  /**
61
84
  * @license
62
85
  * Copyright Google LLC All Rights Reserved.
@@ -64,14 +87,14 @@ function o(e,t){if(!(e instanceof Node))return null;for(var n=e;null!=n&&!(n ins
64
87
  * Use of this source code is governed by an MIT-style license that can be
65
88
  * found in the LICENSE file at https://angular.io/license
66
89
  */
67
- function U(e){return 0===e.buttons}
90
+ function Z(e){return 0===e.buttons}
68
91
  /**
69
92
  * @license
70
93
  * Copyright Google LLC All Rights Reserved.
71
94
  *
72
95
  * Use of this source code is governed by an MIT-style license that can be
73
96
  * found in the LICENSE file at https://angular.io/license
74
- */var Z=new n.InjectionToken("cdk-focus-monitor-default-options"),K=r.normalizePassiveListenerOptions({passive:!0,capture:!0}),W=function(){function e(e,t,n,r){var o=this;this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=U(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=V(e),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=V(e),n="focus"===e.type?o._onFocus:o._onBlur,r=t;r;r=r.parentElement)n.call(o,e,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return e.prototype.monitor=function(e,t){if(void 0===t&&(t=!1),!this._platform.isBrowser)return o.of(null);var n=c.coerceElement(e),i=r._getShadowRoot(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject.asObservable();var a={checkChildren:t,subject:new o.Subject,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=c.coerceElement(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))},e.prototype.focusVia=function(e,t,n){var r=c.coerceElement(e);this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))},e.prototype._getDocument=function(){return this._document||document},e.prototype._getWindow=function(){return this._getDocument().defaultView||window},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._getFocusOrigin=function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"},e.prototype._setClasses=function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))},e.prototype._wasCausedByTouch=function(e){var t=V(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===V(e))){var r=this._getFocusOrigin(e);this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run((function(){return e.next(t)}))},e.prototype._registerGlobalListeners=function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,K),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,K)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,K),e.addEventListener("mousedown",t._documentMousedownListener,K),e.addEventListener("touchstart",t._documentTouchstartListener,K),n.addEventListener("focus",t._windowFocusListener)}))}},e.prototype._removeGlobalListeners=function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,K),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,K),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var r=this._getDocument(),o=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,K),r.removeEventListener("mousedown",this._documentMousedownListener,K),r.removeEventListener("touchstart",this._documentTouchstartListener,K),o.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},e.ɵprov=n.ɵɵdefineInjectable({factory:function o(){return new e(n.ɵɵinject(n.NgZone),n.ɵɵinject(r.Platform),n.ɵɵinject(t.DOCUMENT,8),n.ɵɵinject(Z,8))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:n.NgZone},{type:r.Platform},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Z]}]}]},e}();function V(e){return e.composedPath?e.composedPath()[0]:e.target}var H=function(){function e(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new n.EventEmitter}return e.prototype.ngAfterViewInit=function(){var e=this;this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return e.cdkFocusChange.emit(t)}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()},e.decorators=[{type:n.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:W}]},e.propDecorators={cdkFocusChange:[{type:n.Output}]},e}(),q=function(){function e(e,t){this._platform=e,this._document=t}return e.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},e.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}},e.ɵprov=n.ɵɵdefineInjectable({factory:function o(){return new e(n.ɵɵinject(r.Platform),n.ɵɵinject(t.DOCUMENT))},token:e,providedIn:"root"}),e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:r.Platform},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e}(),G=function(){function e(e){e._applyBodyHighContrastModeCssClasses()}return e.decorators=[{type:n.NgModule,args:[{imports:[r.PlatformModule,a.ObserversModule],declarations:[B,C,H],exports:[B,C,H]}]}],e.ctorParameters=function(){return[{type:q}]},e}();
97
+ */U.decorators=[{type:n.Directive,args:[{selector:"[cdkAriaLive]",exportAs:"cdkAriaLive"}]}],U.ctorParameters=function(){return[{type:n.ElementRef},{type:B},{type:a.ContentObserver},{type:n.NgZone}]},U.propDecorators={politeness:[{type:n.Input,args:["cdkAriaLive"]}]};var K=new n.InjectionToken("cdk-focus-monitor-default-options"),W=r.normalizePassiveListenerOptions({passive:!0,capture:!0}),V=function(){function e(e,t,n,r){var o=this;this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=Z(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=H(e),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=H(e),n="focus"===e.type?o._onFocus:o._onBlur,r=t;r;r=r.parentElement)n.call(o,e,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return e.prototype.monitor=function(e,t){if(void 0===t&&(t=!1),!this._platform.isBrowser)return o.of(null);var n=c.coerceElement(e),i=r._getShadowRoot(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject.asObservable();var a={checkChildren:t,subject:new o.Subject,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=c.coerceElement(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))},e.prototype.focusVia=function(e,t,n){var r=c.coerceElement(e);this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))},e.prototype._getDocument=function(){return this._document||document},e.prototype._getWindow=function(){return this._getDocument().defaultView||window},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._getFocusOrigin=function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"},e.prototype._setClasses=function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))},e.prototype._wasCausedByTouch=function(e){var t=H(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===H(e))){var r=this._getFocusOrigin(e);this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run((function(){return e.next(t)}))},e.prototype._registerGlobalListeners=function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,W),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,W)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,W),e.addEventListener("mousedown",t._documentMousedownListener,W),e.addEventListener("touchstart",t._documentTouchstartListener,W),n.addEventListener("focus",t._windowFocusListener)}))}},e.prototype._removeGlobalListeners=function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,W),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,W),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var r=this._getDocument(),o=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,W),r.removeEventListener("mousedown",this._documentMousedownListener,W),r.removeEventListener("touchstart",this._documentTouchstartListener,W),o.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},e}();function H(e){return e.composedPath?e.composedPath()[0]:e.target}V.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new V(n.ɵɵinject(n.NgZone),n.ɵɵinject(r.Platform),n.ɵɵinject(t.DOCUMENT,8),n.ɵɵinject(K,8))},token:V,providedIn:"root"}),V.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],V.ctorParameters=function(){return[{type:n.NgZone},{type:r.Platform},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[K]}]}]};var q=function(){function e(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new n.EventEmitter}return e.prototype.ngAfterViewInit=function(){var e=this;this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return e.cdkFocusChange.emit(t)}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()},e}();q.decorators=[{type:n.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],q.ctorParameters=function(){return[{type:n.ElementRef},{type:V}]},q.propDecorators={cdkFocusChange:[{type:n.Output}]};
75
98
  /**
76
99
  * @license
77
100
  * Copyright Google LLC All Rights Reserved.
@@ -79,6 +102,7 @@ function U(e){return 0===e.buttons}
79
102
  * Use of this source code is governed by an MIT-style license that can be
80
103
  * found in the LICENSE file at https://angular.io/license
81
104
  */
105
+ var G,z=function(){function e(e,t){this._platform=e,this._document=t}return e.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},e.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}},e}();z.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return new z(n.ɵɵinject(r.Platform),n.ɵɵinject(t.DOCUMENT))},token:z,providedIn:"root"}),z.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],z.ctorParameters=function(){return[{type:r.Platform},{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},(G=function G(e){e._applyBodyHighContrastModeCssClasses()}).decorators=[{type:n.NgModule,args:[{imports:[r.PlatformModule,a.ObserversModule],declarations:[U,w,q],exports:[U,w,q]}]}],G.ctorParameters=function(){return[{type:z}]},
82
106
  /**
83
107
  * @license
84
108
  * Copyright Google LLC All Rights Reserved.
@@ -86,4 +110,4 @@ function U(e){return 0===e.buttons}
86
110
  * Use of this source code is governed by an MIT-style license that can be
87
111
  * found in the LICENSE file at https://angular.io/license
88
112
  */
89
- e.A11yModule=G,e.ActiveDescendantKeyManager=g,e.AriaDescriber=p,e.CDK_DESCRIBEDBY_HOST_ATTRIBUTE="cdk-describedby-host",e.CDK_DESCRIBEDBY_ID_PREFIX="cdk-describedby-message",e.CdkAriaLive=B,e.CdkMonitorFocus=H,e.CdkTrapFocus=C,e.ConfigurableFocusTrap=w,e.ConfigurableFocusTrapFactory=x,e.EventListenerFocusTrapInertStrategy=L,e.FOCUS_MONITOR_DEFAULT_OPTIONS=Z,e.FOCUS_TRAP_INERT_STRATEGY=M,e.FocusKeyManager=v,e.FocusMonitor=W,e.FocusTrap=T,e.FocusTrapFactory=k,e.HighContrastModeDetector=q,e.InteractivityChecker=I,e.IsFocusableConfig=b,e.LIVE_ANNOUNCER_DEFAULT_OPTIONS=R,e.LIVE_ANNOUNCER_ELEMENT_TOKEN=D,e.LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY=S,e.ListKeyManager=y,e.LiveAnnouncer=P,e.MESSAGES_CONTAINER_ID="cdk-describedby-message-container",e.TOUCH_BUFFER_MS=650,e.isFakeMousedownFromScreenReader=U,e.ɵangular_material_src_cdk_a11y_a11y_a=j,e.ɵangular_material_src_cdk_a11y_a11y_b=N,Object.defineProperty(e,"__esModule",{value:!0})}));
113
+ e.A11yModule=G,e.ActiveDescendantKeyManager=v,e.AriaDescriber=p,e.CDK_DESCRIBEDBY_HOST_ATTRIBUTE="cdk-describedby-host",e.CDK_DESCRIBEDBY_ID_PREFIX="cdk-describedby-message",e.CdkAriaLive=U,e.CdkMonitorFocus=q,e.CdkTrapFocus=w,e.ConfigurableFocusTrap=F,e.ConfigurableFocusTrapFactory=D,e.EventListenerFocusTrapInertStrategy=N,e.FOCUS_MONITOR_DEFAULT_OPTIONS=K,e.FOCUS_TRAP_INERT_STRATEGY=j,e.FocusKeyManager=b,e.FocusMonitor=V,e.FocusTrap=k,e.FocusTrapFactory=C,e.HighContrastModeDetector=z,e.InteractivityChecker=E,e.IsFocusableConfig=I,e.LIVE_ANNOUNCER_DEFAULT_OPTIONS=P,e.LIVE_ANNOUNCER_ELEMENT_TOKEN=S,e.LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY=R,e.ListKeyManager=g,e.LiveAnnouncer=B,e.MESSAGES_CONTAINER_ID="cdk-describedby-message-container",e.TOUCH_BUFFER_MS=650,e.isFakeMousedownFromScreenReader=Z,e.ɵangular_material_src_cdk_a11y_a11y_a=x,e.ɵangular_material_src_cdk_a11y_a11y_b=M,Object.defineProperty(e,"__esModule",{value:!0})}));