@angular/material 10.0.0-rc.3 → 10.1.0

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 (627) hide show
  1. package/_theming.scss +17 -17
  2. package/autocomplete/index.metadata.json +1 -1
  3. package/autocomplete/testing/autocomplete-harness.d.ts +2 -0
  4. package/bundles/material-autocomplete-testing.umd.js +11 -0
  5. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  6. package/bundles/material-autocomplete-testing.umd.min.js +2 -2
  7. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  8. package/bundles/material-autocomplete.umd.js +3 -1
  9. package/bundles/material-autocomplete.umd.js.map +1 -1
  10. package/bundles/material-autocomplete.umd.min.js +5 -5
  11. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  12. package/bundles/material-badge-testing.umd.min.js +1 -1
  13. package/bundles/material-badge-testing.umd.min.js.map +1 -1
  14. package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
  15. package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
  16. package/bundles/material-button-testing.umd.js +11 -0
  17. package/bundles/material-button-testing.umd.js.map +1 -1
  18. package/bundles/material-button-testing.umd.min.js +2 -2
  19. package/bundles/material-button-testing.umd.min.js.map +1 -1
  20. package/bundles/material-button-toggle-testing.umd.js +11 -0
  21. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  22. package/bundles/material-button-toggle-testing.umd.min.js +3 -3
  23. package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
  24. package/bundles/material-button-toggle.umd.js +12 -3
  25. package/bundles/material-button-toggle.umd.js.map +1 -1
  26. package/bundles/material-button-toggle.umd.min.js +2 -2
  27. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  28. package/bundles/material-button.umd.js +7 -2
  29. package/bundles/material-button.umd.js.map +1 -1
  30. package/bundles/material-button.umd.min.js +4 -4
  31. package/bundles/material-button.umd.min.js.map +1 -1
  32. package/bundles/material-card-testing.umd.js +335 -0
  33. package/bundles/material-card-testing.umd.js.map +1 -0
  34. package/bundles/material-card-testing.umd.min.js +44 -0
  35. package/bundles/material-card-testing.umd.min.js.map +1 -0
  36. package/bundles/material-checkbox-testing.umd.js +11 -0
  37. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  38. package/bundles/material-checkbox-testing.umd.min.js +3 -3
  39. package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
  40. package/bundles/material-checkbox.umd.js.map +1 -1
  41. package/bundles/material-chips.umd.js +36 -12
  42. package/bundles/material-chips.umd.js.map +1 -1
  43. package/bundles/material-chips.umd.min.js +4 -4
  44. package/bundles/material-chips.umd.min.js.map +1 -1
  45. package/bundles/material-core-testing.umd.min.js +1 -1
  46. package/bundles/material-core-testing.umd.min.js.map +1 -1
  47. package/bundles/material-core.umd.js +11 -3
  48. package/bundles/material-core.umd.js.map +1 -1
  49. package/bundles/material-core.umd.min.js +11 -11
  50. package/bundles/material-core.umd.min.js.map +1 -1
  51. package/bundles/material-datepicker.umd.js +20 -11
  52. package/bundles/material-datepicker.umd.js.map +1 -1
  53. package/bundles/material-datepicker.umd.min.js +5 -5
  54. package/bundles/material-datepicker.umd.min.js.map +1 -1
  55. package/bundles/material-dialog-testing.umd.min.js +1 -1
  56. package/bundles/material-dialog-testing.umd.min.js.map +1 -1
  57. package/bundles/material-dialog.umd.js +45 -8
  58. package/bundles/material-dialog.umd.js.map +1 -1
  59. package/bundles/material-dialog.umd.min.js +14 -7
  60. package/bundles/material-dialog.umd.min.js.map +1 -1
  61. package/bundles/material-divider-testing.umd.min.js +1 -1
  62. package/bundles/material-divider-testing.umd.min.js.map +1 -1
  63. package/bundles/material-expansion-testing.umd.js +11 -0
  64. package/bundles/material-expansion-testing.umd.js.map +1 -1
  65. package/bundles/material-expansion-testing.umd.min.js +3 -3
  66. package/bundles/material-expansion-testing.umd.min.js.map +1 -1
  67. package/bundles/material-form-field-testing.umd.js +32 -0
  68. package/bundles/material-form-field-testing.umd.js.map +1 -1
  69. package/bundles/material-form-field-testing.umd.min.js +4 -4
  70. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  71. package/bundles/material-form-field.umd.js +47 -21
  72. package/bundles/material-form-field.umd.js.map +1 -1
  73. package/bundles/material-form-field.umd.min.js +5 -5
  74. package/bundles/material-form-field.umd.min.js.map +1 -1
  75. package/bundles/material-grid-list-testing.umd.min.js +1 -1
  76. package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
  77. package/bundles/material-grid-list.umd.js +2 -2
  78. package/bundles/material-grid-list.umd.js.map +1 -1
  79. package/bundles/material-grid-list.umd.min.js +2 -2
  80. package/bundles/material-grid-list.umd.min.js.map +1 -1
  81. package/bundles/material-input-testing.umd.js +23 -6
  82. package/bundles/material-input-testing.umd.js.map +1 -1
  83. package/bundles/material-input-testing.umd.min.js +3 -3
  84. package/bundles/material-input-testing.umd.min.js.map +1 -1
  85. package/bundles/material-input.umd.js +28 -3
  86. package/bundles/material-input.umd.js.map +1 -1
  87. package/bundles/material-input.umd.min.js +3 -3
  88. package/bundles/material-input.umd.min.js.map +1 -1
  89. package/bundles/material-list-testing.umd.js +33 -0
  90. package/bundles/material-list-testing.umd.js.map +1 -1
  91. package/bundles/material-list-testing.umd.min.js +2 -2
  92. package/bundles/material-list-testing.umd.min.js.map +1 -1
  93. package/bundles/material-list.umd.js +3 -3
  94. package/bundles/material-list.umd.min.js +1 -1
  95. package/bundles/material-list.umd.min.js.map +1 -1
  96. package/bundles/material-menu-testing.umd.js +22 -0
  97. package/bundles/material-menu-testing.umd.js.map +1 -1
  98. package/bundles/material-menu-testing.umd.min.js +2 -2
  99. package/bundles/material-menu-testing.umd.min.js.map +1 -1
  100. package/bundles/material-menu.umd.js +13 -2
  101. package/bundles/material-menu.umd.js.map +1 -1
  102. package/bundles/material-menu.umd.min.js +4 -4
  103. package/bundles/material-menu.umd.min.js.map +1 -1
  104. package/bundles/material-paginator-testing.umd.min.js +1 -1
  105. package/bundles/material-paginator-testing.umd.min.js.map +1 -1
  106. package/bundles/material-progress-bar-testing.umd.min.js +1 -1
  107. package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
  108. package/bundles/material-progress-spinner-testing.umd.js +1 -1
  109. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  110. package/bundles/material-progress-spinner-testing.umd.min.js +2 -2
  111. package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
  112. package/bundles/material-progress-spinner.umd.js +2 -2
  113. package/bundles/material-progress-spinner.umd.min.js +3 -3
  114. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  115. package/bundles/material-radio-testing.umd.js +11 -0
  116. package/bundles/material-radio-testing.umd.js.map +1 -1
  117. package/bundles/material-radio-testing.umd.min.js +3 -3
  118. package/bundles/material-radio-testing.umd.min.js.map +1 -1
  119. package/bundles/material-radio.umd.js +15 -5
  120. package/bundles/material-radio.umd.js.map +1 -1
  121. package/bundles/material-radio.umd.min.js +2 -2
  122. package/bundles/material-radio.umd.min.js.map +1 -1
  123. package/bundles/material-select-testing.umd.js +11 -0
  124. package/bundles/material-select-testing.umd.js.map +1 -1
  125. package/bundles/material-select-testing.umd.min.js +2 -2
  126. package/bundles/material-select-testing.umd.min.js.map +1 -1
  127. package/bundles/material-select.umd.js +11 -3
  128. package/bundles/material-select.umd.js.map +1 -1
  129. package/bundles/material-select.umd.min.js +4 -4
  130. package/bundles/material-select.umd.min.js.map +1 -1
  131. package/bundles/material-sidenav-testing.umd.min.js +1 -1
  132. package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
  133. package/bundles/material-sidenav.umd.js +41 -17
  134. package/bundles/material-sidenav.umd.js.map +1 -1
  135. package/bundles/material-sidenav.umd.min.js +2 -2
  136. package/bundles/material-sidenav.umd.min.js.map +1 -1
  137. package/bundles/material-slide-toggle-testing.umd.js +11 -0
  138. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  139. package/bundles/material-slide-toggle-testing.umd.min.js +2 -2
  140. package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
  141. package/bundles/material-slide-toggle.umd.js.map +1 -1
  142. package/bundles/material-slider-testing.umd.js +11 -0
  143. package/bundles/material-slider-testing.umd.js.map +1 -1
  144. package/bundles/material-slider-testing.umd.min.js +2 -2
  145. package/bundles/material-slider-testing.umd.min.js.map +1 -1
  146. package/bundles/material-snack-bar-testing.umd.min.js +1 -1
  147. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  148. package/bundles/material-snack-bar.umd.js +47 -39
  149. package/bundles/material-snack-bar.umd.js.map +1 -1
  150. package/bundles/material-snack-bar.umd.min.js +2 -2
  151. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  152. package/bundles/material-sort-testing.umd.js +10 -10
  153. package/bundles/material-sort-testing.umd.js.map +1 -1
  154. package/bundles/material-sort-testing.umd.min.js +3 -3
  155. package/bundles/material-sort-testing.umd.min.js.map +1 -1
  156. package/bundles/material-sort.umd.js +25 -12
  157. package/bundles/material-sort.umd.js.map +1 -1
  158. package/bundles/material-sort.umd.min.js +5 -5
  159. package/bundles/material-sort.umd.min.js.map +1 -1
  160. package/bundles/material-table-testing.umd.min.js +1 -1
  161. package/bundles/material-table-testing.umd.min.js.map +1 -1
  162. package/bundles/material-table.umd.min.js +2 -2
  163. package/bundles/material-table.umd.min.js.map +1 -1
  164. package/bundles/material-tabs-testing.umd.min.js +1 -1
  165. package/bundles/material-tabs-testing.umd.min.js.map +1 -1
  166. package/bundles/material-tabs.umd.js +23 -4
  167. package/bundles/material-tabs.umd.js.map +1 -1
  168. package/bundles/material-tabs.umd.min.js +5 -12
  169. package/bundles/material-tabs.umd.min.js.map +1 -1
  170. package/bundles/material-toolbar-testing.umd.js +330 -0
  171. package/bundles/material-toolbar-testing.umd.js.map +1 -0
  172. package/bundles/material-toolbar-testing.umd.min.js +44 -0
  173. package/bundles/material-toolbar-testing.umd.min.js.map +1 -0
  174. package/bundles/material-tooltip-testing.umd.min.js +1 -1
  175. package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
  176. package/bundles/material-tooltip.umd.js +14 -1
  177. package/bundles/material-tooltip.umd.js.map +1 -1
  178. package/bundles/material-tooltip.umd.min.js +3 -3
  179. package/bundles/material-tooltip.umd.min.js.map +1 -1
  180. package/bundles/material-tree.umd.js.map +1 -1
  181. package/button/_button-base.scss +1 -1
  182. package/button/_button-theme.scss +8 -8
  183. package/button/index.metadata.json +1 -1
  184. package/button/testing/button-harness.d.ts +2 -0
  185. package/button-toggle/button-toggle.d.ts +10 -3
  186. package/button-toggle/index.metadata.json +1 -1
  187. package/button-toggle/testing/button-toggle-harness.d.ts +2 -0
  188. package/card/testing/card-harness-filters.d.ts +17 -0
  189. package/card/testing/card-harness.d.ts +36 -0
  190. package/card/testing/index.d.ts +8 -0
  191. package/card/testing/package.json +9 -0
  192. package/card/testing/public-api.d.ts +9 -0
  193. package/checkbox/index.metadata.json +1 -1
  194. package/checkbox/testing/checkbox-harness.d.ts +2 -0
  195. package/chips/chip.d.ts +19 -1
  196. package/chips/index.metadata.json +1 -1
  197. package/core/focus-indicators/_focus-indicators.scss +6 -6
  198. package/core/index.metadata.json +1 -1
  199. package/core/option/optgroup.d.ts +7 -0
  200. package/core/ripple/ripple-ref.d.ts +21 -2
  201. package/core/ripple/ripple-renderer.d.ts +1 -19
  202. package/core/ripple/ripple.d.ts +2 -2
  203. package/core/style/_list-common.scss +1 -1
  204. package/datepicker/date-range-input-parts.d.ts +2 -4
  205. package/datepicker/date-range-input.d.ts +4 -4
  206. package/datepicker/date-range-picker.d.ts +10 -3
  207. package/datepicker/datepicker.d.ts +2 -3
  208. package/datepicker/index.metadata.json +1 -1
  209. package/datepicker/public-api.d.ts +1 -1
  210. package/dialog/dialog-container.d.ts +9 -2
  211. package/dialog/dialog-content-directives.d.ts +1 -0
  212. package/dialog/dialog-ref.d.ts +7 -0
  213. package/dialog/index.metadata.json +1 -1
  214. package/esm2015/autocomplete/autocomplete-module.js +18 -22
  215. package/esm2015/autocomplete/autocomplete-origin.js +16 -20
  216. package/esm2015/autocomplete/autocomplete-trigger.js +519 -521
  217. package/esm2015/autocomplete/autocomplete.js +126 -130
  218. package/esm2015/autocomplete/testing/autocomplete-harness.js +99 -97
  219. package/esm2015/badge/badge-module.js +13 -17
  220. package/esm2015/badge/badge.js +184 -188
  221. package/esm2015/badge/testing/badge-harness.js +74 -78
  222. package/esm2015/bottom-sheet/bottom-sheet-container.js +161 -165
  223. package/esm2015/bottom-sheet/bottom-sheet-module.js +15 -19
  224. package/esm2015/bottom-sheet/bottom-sheet.js +124 -128
  225. package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +29 -33
  226. package/esm2015/button/button-module.js +20 -24
  227. package/esm2015/button/button.js +111 -114
  228. package/esm2015/button/testing/button-harness.js +60 -58
  229. package/esm2015/button-toggle/button-toggle-module.js +10 -14
  230. package/esm2015/button-toggle/button-toggle.js +368 -368
  231. package/esm2015/button-toggle/testing/button-toggle-group-harness.js +42 -46
  232. package/esm2015/button-toggle/testing/button-toggle-harness.js +113 -111
  233. package/esm2015/card/card-module.js +30 -34
  234. package/esm2015/card/card.js +147 -203
  235. package/esm2015/card/testing/card-harness-filters.js +8 -0
  236. package/esm2015/card/testing/card-harness.js +52 -0
  237. package/esm2015/card/testing/index.js +9 -0
  238. package/esm2015/card/testing/public-api.js +10 -0
  239. package/esm2015/card/testing/testing.externs.js +0 -0
  240. package/esm2015/checkbox/checkbox-module.js +21 -29
  241. package/esm2015/checkbox/checkbox-required-validator.js +9 -13
  242. package/esm2015/checkbox/checkbox.js +315 -319
  243. package/esm2015/checkbox/testing/checkbox-harness.js +150 -148
  244. package/esm2015/chips/chip-input.js +119 -123
  245. package/esm2015/chips/chip-list.js +572 -576
  246. package/esm2015/chips/chip.js +333 -328
  247. package/esm2015/chips/chips-module.js +16 -20
  248. package/esm2015/core/animation/animation.js +12 -20
  249. package/esm2015/core/common-behaviors/common-module.js +91 -95
  250. package/esm2015/core/datetime/index.js +19 -27
  251. package/esm2015/core/datetime/native-date-adapter.js +202 -206
  252. package/esm2015/core/error/error-options.js +16 -24
  253. package/esm2015/core/line/line.js +18 -26
  254. package/esm2015/core/option/index.js +10 -14
  255. package/esm2015/core/option/optgroup.js +36 -33
  256. package/esm2015/core/option/option.js +181 -185
  257. package/esm2015/core/ripple/index.js +10 -14
  258. package/esm2015/core/ripple/ripple-ref.js +1 -1
  259. package/esm2015/core/ripple/ripple-renderer.js +1 -1
  260. package/esm2015/core/ripple/ripple.js +102 -106
  261. package/esm2015/core/selection/index.js +9 -13
  262. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +32 -36
  263. package/esm2015/core/testing/optgroup-harness.js +39 -43
  264. package/esm2015/core/testing/option-harness.js +51 -55
  265. package/esm2015/core/version.js +1 -1
  266. package/esm2015/datepicker/calendar-body.js +214 -218
  267. package/esm2015/datepicker/calendar.js +295 -303
  268. package/esm2015/datepicker/date-range-input-parts.js +214 -229
  269. package/esm2015/datepicker/date-range-input.js +244 -242
  270. package/esm2015/datepicker/date-range-picker.js +19 -23
  271. package/esm2015/datepicker/date-range-selection-strategy.js +31 -35
  272. package/esm2015/datepicker/date-selection-model.js +110 -122
  273. package/esm2015/datepicker/datepicker-base.js +418 -426
  274. package/esm2015/datepicker/datepicker-input-base.js +227 -224
  275. package/esm2015/datepicker/datepicker-input.js +111 -115
  276. package/esm2015/datepicker/datepicker-intl.js +37 -41
  277. package/esm2015/datepicker/datepicker-module.js +62 -66
  278. package/esm2015/datepicker/datepicker-toggle.js +81 -89
  279. package/esm2015/datepicker/datepicker.js +13 -17
  280. package/esm2015/datepicker/month-view.js +283 -287
  281. package/esm2015/datepicker/multi-year-view.js +198 -202
  282. package/esm2015/datepicker/public-api.js +2 -2
  283. package/esm2015/datepicker/year-view.js +220 -224
  284. package/esm2015/dialog/dialog-container.js +175 -164
  285. package/esm2015/dialog/dialog-content-directives.js +105 -114
  286. package/esm2015/dialog/dialog-module.js +32 -36
  287. package/esm2015/dialog/dialog-ref.js +17 -3
  288. package/esm2015/dialog/dialog.js +236 -240
  289. package/esm2015/dialog/testing/dialog-harness.js +58 -62
  290. package/esm2015/divider/divider-module.js +10 -14
  291. package/esm2015/divider/divider.js +33 -37
  292. package/esm2015/divider/testing/divider-harness.js +16 -20
  293. package/esm2015/expansion/accordion.js +73 -77
  294. package/esm2015/expansion/expansion-module.js +26 -30
  295. package/esm2015/expansion/expansion-panel-content.js +13 -17
  296. package/esm2015/expansion/expansion-panel-header.js +168 -180
  297. package/esm2015/expansion/expansion-panel.js +144 -152
  298. package/esm2015/expansion/testing/accordion-harness.js +24 -28
  299. package/esm2015/expansion/testing/expansion-harness.js +136 -134
  300. package/esm2015/form-field/error.js +26 -23
  301. package/esm2015/form-field/form-field-control.js +6 -10
  302. package/esm2015/form-field/form-field-module.js +31 -35
  303. package/esm2015/form-field/form-field.js +407 -409
  304. package/esm2015/form-field/hint.js +35 -29
  305. package/esm2015/form-field/label.js +8 -12
  306. package/esm2015/form-field/placeholder.js +8 -12
  307. package/esm2015/form-field/prefix.js +16 -13
  308. package/esm2015/form-field/suffix.js +16 -13
  309. package/esm2015/form-field/testing/form-field-harness.js +220 -206
  310. package/esm2015/grid-list/grid-list-module.js +26 -30
  311. package/esm2015/grid-list/grid-list.js +108 -112
  312. package/esm2015/grid-list/grid-tile.js +91 -111
  313. package/esm2015/grid-list/testing/grid-list-harness.js +62 -66
  314. package/esm2015/grid-list/testing/grid-tile-harness.js +69 -73
  315. package/esm2015/grid-list/tile-styler.js +1 -1
  316. package/esm2015/icon/icon-module.js +10 -14
  317. package/esm2015/icon/icon-registry.js +406 -410
  318. package/esm2015/icon/icon.js +228 -232
  319. package/esm2015/icon/testing/fake-icon-registry.js +66 -74
  320. package/esm2015/input/autosize.js +30 -34
  321. package/esm2015/input/input-module.js +21 -25
  322. package/esm2015/input/input.js +305 -284
  323. package/esm2015/input/testing/input-harness.js +129 -123
  324. package/esm2015/list/list-module.js +32 -36
  325. package/esm2015/list/list.js +165 -189
  326. package/esm2015/list/selection-list.js +503 -511
  327. package/esm2015/list/testing/action-list-harness.js +55 -57
  328. package/esm2015/list/testing/list-harness.js +31 -39
  329. package/esm2015/list/testing/list-item-harness-base.js +13 -17
  330. package/esm2015/list/testing/nav-list-harness.js +62 -64
  331. package/esm2015/list/testing/selection-list-harness.js +136 -138
  332. package/esm2015/menu/menu-content.js +74 -71
  333. package/esm2015/menu/menu-item.js +119 -123
  334. package/esm2015/menu/menu-module.js +29 -37
  335. package/esm2015/menu/menu-panel.js +1 -1
  336. package/esm2015/menu/menu-trigger.js +402 -405
  337. package/esm2015/menu/menu.js +329 -339
  338. package/esm2015/menu/testing/menu-harness.js +193 -189
  339. package/esm2015/paginator/paginator-intl.js +36 -40
  340. package/esm2015/paginator/paginator-module.js +16 -20
  341. package/esm2015/paginator/paginator.js +205 -209
  342. package/esm2015/paginator/testing/paginator-harness.js +91 -95
  343. package/esm2015/progress-bar/progress-bar-module.js +10 -14
  344. package/esm2015/progress-bar/progress-bar.js +114 -118
  345. package/esm2015/progress-bar/testing/progress-bar-harness.js +27 -31
  346. package/esm2015/progress-spinner/progress-spinner-module.js +17 -21
  347. package/esm2015/progress-spinner/progress-spinner.js +181 -189
  348. package/esm2015/progress-spinner/testing/progress-spinner-harness.js +28 -32
  349. package/esm2015/radio/radio-module.js +10 -14
  350. package/esm2015/radio/radio.js +437 -444
  351. package/esm2015/radio/testing/radio-harness.js +241 -243
  352. package/esm2015/select/select-module.js +23 -27
  353. package/esm2015/select/select.js +917 -918
  354. package/esm2015/select/testing/select-harness.js +138 -136
  355. package/esm2015/sidenav/drawer.js +632 -620
  356. package/esm2015/sidenav/sidenav-module.js +31 -35
  357. package/esm2015/sidenav/sidenav.js +104 -116
  358. package/esm2015/sidenav/testing/drawer-harness.js +40 -44
  359. package/esm2015/sidenav/testing/sidenav-harness.js +20 -24
  360. package/esm2015/slide-toggle/slide-toggle-module.js +27 -35
  361. package/esm2015/slide-toggle/slide-toggle-required-validator.js +9 -13
  362. package/esm2015/slide-toggle/slide-toggle.js +184 -188
  363. package/esm2015/slide-toggle/testing/slide-toggle-harness.js +123 -121
  364. package/esm2015/slider/slider-module.js +10 -14
  365. package/esm2015/slider/slider.js +640 -644
  366. package/esm2015/slider/testing/slider-harness.js +129 -127
  367. package/esm2015/snack-bar/simple-snack-bar.js +32 -36
  368. package/esm2015/snack-bar/snack-bar-container.js +144 -148
  369. package/esm2015/snack-bar/snack-bar-module.js +17 -21
  370. package/esm2015/snack-bar/snack-bar-ref.js +1 -1
  371. package/esm2015/snack-bar/snack-bar.js +208 -205
  372. package/esm2015/snack-bar/testing/snack-bar-harness.js +112 -116
  373. package/esm2015/sort/sort-header-intl.js +21 -21
  374. package/esm2015/sort/sort-header.js +200 -194
  375. package/esm2015/sort/sort-module.js +11 -15
  376. package/esm2015/sort/sort.js +92 -96
  377. package/esm2015/sort/testing/sort-harness.js +28 -32
  378. package/esm2015/sort/testing/sort-header-harness.js +66 -67
  379. package/esm2015/stepper/step-header.js +78 -82
  380. package/esm2015/stepper/step-label.js +8 -12
  381. package/esm2015/stepper/stepper-button.js +23 -31
  382. package/esm2015/stepper/stepper-icon.js +16 -20
  383. package/esm2015/stepper/stepper-intl.js +15 -19
  384. package/esm2015/stepper/stepper-module.js +40 -44
  385. package/esm2015/stepper/stepper.js +139 -155
  386. package/esm2015/table/cell.js +94 -122
  387. package/esm2015/table/row.js +90 -118
  388. package/esm2015/table/table-module.js +13 -17
  389. package/esm2015/table/table.js +26 -30
  390. package/esm2015/table/testing/cell-harness.js +56 -68
  391. package/esm2015/table/testing/row-harness.js +90 -102
  392. package/esm2015/table/testing/table-harness.js +65 -69
  393. package/esm2015/table/text-column.js +17 -21
  394. package/esm2015/tabs/index.js +4 -2
  395. package/esm2015/tabs/ink-bar.js +55 -59
  396. package/esm2015/tabs/paginated-tab-header.js +415 -419
  397. package/esm2015/tabs/tab-body.js +179 -191
  398. package/esm2015/tabs/tab-content.js +21 -16
  399. package/esm2015/tabs/tab-group.js +263 -271
  400. package/esm2015/tabs/tab-header.js +69 -77
  401. package/esm2015/tabs/tab-label-wrapper.js +29 -33
  402. package/esm2015/tabs/tab-label.js +16 -13
  403. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +199 -215
  404. package/esm2015/tabs/tab.js +80 -83
  405. package/esm2015/tabs/tabs-module.js +38 -42
  406. package/esm2015/tabs/testing/tab-group-harness.js +52 -56
  407. package/esm2015/tabs/testing/tab-harness.js +78 -82
  408. package/esm2015/toolbar/testing/index.js +9 -0
  409. package/esm2015/toolbar/testing/public-api.js +10 -0
  410. package/esm2015/toolbar/testing/testing.externs.js +0 -0
  411. package/esm2015/toolbar/testing/toolbar-harness-filters.js +8 -0
  412. package/esm2015/toolbar/testing/toolbar-harness.js +47 -0
  413. package/esm2015/toolbar/toolbar-module.js +10 -14
  414. package/esm2015/toolbar/toolbar.js +61 -69
  415. package/esm2015/tooltip/testing/tooltip-harness.js +43 -47
  416. package/esm2015/tooltip/tooltip-module.js +17 -21
  417. package/esm2015/tooltip/tooltip.js +502 -497
  418. package/esm2015/tree/data-source/flat-data-source.js +1 -1
  419. package/esm2015/tree/node.js +99 -111
  420. package/esm2015/tree/outlet.js +19 -23
  421. package/esm2015/tree/padding.js +13 -17
  422. package/esm2015/tree/toggle.js +15 -19
  423. package/esm2015/tree/tree-module.js +10 -14
  424. package/esm2015/tree/tree.js +23 -27
  425. package/expansion/testing/expansion-harness.d.ts +2 -0
  426. package/fesm2015/autocomplete/testing.js +98 -95
  427. package/fesm2015/autocomplete/testing.js.map +1 -1
  428. package/fesm2015/autocomplete.js +677 -687
  429. package/fesm2015/autocomplete.js.map +1 -1
  430. package/fesm2015/badge/testing.js +73 -76
  431. package/fesm2015/badge/testing.js.map +1 -1
  432. package/fesm2015/badge.js +195 -201
  433. package/fesm2015/badge.js.map +1 -1
  434. package/fesm2015/bottom-sheet/testing.js +28 -31
  435. package/fesm2015/bottom-sheet/testing.js.map +1 -1
  436. package/fesm2015/bottom-sheet.js +297 -306
  437. package/fesm2015/bottom-sheet.js.map +1 -1
  438. package/fesm2015/button/testing.js +59 -56
  439. package/fesm2015/button/testing.js.map +1 -1
  440. package/fesm2015/button-toggle/testing.js +155 -155
  441. package/fesm2015/button-toggle/testing.js.map +1 -1
  442. package/fesm2015/button-toggle.js +377 -378
  443. package/fesm2015/button-toggle.js.map +1 -1
  444. package/fesm2015/button.js +129 -133
  445. package/fesm2015/button.js.map +1 -1
  446. package/fesm2015/card/testing.js +79 -0
  447. package/fesm2015/card/testing.js.map +1 -0
  448. package/fesm2015/card.js +175 -220
  449. package/fesm2015/card.js.map +1 -1
  450. package/fesm2015/checkbox/testing.js +149 -146
  451. package/fesm2015/checkbox/testing.js.map +1 -1
  452. package/fesm2015/checkbox.js +342 -354
  453. package/fesm2015/checkbox.js.map +1 -1
  454. package/fesm2015/chips.js +1039 -1039
  455. package/fesm2015/chips.js.map +1 -1
  456. package/fesm2015/core/testing.js +88 -94
  457. package/fesm2015/core/testing.js.map +1 -1
  458. package/fesm2015/core.js +729 -773
  459. package/fesm2015/core.js.map +1 -1
  460. package/fesm2015/datepicker.js +2821 -2884
  461. package/fesm2015/datepicker.js.map +1 -1
  462. package/fesm2015/dialog/testing.js +57 -60
  463. package/fesm2015/dialog/testing.js.map +1 -1
  464. package/fesm2015/dialog.js +564 -549
  465. package/fesm2015/dialog.js.map +1 -1
  466. package/fesm2015/divider/testing.js +15 -18
  467. package/fesm2015/divider/testing.js.map +1 -1
  468. package/fesm2015/divider.js +41 -47
  469. package/fesm2015/divider.js.map +1 -1
  470. package/fesm2015/expansion/testing.js +159 -159
  471. package/fesm2015/expansion/testing.js.map +1 -1
  472. package/fesm2015/expansion.js +422 -446
  473. package/fesm2015/expansion.js.map +1 -1
  474. package/fesm2015/form-field/testing.js +219 -204
  475. package/fesm2015/form-field/testing.js.map +1 -1
  476. package/fesm2015/form-field.js +538 -532
  477. package/fesm2015/form-field.js.map +1 -1
  478. package/fesm2015/grid-list/testing.js +129 -135
  479. package/fesm2015/grid-list/testing.js.map +1 -1
  480. package/fesm2015/grid-list.js +221 -242
  481. package/fesm2015/grid-list.js.map +1 -1
  482. package/fesm2015/icon/testing.js +65 -71
  483. package/fesm2015/icon/testing.js.map +1 -1
  484. package/fesm2015/icon.js +660 -669
  485. package/fesm2015/icon.js.map +1 -1
  486. package/fesm2015/input/testing.js +128 -121
  487. package/fesm2015/input/testing.js.map +1 -1
  488. package/fesm2015/input.js +353 -337
  489. package/fesm2015/input.js.map +1 -1
  490. package/fesm2015/list/testing.js +298 -307
  491. package/fesm2015/list/testing.js.map +1 -1
  492. package/fesm2015/list.js +698 -725
  493. package/fesm2015/list.js.map +1 -1
  494. package/fesm2015/menu/testing.js +192 -186
  495. package/fesm2015/menu/testing.js.map +1 -1
  496. package/fesm2015/menu.js +948 -962
  497. package/fesm2015/menu.js.map +1 -1
  498. package/fesm2015/paginator/testing.js +90 -93
  499. package/fesm2015/paginator/testing.js.map +1 -1
  500. package/fesm2015/paginator.js +247 -256
  501. package/fesm2015/paginator.js.map +1 -1
  502. package/fesm2015/progress-bar/testing.js +26 -29
  503. package/fesm2015/progress-bar/testing.js.map +1 -1
  504. package/fesm2015/progress-bar.js +122 -128
  505. package/fesm2015/progress-bar.js.map +1 -1
  506. package/fesm2015/progress-spinner/testing.js +27 -30
  507. package/fesm2015/progress-spinner/testing.js.map +1 -1
  508. package/fesm2015/progress-spinner.js +196 -205
  509. package/fesm2015/progress-spinner.js.map +1 -1
  510. package/fesm2015/radio/testing.js +240 -240
  511. package/fesm2015/radio/testing.js.map +1 -1
  512. package/fesm2015/radio.js +447 -453
  513. package/fesm2015/radio.js.map +1 -1
  514. package/fesm2015/select/testing.js +137 -134
  515. package/fesm2015/select/testing.js.map +1 -1
  516. package/fesm2015/select.js +939 -941
  517. package/fesm2015/select.js.map +1 -1
  518. package/fesm2015/sidenav/testing.js +58 -64
  519. package/fesm2015/sidenav/testing.js.map +1 -1
  520. package/fesm2015/sidenav.js +765 -762
  521. package/fesm2015/sidenav.js.map +1 -1
  522. package/fesm2015/slide-toggle/testing.js +122 -119
  523. package/fesm2015/slide-toggle/testing.js.map +1 -1
  524. package/fesm2015/slide-toggle.js +217 -229
  525. package/fesm2015/slide-toggle.js.map +1 -1
  526. package/fesm2015/slider/testing.js +128 -125
  527. package/fesm2015/slider/testing.js.map +1 -1
  528. package/fesm2015/slider.js +648 -654
  529. package/fesm2015/slider.js.map +1 -1
  530. package/fesm2015/snack-bar/testing.js +111 -114
  531. package/fesm2015/snack-bar/testing.js.map +1 -1
  532. package/fesm2015/snack-bar.js +426 -431
  533. package/fesm2015/snack-bar.js.map +1 -1
  534. package/fesm2015/sort/testing.js +92 -95
  535. package/fesm2015/sort/testing.js.map +1 -1
  536. package/fesm2015/sort.js +320 -318
  537. package/fesm2015/sort.js.map +1 -1
  538. package/fesm2015/stepper.js +312 -345
  539. package/fesm2015/stepper.js.map +1 -1
  540. package/fesm2015/table/testing.js +208 -229
  541. package/fesm2015/table/testing.js.map +1 -1
  542. package/fesm2015/table.js +235 -286
  543. package/fesm2015/table.js.map +1 -1
  544. package/fesm2015/tabs/testing.js +128 -134
  545. package/fesm2015/tabs/testing.js.map +1 -1
  546. package/fesm2015/tabs.js +1362 -1399
  547. package/fesm2015/tabs.js.map +1 -1
  548. package/fesm2015/toolbar/testing.js +74 -0
  549. package/fesm2015/toolbar/testing.js.map +1 -0
  550. package/fesm2015/toolbar.js +69 -78
  551. package/fesm2015/toolbar.js.map +1 -1
  552. package/fesm2015/tooltip/testing.js +42 -45
  553. package/fesm2015/tooltip/testing.js.map +1 -1
  554. package/fesm2015/tooltip.js +517 -513
  555. package/fesm2015/tooltip.js.map +1 -1
  556. package/fesm2015/tree.js +173 -197
  557. package/fesm2015/tree.js.map +1 -1
  558. package/form-field/error.d.ts +7 -0
  559. package/form-field/hint.d.ts +10 -0
  560. package/form-field/index.metadata.json +1 -1
  561. package/form-field/prefix.d.ts +7 -0
  562. package/form-field/suffix.d.ts +7 -0
  563. package/form-field/testing/form-field-harness.d.ts +8 -0
  564. package/grid-list/grid-list.d.ts +2 -1
  565. package/grid-list/index.metadata.json +1 -1
  566. package/grid-list/tile-styler.d.ts +10 -5
  567. package/input/_input-theme.scss +2 -2
  568. package/input/index.metadata.json +1 -1
  569. package/input/input.d.ts +6 -2
  570. package/input/testing/input-harness.d.ts +2 -0
  571. package/list/index.metadata.json +1 -1
  572. package/list/testing/action-list-harness.d.ts +2 -0
  573. package/list/testing/nav-list-harness.d.ts +2 -0
  574. package/list/testing/selection-list-harness.d.ts +2 -0
  575. package/menu/index.metadata.json +1 -1
  576. package/menu/menu-content.d.ts +7 -1
  577. package/menu/menu-panel.d.ts +1 -0
  578. package/menu/menu.d.ts +4 -0
  579. package/menu/testing/menu-harness.d.ts +4 -0
  580. package/package.json +6 -6
  581. package/prebuilt-themes/deeppurple-amber.css +1 -1
  582. package/prebuilt-themes/indigo-pink.css +1 -1
  583. package/prebuilt-themes/pink-bluegrey.css +1 -1
  584. package/prebuilt-themes/purple-green.css +1 -1
  585. package/progress-spinner/index.metadata.json +1 -1
  586. package/radio/index.metadata.json +1 -1
  587. package/radio/radio.d.ts +6 -0
  588. package/radio/testing/radio-harness.d.ts +2 -0
  589. package/schematics/migration.json +5 -0
  590. package/schematics/ng-add/index.js +2 -2
  591. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +3 -3
  592. package/schematics/ng-generate/navigation/schema.json +5 -0
  593. package/schematics/ng-update/data/index.js +1 -1
  594. package/schematics/ng-update/index.d.ts +2 -0
  595. package/schematics/ng-update/index.js +7 -2
  596. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +639 -639
  597. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +1 -1
  598. package/select/index.metadata.json +1 -1
  599. package/select/select.d.ts +6 -0
  600. package/select/testing/select-harness.d.ts +2 -0
  601. package/sidenav/drawer.d.ts +15 -3
  602. package/sidenav/index.metadata.json +1 -1
  603. package/slide-toggle/index.metadata.json +1 -1
  604. package/slide-toggle/testing/slide-toggle-harness.d.ts +2 -0
  605. package/slider/testing/slider-harness.d.ts +2 -0
  606. package/snack-bar/index.metadata.json +1 -1
  607. package/snack-bar/simple-snack-bar.d.ts +13 -1
  608. package/snack-bar/snack-bar-container.d.ts +16 -3
  609. package/snack-bar/snack-bar-ref.d.ts +3 -3
  610. package/snack-bar/snack-bar.d.ts +10 -3
  611. package/sort/index.metadata.json +1 -1
  612. package/sort/sort-header-intl.d.ts +5 -1
  613. package/sort/sort-header.d.ts +3 -1
  614. package/sort/testing/sort-header-harness.d.ts +6 -2
  615. package/tabs/index.d.ts +3 -1
  616. package/tabs/index.metadata.json +1 -1
  617. package/tabs/tab-content.d.ts +7 -1
  618. package/tabs/tab-label.d.ts +7 -0
  619. package/toolbar/testing/index.d.ts +8 -0
  620. package/toolbar/testing/package.json +9 -0
  621. package/toolbar/testing/public-api.d.ts +9 -0
  622. package/toolbar/testing/toolbar-harness-filters.d.ts +13 -0
  623. package/toolbar/testing/toolbar-harness.d.ts +31 -0
  624. package/tooltip/index.metadata.json +1 -1
  625. package/tooltip/tooltip.d.ts +1 -0
  626. package/tree/data-source/flat-data-source.d.ts +4 -4
  627. package/tree/index.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["src/material/material-chips.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","chips","cdk","keycodes","core","common","coercion","platform","rxjs","operators","platformBrowser","animations","a11y","bidi","collections","forms","formField","this","core$1","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","constructor","prototype","create","__read","o","n","m","Symbol","iterator","r","e","i","call","ar","next","done","push","value","error","__spread","arguments","length","concat","MatChipSelectionChange","source","selected","isUserInput","_MatChipMixinBase","mixinTabIndex","mixinColor","mixinDisableRipple","MatChipBase","_elementRef","MatChipAvatar","decorators","type","Directive","args","selector","host","class","MatChipTrailingIcon","MatChip","_super","_ngZone","globalRippleOptions","animationMode","_changeDetectorRef","tabIndex","_document","_this","_hasFocus","chipListSelectable","_chipListMultiple","_chipListDisabled","_selected","_selectable","_disabled","_removable","_onFocus","Subject","_onBlur","selectionChange","EventEmitter","destroyed","removed","_addHostClassName","_chipRippleTarget","document","createElement","classList","add","nativeElement","appendChild","_chipRipple","RippleRenderer","setupTriggerEvents","rippleConfig","_animationsDisabled","parseInt","defineProperty","get","disabled","disableRipple","enumerable","configurable","set","coercedValue","coerceBooleanProperty","_dispatchSelectionChange","undefined","_value","textContent","selectable","toString","element","hasAttribute","tagName","toLowerCase","ngOnDestroy","emit","chip","_removeTriggerEvents","select","_markForCheck","deselect","selectViaInteraction","toggleSelected","focus","remove","removable","_handleClick","event","preventDefault","stopPropagation","_handleKeydown","keyCode","DELETE","BACKSPACE","SPACE","_blur","onStable","asObservable","pipe","take","subscribe","run","markForCheck","inputs","exportAs","[attr.tabindex]","role","[class.mat-chip-selected]","[class.mat-chip-with-avatar]","[class.mat-chip-with-trailing-icon]","[class.mat-chip-disabled]","[class._mat-animation-noopable]","[attr.disabled]","[attr.aria-disabled]","[attr.aria-selected]","(click)","(keydown)","(focus)","(blur)","ctorParameters","ElementRef","NgZone","Platform","Optional","Inject","MAT_RIPPLE_GLOBAL_OPTIONS","String","ANIMATION_MODULE_TYPE","ChangeDetectorRef","Attribute","DOCUMENT","propDecorators","avatar","ContentChild","trailingIcon","removeIcon","forwardRef","MatChipRemove","Input","Output","_parentChip","elementRef","nodeName","setAttribute","parentChip","MAT_CHIPS_DEFAULT_OPTIONS","InjectionToken","_MatChipListMixinBase","mixinErrorState","MatChipListBase","_defaultErrorStateMatcher","_parentForm","_parentFormGroup","ngControl","nextUniqueId","MatChipListChange","MatChipList","_dir","controlType","_lastDestroyedChipIndex","_destroyed","_uid","_tabIndex","_userTabIndex","_onTouched","_onChange","_multiple","_compareWith","o1","o2","_required","ariaOrientation","change","valueChange","valueAccessor","multiple","_selectionModel","empty","_syncChipsState","fn","_initializeSelection","writeValue","_chipInput","id","stateChanges","placeholder","_placeholder","focused","_hasFocusedChip","forEach","merge","apply","map","ngAfterContentInit","_keyManager","FocusKeyManager","withWrap","withVerticalOrientation","withHorizontalOrientation","takeUntil","dir","tabOut","_allowFocusEscape","changes","startWith","Promise","resolve","then","_resetChips","_updateTabIndex","_updateFocusForDestroyedChips","ngOnInit","SelectionModel","ngDoCheck","updateErrorState","complete","_dropSubscriptions","registerInput","inputElement","setDescribedByIds","ids","_ariaDescribedby","join","_setSelectionByValue","registerOnChange","registerOnTouched","setDisabledState","isDisabled","onContainerClick","_originatesFromChip","options","setFirstItemActive","_focusInput","_keydown","target","_isInputEmpty","setLastItemActive","contains","HOME","END","onKeydown","newChipIndex","Math","min","setActiveItem","_isValidIndex","index","_clearSelection","isArray","currentValue","_selectValue","_sortValues","correspondingChip","find","skip","clear","_propagateChanges","fallbackValue","valueToEmit","setTimeout","_markAsTouched","_listenToChipsFocus","_listenToChipsSelection","_listenToChipsRemoved","_chipFocusSubscription","unsubscribe","_chipBlurSubscription","_chipSelectionSubscription","_chipRemoveSubscription","chipSelectionChanges","isSelected","chipFocusChanges","chipIndex","toArray","indexOf","updateActiveItem","chipBlurChanges","chipRemoveChanges","currentElement","parentElement","some","Component","template","[attr.aria-describedby]","[attr.aria-required]","[attr.aria-invalid]","[attr.aria-multiselectable]","[attr.role]","[class.mat-chip-list-disabled]","[class.mat-chip-list-invalid]","[class.mat-chip-list-required]","[attr.aria-orientation]","[id]","providers","provide","MatFormFieldControl","useExisting","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","styles","Directionality","NgForm","FormGroupDirective","ErrorStateMatcher","NgControl","Self","errorStateMatcher","compareWith","required","ContentChildren","descendants","nextUniqueId$1","MatChipInput","_defaultOptions","_addOnBlur","separatorKeyCodes","chipEnd","_inputElement","_chipList","ngOnChanges","TAB","hasModifierKey","_emitChipEnd","addOnBlur","_focus","_isSeparatorKey","input","_onInput","separators","has","(input)","[attr.placeholder]","chipList","CHIP_DECLARATIONS","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Y,SAAUzU,KAAM,CAAC,CAClB1E,QAAS+Y,EACTK,aAAcL,EACd5C,UAAW,CACP1U,EAAOwV,kBACP,CACIb,QAASrJ,EACTsM,SAAUL,QAK3BE,EAhBwB;;;;;;;;AA+BnClZ,EAAQ+M,0BAA4BA,EACpC/M,EAAQ+E,QAAUA,EAClB/E,EAAQsE,cAAgBA,EACxBtE,EAAQ0X,aAAeA,EACvB1X,EAAQ0N,YAAcA,EACtB1N,EAAQyN,kBAAoBA,EAC5BzN,EAAQuM,cAAgBA,EACxBvM,EAAQ4D,uBAAyBA,EACjC5D,EAAQ8E,oBAAsBA,EAC9B9E,EAAQkZ,eAAiBA,EACzBlZ,EAAQgZ,GAAKA,EAEbnX,OAAOwF,eAAerH,EAAS,aAAc,CAAEsD,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/keycodes'), require('@angular/core'), require('@angular/material/core'), require('@angular/common'), require('@angular/cdk/coercion'), require('@angular/cdk/platform'), require('rxjs'), require('rxjs/operators'), require('@angular/platform-browser/animations'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk/collections'), require('@angular/forms'), require('@angular/material/form-field')) :\n typeof define === 'function' && define.amd ? define('@angular/material/chips', ['exports', '@angular/cdk/keycodes', '@angular/core', '@angular/material/core', '@angular/common', '@angular/cdk/coercion', '@angular/cdk/platform', 'rxjs', 'rxjs/operators', '@angular/platform-browser/animations', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk/collections', '@angular/forms', '@angular/material/form-field'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.chips = {}), global.ng.cdk.keycodes, global.ng.core, global.ng.material.core, global.ng.common, global.ng.cdk.coercion, global.ng.cdk.platform, global.rxjs, global.rxjs.operators, global.ng.platformBrowser.animations, global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk.collections, global.ng.forms, global.ng.material.formField));\n}(this, (function (exports, keycodes, core, core$1, common, coercion, platform, rxjs, operators, animations, a11y, bidi, collections, forms, formField) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation.\r\n\r\n Permission to use, copy, modify, and/or distribute this software for any\r\n purpose with or without fee is hereby granted.\r\n\r\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n PERFORMANCE OF THIS SOFTWARE.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n }) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n });\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n }\r\n\r\n function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\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; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\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);\r\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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n var __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n }) : function(o, v) {\r\n o[\"default\"] = v;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\r\n\r\n function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n }\r\n\r\n function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\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 /** Event object emitted by MatChip when selected or deselected. */\n var MatChipSelectionChange = /** @class */ (function () {\n function MatChipSelectionChange(\n /** Reference to the chip that emitted the event. */\n source, \n /** Whether the chip that emitted the event is selected. */\n selected, \n /** Whether the selection change was a result of a user interaction. */\n isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.source = source;\n this.selected = selected;\n this.isUserInput = isUserInput;\n }\n return MatChipSelectionChange;\n }());\n // Boilerplate for applying mixins to MatChip.\n /** @docs-private */\n var MatChipBase = /** @class */ (function () {\n function MatChipBase(_elementRef) {\n this._elementRef = _elementRef;\n }\n return MatChipBase;\n }());\n var _MatChipMixinBase = core$1.mixinTabIndex(core$1.mixinColor(core$1.mixinDisableRipple(MatChipBase), 'primary'), -1);\n /**\n * Dummy directive to add CSS class to chip avatar.\n * @docs-private\n */\n var MatChipAvatar = /** @class */ (function () {\n function MatChipAvatar() {\n }\n MatChipAvatar.decorators = [\n { type: core.Directive, args: [{\n selector: 'mat-chip-avatar, [matChipAvatar]',\n host: { 'class': 'mat-chip-avatar' }\n },] }\n ];\n return MatChipAvatar;\n }());\n /**\n * Dummy directive to add CSS class to chip trailing icon.\n * @docs-private\n */\n var MatChipTrailingIcon = /** @class */ (function () {\n function MatChipTrailingIcon() {\n }\n MatChipTrailingIcon.decorators = [\n { type: core.Directive, args: [{\n selector: 'mat-chip-trailing-icon, [matChipTrailingIcon]',\n host: { 'class': 'mat-chip-trailing-icon' }\n },] }\n ];\n return MatChipTrailingIcon;\n }());\n /**\n * Material design styled Chip component. Used inside the MatChipList component.\n */\n var MatChip = /** @class */ (function (_super) {\n __extends(MatChip, _super);\n function MatChip(_elementRef, _ngZone, platform, globalRippleOptions, \n // @breaking-change 8.0.0 `animationMode` parameter to become required.\n animationMode, \n // @breaking-change 9.0.0 `_changeDetectorRef` parameter to become required.\n _changeDetectorRef, tabIndex, \n // @breaking-change 11.0.0 `_document` parameter to become required.\n _document) {\n var _this = _super.call(this, _elementRef) || this;\n _this._elementRef = _elementRef;\n _this._ngZone = _ngZone;\n _this._changeDetectorRef = _changeDetectorRef;\n /** Whether the chip has focus. */\n _this._hasFocus = false;\n /** Whether the chip list is selectable */\n _this.chipListSelectable = true;\n /** Whether the chip list is in multi-selection mode. */\n _this._chipListMultiple = false;\n /** Whether the chip list as a whole is disabled. */\n _this._chipListDisabled = false;\n _this._selected = false;\n _this._selectable = true;\n _this._disabled = false;\n _this._removable = true;\n /** Emits when the chip is focused. */\n _this._onFocus = new rxjs.Subject();\n /** Emits when the chip is blured. */\n _this._onBlur = new rxjs.Subject();\n /** Emitted when the chip is selected or deselected. */\n _this.selectionChange = new core.EventEmitter();\n /** Emitted when the chip is destroyed. */\n _this.destroyed = new core.EventEmitter();\n /** Emitted when a chip is to be removed. */\n _this.removed = new core.EventEmitter();\n _this._addHostClassName();\n // Dynamically create the ripple target, append it within the chip, and use it as the\n // chip's ripple target. Adding the class '.mat-chip-ripple' ensures that it will have\n // the proper styles.\n _this._chipRippleTarget = (_document || document).createElement('div');\n _this._chipRippleTarget.classList.add('mat-chip-ripple');\n _this._elementRef.nativeElement.appendChild(_this._chipRippleTarget);\n _this._chipRipple = new core$1.RippleRenderer(_this, _ngZone, _this._chipRippleTarget, platform);\n _this._chipRipple.setupTriggerEvents(_elementRef);\n _this.rippleConfig = globalRippleOptions || {};\n _this._animationsDisabled = animationMode === 'NoopAnimations';\n _this.tabIndex = tabIndex != null ? (parseInt(tabIndex) || -1) : -1;\n return _this;\n }\n Object.defineProperty(MatChip.prototype, \"rippleDisabled\", {\n /**\n * Whether ripples are disabled on interaction\n * @docs-private\n */\n get: function () {\n return this.disabled || this.disableRipple || !!this.rippleConfig.disabled;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"selected\", {\n /** Whether the chip is selected. */\n get: function () { return this._selected; },\n set: function (value) {\n var coercedValue = coercion.coerceBooleanProperty(value);\n if (coercedValue !== this._selected) {\n this._selected = coercedValue;\n this._dispatchSelectionChange();\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"value\", {\n /** The value of the chip. Defaults to the content inside `<mat-chip>` tags. */\n get: function () {\n return this._value !== undefined\n ? this._value\n : this._elementRef.nativeElement.textContent;\n },\n set: function (value) { this._value = value; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"selectable\", {\n /**\n * Whether or not the chip is selectable. When a chip is not selectable,\n * changes to its selected state are always ignored. By default a chip is\n * selectable, and it becomes non-selectable if its parent chip list is\n * not selectable.\n */\n get: function () { return this._selectable && this.chipListSelectable; },\n set: function (value) {\n this._selectable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"disabled\", {\n /** Whether the chip is disabled. */\n get: function () { return this._chipListDisabled || this._disabled; },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"removable\", {\n /**\n * Determines whether or not the chip displays the remove styling and emits (removed) events.\n */\n get: function () { return this._removable; },\n set: function (value) {\n this._removable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"ariaSelected\", {\n /** The ARIA selected applied to the chip. */\n get: function () {\n // Remove the `aria-selected` when the chip is deselected in single-selection mode, because\n // it adds noise to NVDA users where \"not selected\" will be read out for each chip.\n return this.selectable && (this._chipListMultiple || this.selected) ?\n this.selected.toString() : null;\n },\n enumerable: false,\n configurable: true\n });\n MatChip.prototype._addHostClassName = function () {\n var basicChipAttrName = 'mat-basic-chip';\n var element = this._elementRef.nativeElement;\n if (element.hasAttribute(basicChipAttrName) ||\n element.tagName.toLowerCase() === basicChipAttrName) {\n element.classList.add(basicChipAttrName);\n return;\n }\n else {\n element.classList.add('mat-standard-chip');\n }\n };\n MatChip.prototype.ngOnDestroy = function () {\n this.destroyed.emit({ chip: this });\n this._chipRipple._removeTriggerEvents();\n };\n /** Selects the chip. */\n MatChip.prototype.select = function () {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange();\n this._markForCheck();\n }\n };\n /** Deselects the chip. */\n MatChip.prototype.deselect = function () {\n if (this._selected) {\n this._selected = false;\n this._dispatchSelectionChange();\n this._markForCheck();\n }\n };\n /** Select this chip and emit selected event */\n MatChip.prototype.selectViaInteraction = function () {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange(true);\n this._markForCheck();\n }\n };\n /** Toggles the current selected state of this chip. */\n MatChip.prototype.toggleSelected = function (isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this._selected = !this.selected;\n this._dispatchSelectionChange(isUserInput);\n this._markForCheck();\n return this.selected;\n };\n /** Allows for programmatic focusing of the chip. */\n MatChip.prototype.focus = function () {\n if (!this._hasFocus) {\n this._elementRef.nativeElement.focus();\n this._onFocus.next({ chip: this });\n }\n this._hasFocus = true;\n };\n /**\n * Allows for programmatic removal of the chip. Called by the MatChipList when the DELETE or\n * BACKSPACE keys are pressed.\n *\n * Informs any listeners of the removal request. Does not remove the chip from the DOM.\n */\n MatChip.prototype.remove = function () {\n if (this.removable) {\n this.removed.emit({ chip: this });\n }\n };\n /** Handles click events on the chip. */\n MatChip.prototype._handleClick = function (event) {\n if (this.disabled) {\n event.preventDefault();\n }\n else {\n event.stopPropagation();\n }\n };\n /** Handle custom key presses. */\n MatChip.prototype._handleKeydown = function (event) {\n if (this.disabled) {\n return;\n }\n switch (event.keyCode) {\n case keycodes.DELETE:\n case keycodes.BACKSPACE:\n // If we are removable, remove the focused chip\n this.remove();\n // Always prevent so page navigation does not occur\n event.preventDefault();\n break;\n case keycodes.SPACE:\n // If we are selectable, toggle the focused chip\n if (this.selectable) {\n this.toggleSelected(true);\n }\n // Always prevent space from scrolling the page since the list has focus\n event.preventDefault();\n break;\n }\n };\n MatChip.prototype._blur = function () {\n var _this = this;\n // When animations are enabled, Angular may end up removing the chip from the DOM a little\n // earlier than usual, causing it to be blurred and throwing off the logic in the chip list\n // that moves focus not the next item. To work around the issue, we defer marking the chip\n // as not focused until the next time the zone stabilizes.\n this._ngZone.onStable\n .asObservable()\n .pipe(operators.take(1))\n .subscribe(function () {\n _this._ngZone.run(function () {\n _this._hasFocus = false;\n _this._onBlur.next({ chip: _this });\n });\n });\n };\n MatChip.prototype._dispatchSelectionChange = function (isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.selectionChange.emit({\n source: this,\n isUserInput: isUserInput,\n selected: this._selected\n });\n };\n MatChip.prototype._markForCheck = function () {\n // @breaking-change 9.0.0 Remove this method once the _changeDetectorRef is a required param.\n if (this._changeDetectorRef) {\n this._changeDetectorRef.markForCheck();\n }\n };\n MatChip.decorators = [\n { type: core.Directive, args: [{\n selector: \"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]\",\n inputs: ['color', 'disableRipple', 'tabIndex'],\n exportAs: 'matChip',\n host: {\n 'class': 'mat-chip mat-focus-indicator',\n '[attr.tabindex]': 'disabled ? null : tabIndex',\n 'role': 'option',\n '[class.mat-chip-selected]': 'selected',\n '[class.mat-chip-with-avatar]': 'avatar',\n '[class.mat-chip-with-trailing-icon]': 'trailingIcon || removeIcon',\n '[class.mat-chip-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_animationsDisabled',\n '[attr.disabled]': 'disabled || null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-selected]': 'ariaSelected',\n '(click)': '_handleClick($event)',\n '(keydown)': '_handleKeydown($event)',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n },\n },] }\n ];\n MatChip.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: core.NgZone },\n { type: platform.Platform },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },\n { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] },\n { type: core.ChangeDetectorRef },\n { type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n MatChip.propDecorators = {\n avatar: [{ type: core.ContentChild, args: [MatChipAvatar,] }],\n trailingIcon: [{ type: core.ContentChild, args: [MatChipTrailingIcon,] }],\n removeIcon: [{ type: core.ContentChild, args: [core.forwardRef(function () { return MatChipRemove; }),] }],\n selected: [{ type: core.Input }],\n value: [{ type: core.Input }],\n selectable: [{ type: core.Input }],\n disabled: [{ type: core.Input }],\n removable: [{ type: core.Input }],\n selectionChange: [{ type: core.Output }],\n destroyed: [{ type: core.Output }],\n removed: [{ type: core.Output }]\n };\n return MatChip;\n }(_MatChipMixinBase));\n /**\n * Applies proper (click) support and adds styling for use with the Material Design \"cancel\" icon\n * available at https://material.io/icons/#ic_cancel.\n *\n * Example:\n *\n * `<mat-chip>\n * <mat-icon matChipRemove>cancel</mat-icon>\n * </mat-chip>`\n *\n * You *may* use a custom icon, but you may need to override the `mat-chip-remove` positioning\n * styles to properly center the icon within the chip.\n */\n var MatChipRemove = /** @class */ (function () {\n function MatChipRemove(_parentChip, \n // @breaking-change 11.0.0 `elementRef` parameter to be made required.\n elementRef) {\n this._parentChip = _parentChip;\n // @breaking-change 11.0.0 Remove null check for `elementRef`.\n if (elementRef && elementRef.nativeElement.nodeName === 'BUTTON') {\n elementRef.nativeElement.setAttribute('type', 'button');\n }\n }\n /** Calls the parent chip's public `remove()` method if applicable. */\n MatChipRemove.prototype._handleClick = function (event) {\n var parentChip = this._parentChip;\n if (parentChip.removable && !parentChip.disabled) {\n parentChip.remove();\n }\n // We need to stop event propagation because otherwise the event will bubble up to the\n // form field and cause the `onContainerClick` method to be invoked. This method would then\n // reset the focused chip that has been focused after chip removal. Usually the parent\n // the parent click listener of the `MatChip` would prevent propagation, but it can happen\n // that the chip is being removed before the event bubbles up.\n event.stopPropagation();\n };\n MatChipRemove.decorators = [\n { type: core.Directive, args: [{\n selector: '[matChipRemove]',\n host: {\n 'class': 'mat-chip-remove mat-chip-trailing-icon',\n '(click)': '_handleClick($event)',\n }\n },] }\n ];\n MatChipRemove.ctorParameters = function () { return [\n { type: MatChip },\n { type: core.ElementRef }\n ]; };\n return MatChipRemove;\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 /** Injection token to be used to override the default options for the chips module. */\n var MAT_CHIPS_DEFAULT_OPTIONS = new core.InjectionToken('mat-chips-default-options');\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 // Boilerplate for applying mixins to MatChipList.\n /** @docs-private */\n var MatChipListBase = /** @class */ (function () {\n function MatChipListBase(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, \n /** @docs-private */\n ngControl) {\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n this.ngControl = ngControl;\n }\n return MatChipListBase;\n }());\n var _MatChipListMixinBase = core$1.mixinErrorState(MatChipListBase);\n // Increasing integer for generating unique ids for chip-list components.\n var nextUniqueId = 0;\n /** Change event object that is emitted when the chip list value has changed. */\n var MatChipListChange = /** @class */ (function () {\n function MatChipListChange(\n /** Chip list that emitted the event. */\n source, \n /** Value of the chip list when the event was emitted. */\n value) {\n this.source = source;\n this.value = value;\n }\n return MatChipListChange;\n }());\n /**\n * A material design chips component (named ChipList for its similarity to the List component).\n */\n var MatChipList = /** @class */ (function (_super) {\n __extends(MatChipList, _super);\n function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, \n /** @docs-private */\n ngControl) {\n var _this = _super.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) || this;\n _this._elementRef = _elementRef;\n _this._changeDetectorRef = _changeDetectorRef;\n _this._dir = _dir;\n _this.ngControl = ngControl;\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n _this.controlType = 'mat-chip-list';\n /**\n * When a chip is destroyed, we store the index of the destroyed chip until the chips\n * query list notifies about the update. This is necessary because we cannot determine an\n * appropriate chip that should receive focus until the array of chips updated completely.\n */\n _this._lastDestroyedChipIndex = null;\n /** Subject that emits when the component has been destroyed. */\n _this._destroyed = new rxjs.Subject();\n /** Uid of the chip list */\n _this._uid = \"mat-chip-list-\" + nextUniqueId++;\n /** Tab index for the chip list. */\n _this._tabIndex = 0;\n /**\n * User defined tab index.\n * When it is not null, use user defined tab index. Otherwise use _tabIndex\n */\n _this._userTabIndex = null;\n /** Function when touched */\n _this._onTouched = function () { };\n /** Function when changed */\n _this._onChange = function () { };\n _this._multiple = false;\n _this._compareWith = function (o1, o2) { return o1 === o2; };\n _this._required = false;\n _this._disabled = false;\n /** Orientation of the chip list. */\n _this.ariaOrientation = 'horizontal';\n _this._selectable = true;\n /** Event emitted when the selected chip list value has been changed by the user. */\n _this.change = new core.EventEmitter();\n /**\n * Event that emits whenever the raw value of the chip-list changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n _this.valueChange = new core.EventEmitter();\n if (_this.ngControl) {\n _this.ngControl.valueAccessor = _this;\n }\n return _this;\n }\n Object.defineProperty(MatChipList.prototype, \"selected\", {\n /** The array of selected chips inside chip list. */\n get: function () {\n return this.multiple ? this._selectionModel.selected : this._selectionModel.selected[0];\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"role\", {\n /** The ARIA role applied to the chip list. */\n get: function () { return this.empty ? null : 'listbox'; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"multiple\", {\n /** Whether the user should be allowed to select multiple chips. */\n get: function () { return this._multiple; },\n set: function (value) {\n this._multiple = coercion.coerceBooleanProperty(value);\n this._syncChipsState();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"compareWith\", {\n /**\n * A function to compare the option values with the selected values. The first argument\n * is a value from an option. The second is a value from the selection. A boolean\n * should be returned.\n */\n get: function () { return this._compareWith; },\n set: function (fn) {\n this._compareWith = fn;\n if (this._selectionModel) {\n // A different comparator means the selection could change.\n this._initializeSelection();\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"value\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this._value; },\n set: function (value) {\n this.writeValue(value);\n this._value = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"id\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return this._chipInput ? this._chipInput.id : this._uid;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"required\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this._required; },\n set: function (value) {\n this._required = coercion.coerceBooleanProperty(value);\n this.stateChanges.next();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"placeholder\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return this._chipInput ? this._chipInput.placeholder : this._placeholder;\n },\n set: function (value) {\n this._placeholder = value;\n this.stateChanges.next();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"focused\", {\n /** Whether any chips or the matChipInput inside of this chip-list has focus. */\n get: function () {\n return (this._chipInput && this._chipInput.focused) || this._hasFocusedChip();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"empty\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return (!this._chipInput || this._chipInput.empty) && this.chips.length === 0;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"shouldLabelFloat\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return !this.empty || this.focused; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"disabled\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this.ngControl ? !!this.ngControl.disabled : this._disabled; },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n this._syncChipsState();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"selectable\", {\n /**\n * Whether or not this chip list is selectable. When a chip list is not selectable,\n * the selected states for all the chips inside the chip list are always ignored.\n */\n get: function () { return this._selectable; },\n set: function (value) {\n var _this = this;\n this._selectable = coercion.coerceBooleanProperty(value);\n if (this.chips) {\n this.chips.forEach(function (chip) { return chip.chipListSelectable = _this._selectable; });\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"tabIndex\", {\n set: function (value) {\n this._userTabIndex = value;\n this._tabIndex = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipSelectionChanges\", {\n /** Combined stream of all of the child chips' selection change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip.selectionChange; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipFocusChanges\", {\n /** Combined stream of all of the child chips' focus change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip._onFocus; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipBlurChanges\", {\n /** Combined stream of all of the child chips' blur change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip._onBlur; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipRemoveChanges\", {\n /** Combined stream of all of the child chips' remove change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip.destroyed; })));\n },\n enumerable: false,\n configurable: true\n });\n MatChipList.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._keyManager = new a11y.FocusKeyManager(this.chips)\n .withWrap()\n .withVerticalOrientation()\n .withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');\n if (this._dir) {\n this._dir.change\n .pipe(operators.takeUntil(this._destroyed))\n .subscribe(function (dir) { return _this._keyManager.withHorizontalOrientation(dir); });\n }\n this._keyManager.tabOut.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {\n _this._allowFocusEscape();\n });\n // When the list changes, re-subscribe\n this.chips.changes.pipe(operators.startWith(null), operators.takeUntil(this._destroyed)).subscribe(function () {\n if (_this.disabled) {\n // Since this happens after the content has been\n // checked, we need to defer it to the next tick.\n Promise.resolve().then(function () {\n _this._syncChipsState();\n });\n }\n _this._resetChips();\n // Reset chips selected/deselected status\n _this._initializeSelection();\n // Check to see if we need to update our tab index\n _this._updateTabIndex();\n // Check to see if we have a destroyed chip and need to refocus\n _this._updateFocusForDestroyedChips();\n _this.stateChanges.next();\n });\n };\n MatChipList.prototype.ngOnInit = function () {\n this._selectionModel = new collections.SelectionModel(this.multiple, undefined, false);\n this.stateChanges.next();\n };\n MatChipList.prototype.ngDoCheck = function () {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n if (this.ngControl.disabled !== this._disabled) {\n this.disabled = !!this.ngControl.disabled;\n }\n }\n };\n MatChipList.prototype.ngOnDestroy = function () {\n this._destroyed.next();\n this._destroyed.complete();\n this.stateChanges.complete();\n this._dropSubscriptions();\n };\n /** Associates an HTML input element with this chip list. */\n MatChipList.prototype.registerInput = function (inputElement) {\n this._chipInput = inputElement;\n };\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n MatChipList.prototype.setDescribedByIds = function (ids) { this._ariaDescribedby = ids.join(' '); };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.writeValue = function (value) {\n if (this.chips) {\n this._setSelectionByValue(value, false);\n }\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.registerOnChange = function (fn) {\n this._onChange = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.registerOnTouched = function (fn) {\n this._onTouched = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.setDisabledState = function (isDisabled) {\n this.disabled = isDisabled;\n this.stateChanges.next();\n };\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n MatChipList.prototype.onContainerClick = function (event) {\n if (!this._originatesFromChip(event)) {\n this.focus();\n }\n };\n /**\n * Focuses the first non-disabled chip in this chip list, or the associated input when there\n * are no eligible chips.\n */\n MatChipList.prototype.focus = function (options) {\n if (this.disabled) {\n return;\n }\n // TODO: ARIA says this should focus the first `selected` chip if any are selected.\n // Focus on first element if there's no chipInput inside chip-list\n if (this._chipInput && this._chipInput.focused) {\n // do nothing\n }\n else if (this.chips.length > 0) {\n this._keyManager.setFirstItemActive();\n this.stateChanges.next();\n }\n else {\n this._focusInput(options);\n this.stateChanges.next();\n }\n };\n /** Attempt to focus an input if we have one. */\n MatChipList.prototype._focusInput = function (options) {\n if (this._chipInput) {\n this._chipInput.focus(options);\n }\n };\n /**\n * Pass events to the keyboard manager. Available here for tests.\n */\n MatChipList.prototype._keydown = function (event) {\n var target = event.target;\n // If they are on an empty input and hit backspace, focus the last chip\n if (event.keyCode === keycodes.BACKSPACE && this._isInputEmpty(target)) {\n this._keyManager.setLastItemActive();\n event.preventDefault();\n }\n else if (target && target.classList.contains('mat-chip')) {\n if (event.keyCode === keycodes.HOME) {\n this._keyManager.setFirstItemActive();\n event.preventDefault();\n }\n else if (event.keyCode === keycodes.END) {\n this._keyManager.setLastItemActive();\n event.preventDefault();\n }\n else {\n this._keyManager.onKeydown(event);\n }\n this.stateChanges.next();\n }\n };\n /**\n * Check the tab index as you should not be allowed to focus an empty list.\n */\n MatChipList.prototype._updateTabIndex = function () {\n // If we have 0 chips, we should not allow keyboard focus\n this._tabIndex = this._userTabIndex || (this.chips.length === 0 ? -1 : 0);\n };\n /**\n * If the amount of chips changed, we need to update the\n * key manager state and focus the next closest chip.\n */\n MatChipList.prototype._updateFocusForDestroyedChips = function () {\n // Move focus to the closest chip. If no other chips remain, focus the chip-list itself.\n if (this._lastDestroyedChipIndex != null) {\n if (this.chips.length) {\n var newChipIndex = Math.min(this._lastDestroyedChipIndex, this.chips.length - 1);\n this._keyManager.setActiveItem(newChipIndex);\n }\n else {\n this.focus();\n }\n }\n this._lastDestroyedChipIndex = null;\n };\n /**\n * Utility to ensure all indexes are valid.\n *\n * @param index The index to be checked.\n * @returns True if the index is valid for our list of chips.\n */\n MatChipList.prototype._isValidIndex = function (index) {\n return index >= 0 && index < this.chips.length;\n };\n MatChipList.prototype._isInputEmpty = function (element) {\n if (element && element.nodeName.toLowerCase() === 'input') {\n var input = element;\n return !input.value;\n }\n return false;\n };\n MatChipList.prototype._setSelectionByValue = function (value, isUserInput) {\n var _this = this;\n if (isUserInput === void 0) { isUserInput = true; }\n this._clearSelection();\n this.chips.forEach(function (chip) { return chip.deselect(); });\n if (Array.isArray(value)) {\n value.forEach(function (currentValue) { return _this._selectValue(currentValue, isUserInput); });\n this._sortValues();\n }\n else {\n var correspondingChip = this._selectValue(value, isUserInput);\n // Shift focus to the active item. Note that we shouldn't do this in multiple\n // mode, because we don't know what chip the user interacted with last.\n if (correspondingChip) {\n if (isUserInput) {\n this._keyManager.setActiveItem(correspondingChip);\n }\n }\n }\n };\n /**\n * Finds and selects the chip based on its value.\n * @returns Chip that has the corresponding value.\n */\n MatChipList.prototype._selectValue = function (value, isUserInput) {\n var _this = this;\n if (isUserInput === void 0) { isUserInput = true; }\n var correspondingChip = this.chips.find(function (chip) {\n return chip.value != null && _this._compareWith(chip.value, value);\n });\n if (correspondingChip) {\n isUserInput ? correspondingChip.selectViaInteraction() : correspondingChip.select();\n this._selectionModel.select(correspondingChip);\n }\n return correspondingChip;\n };\n MatChipList.prototype._initializeSelection = function () {\n var _this = this;\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n Promise.resolve().then(function () {\n if (_this.ngControl || _this._value) {\n _this._setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value, false);\n _this.stateChanges.next();\n }\n });\n };\n /**\n * Deselects every chip in the list.\n * @param skip Chip that should not be deselected.\n */\n MatChipList.prototype._clearSelection = function (skip) {\n this._selectionModel.clear();\n this.chips.forEach(function (chip) {\n if (chip !== skip) {\n chip.deselect();\n }\n });\n this.stateChanges.next();\n };\n /**\n * Sorts the model values, ensuring that they keep the same\n * order that they have in the panel.\n */\n MatChipList.prototype._sortValues = function () {\n var _this = this;\n if (this._multiple) {\n this._selectionModel.clear();\n this.chips.forEach(function (chip) {\n if (chip.selected) {\n _this._selectionModel.select(chip);\n }\n });\n this.stateChanges.next();\n }\n };\n /** Emits change event to set the model value. */\n MatChipList.prototype._propagateChanges = function (fallbackValue) {\n var valueToEmit = null;\n if (Array.isArray(this.selected)) {\n valueToEmit = this.selected.map(function (chip) { return chip.value; });\n }\n else {\n valueToEmit = this.selected ? this.selected.value : fallbackValue;\n }\n this._value = valueToEmit;\n this.change.emit(new MatChipListChange(this, valueToEmit));\n this.valueChange.emit(valueToEmit);\n this._onChange(valueToEmit);\n this._changeDetectorRef.markForCheck();\n };\n /** When blurred, mark the field as touched when focus moved outside the chip list. */\n MatChipList.prototype._blur = function () {\n var _this = this;\n if (!this._hasFocusedChip()) {\n this._keyManager.setActiveItem(-1);\n }\n if (!this.disabled) {\n if (this._chipInput) {\n // If there's a chip input, we should check whether the focus moved to chip input.\n // If the focus is not moved to chip input, mark the field as touched. If the focus moved\n // to chip input, do nothing.\n // Timeout is needed to wait for the focus() event trigger on chip input.\n setTimeout(function () {\n if (!_this.focused) {\n _this._markAsTouched();\n }\n });\n }\n else {\n // If there's no chip input, then mark the field as touched.\n this._markAsTouched();\n }\n }\n };\n /** Mark the field as touched */\n MatChipList.prototype._markAsTouched = function () {\n this._onTouched();\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n };\n /**\n * Removes the `tabindex` from the chip list and resets it back afterwards, allowing the\n * user to tab out of it. This prevents the list from capturing focus and redirecting\n * it back to the first chip, creating a focus trap, if it user tries to tab away.\n */\n MatChipList.prototype._allowFocusEscape = function () {\n var _this = this;\n if (this._tabIndex !== -1) {\n this._tabIndex = -1;\n setTimeout(function () {\n _this._tabIndex = _this._userTabIndex || 0;\n _this._changeDetectorRef.markForCheck();\n });\n }\n };\n MatChipList.prototype._resetChips = function () {\n this._dropSubscriptions();\n this._listenToChipsFocus();\n this._listenToChipsSelection();\n this._listenToChipsRemoved();\n };\n MatChipList.prototype._dropSubscriptions = function () {\n if (this._chipFocusSubscription) {\n this._chipFocusSubscription.unsubscribe();\n this._chipFocusSubscription = null;\n }\n if (this._chipBlurSubscription) {\n this._chipBlurSubscription.unsubscribe();\n this._chipBlurSubscription = null;\n }\n if (this._chipSelectionSubscription) {\n this._chipSelectionSubscription.unsubscribe();\n this._chipSelectionSubscription = null;\n }\n if (this._chipRemoveSubscription) {\n this._chipRemoveSubscription.unsubscribe();\n this._chipRemoveSubscription = null;\n }\n };\n /** Listens to user-generated selection events on each chip. */\n MatChipList.prototype._listenToChipsSelection = function () {\n var _this = this;\n this._chipSelectionSubscription = this.chipSelectionChanges.subscribe(function (event) {\n event.source.selected\n ? _this._selectionModel.select(event.source)\n : _this._selectionModel.deselect(event.source);\n // For single selection chip list, make sure the deselected value is unselected.\n if (!_this.multiple) {\n _this.chips.forEach(function (chip) {\n if (!_this._selectionModel.isSelected(chip) && chip.selected) {\n chip.deselect();\n }\n });\n }\n if (event.isUserInput) {\n _this._propagateChanges();\n }\n });\n };\n /** Listens to user-generated selection events on each chip. */\n MatChipList.prototype._listenToChipsFocus = function () {\n var _this = this;\n this._chipFocusSubscription = this.chipFocusChanges.subscribe(function (event) {\n var chipIndex = _this.chips.toArray().indexOf(event.chip);\n if (_this._isValidIndex(chipIndex)) {\n _this._keyManager.updateActiveItem(chipIndex);\n }\n _this.stateChanges.next();\n });\n this._chipBlurSubscription = this.chipBlurChanges.subscribe(function () {\n _this._blur();\n _this.stateChanges.next();\n });\n };\n MatChipList.prototype._listenToChipsRemoved = function () {\n var _this = this;\n this._chipRemoveSubscription = this.chipRemoveChanges.subscribe(function (event) {\n var chip = event.chip;\n var chipIndex = _this.chips.toArray().indexOf(event.chip);\n // In case the chip that will be removed is currently focused, we temporarily store\n // the index in order to be able to determine an appropriate sibling chip that will\n // receive focus.\n if (_this._isValidIndex(chipIndex) && chip._hasFocus) {\n _this._lastDestroyedChipIndex = chipIndex;\n }\n });\n };\n /** Checks whether an event comes from inside a chip element. */\n MatChipList.prototype._originatesFromChip = function (event) {\n var currentElement = event.target;\n while (currentElement && currentElement !== this._elementRef.nativeElement) {\n if (currentElement.classList.contains('mat-chip')) {\n return true;\n }\n currentElement = currentElement.parentElement;\n }\n return false;\n };\n /** Checks whether any of the chips is focused. */\n MatChipList.prototype._hasFocusedChip = function () {\n return this.chips.some(function (chip) { return chip._hasFocus; });\n };\n /** Syncs the list's state with the individual chips. */\n MatChipList.prototype._syncChipsState = function () {\n var _this = this;\n if (this.chips) {\n this.chips.forEach(function (chip) {\n chip._chipListDisabled = _this._disabled;\n chip._chipListMultiple = _this.multiple;\n });\n }\n };\n MatChipList.decorators = [\n { type: core.Component, args: [{\n selector: 'mat-chip-list',\n template: \"<div class=\\\"mat-chip-list-wrapper\\\"><ng-content></ng-content></div>\",\n exportAs: 'matChipList',\n host: {\n '[attr.tabindex]': 'disabled ? null : _tabIndex',\n '[attr.aria-describedby]': '_ariaDescribedby || null',\n '[attr.aria-required]': 'role ? required : null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-invalid]': 'errorState',\n '[attr.aria-multiselectable]': 'multiple',\n '[attr.role]': 'role',\n '[class.mat-chip-list-disabled]': 'disabled',\n '[class.mat-chip-list-invalid]': 'errorState',\n '[class.mat-chip-list-required]': 'required',\n '[attr.aria-orientation]': 'ariaOrientation',\n 'class': 'mat-chip-list',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n '(keydown)': '_keydown($event)',\n '[id]': '_uid',\n },\n providers: [{ provide: formField.MatFormFieldControl, useExisting: MatChipList }],\n encapsulation: core.ViewEncapsulation.None,\n changeDetection: core.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:\\\"\\\";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\\n\"]\n },] }\n ];\n MatChipList.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: core.ChangeDetectorRef },\n { type: bidi.Directionality, decorators: [{ type: core.Optional }] },\n { type: forms.NgForm, decorators: [{ type: core.Optional }] },\n { type: forms.FormGroupDirective, decorators: [{ type: core.Optional }] },\n { type: core$1.ErrorStateMatcher },\n { type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }] }\n ]; };\n MatChipList.propDecorators = {\n errorStateMatcher: [{ type: core.Input }],\n multiple: [{ type: core.Input }],\n compareWith: [{ type: core.Input }],\n value: [{ type: core.Input }],\n required: [{ type: core.Input }],\n placeholder: [{ type: core.Input }],\n disabled: [{ type: core.Input }],\n ariaOrientation: [{ type: core.Input, args: ['aria-orientation',] }],\n selectable: [{ type: core.Input }],\n tabIndex: [{ type: core.Input }],\n change: [{ type: core.Output }],\n valueChange: [{ type: core.Output }],\n chips: [{ type: core.ContentChildren, args: [MatChip, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true\n },] }]\n };\n return MatChipList;\n }(_MatChipListMixinBase));\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 // Increasing integer for generating unique ids.\n var nextUniqueId$1 = 0;\n /**\n * Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.\n * May be placed inside or outside of an `<mat-chip-list>`.\n */\n var MatChipInput = /** @class */ (function () {\n function MatChipInput(_elementRef, _defaultOptions) {\n this._elementRef = _elementRef;\n this._defaultOptions = _defaultOptions;\n /** Whether the control is focused. */\n this.focused = false;\n this._addOnBlur = false;\n /**\n * The list of key codes that will trigger a chipEnd event.\n *\n * Defaults to `[ENTER]`.\n */\n this.separatorKeyCodes = this._defaultOptions.separatorKeyCodes;\n /** Emitted when a chip is to be added. */\n this.chipEnd = new core.EventEmitter();\n /** The input's placeholder text. */\n this.placeholder = '';\n /** Unique id for the input. */\n this.id = \"mat-chip-list-input-\" + nextUniqueId$1++;\n this._disabled = false;\n this._inputElement = this._elementRef.nativeElement;\n }\n Object.defineProperty(MatChipInput.prototype, \"chipList\", {\n /** Register input for chip list */\n set: function (value) {\n if (value) {\n this._chipList = value;\n this._chipList.registerInput(this);\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"addOnBlur\", {\n /**\n * Whether or not the chipEnd event will be emitted when the input is blurred.\n */\n get: function () { return this._addOnBlur; },\n set: function (value) { this._addOnBlur = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"disabled\", {\n /** Whether the input is disabled. */\n get: function () { return this._disabled || (this._chipList && this._chipList.disabled); },\n set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"empty\", {\n /** Whether the input is empty. */\n get: function () { return !this._inputElement.value; },\n enumerable: false,\n configurable: true\n });\n MatChipInput.prototype.ngOnChanges = function () {\n this._chipList.stateChanges.next();\n };\n /** Utility method to make host definition/tests more clear. */\n MatChipInput.prototype._keydown = function (event) {\n // Allow the user's focus to escape when they're tabbing forward. Note that we don't\n // want to do this when going backwards, because focus should go back to the first chip.\n if (event && event.keyCode === keycodes.TAB && !keycodes.hasModifierKey(event, 'shiftKey')) {\n this._chipList._allowFocusEscape();\n }\n this._emitChipEnd(event);\n };\n /** Checks to see if the blur should emit the (chipEnd) event. */\n MatChipInput.prototype._blur = function () {\n if (this.addOnBlur) {\n this._emitChipEnd();\n }\n this.focused = false;\n // Blur the chip list if it is not focused\n if (!this._chipList.focused) {\n this._chipList._blur();\n }\n this._chipList.stateChanges.next();\n };\n MatChipInput.prototype._focus = function () {\n this.focused = true;\n this._chipList.stateChanges.next();\n };\n /** Checks to see if the (chipEnd) event needs to be emitted. */\n MatChipInput.prototype._emitChipEnd = function (event) {\n if (!this._inputElement.value && !!event) {\n this._chipList._keydown(event);\n }\n if (!event || this._isSeparatorKey(event)) {\n this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });\n if (event) {\n event.preventDefault();\n }\n }\n };\n MatChipInput.prototype._onInput = function () {\n // Let chip list know whenever the value changes.\n this._chipList.stateChanges.next();\n };\n /** Focuses the input. */\n MatChipInput.prototype.focus = function (options) {\n this._inputElement.focus(options);\n };\n /** Checks whether a keycode is one of the configured separators. */\n MatChipInput.prototype._isSeparatorKey = function (event) {\n if (keycodes.hasModifierKey(event)) {\n return false;\n }\n var separators = this.separatorKeyCodes;\n var keyCode = event.keyCode;\n return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);\n };\n MatChipInput.decorators = [\n { type: core.Directive, args: [{\n selector: 'input[matChipInputFor]',\n exportAs: 'matChipInput, matChipInputFor',\n host: {\n 'class': 'mat-chip-input mat-input-element',\n '(keydown)': '_keydown($event)',\n '(blur)': '_blur()',\n '(focus)': '_focus()',\n '(input)': '_onInput()',\n '[id]': 'id',\n '[attr.disabled]': 'disabled || null',\n '[attr.placeholder]': 'placeholder || null',\n '[attr.aria-invalid]': '_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null',\n '[attr.aria-required]': '_chipList && _chipList.required || null',\n }\n },] }\n ];\n MatChipInput.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: undefined, decorators: [{ type: core.Inject, args: [MAT_CHIPS_DEFAULT_OPTIONS,] }] }\n ]; };\n MatChipInput.propDecorators = {\n chipList: [{ type: core.Input, args: ['matChipInputFor',] }],\n addOnBlur: [{ type: core.Input, args: ['matChipInputAddOnBlur',] }],\n separatorKeyCodes: [{ type: core.Input, args: ['matChipInputSeparatorKeyCodes',] }],\n chipEnd: [{ type: core.Output, args: ['matChipInputTokenEnd',] }],\n placeholder: [{ type: core.Input }],\n id: [{ type: core.Input }],\n disabled: [{ type: core.Input }]\n };\n return MatChipInput;\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 CHIP_DECLARATIONS = [\n MatChipList,\n MatChip,\n MatChipInput,\n MatChipRemove,\n MatChipAvatar,\n MatChipTrailingIcon,\n ];\n var ɵ0 = {\n separatorKeyCodes: [keycodes.ENTER]\n };\n var MatChipsModule = /** @class */ (function () {\n function MatChipsModule() {\n }\n MatChipsModule.decorators = [\n { type: core.NgModule, args: [{\n exports: CHIP_DECLARATIONS,\n declarations: CHIP_DECLARATIONS,\n providers: [\n core$1.ErrorStateMatcher,\n {\n provide: MAT_CHIPS_DEFAULT_OPTIONS,\n useValue: ɵ0\n }\n ]\n },] }\n ];\n return MatChipsModule;\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 exports.MAT_CHIPS_DEFAULT_OPTIONS = MAT_CHIPS_DEFAULT_OPTIONS;\n exports.MatChip = MatChip;\n exports.MatChipAvatar = MatChipAvatar;\n exports.MatChipInput = MatChipInput;\n exports.MatChipList = MatChipList;\n exports.MatChipListChange = MatChipListChange;\n exports.MatChipRemove = MatChipRemove;\n exports.MatChipSelectionChange = MatChipSelectionChange;\n exports.MatChipTrailingIcon = MatChipTrailingIcon;\n exports.MatChipsModule = MatChipsModule;\n exports.ɵ0 = ɵ0;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-chips.umd.js.map\n"]}
1
+ {"version":3,"sources":["src/material/material-chips.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","chips","cdk","keycodes","core","coercion","platform","common","platformBrowser","animations","rxjs","operators","a11y","bidi","collections","forms","formField","this","core$1","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","constructor","prototype","create","__read","o","n","m","Symbol","iterator","r","e","i","call","ar","next","done","push","value","error","__spread","arguments","length","concat","MatChipSelectionChange","source","selected","isUserInput","MAT_CHIP_REMOVE","InjectionToken","MAT_CHIP_AVATAR","MAT_CHIP_TRAILING_ICON","_MatChipMixinBase","mixinTabIndex","mixinColor","mixinDisableRipple","MatChipBase","_elementRef","MatChipAvatar","decorators","type","Directive","args","selector","host","class","providers","provide","useExisting","MatChipTrailingIcon","MatChip","_super","_ngZone","globalRippleOptions","animationMode","_changeDetectorRef","tabIndex","_document","_this","_hasFocus","chipListSelectable","_chipListMultiple","_chipListDisabled","_selected","_selectable","_disabled","_removable","_onFocus","Subject","_onBlur","selectionChange","EventEmitter","destroyed","removed","_addHostClassName","_chipRippleTarget","document","createElement","classList","add","nativeElement","appendChild","_chipRipple","RippleRenderer","setupTriggerEvents","rippleConfig","_animationsDisabled","parseInt","defineProperty","get","disabled","disableRipple","enumerable","configurable","set","coercedValue","coerceBooleanProperty","_dispatchSelectionChange","undefined","_value","textContent","selectable","toString","element","hasAttribute","tagName","toLowerCase","ngOnDestroy","emit","chip","_removeTriggerEvents","select","_markForCheck","deselect","selectViaInteraction","toggleSelected","focus","remove","removable","_handleClick","event","preventDefault","stopPropagation","_handleKeydown","keyCode","DELETE","BACKSPACE","SPACE","_blur","onStable","asObservable","pipe","take","subscribe","run","markForCheck","inputs","exportAs","[attr.tabindex]","role","[class.mat-chip-selected]","[class.mat-chip-with-avatar]","[class.mat-chip-with-trailing-icon]","[class.mat-chip-disabled]","[class._mat-animation-noopable]","[attr.disabled]","[attr.aria-disabled]","[attr.aria-selected]","(click)","(keydown)","(focus)","(blur)","ctorParameters","ElementRef","NgZone","Platform","Optional","Inject","MAT_RIPPLE_GLOBAL_OPTIONS","String","ANIMATION_MODULE_TYPE","ChangeDetectorRef","Attribute","DOCUMENT","propDecorators","avatar","ContentChild","trailingIcon","removeIcon","Input","Output","MatChipRemove","_parentChip","elementRef","nodeName","setAttribute","parentChip","MAT_CHIPS_DEFAULT_OPTIONS","_MatChipListMixinBase","mixinErrorState","MatChipListBase","_defaultErrorStateMatcher","_parentForm","_parentFormGroup","ngControl","nextUniqueId","MatChipListChange","MatChipList","_dir","controlType","_lastDestroyedChipIndex","_destroyed","_uid","_tabIndex","_userTabIndex","_onTouched","_onChange","_multiple","_compareWith","o1","o2","_required","ariaOrientation","change","valueChange","valueAccessor","multiple","_selectionModel","empty","_syncChipsState","fn","_initializeSelection","writeValue","_chipInput","id","stateChanges","placeholder","_placeholder","focused","_hasFocusedChip","forEach","merge","apply","map","ngAfterContentInit","_keyManager","FocusKeyManager","withWrap","withVerticalOrientation","withHorizontalOrientation","takeUntil","dir","tabOut","_allowFocusEscape","changes","startWith","Promise","resolve","then","_resetChips","_updateTabIndex","_updateFocusForDestroyedChips","ngOnInit","SelectionModel","ngDoCheck","updateErrorState","complete","_dropSubscriptions","registerInput","inputElement","setDescribedByIds","ids","_ariaDescribedby","join","_setSelectionByValue","registerOnChange","registerOnTouched","setDisabledState","isDisabled","onContainerClick","_originatesFromChip","options","setFirstItemActive","_focusInput","_keydown","target","_isInputEmpty","setLastItemActive","contains","HOME","END","onKeydown","newChipIndex","Math","min","setActiveItem","_isValidIndex","index","_clearSelection","isArray","currentValue","_selectValue","_sortValues","correspondingChip","find","skip","clear","_propagateChanges","fallbackValue","valueToEmit","setTimeout","_markAsTouched","_listenToChipsFocus","_listenToChipsSelection","_listenToChipsRemoved","_chipFocusSubscription","unsubscribe","_chipBlurSubscription","_chipSelectionSubscription","_chipRemoveSubscription","chipSelectionChanges","isSelected","chipFocusChanges","chipIndex","toArray","indexOf","updateActiveItem","chipBlurChanges","chipRemoveChanges","currentElement","parentElement","some","Component","template","[attr.aria-describedby]","[attr.aria-required]","[attr.aria-invalid]","[attr.aria-multiselectable]","[attr.role]","[class.mat-chip-list-disabled]","[class.mat-chip-list-invalid]","[class.mat-chip-list-required]","[attr.aria-orientation]","[id]","MatFormFieldControl","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","styles","Directionality","NgForm","FormGroupDirective","ErrorStateMatcher","NgControl","Self","errorStateMatcher","compareWith","required","ContentChildren","descendants","nextUniqueId$1","MatChipInput","_defaultOptions","_addOnBlur","separatorKeyCodes","chipEnd","_inputElement","_chipList","ngOnChanges","TAB","hasModifierKey","_emitChipEnd","addOnBlur","_focus","_isSeparatorKey","input","_onInput","separators","has","(input)","[attr.placeholder]","chipList","CHIP_DECLARATIONS","ɵ0","ENTER","MatChipsModule","NgModule","declarations","useValue"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,yBAA0BA,QAAQ,iBAAkBA,QAAQ,0BAA2BA,QAAQ,yBAA0BA,QAAQ,yBAA0BA,QAAQ,mBAAoBA,QAAQ,wCAAyCA,QAAQ,QAASA,QAAQ,kBAAmBA,QAAQ,qBAAsBA,QAAQ,qBAAsBA,QAAQ,4BAA6BA,QAAQ,kBAAmBA,QAAQ,iCAC9d,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,0BAA2B,CAAC,UAAW,wBAAyB,gBAAiB,yBAA0B,wBAAyB,wBAAyB,kBAAmB,uCAAwC,OAAQ,iBAAkB,oBAAqB,oBAAqB,2BAA4B,iBAAkB,gCAAiCJ,GACrYA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,SAAWT,EAAOQ,GAAGC,UAAY,GAAIT,EAAOQ,GAAGC,SAASC,MAAQ,IAAKV,EAAOQ,GAAGG,IAAIC,SAAUZ,EAAOQ,GAAGK,KAAMb,EAAOQ,GAAGC,SAASI,KAAMb,EAAOQ,GAAGG,IAAIG,SAAUd,EAAOQ,GAAGG,IAAII,SAAUf,EAAOQ,GAAGQ,OAAQhB,EAAOQ,GAAGS,gBAAgBC,WAAYlB,EAAOmB,KAAMnB,EAAOmB,KAAKC,UAAWpB,EAAOQ,GAAGG,IAAIU,KAAMrB,EAAOQ,GAAGG,IAAIW,KAAMtB,EAAOQ,GAAGG,IAAIY,YAAavB,EAAOQ,GAAGgB,MAAOxB,EAAO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B,CAAC,CAAEnT,KAAMjE,EAAKkM,MAAO/H,KAAM,CAAC,mCAC/CkT,QAAS,CAAC,CAAEpT,KAAMjE,EAAKmM,OAAQhI,KAAM,CAAC,0BACtC8K,YAAa,CAAC,CAAEhL,KAAMjE,EAAKkM,QAC3B6C,GAAI,CAAC,CAAE9K,KAAMjE,EAAKkM,QAClB/E,SAAU,CAAC,CAAElD,KAAMjE,EAAKkM,SAErB+K,EA/IsB,GAyJ7BqB,EAAoB,CACpBlL,EACAzI,EACAsS,EACA7K,EACArI,EACAW,GAEA6T,EAAK,CACLnB,kBAAmB,CAACrX,EAASyY,QAE7BC,EAAgC,WAChC,SAASA,KAeT,OAbAA,EAAezU,WAAa,CACxB,CAAEC,KAAMjE,EAAK0Y,SAAUvU,KAAM,CAAC,CAClB9E,QAASiZ,EACTK,aAAcL,EACd/T,UAAW,CACPzD,EAAO0V,kBACP,CACIhS,QAASkI,EACTkM,SAAUL,QAK3BE,EAhBwB;;;;;;;;AA+BnCpZ,EAAQqN,0BAA4BA,EACpCrN,EAAQkE,gBAAkBA,EAC1BlE,EAAQgE,gBAAkBA,EAC1BhE,EAAQmE,uBAAyBA,EACjCnE,EAAQsF,QAAUA,EAClBtF,EAAQ0E,cAAgBA,EACxB1E,EAAQ4X,aAAeA,EACvB5X,EAAQ+N,YAAcA,EACtB/N,EAAQ8N,kBAAoBA,EAC5B9N,EAAQ+M,cAAgBA,EACxB/M,EAAQ4D,uBAAyBA,EACjC5D,EAAQqF,oBAAsBA,EAC9BrF,EAAQoZ,eAAiBA,EACzBpZ,EAAQkZ,GAAKA,EAEbrX,OAAO+F,eAAe5H,EAAS,aAAc,CAAEsD,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/keycodes'), require('@angular/core'), require('@angular/material/core'), require('@angular/cdk/coercion'), require('@angular/cdk/platform'), require('@angular/common'), require('@angular/platform-browser/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk/collections'), require('@angular/forms'), require('@angular/material/form-field')) :\n typeof define === 'function' && define.amd ? define('@angular/material/chips', ['exports', '@angular/cdk/keycodes', '@angular/core', '@angular/material/core', '@angular/cdk/coercion', '@angular/cdk/platform', '@angular/common', '@angular/platform-browser/animations', 'rxjs', 'rxjs/operators', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk/collections', '@angular/forms', '@angular/material/form-field'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.chips = {}), global.ng.cdk.keycodes, global.ng.core, global.ng.material.core, global.ng.cdk.coercion, global.ng.cdk.platform, global.ng.common, global.ng.platformBrowser.animations, global.rxjs, global.rxjs.operators, global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk.collections, global.ng.forms, global.ng.material.formField));\n}(this, (function (exports, keycodes, core, core$1, coercion, platform, common, animations, rxjs, operators, a11y, bidi, collections, forms, formField) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation.\r\n\r\n Permission to use, copy, modify, and/or distribute this software for any\r\n purpose with or without fee is hereby granted.\r\n\r\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n PERFORMANCE OF THIS SOFTWARE.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n }) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n });\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n }\r\n\r\n function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\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; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\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);\r\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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n var __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n }) : function(o, v) {\r\n o[\"default\"] = v;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\r\n\r\n function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n }\r\n\r\n function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\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 /** Event object emitted by MatChip when selected or deselected. */\n var MatChipSelectionChange = /** @class */ (function () {\n function MatChipSelectionChange(\n /** Reference to the chip that emitted the event. */\n source, \n /** Whether the chip that emitted the event is selected. */\n selected, \n /** Whether the selection change was a result of a user interaction. */\n isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.source = source;\n this.selected = selected;\n this.isUserInput = isUserInput;\n }\n return MatChipSelectionChange;\n }());\n /**\n * Injection token that can be used to reference instances of `MatChipRemove`. It serves as\n * alternative token to the actual `MatChipRemove` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\n var MAT_CHIP_REMOVE = new core.InjectionToken('MatChipRemove');\n /**\n * Injection token that can be used to reference instances of `MatChipAvatar`. It serves as\n * alternative token to the actual `MatChipAvatar` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\n var MAT_CHIP_AVATAR = new core.InjectionToken('MatChipAvatar');\n /**\n * Injection token that can be used to reference instances of `MatChipTrailingIcon`. It serves as\n * alternative token to the actual `MatChipTrailingIcon` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\n var MAT_CHIP_TRAILING_ICON = new core.InjectionToken('MatChipTrailingIcon');\n // Boilerplate for applying mixins to MatChip.\n /** @docs-private */\n var MatChipBase = /** @class */ (function () {\n function MatChipBase(_elementRef) {\n this._elementRef = _elementRef;\n }\n return MatChipBase;\n }());\n var _MatChipMixinBase = core$1.mixinTabIndex(core$1.mixinColor(core$1.mixinDisableRipple(MatChipBase), 'primary'), -1);\n /**\n * Dummy directive to add CSS class to chip avatar.\n * @docs-private\n */\n var MatChipAvatar = /** @class */ (function () {\n function MatChipAvatar() {\n }\n MatChipAvatar.decorators = [\n { type: core.Directive, args: [{\n selector: 'mat-chip-avatar, [matChipAvatar]',\n host: { 'class': 'mat-chip-avatar' },\n providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }]\n },] }\n ];\n return MatChipAvatar;\n }());\n /**\n * Dummy directive to add CSS class to chip trailing icon.\n * @docs-private\n */\n var MatChipTrailingIcon = /** @class */ (function () {\n function MatChipTrailingIcon() {\n }\n MatChipTrailingIcon.decorators = [\n { type: core.Directive, args: [{\n selector: 'mat-chip-trailing-icon, [matChipTrailingIcon]',\n host: { 'class': 'mat-chip-trailing-icon' },\n providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }],\n },] }\n ];\n return MatChipTrailingIcon;\n }());\n /**\n * Material design styled Chip component. Used inside the MatChipList component.\n */\n var MatChip = /** @class */ (function (_super) {\n __extends(MatChip, _super);\n function MatChip(_elementRef, _ngZone, platform, globalRippleOptions, \n // @breaking-change 8.0.0 `animationMode` parameter to become required.\n animationMode, \n // @breaking-change 9.0.0 `_changeDetectorRef` parameter to become required.\n _changeDetectorRef, tabIndex, \n // @breaking-change 11.0.0 `_document` parameter to become required.\n _document) {\n var _this = _super.call(this, _elementRef) || this;\n _this._elementRef = _elementRef;\n _this._ngZone = _ngZone;\n _this._changeDetectorRef = _changeDetectorRef;\n /** Whether the chip has focus. */\n _this._hasFocus = false;\n /** Whether the chip list is selectable */\n _this.chipListSelectable = true;\n /** Whether the chip list is in multi-selection mode. */\n _this._chipListMultiple = false;\n /** Whether the chip list as a whole is disabled. */\n _this._chipListDisabled = false;\n _this._selected = false;\n _this._selectable = true;\n _this._disabled = false;\n _this._removable = true;\n /** Emits when the chip is focused. */\n _this._onFocus = new rxjs.Subject();\n /** Emits when the chip is blured. */\n _this._onBlur = new rxjs.Subject();\n /** Emitted when the chip is selected or deselected. */\n _this.selectionChange = new core.EventEmitter();\n /** Emitted when the chip is destroyed. */\n _this.destroyed = new core.EventEmitter();\n /** Emitted when a chip is to be removed. */\n _this.removed = new core.EventEmitter();\n _this._addHostClassName();\n // Dynamically create the ripple target, append it within the chip, and use it as the\n // chip's ripple target. Adding the class '.mat-chip-ripple' ensures that it will have\n // the proper styles.\n _this._chipRippleTarget = (_document || document).createElement('div');\n _this._chipRippleTarget.classList.add('mat-chip-ripple');\n _this._elementRef.nativeElement.appendChild(_this._chipRippleTarget);\n _this._chipRipple = new core$1.RippleRenderer(_this, _ngZone, _this._chipRippleTarget, platform);\n _this._chipRipple.setupTriggerEvents(_elementRef);\n _this.rippleConfig = globalRippleOptions || {};\n _this._animationsDisabled = animationMode === 'NoopAnimations';\n _this.tabIndex = tabIndex != null ? (parseInt(tabIndex) || -1) : -1;\n return _this;\n }\n Object.defineProperty(MatChip.prototype, \"rippleDisabled\", {\n /**\n * Whether ripples are disabled on interaction\n * @docs-private\n */\n get: function () {\n return this.disabled || this.disableRipple || !!this.rippleConfig.disabled;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"selected\", {\n /** Whether the chip is selected. */\n get: function () { return this._selected; },\n set: function (value) {\n var coercedValue = coercion.coerceBooleanProperty(value);\n if (coercedValue !== this._selected) {\n this._selected = coercedValue;\n this._dispatchSelectionChange();\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"value\", {\n /** The value of the chip. Defaults to the content inside `<mat-chip>` tags. */\n get: function () {\n return this._value !== undefined\n ? this._value\n : this._elementRef.nativeElement.textContent;\n },\n set: function (value) { this._value = value; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"selectable\", {\n /**\n * Whether or not the chip is selectable. When a chip is not selectable,\n * changes to its selected state are always ignored. By default a chip is\n * selectable, and it becomes non-selectable if its parent chip list is\n * not selectable.\n */\n get: function () { return this._selectable && this.chipListSelectable; },\n set: function (value) {\n this._selectable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"disabled\", {\n /** Whether the chip is disabled. */\n get: function () { return this._chipListDisabled || this._disabled; },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"removable\", {\n /**\n * Determines whether or not the chip displays the remove styling and emits (removed) events.\n */\n get: function () { return this._removable; },\n set: function (value) {\n this._removable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChip.prototype, \"ariaSelected\", {\n /** The ARIA selected applied to the chip. */\n get: function () {\n // Remove the `aria-selected` when the chip is deselected in single-selection mode, because\n // it adds noise to NVDA users where \"not selected\" will be read out for each chip.\n return this.selectable && (this._chipListMultiple || this.selected) ?\n this.selected.toString() : null;\n },\n enumerable: false,\n configurable: true\n });\n MatChip.prototype._addHostClassName = function () {\n var basicChipAttrName = 'mat-basic-chip';\n var element = this._elementRef.nativeElement;\n if (element.hasAttribute(basicChipAttrName) ||\n element.tagName.toLowerCase() === basicChipAttrName) {\n element.classList.add(basicChipAttrName);\n return;\n }\n else {\n element.classList.add('mat-standard-chip');\n }\n };\n MatChip.prototype.ngOnDestroy = function () {\n this.destroyed.emit({ chip: this });\n this._chipRipple._removeTriggerEvents();\n };\n /** Selects the chip. */\n MatChip.prototype.select = function () {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange();\n this._markForCheck();\n }\n };\n /** Deselects the chip. */\n MatChip.prototype.deselect = function () {\n if (this._selected) {\n this._selected = false;\n this._dispatchSelectionChange();\n this._markForCheck();\n }\n };\n /** Select this chip and emit selected event */\n MatChip.prototype.selectViaInteraction = function () {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange(true);\n this._markForCheck();\n }\n };\n /** Toggles the current selected state of this chip. */\n MatChip.prototype.toggleSelected = function (isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this._selected = !this.selected;\n this._dispatchSelectionChange(isUserInput);\n this._markForCheck();\n return this.selected;\n };\n /** Allows for programmatic focusing of the chip. */\n MatChip.prototype.focus = function () {\n if (!this._hasFocus) {\n this._elementRef.nativeElement.focus();\n this._onFocus.next({ chip: this });\n }\n this._hasFocus = true;\n };\n /**\n * Allows for programmatic removal of the chip. Called by the MatChipList when the DELETE or\n * BACKSPACE keys are pressed.\n *\n * Informs any listeners of the removal request. Does not remove the chip from the DOM.\n */\n MatChip.prototype.remove = function () {\n if (this.removable) {\n this.removed.emit({ chip: this });\n }\n };\n /** Handles click events on the chip. */\n MatChip.prototype._handleClick = function (event) {\n if (this.disabled) {\n event.preventDefault();\n }\n else {\n event.stopPropagation();\n }\n };\n /** Handle custom key presses. */\n MatChip.prototype._handleKeydown = function (event) {\n if (this.disabled) {\n return;\n }\n switch (event.keyCode) {\n case keycodes.DELETE:\n case keycodes.BACKSPACE:\n // If we are removable, remove the focused chip\n this.remove();\n // Always prevent so page navigation does not occur\n event.preventDefault();\n break;\n case keycodes.SPACE:\n // If we are selectable, toggle the focused chip\n if (this.selectable) {\n this.toggleSelected(true);\n }\n // Always prevent space from scrolling the page since the list has focus\n event.preventDefault();\n break;\n }\n };\n MatChip.prototype._blur = function () {\n var _this = this;\n // When animations are enabled, Angular may end up removing the chip from the DOM a little\n // earlier than usual, causing it to be blurred and throwing off the logic in the chip list\n // that moves focus not the next item. To work around the issue, we defer marking the chip\n // as not focused until the next time the zone stabilizes.\n this._ngZone.onStable\n .asObservable()\n .pipe(operators.take(1))\n .subscribe(function () {\n _this._ngZone.run(function () {\n _this._hasFocus = false;\n _this._onBlur.next({ chip: _this });\n });\n });\n };\n MatChip.prototype._dispatchSelectionChange = function (isUserInput) {\n if (isUserInput === void 0) { isUserInput = false; }\n this.selectionChange.emit({\n source: this,\n isUserInput: isUserInput,\n selected: this._selected\n });\n };\n MatChip.prototype._markForCheck = function () {\n // @breaking-change 9.0.0 Remove this method once the _changeDetectorRef is a required param.\n if (this._changeDetectorRef) {\n this._changeDetectorRef.markForCheck();\n }\n };\n MatChip.decorators = [\n { type: core.Directive, args: [{\n selector: \"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]\",\n inputs: ['color', 'disableRipple', 'tabIndex'],\n exportAs: 'matChip',\n host: {\n 'class': 'mat-chip mat-focus-indicator',\n '[attr.tabindex]': 'disabled ? null : tabIndex',\n 'role': 'option',\n '[class.mat-chip-selected]': 'selected',\n '[class.mat-chip-with-avatar]': 'avatar',\n '[class.mat-chip-with-trailing-icon]': 'trailingIcon || removeIcon',\n '[class.mat-chip-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_animationsDisabled',\n '[attr.disabled]': 'disabled || null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-selected]': 'ariaSelected',\n '(click)': '_handleClick($event)',\n '(keydown)': '_handleKeydown($event)',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n },\n },] }\n ];\n MatChip.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: core.NgZone },\n { type: platform.Platform },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },\n { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] },\n { type: core.ChangeDetectorRef },\n { type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n MatChip.propDecorators = {\n avatar: [{ type: core.ContentChild, args: [MAT_CHIP_AVATAR,] }],\n trailingIcon: [{ type: core.ContentChild, args: [MAT_CHIP_TRAILING_ICON,] }],\n removeIcon: [{ type: core.ContentChild, args: [MAT_CHIP_REMOVE,] }],\n selected: [{ type: core.Input }],\n value: [{ type: core.Input }],\n selectable: [{ type: core.Input }],\n disabled: [{ type: core.Input }],\n removable: [{ type: core.Input }],\n selectionChange: [{ type: core.Output }],\n destroyed: [{ type: core.Output }],\n removed: [{ type: core.Output }]\n };\n return MatChip;\n }(_MatChipMixinBase));\n /**\n * Applies proper (click) support and adds styling for use with the Material Design \"cancel\" icon\n * available at https://material.io/icons/#ic_cancel.\n *\n * Example:\n *\n * `<mat-chip>\n * <mat-icon matChipRemove>cancel</mat-icon>\n * </mat-chip>`\n *\n * You *may* use a custom icon, but you may need to override the `mat-chip-remove` positioning\n * styles to properly center the icon within the chip.\n */\n var MatChipRemove = /** @class */ (function () {\n function MatChipRemove(_parentChip, \n // @breaking-change 11.0.0 `elementRef` parameter to be made required.\n elementRef) {\n this._parentChip = _parentChip;\n // @breaking-change 11.0.0 Remove null check for `elementRef`.\n if (elementRef && elementRef.nativeElement.nodeName === 'BUTTON') {\n elementRef.nativeElement.setAttribute('type', 'button');\n }\n }\n /** Calls the parent chip's public `remove()` method if applicable. */\n MatChipRemove.prototype._handleClick = function (event) {\n var parentChip = this._parentChip;\n if (parentChip.removable && !parentChip.disabled) {\n parentChip.remove();\n }\n // We need to stop event propagation because otherwise the event will bubble up to the\n // form field and cause the `onContainerClick` method to be invoked. This method would then\n // reset the focused chip that has been focused after chip removal. Usually the parent\n // the parent click listener of the `MatChip` would prevent propagation, but it can happen\n // that the chip is being removed before the event bubbles up.\n event.stopPropagation();\n };\n MatChipRemove.decorators = [\n { type: core.Directive, args: [{\n selector: '[matChipRemove]',\n host: {\n 'class': 'mat-chip-remove mat-chip-trailing-icon',\n '(click)': '_handleClick($event)',\n },\n providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }],\n },] }\n ];\n MatChipRemove.ctorParameters = function () { return [\n { type: MatChip },\n { type: core.ElementRef }\n ]; };\n return MatChipRemove;\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 /** Injection token to be used to override the default options for the chips module. */\n var MAT_CHIPS_DEFAULT_OPTIONS = new core.InjectionToken('mat-chips-default-options');\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 // Boilerplate for applying mixins to MatChipList.\n /** @docs-private */\n var MatChipListBase = /** @class */ (function () {\n function MatChipListBase(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, \n /** @docs-private */\n ngControl) {\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n this.ngControl = ngControl;\n }\n return MatChipListBase;\n }());\n var _MatChipListMixinBase = core$1.mixinErrorState(MatChipListBase);\n // Increasing integer for generating unique ids for chip-list components.\n var nextUniqueId = 0;\n /** Change event object that is emitted when the chip list value has changed. */\n var MatChipListChange = /** @class */ (function () {\n function MatChipListChange(\n /** Chip list that emitted the event. */\n source, \n /** Value of the chip list when the event was emitted. */\n value) {\n this.source = source;\n this.value = value;\n }\n return MatChipListChange;\n }());\n /**\n * A material design chips component (named ChipList for its similarity to the List component).\n */\n var MatChipList = /** @class */ (function (_super) {\n __extends(MatChipList, _super);\n function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, \n /** @docs-private */\n ngControl) {\n var _this = _super.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) || this;\n _this._elementRef = _elementRef;\n _this._changeDetectorRef = _changeDetectorRef;\n _this._dir = _dir;\n _this.ngControl = ngControl;\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n _this.controlType = 'mat-chip-list';\n /**\n * When a chip is destroyed, we store the index of the destroyed chip until the chips\n * query list notifies about the update. This is necessary because we cannot determine an\n * appropriate chip that should receive focus until the array of chips updated completely.\n */\n _this._lastDestroyedChipIndex = null;\n /** Subject that emits when the component has been destroyed. */\n _this._destroyed = new rxjs.Subject();\n /** Uid of the chip list */\n _this._uid = \"mat-chip-list-\" + nextUniqueId++;\n /** Tab index for the chip list. */\n _this._tabIndex = 0;\n /**\n * User defined tab index.\n * When it is not null, use user defined tab index. Otherwise use _tabIndex\n */\n _this._userTabIndex = null;\n /** Function when touched */\n _this._onTouched = function () { };\n /** Function when changed */\n _this._onChange = function () { };\n _this._multiple = false;\n _this._compareWith = function (o1, o2) { return o1 === o2; };\n _this._required = false;\n _this._disabled = false;\n /** Orientation of the chip list. */\n _this.ariaOrientation = 'horizontal';\n _this._selectable = true;\n /** Event emitted when the selected chip list value has been changed by the user. */\n _this.change = new core.EventEmitter();\n /**\n * Event that emits whenever the raw value of the chip-list changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n _this.valueChange = new core.EventEmitter();\n if (_this.ngControl) {\n _this.ngControl.valueAccessor = _this;\n }\n return _this;\n }\n Object.defineProperty(MatChipList.prototype, \"selected\", {\n /** The array of selected chips inside chip list. */\n get: function () {\n return this.multiple ? this._selectionModel.selected : this._selectionModel.selected[0];\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"role\", {\n /** The ARIA role applied to the chip list. */\n get: function () { return this.empty ? null : 'listbox'; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"multiple\", {\n /** Whether the user should be allowed to select multiple chips. */\n get: function () { return this._multiple; },\n set: function (value) {\n this._multiple = coercion.coerceBooleanProperty(value);\n this._syncChipsState();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"compareWith\", {\n /**\n * A function to compare the option values with the selected values. The first argument\n * is a value from an option. The second is a value from the selection. A boolean\n * should be returned.\n */\n get: function () { return this._compareWith; },\n set: function (fn) {\n this._compareWith = fn;\n if (this._selectionModel) {\n // A different comparator means the selection could change.\n this._initializeSelection();\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"value\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this._value; },\n set: function (value) {\n this.writeValue(value);\n this._value = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"id\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return this._chipInput ? this._chipInput.id : this._uid;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"required\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this._required; },\n set: function (value) {\n this._required = coercion.coerceBooleanProperty(value);\n this.stateChanges.next();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"placeholder\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return this._chipInput ? this._chipInput.placeholder : this._placeholder;\n },\n set: function (value) {\n this._placeholder = value;\n this.stateChanges.next();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"focused\", {\n /** Whether any chips or the matChipInput inside of this chip-list has focus. */\n get: function () {\n return (this._chipInput && this._chipInput.focused) || this._hasFocusedChip();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"empty\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () {\n return (!this._chipInput || this._chipInput.empty) && (!this.chips || this.chips.length === 0);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"shouldLabelFloat\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return !this.empty || this.focused; },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"disabled\", {\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get: function () { return this.ngControl ? !!this.ngControl.disabled : this._disabled; },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n this._syncChipsState();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"selectable\", {\n /**\n * Whether or not this chip list is selectable. When a chip list is not selectable,\n * the selected states for all the chips inside the chip list are always ignored.\n */\n get: function () { return this._selectable; },\n set: function (value) {\n var _this = this;\n this._selectable = coercion.coerceBooleanProperty(value);\n if (this.chips) {\n this.chips.forEach(function (chip) { return chip.chipListSelectable = _this._selectable; });\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"tabIndex\", {\n set: function (value) {\n this._userTabIndex = value;\n this._tabIndex = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipSelectionChanges\", {\n /** Combined stream of all of the child chips' selection change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip.selectionChange; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipFocusChanges\", {\n /** Combined stream of all of the child chips' focus change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip._onFocus; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipBlurChanges\", {\n /** Combined stream of all of the child chips' blur change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip._onBlur; })));\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipList.prototype, \"chipRemoveChanges\", {\n /** Combined stream of all of the child chips' remove change events. */\n get: function () {\n return rxjs.merge.apply(void 0, __spread(this.chips.map(function (chip) { return chip.destroyed; })));\n },\n enumerable: false,\n configurable: true\n });\n MatChipList.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._keyManager = new a11y.FocusKeyManager(this.chips)\n .withWrap()\n .withVerticalOrientation()\n .withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');\n if (this._dir) {\n this._dir.change\n .pipe(operators.takeUntil(this._destroyed))\n .subscribe(function (dir) { return _this._keyManager.withHorizontalOrientation(dir); });\n }\n this._keyManager.tabOut.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {\n _this._allowFocusEscape();\n });\n // When the list changes, re-subscribe\n this.chips.changes.pipe(operators.startWith(null), operators.takeUntil(this._destroyed)).subscribe(function () {\n if (_this.disabled) {\n // Since this happens after the content has been\n // checked, we need to defer it to the next tick.\n Promise.resolve().then(function () {\n _this._syncChipsState();\n });\n }\n _this._resetChips();\n // Reset chips selected/deselected status\n _this._initializeSelection();\n // Check to see if we need to update our tab index\n _this._updateTabIndex();\n // Check to see if we have a destroyed chip and need to refocus\n _this._updateFocusForDestroyedChips();\n _this.stateChanges.next();\n });\n };\n MatChipList.prototype.ngOnInit = function () {\n this._selectionModel = new collections.SelectionModel(this.multiple, undefined, false);\n this.stateChanges.next();\n };\n MatChipList.prototype.ngDoCheck = function () {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n if (this.ngControl.disabled !== this._disabled) {\n this.disabled = !!this.ngControl.disabled;\n }\n }\n };\n MatChipList.prototype.ngOnDestroy = function () {\n this._destroyed.next();\n this._destroyed.complete();\n this.stateChanges.complete();\n this._dropSubscriptions();\n };\n /** Associates an HTML input element with this chip list. */\n MatChipList.prototype.registerInput = function (inputElement) {\n this._chipInput = inputElement;\n };\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n MatChipList.prototype.setDescribedByIds = function (ids) { this._ariaDescribedby = ids.join(' '); };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.writeValue = function (value) {\n if (this.chips) {\n this._setSelectionByValue(value, false);\n }\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.registerOnChange = function (fn) {\n this._onChange = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.registerOnTouched = function (fn) {\n this._onTouched = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatChipList.prototype.setDisabledState = function (isDisabled) {\n this.disabled = isDisabled;\n this.stateChanges.next();\n };\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n MatChipList.prototype.onContainerClick = function (event) {\n if (!this._originatesFromChip(event)) {\n this.focus();\n }\n };\n /**\n * Focuses the first non-disabled chip in this chip list, or the associated input when there\n * are no eligible chips.\n */\n MatChipList.prototype.focus = function (options) {\n if (this.disabled) {\n return;\n }\n // TODO: ARIA says this should focus the first `selected` chip if any are selected.\n // Focus on first element if there's no chipInput inside chip-list\n if (this._chipInput && this._chipInput.focused) {\n // do nothing\n }\n else if (this.chips.length > 0) {\n this._keyManager.setFirstItemActive();\n this.stateChanges.next();\n }\n else {\n this._focusInput(options);\n this.stateChanges.next();\n }\n };\n /** Attempt to focus an input if we have one. */\n MatChipList.prototype._focusInput = function (options) {\n if (this._chipInput) {\n this._chipInput.focus(options);\n }\n };\n /**\n * Pass events to the keyboard manager. Available here for tests.\n */\n MatChipList.prototype._keydown = function (event) {\n var target = event.target;\n // If they are on an empty input and hit backspace, focus the last chip\n if (event.keyCode === keycodes.BACKSPACE && this._isInputEmpty(target)) {\n this._keyManager.setLastItemActive();\n event.preventDefault();\n }\n else if (target && target.classList.contains('mat-chip')) {\n if (event.keyCode === keycodes.HOME) {\n this._keyManager.setFirstItemActive();\n event.preventDefault();\n }\n else if (event.keyCode === keycodes.END) {\n this._keyManager.setLastItemActive();\n event.preventDefault();\n }\n else {\n this._keyManager.onKeydown(event);\n }\n this.stateChanges.next();\n }\n };\n /**\n * Check the tab index as you should not be allowed to focus an empty list.\n */\n MatChipList.prototype._updateTabIndex = function () {\n // If we have 0 chips, we should not allow keyboard focus\n this._tabIndex = this._userTabIndex || (this.chips.length === 0 ? -1 : 0);\n };\n /**\n * If the amount of chips changed, we need to update the\n * key manager state and focus the next closest chip.\n */\n MatChipList.prototype._updateFocusForDestroyedChips = function () {\n // Move focus to the closest chip. If no other chips remain, focus the chip-list itself.\n if (this._lastDestroyedChipIndex != null) {\n if (this.chips.length) {\n var newChipIndex = Math.min(this._lastDestroyedChipIndex, this.chips.length - 1);\n this._keyManager.setActiveItem(newChipIndex);\n }\n else {\n this.focus();\n }\n }\n this._lastDestroyedChipIndex = null;\n };\n /**\n * Utility to ensure all indexes are valid.\n *\n * @param index The index to be checked.\n * @returns True if the index is valid for our list of chips.\n */\n MatChipList.prototype._isValidIndex = function (index) {\n return index >= 0 && index < this.chips.length;\n };\n MatChipList.prototype._isInputEmpty = function (element) {\n if (element && element.nodeName.toLowerCase() === 'input') {\n var input = element;\n return !input.value;\n }\n return false;\n };\n MatChipList.prototype._setSelectionByValue = function (value, isUserInput) {\n var _this = this;\n if (isUserInput === void 0) { isUserInput = true; }\n this._clearSelection();\n this.chips.forEach(function (chip) { return chip.deselect(); });\n if (Array.isArray(value)) {\n value.forEach(function (currentValue) { return _this._selectValue(currentValue, isUserInput); });\n this._sortValues();\n }\n else {\n var correspondingChip = this._selectValue(value, isUserInput);\n // Shift focus to the active item. Note that we shouldn't do this in multiple\n // mode, because we don't know what chip the user interacted with last.\n if (correspondingChip) {\n if (isUserInput) {\n this._keyManager.setActiveItem(correspondingChip);\n }\n }\n }\n };\n /**\n * Finds and selects the chip based on its value.\n * @returns Chip that has the corresponding value.\n */\n MatChipList.prototype._selectValue = function (value, isUserInput) {\n var _this = this;\n if (isUserInput === void 0) { isUserInput = true; }\n var correspondingChip = this.chips.find(function (chip) {\n return chip.value != null && _this._compareWith(chip.value, value);\n });\n if (correspondingChip) {\n isUserInput ? correspondingChip.selectViaInteraction() : correspondingChip.select();\n this._selectionModel.select(correspondingChip);\n }\n return correspondingChip;\n };\n MatChipList.prototype._initializeSelection = function () {\n var _this = this;\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n Promise.resolve().then(function () {\n if (_this.ngControl || _this._value) {\n _this._setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value, false);\n _this.stateChanges.next();\n }\n });\n };\n /**\n * Deselects every chip in the list.\n * @param skip Chip that should not be deselected.\n */\n MatChipList.prototype._clearSelection = function (skip) {\n this._selectionModel.clear();\n this.chips.forEach(function (chip) {\n if (chip !== skip) {\n chip.deselect();\n }\n });\n this.stateChanges.next();\n };\n /**\n * Sorts the model values, ensuring that they keep the same\n * order that they have in the panel.\n */\n MatChipList.prototype._sortValues = function () {\n var _this = this;\n if (this._multiple) {\n this._selectionModel.clear();\n this.chips.forEach(function (chip) {\n if (chip.selected) {\n _this._selectionModel.select(chip);\n }\n });\n this.stateChanges.next();\n }\n };\n /** Emits change event to set the model value. */\n MatChipList.prototype._propagateChanges = function (fallbackValue) {\n var valueToEmit = null;\n if (Array.isArray(this.selected)) {\n valueToEmit = this.selected.map(function (chip) { return chip.value; });\n }\n else {\n valueToEmit = this.selected ? this.selected.value : fallbackValue;\n }\n this._value = valueToEmit;\n this.change.emit(new MatChipListChange(this, valueToEmit));\n this.valueChange.emit(valueToEmit);\n this._onChange(valueToEmit);\n this._changeDetectorRef.markForCheck();\n };\n /** When blurred, mark the field as touched when focus moved outside the chip list. */\n MatChipList.prototype._blur = function () {\n var _this = this;\n if (!this._hasFocusedChip()) {\n this._keyManager.setActiveItem(-1);\n }\n if (!this.disabled) {\n if (this._chipInput) {\n // If there's a chip input, we should check whether the focus moved to chip input.\n // If the focus is not moved to chip input, mark the field as touched. If the focus moved\n // to chip input, do nothing.\n // Timeout is needed to wait for the focus() event trigger on chip input.\n setTimeout(function () {\n if (!_this.focused) {\n _this._markAsTouched();\n }\n });\n }\n else {\n // If there's no chip input, then mark the field as touched.\n this._markAsTouched();\n }\n }\n };\n /** Mark the field as touched */\n MatChipList.prototype._markAsTouched = function () {\n this._onTouched();\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n };\n /**\n * Removes the `tabindex` from the chip list and resets it back afterwards, allowing the\n * user to tab out of it. This prevents the list from capturing focus and redirecting\n * it back to the first chip, creating a focus trap, if it user tries to tab away.\n */\n MatChipList.prototype._allowFocusEscape = function () {\n var _this = this;\n if (this._tabIndex !== -1) {\n this._tabIndex = -1;\n setTimeout(function () {\n _this._tabIndex = _this._userTabIndex || 0;\n _this._changeDetectorRef.markForCheck();\n });\n }\n };\n MatChipList.prototype._resetChips = function () {\n this._dropSubscriptions();\n this._listenToChipsFocus();\n this._listenToChipsSelection();\n this._listenToChipsRemoved();\n };\n MatChipList.prototype._dropSubscriptions = function () {\n if (this._chipFocusSubscription) {\n this._chipFocusSubscription.unsubscribe();\n this._chipFocusSubscription = null;\n }\n if (this._chipBlurSubscription) {\n this._chipBlurSubscription.unsubscribe();\n this._chipBlurSubscription = null;\n }\n if (this._chipSelectionSubscription) {\n this._chipSelectionSubscription.unsubscribe();\n this._chipSelectionSubscription = null;\n }\n if (this._chipRemoveSubscription) {\n this._chipRemoveSubscription.unsubscribe();\n this._chipRemoveSubscription = null;\n }\n };\n /** Listens to user-generated selection events on each chip. */\n MatChipList.prototype._listenToChipsSelection = function () {\n var _this = this;\n this._chipSelectionSubscription = this.chipSelectionChanges.subscribe(function (event) {\n event.source.selected\n ? _this._selectionModel.select(event.source)\n : _this._selectionModel.deselect(event.source);\n // For single selection chip list, make sure the deselected value is unselected.\n if (!_this.multiple) {\n _this.chips.forEach(function (chip) {\n if (!_this._selectionModel.isSelected(chip) && chip.selected) {\n chip.deselect();\n }\n });\n }\n if (event.isUserInput) {\n _this._propagateChanges();\n }\n });\n };\n /** Listens to user-generated selection events on each chip. */\n MatChipList.prototype._listenToChipsFocus = function () {\n var _this = this;\n this._chipFocusSubscription = this.chipFocusChanges.subscribe(function (event) {\n var chipIndex = _this.chips.toArray().indexOf(event.chip);\n if (_this._isValidIndex(chipIndex)) {\n _this._keyManager.updateActiveItem(chipIndex);\n }\n _this.stateChanges.next();\n });\n this._chipBlurSubscription = this.chipBlurChanges.subscribe(function () {\n _this._blur();\n _this.stateChanges.next();\n });\n };\n MatChipList.prototype._listenToChipsRemoved = function () {\n var _this = this;\n this._chipRemoveSubscription = this.chipRemoveChanges.subscribe(function (event) {\n var chip = event.chip;\n var chipIndex = _this.chips.toArray().indexOf(event.chip);\n // In case the chip that will be removed is currently focused, we temporarily store\n // the index in order to be able to determine an appropriate sibling chip that will\n // receive focus.\n if (_this._isValidIndex(chipIndex) && chip._hasFocus) {\n _this._lastDestroyedChipIndex = chipIndex;\n }\n });\n };\n /** Checks whether an event comes from inside a chip element. */\n MatChipList.prototype._originatesFromChip = function (event) {\n var currentElement = event.target;\n while (currentElement && currentElement !== this._elementRef.nativeElement) {\n if (currentElement.classList.contains('mat-chip')) {\n return true;\n }\n currentElement = currentElement.parentElement;\n }\n return false;\n };\n /** Checks whether any of the chips is focused. */\n MatChipList.prototype._hasFocusedChip = function () {\n return this.chips && this.chips.some(function (chip) { return chip._hasFocus; });\n };\n /** Syncs the list's state with the individual chips. */\n MatChipList.prototype._syncChipsState = function () {\n var _this = this;\n if (this.chips) {\n this.chips.forEach(function (chip) {\n chip._chipListDisabled = _this._disabled;\n chip._chipListMultiple = _this.multiple;\n });\n }\n };\n MatChipList.decorators = [\n { type: core.Component, args: [{\n selector: 'mat-chip-list',\n template: \"<div class=\\\"mat-chip-list-wrapper\\\"><ng-content></ng-content></div>\",\n exportAs: 'matChipList',\n host: {\n '[attr.tabindex]': 'disabled ? null : _tabIndex',\n '[attr.aria-describedby]': '_ariaDescribedby || null',\n '[attr.aria-required]': 'role ? required : null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-invalid]': 'errorState',\n '[attr.aria-multiselectable]': 'multiple',\n '[attr.role]': 'role',\n '[class.mat-chip-list-disabled]': 'disabled',\n '[class.mat-chip-list-invalid]': 'errorState',\n '[class.mat-chip-list-required]': 'required',\n '[attr.aria-orientation]': 'ariaOrientation',\n 'class': 'mat-chip-list',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n '(keydown)': '_keydown($event)',\n '[id]': '_uid',\n },\n providers: [{ provide: formField.MatFormFieldControl, useExisting: MatChipList }],\n encapsulation: core.ViewEncapsulation.None,\n changeDetection: core.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:\\\"\\\";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\\n\"]\n },] }\n ];\n MatChipList.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: core.ChangeDetectorRef },\n { type: bidi.Directionality, decorators: [{ type: core.Optional }] },\n { type: forms.NgForm, decorators: [{ type: core.Optional }] },\n { type: forms.FormGroupDirective, decorators: [{ type: core.Optional }] },\n { type: core$1.ErrorStateMatcher },\n { type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }] }\n ]; };\n MatChipList.propDecorators = {\n errorStateMatcher: [{ type: core.Input }],\n multiple: [{ type: core.Input }],\n compareWith: [{ type: core.Input }],\n value: [{ type: core.Input }],\n required: [{ type: core.Input }],\n placeholder: [{ type: core.Input }],\n disabled: [{ type: core.Input }],\n ariaOrientation: [{ type: core.Input, args: ['aria-orientation',] }],\n selectable: [{ type: core.Input }],\n tabIndex: [{ type: core.Input }],\n change: [{ type: core.Output }],\n valueChange: [{ type: core.Output }],\n chips: [{ type: core.ContentChildren, args: [MatChip, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true\n },] }]\n };\n return MatChipList;\n }(_MatChipListMixinBase));\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 // Increasing integer for generating unique ids.\n var nextUniqueId$1 = 0;\n /**\n * Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.\n * May be placed inside or outside of an `<mat-chip-list>`.\n */\n var MatChipInput = /** @class */ (function () {\n function MatChipInput(_elementRef, _defaultOptions) {\n this._elementRef = _elementRef;\n this._defaultOptions = _defaultOptions;\n /** Whether the control is focused. */\n this.focused = false;\n this._addOnBlur = false;\n /**\n * The list of key codes that will trigger a chipEnd event.\n *\n * Defaults to `[ENTER]`.\n */\n this.separatorKeyCodes = this._defaultOptions.separatorKeyCodes;\n /** Emitted when a chip is to be added. */\n this.chipEnd = new core.EventEmitter();\n /** The input's placeholder text. */\n this.placeholder = '';\n /** Unique id for the input. */\n this.id = \"mat-chip-list-input-\" + nextUniqueId$1++;\n this._disabled = false;\n this._inputElement = this._elementRef.nativeElement;\n }\n Object.defineProperty(MatChipInput.prototype, \"chipList\", {\n /** Register input for chip list */\n set: function (value) {\n if (value) {\n this._chipList = value;\n this._chipList.registerInput(this);\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"addOnBlur\", {\n /**\n * Whether or not the chipEnd event will be emitted when the input is blurred.\n */\n get: function () { return this._addOnBlur; },\n set: function (value) { this._addOnBlur = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"disabled\", {\n /** Whether the input is disabled. */\n get: function () { return this._disabled || (this._chipList && this._chipList.disabled); },\n set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatChipInput.prototype, \"empty\", {\n /** Whether the input is empty. */\n get: function () { return !this._inputElement.value; },\n enumerable: false,\n configurable: true\n });\n MatChipInput.prototype.ngOnChanges = function () {\n this._chipList.stateChanges.next();\n };\n /** Utility method to make host definition/tests more clear. */\n MatChipInput.prototype._keydown = function (event) {\n // Allow the user's focus to escape when they're tabbing forward. Note that we don't\n // want to do this when going backwards, because focus should go back to the first chip.\n if (event && event.keyCode === keycodes.TAB && !keycodes.hasModifierKey(event, 'shiftKey')) {\n this._chipList._allowFocusEscape();\n }\n this._emitChipEnd(event);\n };\n /** Checks to see if the blur should emit the (chipEnd) event. */\n MatChipInput.prototype._blur = function () {\n if (this.addOnBlur) {\n this._emitChipEnd();\n }\n this.focused = false;\n // Blur the chip list if it is not focused\n if (!this._chipList.focused) {\n this._chipList._blur();\n }\n this._chipList.stateChanges.next();\n };\n MatChipInput.prototype._focus = function () {\n this.focused = true;\n this._chipList.stateChanges.next();\n };\n /** Checks to see if the (chipEnd) event needs to be emitted. */\n MatChipInput.prototype._emitChipEnd = function (event) {\n if (!this._inputElement.value && !!event) {\n this._chipList._keydown(event);\n }\n if (!event || this._isSeparatorKey(event)) {\n this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });\n if (event) {\n event.preventDefault();\n }\n }\n };\n MatChipInput.prototype._onInput = function () {\n // Let chip list know whenever the value changes.\n this._chipList.stateChanges.next();\n };\n /** Focuses the input. */\n MatChipInput.prototype.focus = function (options) {\n this._inputElement.focus(options);\n };\n /** Checks whether a keycode is one of the configured separators. */\n MatChipInput.prototype._isSeparatorKey = function (event) {\n if (keycodes.hasModifierKey(event)) {\n return false;\n }\n var separators = this.separatorKeyCodes;\n var keyCode = event.keyCode;\n return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);\n };\n MatChipInput.decorators = [\n { type: core.Directive, args: [{\n selector: 'input[matChipInputFor]',\n exportAs: 'matChipInput, matChipInputFor',\n host: {\n 'class': 'mat-chip-input mat-input-element',\n '(keydown)': '_keydown($event)',\n '(blur)': '_blur()',\n '(focus)': '_focus()',\n '(input)': '_onInput()',\n '[id]': 'id',\n '[attr.disabled]': 'disabled || null',\n '[attr.placeholder]': 'placeholder || null',\n '[attr.aria-invalid]': '_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null',\n '[attr.aria-required]': '_chipList && _chipList.required || null',\n }\n },] }\n ];\n MatChipInput.ctorParameters = function () { return [\n { type: core.ElementRef },\n { type: undefined, decorators: [{ type: core.Inject, args: [MAT_CHIPS_DEFAULT_OPTIONS,] }] }\n ]; };\n MatChipInput.propDecorators = {\n chipList: [{ type: core.Input, args: ['matChipInputFor',] }],\n addOnBlur: [{ type: core.Input, args: ['matChipInputAddOnBlur',] }],\n separatorKeyCodes: [{ type: core.Input, args: ['matChipInputSeparatorKeyCodes',] }],\n chipEnd: [{ type: core.Output, args: ['matChipInputTokenEnd',] }],\n placeholder: [{ type: core.Input }],\n id: [{ type: core.Input }],\n disabled: [{ type: core.Input }]\n };\n return MatChipInput;\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 CHIP_DECLARATIONS = [\n MatChipList,\n MatChip,\n MatChipInput,\n MatChipRemove,\n MatChipAvatar,\n MatChipTrailingIcon,\n ];\n var ɵ0 = {\n separatorKeyCodes: [keycodes.ENTER]\n };\n var MatChipsModule = /** @class */ (function () {\n function MatChipsModule() {\n }\n MatChipsModule.decorators = [\n { type: core.NgModule, args: [{\n exports: CHIP_DECLARATIONS,\n declarations: CHIP_DECLARATIONS,\n providers: [\n core$1.ErrorStateMatcher,\n {\n provide: MAT_CHIPS_DEFAULT_OPTIONS,\n useValue: ɵ0\n }\n ]\n },] }\n ];\n return MatChipsModule;\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 exports.MAT_CHIPS_DEFAULT_OPTIONS = MAT_CHIPS_DEFAULT_OPTIONS;\n exports.MAT_CHIP_AVATAR = MAT_CHIP_AVATAR;\n exports.MAT_CHIP_REMOVE = MAT_CHIP_REMOVE;\n exports.MAT_CHIP_TRAILING_ICON = MAT_CHIP_TRAILING_ICON;\n exports.MatChip = MatChip;\n exports.MatChipAvatar = MatChipAvatar;\n exports.MatChipInput = MatChipInput;\n exports.MatChipList = MatChipList;\n exports.MatChipListChange = MatChipListChange;\n exports.MatChipRemove = MatChipRemove;\n exports.MatChipSelectionChange = MatChipSelectionChange;\n exports.MatChipTrailingIcon = MatChipTrailingIcon;\n exports.MatChipsModule = MatChipsModule;\n exports.ɵ0 = ɵ0;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-chips.umd.js.map\n"]}
@@ -12,7 +12,7 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function e(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(s,u)}a((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function a(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}
15
+ ***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function e(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(s,u)}a((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function a(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright Google LLC All Rights Reserved.