From a6553fc7f2d8bce0865cb24ee7b7ee468a16e830 Mon Sep 17 00:00:00 2001 From: optimistex Date: Mon, 30 Nov 2020 18:33:37 +0200 Subject: [PATCH] chore(release): 5.0.3 --- CHANGELOG.md | 2 ++ docs/index.html | 2 +- ...ain.8482a8ab96ac5851a587.js => main.411134cfb4315ed16406.js} | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) rename docs/{main.8482a8ab96ac5851a587.js => main.411134cfb4315ed16406.js} (88%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aa37e97..82ea6ec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [5.0.3](https://github.com/optimistex/ngx-select-ex/compare/v5.0.2...v5.0.3) (2020-11-30) + ### [5.0.2](https://github.com/optimistex/ngx-select-ex/compare/v5.0.1...v5.0.2) (2020-11-10) ### [5.0.1](https://github.com/optimistex/ngx-select-ex/compare/v4.0.0...v5.0.1) (2020-11-10) diff --git a/docs/index.html b/docs/index.html index 626b730b..2cf450aa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,5 +36,5 @@ Loading... - + diff --git a/docs/main.8482a8ab96ac5851a587.js b/docs/main.411134cfb4315ed16406.js similarity index 88% rename from docs/main.8482a8ab96ac5851a587.js rename to docs/main.411134cfb4315ed16406.js index b854d2fb..51ebe4b1 100644 --- a/docs/main.8482a8ab96ac5851a587.js +++ b/docs/main.411134cfb4315ed16406.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"70fE":function(e,t,n){"use strict";n.r(t),t.default='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},PmYy:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'no-autocomplete-demo',\n templateUrl: './no-autocomplete-demo.html',\n})\nexport class NoAutoCompleteDemoComponent {\n public _items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n constructor() {\n const a = [];\n for (let i = 1; i <= 20; i++) {\n this._items.forEach(v => a.push(i + ' ' + v));\n }\n this.items = a;\n }\n\n public items: string[] = [];\n public ngxValue: any = [];\n public ngxDisabled = false;\n}\n"},Tah6:function(e,t,n){"use strict";n.r(t),t.default='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},WySO:function(e,t,n){"use strict";n.r(t),t.default='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},XaGS:function(e,t,n){(function(e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",b=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[o]=x[m]=x[a]=x[_]=x[s]=x[u]=x[l]=x[c]=x[d]=x[h]=x[p]=x[v]=x[g]=x[y]=!1;var w="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,O=w||C||Function("return this")(),E=t&&!t.nodeType&&t,S=E&&"object"==typeof e&&e&&!e.nodeType&&e,T=S&&S.exports===E,A=T&&w.process,D=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),V=D&&D.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=2&n?new ye:void 0;for(o.set(e,t),o.set(t,e);++c-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(ne||ve),string:new pe}},ge.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Oe(this,e).get(e)},ge.prototype.has=function(e){return Oe(this,e).has(e)},ge.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Se=J?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=r}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Be=V?function(e){return function(t){return e(t)}}(V):function(e){return Pe(e)&&Ne(e.length)&&!!x[be(e)]};function He(e){return null!=(t=e)&&Ne(t.length)&&!Re(t)?function(e,t){var n=Me(e),r=!n&&Ie(e),i=!n&&!r&&Fe(e),o=!n&&!r&&!i&&Be(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n\n \n \n'},hnl7:function(e,t,n){"use strict";n.r(t),t.default="import { Component, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\nconst COLORS = [\n {name: 'Blue 10', hex: '#C0E6FF'},\n {name: 'Blue 20', hex: '#7CC7FF'},\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\n {name: 'Blue 40', hex: '#5596E6'},\n {name: 'Blue 50', hex: '#4178BE'},\n {name: 'Blue 60', hex: '#325C80'},\n {name: 'Blue 70', hex: '#264A60'},\n {name: 'Blue 80', hex: '#1D3649'},\n {name: 'Blue 90', hex: '#152935'},\n {name: 'Blue 100', hex: '#010205'},\n {name: 'Green 10', hex: '#C8F08F'},\n {name: 'Green 20', hex: '#B4E051'},\n {name: 'Green 30', hex: '#8CD211'},\n {name: 'Green 40', hex: '#5AA700'},\n {name: 'Green 50', hex: '#4B8400'},\n {name: 'Green 60', hex: '#2D660A'},\n {name: 'Green 70', hex: '#144D14'},\n {name: 'Green 80', hex: '#0A3C02'},\n {name: 'Green 90', hex: '#0C2808'},\n {name: 'Green 100', hex: '#010200'},\n {name: 'Red 10', hex: '#FFD2DD'},\n {name: 'Red 20', hex: '#FFA5B4'},\n {name: 'Red 30', hex: '#FF7D87'},\n {name: 'Red 40', hex: '#FF5050'},\n {name: 'Red 50', hex: '#E71D32'},\n {name: 'Red 60', hex: '#AD1625'},\n {name: 'Red 70', hex: '#8C101C'},\n {name: 'Red 80', hex: '#6E0A1E'},\n {name: 'Red 90', hex: '#4C0A17'},\n {name: 'Red 100', hex: '#040001'},\n {name: 'Yellow 10', hex: '#FDE876'},\n {name: 'Yellow 20', hex: '#FDD600'},\n {name: 'Yellow 30', hex: '#EFC100'},\n {name: 'Yellow 40', hex: '#BE9B00'},\n {name: 'Yellow 50', hex: '#8C7300'},\n {name: 'Yellow 60', hex: '#735F00'},\n {name: 'Yellow 70', hex: '#574A00'},\n {name: 'Yellow 80', hex: '#3C3200'},\n {name: 'Yellow 90', hex: '#281E00'},\n {name: 'Yellow 100', hex: '#020100'},\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n public style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},kiQV:function(e){e.exports=JSON.parse('{"name":"ngx-select-ex","version":"5.0.2","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test && npm run build.package && npm run build.demo && git add -A","build.demo":"ng build --prod","build.package":"ng-packagr -p ng-package.json","lint":"ng lint","lint:fix":"ng lint --fix","ng":"ng","precommit":"npm run test","release":"standard-version --commit-all","publish.ng4":"npm publish dist --tag ng4","publish.ng10":"npm publish dist","publish.ng10-dev":"npm publish dist --tag dev","start":"ng serve","test":"ng test --watch false","test-coverage":"ng test --watch false --code-coverage"},"standard-version":{"scripts":{"postbump":"npm run build"}},"keywords":["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","angular6","select","select2","ui-select","multiselect","multi-select"],"peerDependencies":{},"dependencies":{"lodash.isequal":"^4.5.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.1002.0","@angular/animations":"~10.2.3","@angular/cli":"~10.2.0","@angular/common":"~10.2.3","@angular/compiler":"~10.2.3","@angular/compiler-cli":"~10.2.3","@angular/core":"~10.2.3","@angular/forms":"~10.2.3","@angular/language-service":"~10.2.3","@angular/platform-browser":"~10.2.3","@angular/platform-browser-dynamic":"~10.2.3","@angular/router":"~10.2.3","@types/jasmine":"^3.6.1","@types/jasminewd2":"^2.0.8","@types/marked":"^1.1.0","@types/node":"^14.14.7","@types/webpack":"^4.41.24","codecov":"^3.8.1","codelyzer":"^6.0.1","escape-string-regexp":"^4.0.0","html-loader":"^1.3.2","husky":"^4.3.0","jasmine-core":"^3.6.0","jasmine-spec-reporter":"^6.0.0","karma":"^5.2.3","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","markdown-loader":"^6.0.0","ng-packagr":"^10.1.0","ngx-bootstrap":"^6.1.0","pre-commit":"^1.2.2","protractor":"~7.0.0","rxjs":"~6.6.3","standard-version":"^9.0.0","ts-node":"^9.0.0","tslib":"^2.0.3","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.0.5","zone.js":"^0.11.3"},"contributors":[{"name":"Konstantin Polyntsov","email":"optimistex@gmail.com","url":"https://github.com/optimistex"},{"name":"Vyacheslav Chub","email":"vyacheslav.chub@valor-software.com","url":"https://github.com/buchslava"},{"name":"Dmitriy Shekhovtsov","email":"valorkin@gmail.com","url":"https://github.com/valorkin"},{"name":"Oleksandr Telnov","email":"otelnov@gmail.com","url":"https://github.com/otelnov"}]}')},luUw:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html',\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},oxjq:function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},rVYP:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'children-demo',\n templateUrl: './children-demo.html',\n})\nexport class ChildrenDemoComponent {\n public items: any[] = [\n {\n id: 100,\n text: 'Austria',\n children: [\n {id: 54, text: 'Vienna'},\n ],\n },\n {\n id: 200,\n text: 'Belgium',\n children: [\n {id: 2, text: 'Antwerp'},\n {id: 9, text: 'Brussels'},\n ],\n },\n {\n id: 300,\n text: 'Bulgaria',\n children: [\n {id: 48, text: 'Sofia'},\n ],\n },\n {\n id: 400,\n text: 'Croatia',\n children: [\n {id: 58, text: 'Zagreb'},\n ],\n },\n {\n id: 500,\n text: 'Czech Republic',\n children: [\n {id: 42, text: 'Prague'},\n ],\n },\n {\n id: 600,\n text: 'Denmark',\n children: [\n {id: 13, text: 'Copenhagen'},\n ],\n },\n {\n id: 700,\n text: 'England',\n children: [\n {id: 6, text: 'Birmingham'},\n {id: 7, text: 'Bradford'},\n {id: 26, text: 'Leeds', disabled: true},\n {id: 30, text: 'London'},\n {id: 34, text: 'Manchester'},\n {id: 47, text: 'Sheffield'},\n ],\n },\n {\n id: 800,\n text: 'Finland',\n children: [\n {id: 25, text: 'Helsinki'},\n ],\n },\n {\n id: 900,\n text: 'France',\n children: [\n {id: 35, text: 'Marseille'},\n {id: 40, text: 'Paris'},\n ],\n },\n {\n id: 1000,\n text: 'Germany',\n children: [\n {id: 5, text: 'Berlin'},\n {id: 8, text: 'Bremen'},\n {id: 12, text: 'Cologne'},\n {id: 14, text: 'Dortmund'},\n {id: 15, text: 'Dresden'},\n {id: 17, text: 'D\xfcsseldorf'},\n {id: 18, text: 'Essen'},\n {id: 19, text: 'Frankfurt'},\n {id: 23, text: 'Hamburg'},\n {id: 24, text: 'Hannover'},\n {id: 27, text: 'Leipzig'},\n {id: 37, text: 'Munich'},\n {id: 50, text: 'Stuttgart'},\n ],\n },\n {\n id: 1100,\n text: 'Greece',\n children: [\n {id: 3, text: 'Athens'},\n ],\n },\n {\n id: 1200,\n text: 'Hungary',\n children: [\n {id: 11, text: 'Budapest'},\n ],\n },\n {\n id: 1300,\n text: 'Ireland',\n children: [\n {id: 16, text: 'Dublin'},\n ],\n },\n {\n id: 1400,\n text: 'Italy',\n children: [\n {id: 20, text: 'Genoa'},\n {id: 36, text: 'Milan'},\n {id: 38, text: 'Naples'},\n {id: 39, text: 'Palermo'},\n {id: 44, text: 'Rome'},\n {id: 52, text: 'Turin'},\n ],\n },\n {\n id: 1500,\n text: 'Latvia',\n children: [\n {id: 43, text: 'Riga'},\n ],\n },\n {\n id: 1600,\n text: 'Lithuania',\n children: [\n {id: 55, text: 'Vilnius'},\n ],\n },\n {\n id: 1700,\n text: 'Netherlands',\n children: [\n {id: 1, text: 'Amsterdam'},\n {id: 45, text: 'Rotterdam'},\n {id: 51, text: 'The Hague'},\n ],\n },\n {\n id: 1800,\n text: 'Poland',\n children: [\n {id: 29, text: '\u0141\xf3d\u017a'},\n {id: 31, text: 'Krak\xf3w'},\n {id: 41, text: 'Pozna\u0144'},\n {id: 56, text: 'Warsaw'},\n {id: 57, text: 'Wroc\u0142aw'},\n ],\n },\n {\n id: 1900,\n text: 'Portugal',\n children: [\n {id: 28, text: 'Lisbon'},\n ],\n },\n {\n id: 2000,\n text: 'Romania',\n children: [\n {id: 10, text: 'Bucharest'},\n ],\n },\n {\n id: 2100,\n text: 'Scotland',\n children: [\n {id: 21, text: 'Glasgow'},\n ],\n },\n {\n id: 2200,\n text: 'Spain',\n children: [\n {id: 4, text: 'Barcelona'},\n {id: 32, text: 'Madrid'},\n {id: 33, text: 'M\xe1laga'},\n {id: 46, text: 'Seville'},\n {id: 53, text: 'Valencia'},\n {id: 59, text: 'Zaragoza'},\n ],\n },\n {\n id: 2300,\n text: 'Sweden',\n children: [\n {id: 22, text: 'Gothenburg'},\n {id: 49, text: 'Stockholm'},\n ],\n },\n ];\n\n public ngxValue: any[] = [];\n public ngxDisabled = false;\n}\n"},yO7Q:function(e,t,n){"use strict";n.r(t),t.default='

Select a color

\n
\n
\n \n\n \n \n \n ({{option.data.hex}})\n \n\n \n "{{input}}" not found\n \n\n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},zUnb:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?o(e):t}function v(e){var t=h();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(ie((function(n,r){return te(e(n,r)).pipe(G((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new oe(e,n))})}var oe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ae(e,this.project,this.concurrent))}}]),e}(),ae=function(e){d(n,e);var t=v(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return m(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(re);function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ie(F,e)}function ue(e,t){return t?ee(e,t):new j(Q(e))}function le(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===t&&1===r.length&&r[0]instanceof j?r[0]:se(e)(ue(r,t))}function ce(){return function(e){return e.lift(new de(e))}}var de=function(){function e(t){g(this,e),this.connectable=t}return m(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new he(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),he=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(V),fe=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return m(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new C).add(this.source.subscribe(new ve(this.getSubject(),this))),e.closed&&(this._connection=null,e=C.EMPTY)),e}},{key:"refCount",value:function(){return ce()(this)}}]),n}(j),pe=function(){var e=fe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ve=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_error",value:function(e){this._unsubscribe(),i(r(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(r(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(L);function ge(){return new z}function ye(){return function(e){return ce()((t=ge,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,pe);return r.source=e,r.subjectFactory=n,r})(e));var t}}function me(e){return{toString:e}.toString()}var _e="__parameters__";function be(e,t,n){return me((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Oe.Default;if(void 0===lt)throw new Error("inject() must be called from an injection context");return null===lt?pt(e,void 0,t):lt.get(e,t&Oe.Optional?null:void 0,t)}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.Default;return(nt||ht)(ze(e),t)}function pt(e,t,n){var r=De(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Oe.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Pe(e),"]"))}function vt(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:ot;if(t===ot){var n=new Error("NullInjectorError: No provider for ".concat(Pe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function yt(e,t,n,r){var i=e.ngTempTokenPath;throw t[st]&&i.unshift(t[st]),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Pe(t);if(Array.isArray(t))i=t.map(Pe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pe(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(at,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var mt=function e(){g(this,e)},_t=function e(){g(this,e)};function bt(e,t){e.forEach((function(e){return Array.isArray(e)?bt(e,t):t(e)}))}function kt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Ot(e,t){var n=Et(e,t);if(n>=0)return e[1|n]}function Et(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var St=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Tt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),At={},Dt=[],Vt=0;function It(e){return me((function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Dt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Tt.Emulated,id:"c",styles:e.styles||Dt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Vt++,n.inputs=jt(e.inputs,t),n.outputs=jt(e.outputs),i&&i.forEach((function(e){return e(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(Mt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Ft)}:null,n}))}function Mt(e){return Ht(e)||function(e){return e[Ye]||null}(e)}function Ft(e){return function(e){return e[Ke]||null}(e)}var Rt={};function Nt(e){var t={type:e.type,bootstrap:e.bootstrap||Dt,declarations:e.declarations||Dt,imports:e.imports||Dt,exports:e.exports||Dt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me((function(){Rt[e.id]=e.type})),t}function jt(e,t){if(null==e)return At;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Pt=It;function Bt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[$e]||null}function Lt(e,t){return e.hasOwnProperty(et)?e[et]:null}function zt(e,t){var n=e[Je]||null;if(!n&&!0===t)throw new Error("Type ".concat(Pe(e)," does not have '\u0275mod' property."));return n}var qt=20,Ut=10;function Gt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Wt(e){return Array.isArray(e)&&!0===e[1]}function Zt(e){return 0!=(8&e.flags)}function Qt(e){return 2==(2&e.flags)}function $t(e){return 1==(1&e.flags)}function Yt(e){return null!==e.template}function Kt(e){return 0!=(512&e[2])}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}var en=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Qe)}();function tn(e){return{name:"document",target:e.ownerDocument}}function nn(e){return e instanceof Function?e():e}function rn(e,t){var n=t?" in ".concat(t):"";throw new Error("No provider for ".concat(Xt(e)," found").concat(n))}var on=function(){function e(t,n,r){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return m(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function an(){return sn}function sn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ln),un}function un(){var e=cn(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===At)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ln(e,t,n,r){var i=cn(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:At,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new on(u&&u.currentValue,t,a===At),e[r]=t}function cn(e){return e.__ngSimpleChanges__||null}an.ngInherit=!0;var dn=void 0;function hn(){return void 0!==dn?dn:"undefined"!=typeof document?document:void 0}function fn(e){return!!e.listen}var pn={createRenderer:function(e,t){return hn()}};function vn(e){for(;Array.isArray(e);)e=e[0];return e}function gn(e,t){return vn(t[e+qt])}function yn(e,t){return vn(t[e.index])}function mn(e,t){return e.data[t+qt]}function _n(e,t){return e[t+qt]}function bn(e,t){var n=t[e];return Gt(n)?n:n[0]}function kn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function xn(e){return 4==(4&e[2])}function wn(e){return 128==(128&e[2])}function Cn(e,t){return null===e||null==t?null:e[t]}function On(e){e[18]=0}function En(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Sn={lFrame:Qn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tn(){return Sn.bindingsEnabled}function An(){return Sn.lFrame.lView}function Dn(){return Sn.lFrame.tView}function Vn(e){Sn.lFrame.contextLView=e}function In(){return Sn.lFrame.currentTNode}function Mn(e,t){Sn.lFrame.currentTNode=e,Sn.lFrame.isParent=t}function Fn(){return Sn.lFrame.isParent}function Rn(){Sn.lFrame.isParent=!1}function Nn(){return Sn.isInCheckNoChangesMode}function jn(e){Sn.isInCheckNoChangesMode=e}function Pn(){var e=Sn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Bn(){return Sn.lFrame.bindingIndex++}function Hn(e){var t=Sn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ln(e,t){var n=Sn.lFrame;n.bindingIndex=n.bindingRootIndex=e,zn(t)}function zn(e){Sn.lFrame.currentDirectiveIndex=e}function qn(){return Sn.lFrame.currentQueryIndex}function Un(e){Sn.lFrame.currentQueryIndex=e}function Gn(e,t){var n=Zn();Sn.lFrame=n,n.currentTNode=t,n.lView=e}function Wn(e){var t=Zn(),n=e[1];Sn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex}function Zn(){var e=Sn.lFrame,t=null===e?null:e.child;return null===t?Qn(e):t}function Qn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function $n(){var e=Sn.lFrame;return Sn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yn=$n;function Kn(){var e=$n();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jn(e){return(Sn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Sn.lFrame.contextLView))[8]}function Xn(){return Sn.lFrame.selectedIndex}function er(e){Sn.lFrame.selectedIndex=e}function tr(){var e=Sn.lFrame;return mn(e.tView,e.selectedIndex)}function nr(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var ur=-1,lr=function e(t,n,r){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function cr(e,t,n){for(var r=fn(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var yr=!0;function mr(e){var t=yr;return yr=e,t}var _r=0;function br(e,t){var n=xr(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,kr(r.data,e),kr(t,null),kr(r.blueprint,null));var i=wr(e,t),o=e.injectorIndex;if(pr(i))for(var a=vr(i),s=gr(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function kr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function wr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return ur;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ur}function Cr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(tt)&&(r=n[tt]),null==r&&(r=n[tt]=_r++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:Oe.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=Dr(n);if("function"==typeof o){Gn(t,e);try{var a=o();if(null!=a||r&Oe.Optional)return a;rn(n)}finally{Yn()}}else if("number"==typeof o){if(-1===o)return new Mr(e,t);var s=null,u=xr(e,t),l=ur,c=r&Oe.Host?t[16][6]:null;for((-1===u||r&Oe.SkipSelf)&&((l=-1===u?wr(e,t):t[u+8])!==ur&&Ir(r,!1)?(s=t[1],u=vr(l),t=gr(l,t)):u=-1);-1!==u;){var d=t[1];if(Vr(o,u,d.data)){var h=Sr(u,t,n,s,r,c);if(h!==Er)return h}(l=t[u+8])!==ur&&Ir(r,t[1].data[u+8]===c)&&Vr(o,u,t)?(s=d,u=vr(l),t=gr(l,t)):u=-1}}}if(r&Oe.Optional&&void 0===i&&(i=null),0==(r&(Oe.Self|Oe.Host))){var f=t[9],p=dt(void 0);try{return f?f.get(n,i,r&Oe.Optional):pt(n,i,r&Oe.Optional)}finally{dt(p)}}if(r&Oe.Optional)return i;rn(n,"NodeInjector")}var Er={};function Sr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=Tr(s,a,n,null==r?Qt(s)&&yr:r!=a&&2===s.type,i&Oe.Host&&o===s);return null!==u?Ar(t,a,u,s):Er}function Tr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,d=r?s:s+l;d=u&&h.type===n)return d}if(i){var f=a[u];if(f&&Yt(f)&&f.type===n)return u}return null}function Ar(e,t,n,r){var i=e[n],o=t.data;if(i instanceof lr){var a=i;a.resolving&&function(e,t){throw new Error("Circular dependency in DI detected for ".concat(e).concat(""))}(Xt(o[n]));var s=mr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?dt(a.injectImpl):null;Gn(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=sn(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&dt(u),mr(s),a.resolving=!1,Yn()}}return i}function Dr(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(tt)?e[tt]:void 0;return"number"==typeof t&&t>0?255&t:t}function Vr(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(mi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function mi(e){return e.replace(/&/g,"&").replace(gi,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(yi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function _i(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Jr:new Xr(e)}(e);var r=t?String(t):"";n=oi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=oi.getInertBodyElement(r)}while(r!==o);var a=new vi,s=a.sanitizeChildren(bi(n)||n);return Kr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=bi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function bi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ki=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function xi(e){var t,n=(t=An())&&t[12];return n?n.sanitize(ki.HTML,e)||"":Zr(e,"HTML")?Wr(e):_i(hn(),Jt(e))}function wi(e,t){e.__ngContext__=t}function Ci(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Oi="ng-template";function Ei(e,t,n){for(var r=0;ro?"":i[c+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==Ci(h,l,0)||2&r&&l!==d){if(Di(r))return!1;a=!0}}}}else{if(!a&&!Di(r)&&!Di(u))return!1;if(a&&Di(u))continue;a=!1,r=u|1&r}}return Di(r)||a}function Di(e){return 0==(1&e)}function Vi(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Di(a)||(t+=Fi(o,i),i=""),r=a,o=o||!Di(r);n++}return""!==i&&(t+=Fi(o,i)),t}var Ni={};function ji(e){var t=e[3];return Wt(t)?t[3]:t}function Pi(e){return Hi(e[13])}function Bi(e){return Hi(e[4])}function Hi(e){for(;null!==e&&!Wt(e);)e=e[4];return e}function Li(e){zi(Dn(),An(),Xn()+e,Nn())}function zi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&rr(t,i,n)}else{var o=e.preOrderHooks;null!==o&&ir(t,o,0,n)}er(n)}function qi(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function Gi(e){return 2|e}function Wi(e){return(131068&e)>>2}function Zi(e,t){return-131069&e|t<<2}function Qi(e){return 1|e}function $i(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;rqt&&zi(e,t,0,Nn()),n(r,i)}finally{er(o)}}function ro(e,t,n){if(Zt(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:yn,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&function e(t){for(var n=Pi(t);null!==n;n=Bi(n))for(var r=Ut;r0&&e(i)}var a=t[1].components;if(null!==a)for(var s=0;s0&&e(u)}}(n)}}function Oo(e,t){var n=bn(t,e),r=n[1];!function(e,t){for(var n=t.length;n0&&(e[r-1][4]=i[4]);var a=xt(e,Ut+t);$o(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Bo(e,t){if(!(256&t[2])){var n=t[11];fn(n)&&n.destroyNode&&$o(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ho(e[1],e);for(;t;){var n=null;if(Gt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Gt(t)&&Ho(t[1],t),t=t[3];null===t&&(t=e),Gt(t)&&Ho(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ho(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&fn(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Wt(t[3])){n!==t[3]&&jo(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Lo(e,t,n){for(var r=t.parent;null!=r&&(3===r.type||4===r.type);)r=(t=r).parent;if(null===r)return n[0];if(t&&4===t.type&&4&t.flags)return yn(t,n).parentNode;if(2&r.flags){var i=e.data,o=i[i[r.index].directiveStart].encapsulation;if(o!==Tt.ShadowDom&&o!==Tt.Native)return null}return yn(r,n)}function zo(e,t,n,r){fn(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function qo(e,t,n){fn(e)?e.appendChild(t,n):t.appendChild(n)}function Uo(e,t,n,r){null!==r?zo(e,t,n,r):qo(e,t,n)}function Go(e,t){return fn(e)?e.parentNode(t):t.parentNode}function Wo(e,t){return 3===e.type||4===e.type?yn(e,t):null}function Zo(e,t,n,r){var i=Lo(e,r,t);if(null!=i){var o=t[11],a=Wo(r.parent||t[6],t);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Bo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){uo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){So(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){To(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){jn(!0);try{To(e,t,n)}finally{jn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,$o(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(vn(a)),Wt(a))for(var s=Ut;s0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(mt,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Wt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new na(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=Ut+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return oa(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Mr(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=wr(this._hostTNode,this._hostView);if(pr(e)){var t=gr(e,this._hostView),n=vr(e);return new Mr(t[1].data[n+8],t)}return new Mr(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Ut}}]),r}(e));var o=r[n.index];if(Wt(o))i=o;else{var a;if(3===n.type)a=vn(o);else if(a=r[11].createComment(""),Kt(r)){var s=r[11],u=yn(n,r);zo(s,Go(s,u),a,function(e,t){return fn(e)?e.nextSibling(t):t.nextSibling}(s,u))}else Zo(r[1],r,a,n);r[n.index]=i=wo(o,r,a,n),Eo(r,i)}return new na(i,n,r)}function ua(e,t,n){if(!n&&Qt(e)){var r=bn(e.index,t);return new ra(r,r)}return 2===e.type||0===e.type||3===e.type||4===e.type?new ra(t[16],t):null}var la=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=function(){return ca()},e}(),ca=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ua(In(),An(),e)},da=new rt("Set Injector scope."),ha={},fa={},pa=[],va=void 0;function ga(){return void 0===va&&(va=new gt),va}function ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ma(e,n,t||ga(),r)}var ma=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&bt(n,(function(e){return i.processProvider(e,t,n)})),bt([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(it,ka(void 0,this));var s=this.records.get(da);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Pe(t))}return m(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.Default;this.assertNotDestroyed();var r=ct(this);try{if(!(n&Oe.SkipSelf)){var i=this.records.get(e);if(void 0===i){var o=Ca(e)&&De(e);i=o&&this.injectableDefInScope(o)?ka(_a(e),ha):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var a=n&Oe.Self?ga():this.parent;return a.get(e,t=n&Oe.Optional&&t===ot?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(Pe(e)),r)throw u;return yt(u,e,"R3InjectorError",this.source)}throw u}finally{ct(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(Pe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=ze(e)))return!1;var i=Ie(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Ie(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{bt(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;bt(i,(function(e){return r.processProvider(e,n,i||pa)}))},c=0;c0){var n=wt(t,"?");throw new Error("Can't resolve all parameters for ".concat(Pe(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Me]||e[Ne]||e[Re]&&e[Re]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ba(e,t,n){var r,i=void 0;if(wa(e)){var o=ze(e);return Lt(o)||_a(o)}if(xa(e))i=function(){return ze(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,u(vt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return ft(ze(e.useExisting))};else{var a=ze(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Lt(a)||_a(a);i=function(){return _(a,u(vt(e.deps)))}}return i}function ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function xa(e){return null!==e&&"object"==typeof e&&ut in e}function wa(e){return"function"==typeof e}function Ca(e){return"function"==typeof e||"object"==typeof e&&e instanceof rt}var Oa=function(e,t,n){return function(e){var t=ya(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ea=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Oa(e,t,""):Oa(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=ot,e.NULL=new gt,e.\u0275prov=Te({token:e,providedIn:"any",factory:function(){return ft(it)}}),e.__NG_ELEMENT_ID__=-1,e}();function Sa(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var a=0;a=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=hr(i.hostAttrs,n=hr(n,i.hostAttrs))}}(r)}function Da(e){return e===At?{}:e===Dt?[]:e}function Va(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Ma(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Fa=null;function Ra(){if(!Fa){var e=Qe.Symbol;if(e&&e.iterator)Fa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Oe.Default,n=An();if(null===n)return ft(e,t);var r=In();return Or(r,n,ze(e),t)}function Wa(e,t,n){var r=An();return Ha(r,Bn(),t)&&function(e,t,n,r,i,o,a,s){var u,l,c=yn(t,n),d=t.inputs;null!=d&&(u=d[r])?(Fo(e,n,u,r,i),Qt(t)&&function(e,t){var n=bn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):2===t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=a?a(i,t.tagName||"",r):i,fn(o)?o.setProperty(c,r,i):dr(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(Dn(),tr(),r,e,t,r[11],n),Wa}function Za(e,t,n,r,i){var o=i?"class":"style";Fo(e,n,t.inputs[o],o,r)}function Qa(e,t,n,r){var i=An(),o=Dn(),a=qt+e,s=i[11],u=i[a]=Yi(t,s,Sn.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=Ji(t,e,2,i,Cn(s,o));return co(t,n,u,Cn(s,a)),null!==u.attrs&&Sa(u,u.attrs,!1),null!==u.mergedAttrs&&Sa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(e,o,i,0,t,n,r):o.data[a];Mn(l,!0);var c=l.mergedAttrs;null!==c&&cr(s,u,c);var d=l.classes;null!==d&&Xo(s,u,d);var h=l.styles;null!==h&&Jo(s,u,h),Zo(o,i,u,l),0===Sn.lFrame.elementDepthCount&&wi(u,i),Sn.lFrame.elementDepthCount++,$t(l)&&(io(o,i,l),ro(o,l,i)),null!==r&&oo(i,l)}function $a(){var e=In();Fn()?Rn():Mn(e=e.parent,!1);var t=e;Sn.lFrame.elementDepthCount--;var n=Dn();n.firstCreatePass&&(nr(n,e),Zt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Za(n,t,An(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Za(n,t,An(),t.stylesWithoutHost,!1)}function Ya(e,t,n,r){Qa(e,t,n,r),$a()}function Ka(e,t,n){var r,i;(function(e,t,n){var r=An(),i=Dn(),o=e+qt,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=Cn(o,r),s=Ji(t,e,3,"ng-container",a);return null!==a&&Sa(s,a,!0),co(t,n,s,Cn(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,i,r,t,n):i.data[o];Mn(a,!0);var s=r[o]=r[11].createComment("");Zo(i,r,s,a),wi(s,r),$t(a)&&(io(i,r,a),ro(i,a,r)),null!=n&&oo(r,a)})(e,t,n),r=In(),i=Dn(),Fn()?Rn():Mn(r=r.parent,!1),i.firstCreatePass&&(nr(i,r),Zt(r)&&i.queries.elementEnd(r))}function Ja(){return An()}function Xa(e){return!!e&&"function"==typeof e.then}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=An(),o=Dn(),a=In();return ns(o,i,i[11],a,e,t,n,r),es}function ts(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}function ns(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=$t(r),l=e.firstCreatePass,c=l&&(e.cleanup||(e.cleanup=[])),d=Io(t),h=!0;if(2===r.type){var f=yn(r,t),p=s?s(f):At,v=p.target||f,g=d.length,y=s?function(e){return s(vn(e[r.index])).target}:r.index;if(fn(n)){var m=null;if(!s&&u&&(m=ts(e,t,i,r.index)),null!==m){var _=m.__ngLastListenerFn__||m;_.__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1}else{o=is(r,t,o,!1);var b=n.listen(p.name||v,i,o);d.push(o,b),c&&c.push(i,y,g,g+1)}}else o=is(r,t,o,!0),v.addEventListener(i,o,a),d.push(o),c&&c.push(i,y,g,a)}var k,x=r.outputs;if(h&&null!==x&&(k=x[i])){var w=k.length;if(w)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return Jn(e)}function as(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=An(),i=Dn(),o=Ji(i,e,1,null,n||null);null===o.projection&&(o.projection=t),Rn(),Yo(i,r,o)}var ls=[];function cs(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?Ui(o):Wi(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];ds(e[s],t)&&(u=!0,e[s+1]=r?Qi(l):Gi(l)),s=r?Ui(l):Wi(l)}u&&(e[n+1]=r?Gi(o):Qi(o))}function ds(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Et(e,t)>=0}var hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fs(e){return e.substring(hs.key,hs.keyEnd)}function ps(e){return e.substring(hs.value,hs.valueEnd)}function vs(e,t){var n=hs.textEnd,r=hs.key=gs(e,t,n);return n===r?-1:(r=hs.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=ys(e,r,n),r=hs.value=gs(e,r,n),r=hs.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,s=a;a32&&(s=a),o=i,i=r,r=-33&u}return s}(e,r,n),ys(e,r,n))}function gs(e,t,n){for(;t=0;n=vs(t,n))Os(e,fs(t),ps(t))}function ks(e,t){return t>=e.expandoStartIndex}function xs(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Xn()+qt],a=ks(e,n);As(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Sn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Cs(n=ws(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ws(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Wi(r))return e[Ui(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[Ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Cs(s=ws(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0):l=n,i)if(0!==u){var d=Ui(e[s+1]);e[r+1]=qi(d,s),0!==d&&(e[d+1]=Zi(e[d+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=qi(s,0),0!==s&&(e[s+1]=Zi(e[s+1],r)),s=r;else e[r+1]=qi(u,0),0===s?s=r:e[u+1]=Zi(e[u+1],r),u=r;c&&(e[r+1]=Gi(e[r+1])),cs(e,l,r,!0),cs(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Et(o,t)>=0&&(n[r+1]=Qi(n[r+1]))}(t,l,e,r,o),a=qi(s,u),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ws(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[i+1];h===Ni&&(h=d?ls:void 0);var f=d?Ot(h,r):c===r?h:void 0;if(l&&!Ts(f)&&(f=Ot(u,r)),Ts(f)&&(s=f,a))return s;var p=e[i+1];i=a?Ui(p):Wi(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=Ot(v,r))}return s}function Ts(e){return void 0!==e}function As(e,t){return 0!=(e.flags&(t?16:32))}function Ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=An(),r=Dn(),i=e+qt,o=r.firstCreatePass?Ji(r,e,2,null,null):r.data[i],a=n[i]=No(t,n[11]);Zo(r,n,a,o),Mn(o,!1)}function Vs(e){return Is("",e,""),Vs}function Is(e,t,n){var r=An(),i=function(e,t,n,r){return Ha(e,Bn(),n)?t+Jt(n)+r:Ni}(r,e,t,n);return i!==Ni&&function(e,t,n){var r=gn(t,e),i=e[11];fn(i)?i.setValue(r,n):r.textContent=n}(r,Xn(),i),Is}var Ms=void 0,Fs=["en",[["a","p"],["AM","PM"],Ms],[["AM","PM"],Ms,Ms],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ms,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ms,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ms,"{1} 'at' {0}",Ms],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Rs={};function Ns(e){return e in Rs||(Rs[e]=Qe.ng&&Qe.ng.common&&Qe.ng.common.locales&&Qe.ng.common.locales[e]),Rs[e]}var js=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ps="en-US";function Bs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Hs(e,t,n){var r=Dn();if(r.firstCreatePass){var i=Yt(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=ze(e),Array.isArray(e))for(var o=0;o>20;if(wa(e)||!e.multi){var p=new lr(l,i,Ga),v=Us(u,t,i?d:d+f,h);-1===v?(Cr(br(c,s),a,u),zs(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Us(u,t,d+f,h),y=Us(u,t,d,d+f),m=y>=0&&n[y];if(i&&!m||!i&&!(g>=0&&n[g])){Cr(br(c,s),a,u);var _=function(e,t,n,r,i){var o=new lr(e,n,Ga);return o.multi=[],o.index=t,o.componentProviders=0,qs(o,i,r&&!n),o}(i?Ws:Gs,n.length,i,r,l);!i&&m&&(n[y].providerFactory=_),zs(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else zs(a,e,g>-1?g:y,qs(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function zs(e,t,n,r){var i=wa(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function qs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Us(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Hs(n,r?r(e):e,t)}}}var $s=function e(){g(this,e)},Ys=function e(){g(this,e)},Ks=function(){function e(){g(this,e)}return m(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Js=function(){var e=function e(){g(this,e)};return e.NULL=new Ks,e}(),Xs=function(){var e=function e(t){g(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return eu(e)},e}(),eu=function(e){return oa(e,In(),An())},tu=function e(){g(this,e)},nu=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),ru=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=function(){return iu()},e}(),iu=function(){var e=An(),t=bn(In().index,e);return function(e){var t=e[11];if(fn(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Gt(t)?t:e)},ou=function(){var e=function e(){g(this,e)};return e.\u0275prov=Te({token:e,providedIn:"root",factory:function(){return null}}),e}(),au=new function e(t){g(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.2.3"),su=function(){function e(){g(this,e)}return m(e,[{key:"supports",value:function(e){return ja(e)}},{key:"create",value:function(e){return new lu(e)}}]),e}(),uu=function(e,t){return t},lu=function(){function e(t){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||uu}return m(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&Xo(l,d,_.join(" "))}if(o=mn(p,0),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ea.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.Default;return e===Ea||e===mt||e===it?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(mt),Fu=function(e){d(n,e);var t=v(n);function n(e){var r,i,o;return g(this,n),(r=t.call(this)).moduleType=e,null!==zt(e)&&(i=e,o=new Set,function e(t){var n=zt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Pe(t)," vs ").concat(Pe(t.name)))}(r,Iu.get(r),t),Iu.set(r,t));var i,a=l(nn(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(i)),r}return m(n,[{key:"create",value:function(e){return new Mu(this.moduleType,e)}}]),n}(_t);function Ru(e,t,n,r){return Pu(An(),Pn(),e,t,n,r)}function Nu(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return La(e,s,i,o)?Ba(e,s+2,a?r.call(a,i,o):r(i,o)):ju(e,s+2)}(An(),Pn(),e,t,n,r,i)}function ju(e,t){var n=e[t];return n===Ni?void 0:n}function Pu(e,t,n,r,i,o){var a=t+n;return Ha(e,a,i)?Ba(e,a+1,o?r.call(o,i):r(i)):ju(e,a+1)}function Bu(e,t){var n,r=Dn(),i=e+qt;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Lt(n.type)),a=dt(Ga);try{var s=mr(!1),u=o();return mr(s),function(e,t,n,r){var i=n+qt;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,An(),e,u),u}finally{dt(a)}}function Hu(e,t,n){var r=An(),i=_n(r,e);return function(e,t){return Na.isWrapped(t)&&(t=Na.unwrap(t),e[Sn.lFrame.bindingIndex]=Ni),t}(r,function(e,t){return e[1].data[t+qt].pure}(r,e)?Pu(r,Pn(),t,i.transform,n,i):i.transform(n))}var Lu=function(e){d(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,n),(e=t.call(this)).__isAsync=r,e}return m(n,[{key:"emit",value:function(e){i(r(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout((function(){return o()}))}:function(){o()}));var l=i(r(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof C&&e.add(l),l}}]),n}(z);function zu(){return this._results[Ra()]()}var qu=function(){function e(){g(this,e),this.dirty=!0,this._results=[],this.changes=new Lu,this.length=0;var t=Ra(),n=e.prototype;n[t]||(n[t]=zu)}return m(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Zu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&3===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)i.push(s[u/2]);else{for(var c=a[u+1],d=n[-l],h=Ut;h0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Al))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Bl=function(){var e=function(){function e(){g(this,e),this._applications=new Map,Hl.addToWindow(this)}return m(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Hl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Hl=new(function(){function e(){g(this,e)}return m(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ll=function(e,t,n){var r=new Fu(n);return Promise.resolve(r)},zl=new rt("AllowMultipleToken");function ql(e){if(Nl&&!Nl.destroyed&&!Nl.injector.get(zl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nl=e.get(Zl);var t=e.get(fl,null);return t&&t.forEach((function(e){return e()})),Nl}function Ul(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new rt(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Wl();if(!o||o.injector.get(zl,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:da,useValue:"platform"});ql(Ea.create({providers:a,name:r}))}return Gl(i)}}function Gl(e){var t=Wl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Wl(){return Nl&&!Nl.destroyed?Nl:null}var Zl=function(){var e=function(){function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(r=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new jl:("zone.js"===n?void 0:n)||new Al({enableLongStackTrace:Kr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Al,useValue:o}];return o.run((function(){var t=Ea.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Br,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Yl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(ll)).runInitializers(),a.donePromise.then((function(){return Bs(n.injector.get(yl,Ps)||Ps),i._moduleDoBootstrap(n),n})));return Xa(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ql({},n);return Ll(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get($l);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Ea))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function Ql(e,t){return Array.isArray(t)?t.reduce(Ql,e):Object.assign(Object.assign({},e),t)}var $l=function(){var e=function(){function e(t,n,r,i,o,a){var s=this;g(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Kr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new j((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new j((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Al.assertNotInAngularZone(),Tl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Al.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=le(u,l.pipe(ye()))}return m(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ys?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(mt),o=n.create(Ea.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Pl,null);return a&&o.injector.get(Bl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Kr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=l(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=l(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Yl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vl,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Yl(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Al),ft(gl),ft(Ea),ft(Br),ft(Js),ft(ll))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function Yl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Kl=Ul(null,"core",[{provide:pl,useValue:"unknown"},{provide:Zl,deps:[Ea]},{provide:Bl,deps:[]},{provide:gl,deps:[]}]),Jl=[{provide:$l,useClass:$l,deps:[Al,gl,Ea,Br,Js,ll]},{provide:Au,deps:[Al],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ll,useClass:ll,deps:[[new xe,ul]]},{provide:El,useClass:El,deps:[]},dl,{provide:yu,useFactory:function(){return bu},deps:[]},{provide:mu,useFactory:function(){return ku},deps:[]},{provide:yl,useFactory:function(e){return Bs(e=e||"undefined"!=typeof $localize&&$localize.locale||Ps),e},deps:[[new ke(yl),new xe,new Ce]]},{provide:ml,useValue:"USD"}],Xl=function(){var e=function e(t){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)(ft($l))},providers:Jl}),e}(),ec=null;function tc(){return ec}var nc=function e(){g(this,e)},rc=new rt("DocumentToken"),ic=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),oc=function e(){g(this,e)},ac=function(){var e=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this)).locale=e,r}return m(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ns(t);if(n)return n;var r=t.split("-")[0];if(n=Ns(r))return n;if("en"===r)return Fs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[js.PluralCase]}(t||this.locale)(e)){case ic.Zero:return"zero";case ic.One:return"one";case ic.Two:return"two";case ic.Few:return"few";case ic.Many:return"many";default:return"other"}}}]),n}(oc);return e.\u0275fac=function(t){return new(t||e)(ft(yl))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),sc=function(){var e=function(){function e(t,n,r,i){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return m(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Pe(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ja(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(yu),Ga(mu),Ga(Xs),Ga(ru))},e.\u0275dir=Pt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),uc=function(){function e(t,n,r,i){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return m(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),lc=function(){var e=function(){function e(t,n,r){g(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new uc(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new cc(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new cc(e,s);n.push(u)}}));for(var r=0;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Qe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Qe.getAllAngularRootElements=function(){return e.getAllRootElements()},Qe.frameworkStabilizers||(Qe.frameworkStabilizers=[]),Qe.frameworkStabilizers.push((function(e){var t=Qe.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?tc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Hl=t}}]),e}(),wc=new rt("EventManagerPlugins"),Cc=function(){var e=function(){function e(t,n){var r=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return m(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&zc.hasOwnProperty(t)&&(t=zc[t]))}return Lc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Hc.forEach((function(r){r!=n&&(0,qc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Oc);return e.\u0275fac=function(t){return new(t||e)(ft(rc))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Gc=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return ft(Wc)},token:e,providedIn:"root"}),e}(),Wc=function(){var e=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this))._doc=e,r}return m(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case ki.NONE:return t;case ki.HTML:return Zr(t,"HTML")?Wr(t):_i(this._doc,String(t));case ki.STYLE:return Zr(t,"Style")?Wr(t):t;case ki.SCRIPT:if(Zr(t,"Script"))return Wr(t);throw new Error("unsafe value used in a script context");case ki.URL:return Qr(t),Zr(t,"URL")?Wr(t):ni(String(t));case ki.RESOURCE_URL:if(Zr(t,"ResourceURL"))return Wr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Lr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new zr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new qr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Ur(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Gr(e)}}]),n}(Gc);return e.\u0275fac=function(t){return new(t||e)(ft(rc))},e.\u0275prov=Te({factory:function(){return e=ft(it),new Wc(e.get(rc));var e},token:e,providedIn:"root"}),e}(),Zc=Ul(Kl,"browser",[{provide:pl,useValue:"browser"},{provide:fl,useValue:function(){mc.makeCurrent(),xc.init()},multi:!0},{provide:rc,useFactory:function(){return function(e){dn=e}(document),document},deps:[]}]),Qc=[[],{provide:da,useValue:"root"},{provide:Br,useFactory:function(){return new Br},deps:[]},{provide:wc,useClass:Bc,multi:!0,deps:[rc,Al,pl]},{provide:wc,useClass:Uc,multi:!0,deps:[rc]},[],{provide:Rc,useClass:Rc,deps:[Cc,Sc,cl]},{provide:tu,useExisting:Rc},{provide:Ec,useExisting:Sc},{provide:Sc,useClass:Sc,deps:[rc]},{provide:Pl,useClass:Pl,deps:[Al]},{provide:Cc,useClass:Cc,deps:[wc,Al]},[]],$c=function(){var e=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:cl,useValue:t.appId},{provide:bc,useExisting:cl},kc]}}}]),e}();return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)(ft(e,12))},providers:Qc,imports:[yc,Xl]}),e}();function Yc(e,t){if(1&e){var n=Ja();Qa(0,"span",7),es("click",(function(e){Vn(n);var t=os().$implicit,r=os();return e.preventDefault(),r.removeTab(t)})),Ds(1," \u274c"),$a()}}"undefined"!=typeof window&&window;var Kc=function(e){return["nav-item",e]};function Jc(e,t){if(1&e){var n=Ja();Qa(0,"li",3),es("keydown",(function(e){Vn(n);var r=t.index;return os().keyNavActions(e,r)})),Qa(1,"a",4),es("click",(function(){return t.$implicit.active=!0})),Qa(2,"span",5),Ds(3),$a(),qa(4,Yc,2,0,"span",6),$a(),$a()}if(2&e){var r=t.$implicit;_s("active",r.active)("disabled",r.disabled),Wa("ngClass",Ru(15,Kc,r.customClass||"")),Li(1),_s("active",r.active)("disabled",r.disabled),za("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),Li(1),Wa("ngTransclude",r.headingRef),Li(1),Vs(r.heading),Li(1),Wa("ngIf",r.removable)}}var Xc=["*"],ed=function(){var e=function(){function e(t){g(this,e),this.viewRef=t}return m(e,[{key:"ngTransclude",set:function(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)},get:function(){return this._ngTransclude}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(Cu))},e.\u0275dir=Pt({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),td=function(){var e=function e(){g(this,e),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return new e},token:e,providedIn:"root"}),e}(),nd=function(){var e=function(){function e(t,n,r){g(this,e),this.renderer=n,this.elementRef=r,this.clazz=!0,this.tabs=[],this.classMap={},Object.assign(this,t)}return m(e,[{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(e){this.tabs.push(e),e.active=1===this.tabs.length&&void 0===e.active}},{key:"removeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},n=this.tabs.indexOf(e);if(-1!==n&&!this.isDestroyed){if(t.reselect&&e.active&&this.hasAvailableTabs(n)){var r=this.getClosestTabIndex(n);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(n,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(e,t){if(this.isKeysAllowed){var n=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void n[t%n.length].click();if(39!==e.keyCode&&"RightArrow"!==e.key)if(37!==e.keyCode&&"LeftArrow"!==e.key)if(36!==e.keyCode&&"Home"!==e.key)if(35!==e.keyCode&&"End"!==e.key){if((46===e.keyCode||"Delete"===e.key)&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),n[t+1])return void n[(t+1)%n.length].focus();n[n.length-1]&&n[0].focus()}}else{var r;e.preventDefault();var i=1,o=t;do{o-i<0?(r=n[o=n.length-1],i=0):r=n[o-i],i++}while(r.classList.contains("disabled"));r.focus()}else{var a;e.preventDefault();var s=0;do{a=n[s%n.length],s++}while(a.classList.contains("disabled"));a.focus()}else{var u,l=1,c=t;do{c-l<0?(u=n[c=n.length-1],l=0):u=n[c-l],l++}while(u.classList.contains("disabled"));u.focus()}else{var d,h=1;do{d=n[(t+h)%n.length],h++}while(d.classList.contains("disabled"));d.focus()}}}},{key:"getClosestTabIndex",value:function(e){var t=this.tabs.length;if(!t)return-1;for(var n=1;n<=t;n+=1){var r=e-n,i=e+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1}},{key:"hasAvailableTabs",value:function(e){var t=this.tabs.length;if(!t)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Pt({type:e}),e}(),vd=function(){var e=function(e){d(n,e);var t=v(n);function n(){return g(this,n),t.apply(this,arguments)}return m(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(pd);return e.\u0275fac=function(t){return gd(t||e)},e.\u0275dir=Pt({type:e,features:[Aa]}),e}(),gd=Rr(vd),yd=function(e){d(n,e);var t=v(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return m(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(pd),md=function(){function e(t){g(this,e),this._cd=t}return m(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),_d=function(){var e=function(e){d(n,e);var t=v(n);function n(e){return g(this,n),t.call(this,e)}return n}(md);return e.\u0275fac=function(t){return new(t||e)(Ga(yd,2))},e.\u0275dir=Pt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_s("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Aa]}),e}();function bd(e){return null==e||0===e.length}function kd(e){return null!=e&&"number"==typeof e.length}var xd=new rt("NgValidators"),wd=new rt("NgAsyncValidators"),Cd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Od=function(){function e(){g(this,e)}return m(e,null,[{key:"min",value:function(e){return function(t){if(bd(t.value)||bd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return bd(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return bd(e.value)||Cd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return bd(t.value)||!kd(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(bd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Ed);return 0==t.length?null:function(e){return Td(Ad(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Ed);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Rd=function(){var e=function(){function e(t,n,r,i){g(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return m(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(yd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(ru),Ga(Xs),Ga(Fd),Ga(Ea))},e.\u0275dir=Pt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Qs([Md])]}),e}(),Nd={provide:ud,useExisting:Le((function(){return jd})),multi:!0},jd=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return m(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(ru),Ga(Xs))},e.\u0275dir=Pt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Qs([Nd])]}),e}(),Pd={provide:ud,useExisting:Le((function(){return Bd})),multi:!0},Bd=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return m(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Kd,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Jd,this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=$d,this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==$d&&this.status!==Kd||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Jd:$d}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=Kd,this._hasOwnPendingAsyncValidator=!0;var n=Sd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof ah?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof sh&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Lu,this.statusChanges=new Lu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Jd:this.errors?Yd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kd)?Kd:this._anyControlsHaveStatus(Yd)?Yd:$d}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){rh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===$d}},{key:"invalid",get:function(){return this.status===Yd}},{key:"pending",get:function(){return this.status==Kd}},{key:"disabled",get:function(){return this.status===Jd}},{key:"enabled",get:function(){return this.status!==Jd}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),oh=function(e){d(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this,Xd(i),th(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return m(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ih),ah=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,Xd(r),th(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof oh?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(ih),sh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,Xd(r),th(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof oh?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=l(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(ih),uh={provide:yd,useExisting:Le((function(){return ch}))},lh=function(){return Promise.resolve(null)}(),ch=function(){var e=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this)).control=new oh,s._registered=!1,s.update=new Lu,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=Qd(o(s),a),s}return m(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Wd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){zd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;lh.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;lh.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(u(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Ud(this._rawValidators)}},{key:"asyncValidator",get:function(){return Gd(this._rawAsyncValidators)}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(Ga(vd,9),Ga(xd,10),Ga(wd,10),Ga(ud,10))},e.\u0275dir=Pt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qs([uh]),Aa,an]}),e}(),dh=new rt("NgModelWithFormControlWarning"),hh={provide:yd,useExisting:Le((function(){return fh}))},fh=function(){var e=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new Lu,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=r||[],s.valueAccessor=Qd(o(s),i),s}return m(n,[{key:"ngOnChanges",value:function(e){var t,r;this._isControlChanged(e)&&(zd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Wd(e,this.viewModel)&&(t=n,this,r=this._ngModelWarningConfig,Kr()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return Ud(this._rawValidators)}},{key:"asyncValidator",get:function(){return Gd(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(Ga(xd,10),Ga(wd,10),Ga(ud,10),Ga(dh,8))},e.\u0275dir=Pt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Qs([hh]),Aa,an]}),e._ngModelWarningSentOnce=!1,e}(),ph=function(){var e=function e(){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)}}),e}();function vh(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var gh=function(){var e=function(){function e(){g(this,e)}return m(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(vh(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new ah(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new oh(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map((function(e){return r._createControl(e)}));return new sh(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]=t._createControl(e[r])})),n}},{key:"_createControl",value:function(e){return e instanceof oh||e instanceof ah||e instanceof sh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),yh=function(){var e=function e(){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)},providers:[Fd],imports:[ph]}),e}(),mh=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:dh,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)},providers:[gh,Fd],imports:[ph]}),e}();function _h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var bh=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this))._value=e,r}return m(n,[{key:"_subscribe",value:function(e){var t=i(r(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new B;return this._value}},{key:"next",value:function(e){i(r(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(z),kh=function(e){d(n,e);var t=v(n);function n(){return g(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(V),xh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(V);function wh(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new xh(e,n,r);if(!i.closed)return t instanceof j?t.subscribe(i):X(t)(i)}var Ch={};function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new Mh(e,t,n))}}var Mh=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Fh(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Fh=function(e){d(n,e);var t=v(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return m(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(V),Rh=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Nh(e){return function(t){return 0===e?Ah:t.lift(new jh(e))}}var jh=function(){function e(t){if(g(this,e),this.total=t,this.total<0)throw new Rh}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ph(e,this.total))}}]),e}(),Ph=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return m(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Hh(e))}}var Hh=function(){function e(t){g(this,e),this.defaultValue=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Lh(e,this.defaultValue))}}]),e}(),Lh=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return m(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(V);function zh(e,t,n){return 0===n?[t]:(e.push(t),e)}function qh(){return function(e,t){return arguments.length>=2?function(n){return R(Ih(e,t),Nh(1),Bh(t))(n)}:function(t){return R(Ih((function(t,n,r){return e(t,n,r+1)})),Nh(1))(t)}}(zh,[])}function Uh(e,t){return function(n){return n.lift(new Gh(e,t))}}var Gh=function(){function e(t,n){g(this,e),this.predicate=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Wh(e,this.predicate,this.thisArg))}}]),e}(),Wh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(V);function Zh(){}var Qh=function(){function e(t,n,r){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new $h(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),$h=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this,e))._tapNext=Zh,s._tapError=Zh,s._tapComplete=Zh,s._tapError=i||Zh,s._tapComplete=a||Zh,x(r)?(s._context=o(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||Zh,s._tapError=r.error||Zh,s._tapComplete=r.complete||Zh),s}return m(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(V),Yh=n("XaGS"),Kh=n.n(Yh),Jh=n("oxjq"),Xh=Jh,ef=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Xh(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),tf=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter((function(){return!0}))}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter((function(t){return e(t)}))},e}(),nf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option",""]]}),e}(),rf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),of=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),af=["main"],sf=["input"],uf=["choiceMenu"];function lf(e,t){if(1&e&&(Qa(0,"span",17),Ya(1,"span",18),$a()),2&e){var n=os(2);Li(1),Wa("innerHtml",n.placeholder,xi)}}var cf=function(e){return{"ngx-select__allow-clear":e}},df=function(e,t){return{$implicit:e,index:0,text:t}};function hf(e,t){if(1&e&&(Qa(0,"span",19),Ka(1,20),$a()),2&e){var n=os(2),r=Ua(8);Wa("ngClass",Ru(3,cf,n.allowClear)),Li(1),Wa("ngTemplateOutlet",n.templateSelectedOption||r)("ngTemplateOutletContext",Nu(5,df,n.optionsSelected[0],n.sanitize(n.optionsSelected[0].text)))}}function ff(e,t){if(1&e){var n=Ja();Qa(0,"a",21),es("click",(function(e){Vn(n);var t=os(2);return t.optionRemove(t.optionsSelected[0],e)})),Ya(1,"i",22),$a()}2&e&&Wa("ngClass",os(2).setBtnSize())}function pf(e,t){if(1&e){var n=Ja();Qa(0,"div",9),Qa(1,"div",10),es("click",(function(){return Vn(n),os().optionsOpen()})),qa(2,lf,2,1,"span",11),qa(3,hf,2,8,"span",12),Qa(4,"span",13),qa(5,ff,2,1,"a",14),Ya(6,"i",15),Ya(7,"i",16),$a(),$a(),$a()}if(2&e){var r=os();Li(1),Wa("ngClass",r.setFormControlSize(r.setBtnSize())),Li(1),Wa("ngIf",!r.optionsSelected.length),Li(1),Wa("ngIf",r.optionsSelected.length),Li(2),Wa("ngIf",r.canClearNotMultiple())}}var vf=function(e,t,n){return{$implicit:e,index:t,text:n}};function gf(e,t){if(1&e){var n=Ja();Qa(0,"span"),Qa(1,"span",25),es("click",(function(e){return Vn(n),e.stopPropagation()})),Ka(2,20),Qa(3,"a",26),es("click",(function(e){Vn(n);var r=t.$implicit;return os(2).optionRemove(r,e)})),Ya(4,"i",22),$a(),$a(),$a()}if(2&e){var r=t.$implicit,i=t.index,o=os(2),a=Ua(8);Li(1),Wa("ngClass",o.setBtnSize()),Li(1),Wa("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",(s=4,u=vf,l=r,c=i,d=o.sanitize(r.text),function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=La(e,t,n,r);return Ha(e,t+2,i)||o}(e,u,i,o,a)?Ba(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):ju(e,u+3)}(An(),Pn(),s,u,l,c,d,h))),Li(1),Wa("ngClass",o.setBtnSize())}var s,u,l,c,d,h}function yf(e,t){if(1&e){var n=Ja();Qa(0,"div",23),es("click",(function(){Vn(n);var e=os();return e.inputClick(e.inputElRef&&e.inputElRef.value)})),qa(1,gf,5,8,"span",24),$a()}if(2&e){var r=os();Li(1),Wa("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function mf(e,t){if(1&e){var n=Ja();Qa(0,"input",27,28),es("keyup",(function(e){Vn(n);var t=Ua(1);return os().inputKeyUp(t.value,e)}))("click",(function(){Vn(n);var e=Ua(1);return os().inputClick(e.value)})),$a()}if(2&e){var r=os();Wa("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function _f(e,t){1&e&&Ya(0,"div",37)}function bf(e,t){if(1&e&&(Qa(0,"div",38),Ds(1),$a()),2&e){var n=os().$implicit;Li(1),Vs(n.label)}}var kf=function(e,t){return{"ngx-select__item_active active":e,"ngx-select__item_disabled disabled":t}},xf=function(e,t,n,r){return{$implicit:e,text:t,index:n,subIndex:r}};function wf(e,t){if(1&e){var n=Ja();Qa(0,"a",39,40),es("mouseenter",(function(){Vn(n);var e=t.$implicit,r=os(3);return r.onMouseEnter({activeOption:e,filteredOptionList:r.optionsFiltered,index:r.optionsFiltered.indexOf(e)})}))("click",(function(e){Vn(n);var r=t.$implicit;return os(3).optionSelect(r,e)})),Ka(2,20),$a()}if(2&e){var r=t.$implicit,i=t.index,o=os().index,a=os(2),s=Ua(8);Wa("ngClass",Nu(3,kf,r.active,r.disabled)),Li(2),Wa("ngTemplateOutlet",a.templateOption||s)("ngTemplateOutletContext",(u=6,l=xf,c=r,d=r.highlightedText,h=o,f=i,function(e,t,n,r,i,o,a,s,u){var l=t+n;return function(e,t,n,r,i,o){var a=La(e,t,n,r);return La(e,t+2,i,o)||a}(e,l,i,o,a,s)?Ba(e,l+4,u?r.call(u,i,o,a,s):r(i,o,a,s)):ju(e,l+4)}(An(),Pn(),u,l,c,d,h,f,p)))}var u,l,c,d,h,f,p}var Cf=function(e){return[e]};function Of(e,t){if(1&e&&(Qa(0,"li",33),qa(1,_f,1,0,"div",34),qa(2,bf,2,1,"div",35),qa(3,wf,3,11,"a",36),$a()),2&e){var n=t.$implicit,r=t.index,i=os(2);Li(1),Wa("ngIf","optgroup"===n.type&&r>0),Li(1),Wa("ngIf","optgroup"===n.type),Li(1),Wa("ngForOf",n.optionsFiltered||Ru(4,Cf,n))("ngForTrackBy",i.trackByOption)}}var Ef=function(e){return{$implicit:e}};function Sf(e,t){if(1&e&&(Qa(0,"li",41),Ka(1,20),$a()),2&e){var n=os(2),r=Ua(10);Li(1),Wa("ngTemplateOutlet",n.templateOptionNotFound||r)("ngTemplateOutletContext",Ru(2,Ef,n.inputText))}}function Tf(e,t){if(1&e&&(Qa(0,"ul",29,30),qa(2,Of,4,6,"li",31),qa(3,Sf,2,4,"li",32),$a()),2&e){var n=os();_s("show",n.showChoiceMenu()),Wa("ngClass",n.dropDownMenuOtherClasses),Li(2),Wa("ngForOf",n.optionsFiltered)("ngForTrackBy",n.trackByOption),Li(1),Wa("ngIf",!n.optionsFiltered.length)}}function Af(e,t){1&e&&Ya(0,"span",18),2&e&&Wa("innerHtml",t.text,xi)}function Df(e,t){1&e&&Ds(0),2&e&&Is(" ",os().noResultsFound," ")}var Vf=function(e,t){return{"ngx-select_multiple form-control":e,"open show":t}},If=function(e){return{"ngx-select__disabled":e}},Mf=Jh,Ff=new rt("NGX_SELECT_OPTIONS"),Rf=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function Nf(e,t){return t in e}var jf=function(){function e(e,t,n,r){var i,o=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new Lu,this.focus=new Lu,this.blur=new Lu,this.open=new Lu,this.close=new Lu,this.select=new Lu,this.remove=new Lu,this.navigated=new Lu,this.selectionChanges=new Lu,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new bh([]),this.subjSearchText=new bh(""),this.subjOptionsSelected=new bh([]),this.subjExternalValue=new bh([]),this.subjDefaultValue=new bh([]),this.subjRegisterOnChange=new z,this._focusToInput=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,r),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe((function(e){return o.subjSearchText.next(e)})),this.subjOptionsSelected.subscribe((function(e){return o.selectionChanges.emit(e)}));var a,s=Oh([le(this.subjExternalValue.pipe(G((function(e){return i=null===e?[]:[].concat(e)}))),this.subjOptionsSelected.pipe(G((function(e){return e.map((function(e){return e.value}))})))),this.subjDefaultValue]).pipe(G((function(e){var t=_h(e,2),n=t[0],r=t[1],i=Kh()(n,r)?[]:n;return i.length?i:r})),(a=function(e,t){return Kh()(e,t)},function(e){return e.lift(new Dh(a,void 0))}),ye());Oh([s,this.subjRegisterOnChange]).pipe(G((function(e){return _h(e,1)[0]}))).subscribe((function(e){o.actualValue=e,Kh()(e,i)||(i=e,o.onChange(o.multiple?e:e.length?e[0]:null))})),Oh([this.subjOptions.pipe(ie((function(e){return te(e).pipe(ie((function(e){return e instanceof ef?Th(e):e instanceof tf?te(e.options):Ah})),qh())}))),s]).pipe(G((function(e){var t=_h(e,2),n=t[0],r=[];if(t[1].forEach((function(e){var t=n.find((function(t){return t.value===e}));t&&r.push(t)})),o.keepSelectedItems){var i=r.map((function(e){return e.value})),a=o.subjOptionsSelected.value.filter((function(e){return-1===i.indexOf(e.value)}));r.push.apply(r,function(){for(var e=[],t=0;t=0?r:n.length-1;break;case Rf.next:r=n.indexOf(t.optionActive)+1,i.index=r0?o:0}return i.activeOption=n[i.index],i}))).subscribe((function(e){return t.optionActivate(e)}))},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.ngOnDestroy=function(){this.cd.detach()},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(Rf.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Rf.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Rf.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Rf.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Rf.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof ef?t.value:t instanceof tf?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),t.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?this.typed.emit(e):!this.optionsOpened&&e&&this.optionsOpen(e)},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.keepSelectMenuOpened||this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter((function(t){return t!==e}))),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var r=this,i=new RegExp(Mf(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter((function(e){if(e instanceof ef)return o(e);if(e instanceof tf){var t=e;return t.filter((function(e){return o(e)})),t.optionsFiltered.length}}))},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopt.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.clientHeight)}},e.prototype.showChoiceMenu=function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?Rf.firstSelected:Rf.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t=this,n=[];return Array.isArray(e)&&e.forEach((function(e){if("object"==typeof e&&null!==e&&Nf(e,t.optGroupLabelField)&&Nf(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new tf(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach((function(e){var n=t.buildOption(e,r);n&&r.options.push(n)})),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}})),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!Nf(e,this.optionValueField)&&!Nf(e,this.optionTextField))return null;n=Nf(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=Nf(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!Nf(e,"disabled")&&e.disabled}return new ef(n,r,i,e,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cd.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ga(yu),Ga(Gc),Ga(la),Ga(Ff,8))},e.\u0275cmp=It({type:e,selectors:[["ngx-select"]],contentQueries:function(e,t,n){var r;1&e&&(tl(n,nf,!0,xu),tl(n,rf,!0,xu),tl(n,of,!0,xu)),2&e&&(Ju(r=rl())&&(t.templateOption=r.first),Ju(r=rl())&&(t.templateSelectedOption=r.first),Ju(r=rl())&&(t.templateOptionNotFound=r.first))},viewQuery:function(e,t){var n,r;1&e&&(r=af,!0,el(Dn(),An(),r,true,undefined,!0),Xu(sf,!0),Xu(uf,!0)),2&e&&(Ju(n=rl())&&(t.mainElRef=n.first),Ju(n=rl())&&(t.inputElRef=n.first),Ju(n=rl())&&(t.choiceMenuElRef=n.first))},hostBindings:function(e,t){1&e&&es("focusin",(function(e){return t.documentClick(e)}),!1,tn)("click",(function(e){return t.documentClick(e)}),!1,tn)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",navigated:"navigated",selectionChanges:"selectionChanges"},features:[Qs([{provide:ud,useExisting:Le((function(){return e})),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],["role","menu","class","ngx-select__choices dropdown-menu",3,"ngClass","show",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(e,t){1&e&&(Qa(0,"div",0,1),es("click",(function(e){return t.mainClicked(e)}))("focusin",(function(e){return t.mainClicked(e)}))("focus",(function(){return t.focusToInput()}))("keydown",(function(e){return t.inputKeyDown(e)})),Ya(2,"div",2),qa(3,pf,8,4,"div",3),qa(4,yf,2,2,"div",4),qa(5,mf,2,5,"input",5),qa(6,Tf,4,6,"ul",6),qa(7,Af,1,1,"ng-template",null,7,sl),qa(9,Df,1,1,"ng-template",null,8,sl),$a()),2&e&&(Wa("tabindex",t.disabled?-1:0)("ngClass",t.setFormControlSize(Nu(7,Vf,!0===t.multiple,t.optionsOpened&&t.optionsFiltered.length),!0===t.multiple)),Li(2),Wa("ngClass",Ru(10,If,t.disabled)),Li(1),Wa("ngIf",!1===t.multiple&&(!t.optionsOpened||t.noAutoComplete)),Li(1),Wa("ngIf",!0===t.multiple),Li(1),Wa("ngIf",t.checkInputVisibility()),Li(1),Wa("ngIf",t.isFocused))},directives:[sc,dc,vc,lc],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],changeDetection:0}),e}(),Pf=function(){function e(){var e=this;this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.ngxControl=new oh,this.inputTyped=function(e,t){return console.log("SingleDemoComponent.inputTyped",e,t)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(e){return console.log("SingleDemoComponent.doSelect",e)},this.doRemove=function(e){return console.log("SingleDemoComponent.doRemove",e)},this.doSelectOptions=function(e){return console.log("SingleDemoComponent.doSelectOptions",e)},this._ngxDefaultTimeout=setTimeout((function(){e._ngxDefaultInterval=setInterval((function(){var t=Math.floor(Math.random()*(e.items.length-1));e._ngxDefault=e.items[t]}),2e3)}),2e3)}return e.prototype.ngOnDestroy=function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)},e.prototype.doNgxDefault=function(){return this._ngxDefault},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select a single city"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("typed",(function(e){return t.inputTyped("ngx-select",e)}))("focus",(function(){return t.doFocus()}))("blur",(function(){return t.doBlur()}))("open",(function(){return t.doOpen()}))("close",(function(){return t.doClose()}))("select",(function(e){return t.doSelect(e)}))("remove",(function(e){return t.doRemove(e)}))("selectionChanges",(function(e){return t.doSelectOptions(e)})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxControl.disabled?t.ngxControl.enable():t.ngxControl.disable()})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("formControl",t.ngxControl)("allowClear",!0)("defaultValue",t.doNgxDefault())("items",t.items),Li(4),Vs(Hu(9,6,t.ngxControl.value)),Li(4),Is(" ",t.ngxControl.disabled?"Enable":"Disable"," "))},directives:[jf,_d,fh],pipes:[gc],encapsulation:2}),e}(),Bf=function(){function e(){this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Leeds","Leipzig","Lisbon","\u0141\xf3d\u017a","London","Krak\xf3w","Madrid","M\xe1laga","Manchester","Marseille","Milan","Munich","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza"],this.ngxValue=[],this.ngxDisabled=!1,this.doSelectOptions=function(e){return console.log("MultipleDemoComponent.doSelectOptions",e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select multiple cities"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("ngModelChange",(function(e){return t.ngxValue=e}))("selectionChanges",(function(e){return t.doSelectOptions(e)})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxDisabled=!t.ngxDisabled})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("multiple",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue)("autoClearSearch",!0),Li(4),Vs(Hu(9,7,t.ngxValue)),Li(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[jf,_d,ch],pipes:[gc],encapsulation:2}),e}(),Hf=function(){function e(){this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select a city by country"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("ngModelChange",(function(e){return t.ngxValue=e})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxDisabled=!t.ngxDisabled})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("allowClear",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue),Li(4),Vs(Hu(9,6,t.ngxValue)),Li(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[jf,_d,ch],pipes:[gc],encapsulation:2}),e}();function Lf(e,t){if(1&e&&(Ya(0,"span",7),Ya(1,"span",8),Ds(2)),2&e){var n=t.$implicit,r=t.text;(function(e,t,n,r){var i=Dn(),o=Hn(2);i.firstUpdatePass&&xs(i,null,o,r);var a=An();if(n!==Ni&&Ha(a,o,n)){var s=i.data[Xn()+qt];if(As(s,r)&&!ks(i,o)){var u=s.stylesWithoutHost;null!==u&&(n=Be(u,n||"")),Za(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===Ni&&(i=ls);for(var u=0,l=0,c=0\n \n \n\n'},PmYy:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'no-autocomplete-demo',\n templateUrl: './no-autocomplete-demo.html',\n})\nexport class NoAutoCompleteDemoComponent {\n public _items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n constructor() {\n const a = [];\n for (let i = 1; i <= 20; i++) {\n this._items.forEach(v => a.push(i + ' ' + v));\n }\n this.items = a;\n }\n\n public items: string[] = [];\n public ngxValue: any = [];\n public ngxDisabled = false;\n}\n"},Tah6:function(e,t,n){"use strict";n.r(t),t.default='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},WySO:function(e,t,n){"use strict";n.r(t),t.default='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},XaGS:function(e,t,n){(function(e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",b=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[o]=x[m]=x[a]=x[_]=x[s]=x[u]=x[l]=x[c]=x[d]=x[h]=x[p]=x[v]=x[g]=x[y]=!1;var w="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,O=w||C||Function("return this")(),E=t&&!t.nodeType&&t,S=E&&"object"==typeof e&&e&&!e.nodeType&&e,T=S&&S.exports===E,A=T&&w.process,D=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),V=D&&D.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=2&n?new ye:void 0;for(o.set(e,t),o.set(t,e);++c-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(ne||ve),string:new pe}},ge.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Oe(this,e).get(e)},ge.prototype.has=function(e){return Oe(this,e).has(e)},ge.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Se=J?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=r}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Be=V?function(e){return function(t){return e(t)}}(V):function(e){return Pe(e)&&Ne(e.length)&&!!x[be(e)]};function He(e){return null!=(t=e)&&Ne(t.length)&&!Re(t)?function(e,t){var n=Me(e),r=!n&&Ie(e),i=!n&&!r&&Fe(e),o=!n&&!r&&!i&&Be(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n\n \n \n'},hnl7:function(e,t,n){"use strict";n.r(t),t.default="import { Component, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\nconst COLORS = [\n {name: 'Blue 10', hex: '#C0E6FF'},\n {name: 'Blue 20', hex: '#7CC7FF'},\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\n {name: 'Blue 40', hex: '#5596E6'},\n {name: 'Blue 50', hex: '#4178BE'},\n {name: 'Blue 60', hex: '#325C80'},\n {name: 'Blue 70', hex: '#264A60'},\n {name: 'Blue 80', hex: '#1D3649'},\n {name: 'Blue 90', hex: '#152935'},\n {name: 'Blue 100', hex: '#010205'},\n {name: 'Green 10', hex: '#C8F08F'},\n {name: 'Green 20', hex: '#B4E051'},\n {name: 'Green 30', hex: '#8CD211'},\n {name: 'Green 40', hex: '#5AA700'},\n {name: 'Green 50', hex: '#4B8400'},\n {name: 'Green 60', hex: '#2D660A'},\n {name: 'Green 70', hex: '#144D14'},\n {name: 'Green 80', hex: '#0A3C02'},\n {name: 'Green 90', hex: '#0C2808'},\n {name: 'Green 100', hex: '#010200'},\n {name: 'Red 10', hex: '#FFD2DD'},\n {name: 'Red 20', hex: '#FFA5B4'},\n {name: 'Red 30', hex: '#FF7D87'},\n {name: 'Red 40', hex: '#FF5050'},\n {name: 'Red 50', hex: '#E71D32'},\n {name: 'Red 60', hex: '#AD1625'},\n {name: 'Red 70', hex: '#8C101C'},\n {name: 'Red 80', hex: '#6E0A1E'},\n {name: 'Red 90', hex: '#4C0A17'},\n {name: 'Red 100', hex: '#040001'},\n {name: 'Yellow 10', hex: '#FDE876'},\n {name: 'Yellow 20', hex: '#FDD600'},\n {name: 'Yellow 30', hex: '#EFC100'},\n {name: 'Yellow 40', hex: '#BE9B00'},\n {name: 'Yellow 50', hex: '#8C7300'},\n {name: 'Yellow 60', hex: '#735F00'},\n {name: 'Yellow 70', hex: '#574A00'},\n {name: 'Yellow 80', hex: '#3C3200'},\n {name: 'Yellow 90', hex: '#281E00'},\n {name: 'Yellow 100', hex: '#020100'},\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n public style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},kiQV:function(e){e.exports=JSON.parse('{"name":"ngx-select-ex","version":"5.0.3","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test && npm run build.package && npm run build.demo && git add -A","build.demo":"ng build --prod","build.package":"ng-packagr -p ng-package.json","lint":"ng lint","lint:fix":"ng lint --fix","ng":"ng","precommit":"npm run test","release":"standard-version --commit-all","publish.ng4":"npm publish dist --tag ng4","publish.ng10":"npm publish dist","publish.ng10-dev":"npm publish dist --tag dev","start":"ng serve","test":"ng test --watch false","test-coverage":"ng test --watch false --code-coverage"},"standard-version":{"scripts":{"postbump":"npm run build"}},"keywords":["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","angular6","select","select2","ui-select","multiselect","multi-select"],"peerDependencies":{},"dependencies":{"lodash.isequal":"^4.5.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.1002.0","@angular/animations":"~10.2.3","@angular/cli":"~10.2.0","@angular/common":"~10.2.3","@angular/compiler":"~10.2.3","@angular/compiler-cli":"~10.2.3","@angular/core":"~10.2.3","@angular/forms":"~10.2.3","@angular/language-service":"~10.2.3","@angular/platform-browser":"~10.2.3","@angular/platform-browser-dynamic":"~10.2.3","@angular/router":"~10.2.3","@types/jasmine":"^3.6.1","@types/jasminewd2":"^2.0.8","@types/marked":"^1.1.0","@types/node":"^14.14.7","@types/webpack":"^4.41.24","codecov":"^3.8.1","codelyzer":"^6.0.1","escape-string-regexp":"^4.0.0","html-loader":"^1.3.2","husky":"^4.3.0","jasmine-core":"^3.6.0","jasmine-spec-reporter":"^6.0.0","karma":"^5.2.3","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","markdown-loader":"^6.0.0","ng-packagr":"^10.1.0","ngx-bootstrap":"^6.1.0","pre-commit":"^1.2.2","protractor":"~7.0.0","rxjs":"~6.6.3","standard-version":"^9.0.0","ts-node":"^9.0.0","tslib":"^2.0.3","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.0.5","zone.js":"^0.11.3"},"contributors":[{"name":"Konstantin Polyntsov","email":"optimistex@gmail.com","url":"https://github.com/optimistex"},{"name":"Vyacheslav Chub","email":"vyacheslav.chub@valor-software.com","url":"https://github.com/buchslava"},{"name":"Dmitriy Shekhovtsov","email":"valorkin@gmail.com","url":"https://github.com/valorkin"},{"name":"Oleksandr Telnov","email":"otelnov@gmail.com","url":"https://github.com/otelnov"}]}')},luUw:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html',\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},oxjq:function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},rVYP:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'children-demo',\n templateUrl: './children-demo.html',\n})\nexport class ChildrenDemoComponent {\n public items: any[] = [\n {\n id: 100,\n text: 'Austria',\n children: [\n {id: 54, text: 'Vienna'},\n ],\n },\n {\n id: 200,\n text: 'Belgium',\n children: [\n {id: 2, text: 'Antwerp'},\n {id: 9, text: 'Brussels'},\n ],\n },\n {\n id: 300,\n text: 'Bulgaria',\n children: [\n {id: 48, text: 'Sofia'},\n ],\n },\n {\n id: 400,\n text: 'Croatia',\n children: [\n {id: 58, text: 'Zagreb'},\n ],\n },\n {\n id: 500,\n text: 'Czech Republic',\n children: [\n {id: 42, text: 'Prague'},\n ],\n },\n {\n id: 600,\n text: 'Denmark',\n children: [\n {id: 13, text: 'Copenhagen'},\n ],\n },\n {\n id: 700,\n text: 'England',\n children: [\n {id: 6, text: 'Birmingham'},\n {id: 7, text: 'Bradford'},\n {id: 26, text: 'Leeds', disabled: true},\n {id: 30, text: 'London'},\n {id: 34, text: 'Manchester'},\n {id: 47, text: 'Sheffield'},\n ],\n },\n {\n id: 800,\n text: 'Finland',\n children: [\n {id: 25, text: 'Helsinki'},\n ],\n },\n {\n id: 900,\n text: 'France',\n children: [\n {id: 35, text: 'Marseille'},\n {id: 40, text: 'Paris'},\n ],\n },\n {\n id: 1000,\n text: 'Germany',\n children: [\n {id: 5, text: 'Berlin'},\n {id: 8, text: 'Bremen'},\n {id: 12, text: 'Cologne'},\n {id: 14, text: 'Dortmund'},\n {id: 15, text: 'Dresden'},\n {id: 17, text: 'D\xfcsseldorf'},\n {id: 18, text: 'Essen'},\n {id: 19, text: 'Frankfurt'},\n {id: 23, text: 'Hamburg'},\n {id: 24, text: 'Hannover'},\n {id: 27, text: 'Leipzig'},\n {id: 37, text: 'Munich'},\n {id: 50, text: 'Stuttgart'},\n ],\n },\n {\n id: 1100,\n text: 'Greece',\n children: [\n {id: 3, text: 'Athens'},\n ],\n },\n {\n id: 1200,\n text: 'Hungary',\n children: [\n {id: 11, text: 'Budapest'},\n ],\n },\n {\n id: 1300,\n text: 'Ireland',\n children: [\n {id: 16, text: 'Dublin'},\n ],\n },\n {\n id: 1400,\n text: 'Italy',\n children: [\n {id: 20, text: 'Genoa'},\n {id: 36, text: 'Milan'},\n {id: 38, text: 'Naples'},\n {id: 39, text: 'Palermo'},\n {id: 44, text: 'Rome'},\n {id: 52, text: 'Turin'},\n ],\n },\n {\n id: 1500,\n text: 'Latvia',\n children: [\n {id: 43, text: 'Riga'},\n ],\n },\n {\n id: 1600,\n text: 'Lithuania',\n children: [\n {id: 55, text: 'Vilnius'},\n ],\n },\n {\n id: 1700,\n text: 'Netherlands',\n children: [\n {id: 1, text: 'Amsterdam'},\n {id: 45, text: 'Rotterdam'},\n {id: 51, text: 'The Hague'},\n ],\n },\n {\n id: 1800,\n text: 'Poland',\n children: [\n {id: 29, text: '\u0141\xf3d\u017a'},\n {id: 31, text: 'Krak\xf3w'},\n {id: 41, text: 'Pozna\u0144'},\n {id: 56, text: 'Warsaw'},\n {id: 57, text: 'Wroc\u0142aw'},\n ],\n },\n {\n id: 1900,\n text: 'Portugal',\n children: [\n {id: 28, text: 'Lisbon'},\n ],\n },\n {\n id: 2000,\n text: 'Romania',\n children: [\n {id: 10, text: 'Bucharest'},\n ],\n },\n {\n id: 2100,\n text: 'Scotland',\n children: [\n {id: 21, text: 'Glasgow'},\n ],\n },\n {\n id: 2200,\n text: 'Spain',\n children: [\n {id: 4, text: 'Barcelona'},\n {id: 32, text: 'Madrid'},\n {id: 33, text: 'M\xe1laga'},\n {id: 46, text: 'Seville'},\n {id: 53, text: 'Valencia'},\n {id: 59, text: 'Zaragoza'},\n ],\n },\n {\n id: 2300,\n text: 'Sweden',\n children: [\n {id: 22, text: 'Gothenburg'},\n {id: 49, text: 'Stockholm'},\n ],\n },\n ];\n\n public ngxValue: any[] = [];\n public ngxDisabled = false;\n}\n"},yO7Q:function(e,t,n){"use strict";n.r(t),t.default='

Select a color

\n
\n
\n \n\n \n \n \n ({{option.data.hex}})\n \n\n \n "{{input}}" not found\n \n\n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},zUnb:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?o(e):t}function v(e){var t=h();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(ie((function(n,r){return te(e(n,r)).pipe(G((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new oe(e,n))})}var oe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ae(e,this.project,this.concurrent))}}]),e}(),ae=function(e){d(n,e);var t=v(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return m(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(re);function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ie(F,e)}function ue(e,t){return t?ee(e,t):new j(Q(e))}function le(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===t&&1===r.length&&r[0]instanceof j?r[0]:se(e)(ue(r,t))}function ce(){return function(e){return e.lift(new de(e))}}var de=function(){function e(t){g(this,e),this.connectable=t}return m(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new he(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),he=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(V),fe=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return m(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new C).add(this.source.subscribe(new ve(this.getSubject(),this))),e.closed&&(this._connection=null,e=C.EMPTY)),e}},{key:"refCount",value:function(){return ce()(this)}}]),n}(j),pe=function(){var e=fe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ve=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_error",value:function(e){this._unsubscribe(),i(r(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(r(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(L);function ge(){return new z}function ye(){return function(e){return ce()((t=ge,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,pe);return r.source=e,r.subjectFactory=n,r})(e));var t}}function me(e){return{toString:e}.toString()}var _e="__parameters__";function be(e,t,n){return me((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Oe.Default;if(void 0===lt)throw new Error("inject() must be called from an injection context");return null===lt?pt(e,void 0,t):lt.get(e,t&Oe.Optional?null:void 0,t)}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.Default;return(nt||ht)(ze(e),t)}function pt(e,t,n){var r=De(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Oe.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Pe(e),"]"))}function vt(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:ot;if(t===ot){var n=new Error("NullInjectorError: No provider for ".concat(Pe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function yt(e,t,n,r){var i=e.ngTempTokenPath;throw t[st]&&i.unshift(t[st]),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Pe(t);if(Array.isArray(t))i=t.map(Pe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pe(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(at,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var mt=function e(){g(this,e)},_t=function e(){g(this,e)};function bt(e,t){e.forEach((function(e){return Array.isArray(e)?bt(e,t):t(e)}))}function kt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Ot(e,t){var n=Et(e,t);if(n>=0)return e[1|n]}function Et(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var St=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Tt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),At={},Dt=[],Vt=0;function It(e){return me((function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Dt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Tt.Emulated,id:"c",styles:e.styles||Dt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Vt++,n.inputs=jt(e.inputs,t),n.outputs=jt(e.outputs),i&&i.forEach((function(e){return e(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(Mt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Ft)}:null,n}))}function Mt(e){return Ht(e)||function(e){return e[Ye]||null}(e)}function Ft(e){return function(e){return e[Ke]||null}(e)}var Rt={};function Nt(e){var t={type:e.type,bootstrap:e.bootstrap||Dt,declarations:e.declarations||Dt,imports:e.imports||Dt,exports:e.exports||Dt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me((function(){Rt[e.id]=e.type})),t}function jt(e,t){if(null==e)return At;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Pt=It;function Bt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[$e]||null}function Lt(e,t){return e.hasOwnProperty(et)?e[et]:null}function zt(e,t){var n=e[Je]||null;if(!n&&!0===t)throw new Error("Type ".concat(Pe(e)," does not have '\u0275mod' property."));return n}var qt=20,Ut=10;function Gt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Wt(e){return Array.isArray(e)&&!0===e[1]}function Zt(e){return 0!=(8&e.flags)}function Qt(e){return 2==(2&e.flags)}function $t(e){return 1==(1&e.flags)}function Yt(e){return null!==e.template}function Kt(e){return 0!=(512&e[2])}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}var en=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Qe)}();function tn(e){return{name:"document",target:e.ownerDocument}}function nn(e){return e instanceof Function?e():e}function rn(e,t){var n=t?" in ".concat(t):"";throw new Error("No provider for ".concat(Xt(e)," found").concat(n))}var on=function(){function e(t,n,r){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return m(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function an(){return sn}function sn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ln),un}function un(){var e=cn(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===At)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ln(e,t,n,r){var i=cn(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:At,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new on(u&&u.currentValue,t,a===At),e[r]=t}function cn(e){return e.__ngSimpleChanges__||null}an.ngInherit=!0;var dn=void 0;function hn(){return void 0!==dn?dn:"undefined"!=typeof document?document:void 0}function fn(e){return!!e.listen}var pn={createRenderer:function(e,t){return hn()}};function vn(e){for(;Array.isArray(e);)e=e[0];return e}function gn(e,t){return vn(t[e+qt])}function yn(e,t){return vn(t[e.index])}function mn(e,t){return e.data[t+qt]}function _n(e,t){return e[t+qt]}function bn(e,t){var n=t[e];return Gt(n)?n:n[0]}function kn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function xn(e){return 4==(4&e[2])}function wn(e){return 128==(128&e[2])}function Cn(e,t){return null===e||null==t?null:e[t]}function On(e){e[18]=0}function En(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Sn={lFrame:Qn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tn(){return Sn.bindingsEnabled}function An(){return Sn.lFrame.lView}function Dn(){return Sn.lFrame.tView}function Vn(e){Sn.lFrame.contextLView=e}function In(){return Sn.lFrame.currentTNode}function Mn(e,t){Sn.lFrame.currentTNode=e,Sn.lFrame.isParent=t}function Fn(){return Sn.lFrame.isParent}function Rn(){Sn.lFrame.isParent=!1}function Nn(){return Sn.isInCheckNoChangesMode}function jn(e){Sn.isInCheckNoChangesMode=e}function Pn(){var e=Sn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Bn(){return Sn.lFrame.bindingIndex++}function Hn(e){var t=Sn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ln(e,t){var n=Sn.lFrame;n.bindingIndex=n.bindingRootIndex=e,zn(t)}function zn(e){Sn.lFrame.currentDirectiveIndex=e}function qn(){return Sn.lFrame.currentQueryIndex}function Un(e){Sn.lFrame.currentQueryIndex=e}function Gn(e,t){var n=Zn();Sn.lFrame=n,n.currentTNode=t,n.lView=e}function Wn(e){var t=Zn(),n=e[1];Sn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex}function Zn(){var e=Sn.lFrame,t=null===e?null:e.child;return null===t?Qn(e):t}function Qn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function $n(){var e=Sn.lFrame;return Sn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yn=$n;function Kn(){var e=$n();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jn(e){return(Sn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Sn.lFrame.contextLView))[8]}function Xn(){return Sn.lFrame.selectedIndex}function er(e){Sn.lFrame.selectedIndex=e}function tr(){var e=Sn.lFrame;return mn(e.tView,e.selectedIndex)}function nr(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var ur=-1,lr=function e(t,n,r){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function cr(e,t,n){for(var r=fn(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var yr=!0;function mr(e){var t=yr;return yr=e,t}var _r=0;function br(e,t){var n=xr(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,kr(r.data,e),kr(t,null),kr(r.blueprint,null));var i=wr(e,t),o=e.injectorIndex;if(pr(i))for(var a=vr(i),s=gr(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function kr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function wr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return ur;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ur}function Cr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(tt)&&(r=n[tt]),null==r&&(r=n[tt]=_r++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:Oe.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=Dr(n);if("function"==typeof o){Gn(t,e);try{var a=o();if(null!=a||r&Oe.Optional)return a;rn(n)}finally{Yn()}}else if("number"==typeof o){if(-1===o)return new Mr(e,t);var s=null,u=xr(e,t),l=ur,c=r&Oe.Host?t[16][6]:null;for((-1===u||r&Oe.SkipSelf)&&((l=-1===u?wr(e,t):t[u+8])!==ur&&Ir(r,!1)?(s=t[1],u=vr(l),t=gr(l,t)):u=-1);-1!==u;){var d=t[1];if(Vr(o,u,d.data)){var h=Sr(u,t,n,s,r,c);if(h!==Er)return h}(l=t[u+8])!==ur&&Ir(r,t[1].data[u+8]===c)&&Vr(o,u,t)?(s=d,u=vr(l),t=gr(l,t)):u=-1}}}if(r&Oe.Optional&&void 0===i&&(i=null),0==(r&(Oe.Self|Oe.Host))){var f=t[9],p=dt(void 0);try{return f?f.get(n,i,r&Oe.Optional):pt(n,i,r&Oe.Optional)}finally{dt(p)}}if(r&Oe.Optional)return i;rn(n,"NodeInjector")}var Er={};function Sr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=Tr(s,a,n,null==r?Qt(s)&&yr:r!=a&&2===s.type,i&Oe.Host&&o===s);return null!==u?Ar(t,a,u,s):Er}function Tr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,d=r?s:s+l;d=u&&h.type===n)return d}if(i){var f=a[u];if(f&&Yt(f)&&f.type===n)return u}return null}function Ar(e,t,n,r){var i=e[n],o=t.data;if(i instanceof lr){var a=i;a.resolving&&function(e,t){throw new Error("Circular dependency in DI detected for ".concat(e).concat(""))}(Xt(o[n]));var s=mr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?dt(a.injectImpl):null;Gn(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=sn(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&dt(u),mr(s),a.resolving=!1,Yn()}}return i}function Dr(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(tt)?e[tt]:void 0;return"number"==typeof t&&t>0?255&t:t}function Vr(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(mi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function mi(e){return e.replace(/&/g,"&").replace(gi,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(yi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function _i(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Jr:new Xr(e)}(e);var r=t?String(t):"";n=oi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=oi.getInertBodyElement(r)}while(r!==o);var a=new vi,s=a.sanitizeChildren(bi(n)||n);return Kr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=bi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function bi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ki=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function xi(e){var t,n=(t=An())&&t[12];return n?n.sanitize(ki.HTML,e)||"":Zr(e,"HTML")?Wr(e):_i(hn(),Jt(e))}function wi(e,t){e.__ngContext__=t}function Ci(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Oi="ng-template";function Ei(e,t,n){for(var r=0;ro?"":i[c+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==Ci(h,l,0)||2&r&&l!==d){if(Di(r))return!1;a=!0}}}}else{if(!a&&!Di(r)&&!Di(u))return!1;if(a&&Di(u))continue;a=!1,r=u|1&r}}return Di(r)||a}function Di(e){return 0==(1&e)}function Vi(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Di(a)||(t+=Fi(o,i),i=""),r=a,o=o||!Di(r);n++}return""!==i&&(t+=Fi(o,i)),t}var Ni={};function ji(e){var t=e[3];return Wt(t)?t[3]:t}function Pi(e){return Hi(e[13])}function Bi(e){return Hi(e[4])}function Hi(e){for(;null!==e&&!Wt(e);)e=e[4];return e}function Li(e){zi(Dn(),An(),Xn()+e,Nn())}function zi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&rr(t,i,n)}else{var o=e.preOrderHooks;null!==o&&ir(t,o,0,n)}er(n)}function qi(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function Gi(e){return 2|e}function Wi(e){return(131068&e)>>2}function Zi(e,t){return-131069&e|t<<2}function Qi(e){return 1|e}function $i(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;rqt&&zi(e,t,0,Nn()),n(r,i)}finally{er(o)}}function ro(e,t,n){if(Zt(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:yn,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&function e(t){for(var n=Pi(t);null!==n;n=Bi(n))for(var r=Ut;r0&&e(i)}var a=t[1].components;if(null!==a)for(var s=0;s0&&e(u)}}(n)}}function Oo(e,t){var n=bn(t,e),r=n[1];!function(e,t){for(var n=t.length;n0&&(e[r-1][4]=i[4]);var a=xt(e,Ut+t);$o(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Bo(e,t){if(!(256&t[2])){var n=t[11];fn(n)&&n.destroyNode&&$o(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ho(e[1],e);for(;t;){var n=null;if(Gt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Gt(t)&&Ho(t[1],t),t=t[3];null===t&&(t=e),Gt(t)&&Ho(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ho(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&fn(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Wt(t[3])){n!==t[3]&&jo(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Lo(e,t,n){for(var r=t.parent;null!=r&&(3===r.type||4===r.type);)r=(t=r).parent;if(null===r)return n[0];if(t&&4===t.type&&4&t.flags)return yn(t,n).parentNode;if(2&r.flags){var i=e.data,o=i[i[r.index].directiveStart].encapsulation;if(o!==Tt.ShadowDom&&o!==Tt.Native)return null}return yn(r,n)}function zo(e,t,n,r){fn(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function qo(e,t,n){fn(e)?e.appendChild(t,n):t.appendChild(n)}function Uo(e,t,n,r){null!==r?zo(e,t,n,r):qo(e,t,n)}function Go(e,t){return fn(e)?e.parentNode(t):t.parentNode}function Wo(e,t){return 3===e.type||4===e.type?yn(e,t):null}function Zo(e,t,n,r){var i=Lo(e,r,t);if(null!=i){var o=t[11],a=Wo(r.parent||t[6],t);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Bo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){uo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){So(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){To(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){jn(!0);try{To(e,t,n)}finally{jn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,$o(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(vn(a)),Wt(a))for(var s=Ut;s0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(mt,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Wt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new na(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=Ut+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return oa(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Mr(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=wr(this._hostTNode,this._hostView);if(pr(e)){var t=gr(e,this._hostView),n=vr(e);return new Mr(t[1].data[n+8],t)}return new Mr(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Ut}}]),r}(e));var o=r[n.index];if(Wt(o))i=o;else{var a;if(3===n.type)a=vn(o);else if(a=r[11].createComment(""),Kt(r)){var s=r[11],u=yn(n,r);zo(s,Go(s,u),a,function(e,t){return fn(e)?e.nextSibling(t):t.nextSibling}(s,u))}else Zo(r[1],r,a,n);r[n.index]=i=wo(o,r,a,n),Eo(r,i)}return new na(i,n,r)}function ua(e,t,n){if(!n&&Qt(e)){var r=bn(e.index,t);return new ra(r,r)}return 2===e.type||0===e.type||3===e.type||4===e.type?new ra(t[16],t):null}var la=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=function(){return ca()},e}(),ca=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ua(In(),An(),e)},da=new rt("Set Injector scope."),ha={},fa={},pa=[],va=void 0;function ga(){return void 0===va&&(va=new gt),va}function ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ma(e,n,t||ga(),r)}var ma=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&bt(n,(function(e){return i.processProvider(e,t,n)})),bt([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(it,ka(void 0,this));var s=this.records.get(da);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Pe(t))}return m(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.Default;this.assertNotDestroyed();var r=ct(this);try{if(!(n&Oe.SkipSelf)){var i=this.records.get(e);if(void 0===i){var o=Ca(e)&&De(e);i=o&&this.injectableDefInScope(o)?ka(_a(e),ha):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var a=n&Oe.Self?ga():this.parent;return a.get(e,t=n&Oe.Optional&&t===ot?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(Pe(e)),r)throw u;return yt(u,e,"R3InjectorError",this.source)}throw u}finally{ct(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(Pe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=ze(e)))return!1;var i=Ie(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Ie(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{bt(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;bt(i,(function(e){return r.processProvider(e,n,i||pa)}))},c=0;c0){var n=wt(t,"?");throw new Error("Can't resolve all parameters for ".concat(Pe(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Me]||e[Ne]||e[Re]&&e[Re]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ba(e,t,n){var r,i=void 0;if(wa(e)){var o=ze(e);return Lt(o)||_a(o)}if(xa(e))i=function(){return ze(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,u(vt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return ft(ze(e.useExisting))};else{var a=ze(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Lt(a)||_a(a);i=function(){return _(a,u(vt(e.deps)))}}return i}function ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function xa(e){return null!==e&&"object"==typeof e&&ut in e}function wa(e){return"function"==typeof e}function Ca(e){return"function"==typeof e||"object"==typeof e&&e instanceof rt}var Oa=function(e,t,n){return function(e){var t=ya(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ea=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Oa(e,t,""):Oa(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=ot,e.NULL=new gt,e.\u0275prov=Te({token:e,providedIn:"any",factory:function(){return ft(it)}}),e.__NG_ELEMENT_ID__=-1,e}();function Sa(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var a=0;a=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=hr(i.hostAttrs,n=hr(n,i.hostAttrs))}}(r)}function Da(e){return e===At?{}:e===Dt?[]:e}function Va(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Ma(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Fa=null;function Ra(){if(!Fa){var e=Qe.Symbol;if(e&&e.iterator)Fa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Oe.Default,n=An();if(null===n)return ft(e,t);var r=In();return Or(r,n,ze(e),t)}function Wa(e,t,n){var r=An();return Ha(r,Bn(),t)&&function(e,t,n,r,i,o,a,s){var u,l,c=yn(t,n),d=t.inputs;null!=d&&(u=d[r])?(Fo(e,n,u,r,i),Qt(t)&&function(e,t){var n=bn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):2===t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=a?a(i,t.tagName||"",r):i,fn(o)?o.setProperty(c,r,i):dr(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(Dn(),tr(),r,e,t,r[11],n),Wa}function Za(e,t,n,r,i){var o=i?"class":"style";Fo(e,n,t.inputs[o],o,r)}function Qa(e,t,n,r){var i=An(),o=Dn(),a=qt+e,s=i[11],u=i[a]=Yi(t,s,Sn.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=Ji(t,e,2,i,Cn(s,o));return co(t,n,u,Cn(s,a)),null!==u.attrs&&Sa(u,u.attrs,!1),null!==u.mergedAttrs&&Sa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(e,o,i,0,t,n,r):o.data[a];Mn(l,!0);var c=l.mergedAttrs;null!==c&&cr(s,u,c);var d=l.classes;null!==d&&Xo(s,u,d);var h=l.styles;null!==h&&Jo(s,u,h),Zo(o,i,u,l),0===Sn.lFrame.elementDepthCount&&wi(u,i),Sn.lFrame.elementDepthCount++,$t(l)&&(io(o,i,l),ro(o,l,i)),null!==r&&oo(i,l)}function $a(){var e=In();Fn()?Rn():Mn(e=e.parent,!1);var t=e;Sn.lFrame.elementDepthCount--;var n=Dn();n.firstCreatePass&&(nr(n,e),Zt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Za(n,t,An(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Za(n,t,An(),t.stylesWithoutHost,!1)}function Ya(e,t,n,r){Qa(e,t,n,r),$a()}function Ka(e,t,n){var r,i;(function(e,t,n){var r=An(),i=Dn(),o=e+qt,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=Cn(o,r),s=Ji(t,e,3,"ng-container",a);return null!==a&&Sa(s,a,!0),co(t,n,s,Cn(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,i,r,t,n):i.data[o];Mn(a,!0);var s=r[o]=r[11].createComment("");Zo(i,r,s,a),wi(s,r),$t(a)&&(io(i,r,a),ro(i,a,r)),null!=n&&oo(r,a)})(e,t,n),r=In(),i=Dn(),Fn()?Rn():Mn(r=r.parent,!1),i.firstCreatePass&&(nr(i,r),Zt(r)&&i.queries.elementEnd(r))}function Ja(){return An()}function Xa(e){return!!e&&"function"==typeof e.then}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=An(),o=Dn(),a=In();return ns(o,i,i[11],a,e,t,n,r),es}function ts(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}function ns(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=$t(r),l=e.firstCreatePass,c=l&&(e.cleanup||(e.cleanup=[])),d=Io(t),h=!0;if(2===r.type){var f=yn(r,t),p=s?s(f):At,v=p.target||f,g=d.length,y=s?function(e){return s(vn(e[r.index])).target}:r.index;if(fn(n)){var m=null;if(!s&&u&&(m=ts(e,t,i,r.index)),null!==m){var _=m.__ngLastListenerFn__||m;_.__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1}else{o=is(r,t,o,!1);var b=n.listen(p.name||v,i,o);d.push(o,b),c&&c.push(i,y,g,g+1)}}else o=is(r,t,o,!0),v.addEventListener(i,o,a),d.push(o),c&&c.push(i,y,g,a)}var k,x=r.outputs;if(h&&null!==x&&(k=x[i])){var w=k.length;if(w)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return Jn(e)}function as(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=An(),i=Dn(),o=Ji(i,e,1,null,n||null);null===o.projection&&(o.projection=t),Rn(),Yo(i,r,o)}var ls=[];function cs(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?Ui(o):Wi(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];ds(e[s],t)&&(u=!0,e[s+1]=r?Qi(l):Gi(l)),s=r?Ui(l):Wi(l)}u&&(e[n+1]=r?Gi(o):Qi(o))}function ds(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Et(e,t)>=0}var hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fs(e){return e.substring(hs.key,hs.keyEnd)}function ps(e){return e.substring(hs.value,hs.valueEnd)}function vs(e,t){var n=hs.textEnd,r=hs.key=gs(e,t,n);return n===r?-1:(r=hs.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=ys(e,r,n),r=hs.value=gs(e,r,n),r=hs.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,s=a;a32&&(s=a),o=i,i=r,r=-33&u}return s}(e,r,n),ys(e,r,n))}function gs(e,t,n){for(;t=0;n=vs(t,n))Os(e,fs(t),ps(t))}function ks(e,t){return t>=e.expandoStartIndex}function xs(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Xn()+qt],a=ks(e,n);As(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Sn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Cs(n=ws(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ws(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Wi(r))return e[Ui(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[Ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Cs(s=ws(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0):l=n,i)if(0!==u){var d=Ui(e[s+1]);e[r+1]=qi(d,s),0!==d&&(e[d+1]=Zi(e[d+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=qi(s,0),0!==s&&(e[s+1]=Zi(e[s+1],r)),s=r;else e[r+1]=qi(u,0),0===s?s=r:e[u+1]=Zi(e[u+1],r),u=r;c&&(e[r+1]=Gi(e[r+1])),cs(e,l,r,!0),cs(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Et(o,t)>=0&&(n[r+1]=Qi(n[r+1]))}(t,l,e,r,o),a=qi(s,u),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ws(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[i+1];h===Ni&&(h=d?ls:void 0);var f=d?Ot(h,r):c===r?h:void 0;if(l&&!Ts(f)&&(f=Ot(u,r)),Ts(f)&&(s=f,a))return s;var p=e[i+1];i=a?Ui(p):Wi(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=Ot(v,r))}return s}function Ts(e){return void 0!==e}function As(e,t){return 0!=(e.flags&(t?16:32))}function Ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=An(),r=Dn(),i=e+qt,o=r.firstCreatePass?Ji(r,e,2,null,null):r.data[i],a=n[i]=No(t,n[11]);Zo(r,n,a,o),Mn(o,!1)}function Vs(e){return Is("",e,""),Vs}function Is(e,t,n){var r=An(),i=function(e,t,n,r){return Ha(e,Bn(),n)?t+Jt(n)+r:Ni}(r,e,t,n);return i!==Ni&&function(e,t,n){var r=gn(t,e),i=e[11];fn(i)?i.setValue(r,n):r.textContent=n}(r,Xn(),i),Is}var Ms=void 0,Fs=["en",[["a","p"],["AM","PM"],Ms],[["AM","PM"],Ms,Ms],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ms,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ms,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ms,"{1} 'at' {0}",Ms],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Rs={};function Ns(e){return e in Rs||(Rs[e]=Qe.ng&&Qe.ng.common&&Qe.ng.common.locales&&Qe.ng.common.locales[e]),Rs[e]}var js=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ps="en-US";function Bs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Hs(e,t,n){var r=Dn();if(r.firstCreatePass){var i=Yt(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=ze(e),Array.isArray(e))for(var o=0;o>20;if(wa(e)||!e.multi){var p=new lr(l,i,Ga),v=Us(u,t,i?d:d+f,h);-1===v?(Cr(br(c,s),a,u),zs(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Us(u,t,d+f,h),y=Us(u,t,d,d+f),m=y>=0&&n[y];if(i&&!m||!i&&!(g>=0&&n[g])){Cr(br(c,s),a,u);var _=function(e,t,n,r,i){var o=new lr(e,n,Ga);return o.multi=[],o.index=t,o.componentProviders=0,qs(o,i,r&&!n),o}(i?Ws:Gs,n.length,i,r,l);!i&&m&&(n[y].providerFactory=_),zs(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else zs(a,e,g>-1?g:y,qs(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function zs(e,t,n,r){var i=wa(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function qs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Us(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Hs(n,r?r(e):e,t)}}}var $s=function e(){g(this,e)},Ys=function e(){g(this,e)},Ks=function(){function e(){g(this,e)}return m(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Js=function(){var e=function e(){g(this,e)};return e.NULL=new Ks,e}(),Xs=function(){var e=function e(t){g(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return eu(e)},e}(),eu=function(e){return oa(e,In(),An())},tu=function e(){g(this,e)},nu=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),ru=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=function(){return iu()},e}(),iu=function(){var e=An(),t=bn(In().index,e);return function(e){var t=e[11];if(fn(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Gt(t)?t:e)},ou=function(){var e=function e(){g(this,e)};return e.\u0275prov=Te({token:e,providedIn:"root",factory:function(){return null}}),e}(),au=new function e(t){g(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.2.3"),su=function(){function e(){g(this,e)}return m(e,[{key:"supports",value:function(e){return ja(e)}},{key:"create",value:function(e){return new lu(e)}}]),e}(),uu=function(e,t){return t},lu=function(){function e(t){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||uu}return m(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&Xo(l,d,_.join(" "))}if(o=mn(p,0),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ea.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.Default;return e===Ea||e===mt||e===it?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(mt),Fu=function(e){d(n,e);var t=v(n);function n(e){var r,i,o;return g(this,n),(r=t.call(this)).moduleType=e,null!==zt(e)&&(i=e,o=new Set,function e(t){var n=zt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Pe(t)," vs ").concat(Pe(t.name)))}(r,Iu.get(r),t),Iu.set(r,t));var i,a=l(nn(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(i)),r}return m(n,[{key:"create",value:function(e){return new Mu(this.moduleType,e)}}]),n}(_t);function Ru(e,t,n,r){return Pu(An(),Pn(),e,t,n,r)}function Nu(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return La(e,s,i,o)?Ba(e,s+2,a?r.call(a,i,o):r(i,o)):ju(e,s+2)}(An(),Pn(),e,t,n,r,i)}function ju(e,t){var n=e[t];return n===Ni?void 0:n}function Pu(e,t,n,r,i,o){var a=t+n;return Ha(e,a,i)?Ba(e,a+1,o?r.call(o,i):r(i)):ju(e,a+1)}function Bu(e,t){var n,r=Dn(),i=e+qt;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Lt(n.type)),a=dt(Ga);try{var s=mr(!1),u=o();return mr(s),function(e,t,n,r){var i=n+qt;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,An(),e,u),u}finally{dt(a)}}function Hu(e,t,n){var r=An(),i=_n(r,e);return function(e,t){return Na.isWrapped(t)&&(t=Na.unwrap(t),e[Sn.lFrame.bindingIndex]=Ni),t}(r,function(e,t){return e[1].data[t+qt].pure}(r,e)?Pu(r,Pn(),t,i.transform,n,i):i.transform(n))}var Lu=function(e){d(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,n),(e=t.call(this)).__isAsync=r,e}return m(n,[{key:"emit",value:function(e){i(r(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout((function(){return o()}))}:function(){o()}));var l=i(r(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof C&&e.add(l),l}}]),n}(z);function zu(){return this._results[Ra()]()}var qu=function(){function e(){g(this,e),this.dirty=!0,this._results=[],this.changes=new Lu,this.length=0;var t=Ra(),n=e.prototype;n[t]||(n[t]=zu)}return m(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Zu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&3===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)i.push(s[u/2]);else{for(var c=a[u+1],d=n[-l],h=Ut;h0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Al))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Bl=function(){var e=function(){function e(){g(this,e),this._applications=new Map,Hl.addToWindow(this)}return m(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Hl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Hl=new(function(){function e(){g(this,e)}return m(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ll=function(e,t,n){var r=new Fu(n);return Promise.resolve(r)},zl=new rt("AllowMultipleToken");function ql(e){if(Nl&&!Nl.destroyed&&!Nl.injector.get(zl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nl=e.get(Zl);var t=e.get(fl,null);return t&&t.forEach((function(e){return e()})),Nl}function Ul(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new rt(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Wl();if(!o||o.injector.get(zl,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:da,useValue:"platform"});ql(Ea.create({providers:a,name:r}))}return Gl(i)}}function Gl(e){var t=Wl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Wl(){return Nl&&!Nl.destroyed?Nl:null}var Zl=function(){var e=function(){function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(r=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new jl:("zone.js"===n?void 0:n)||new Al({enableLongStackTrace:Kr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Al,useValue:o}];return o.run((function(){var t=Ea.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Br,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Yl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(ll)).runInitializers(),a.donePromise.then((function(){return Bs(n.injector.get(yl,Ps)||Ps),i._moduleDoBootstrap(n),n})));return Xa(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ql({},n);return Ll(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get($l);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Ea))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function Ql(e,t){return Array.isArray(t)?t.reduce(Ql,e):Object.assign(Object.assign({},e),t)}var $l=function(){var e=function(){function e(t,n,r,i,o,a){var s=this;g(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Kr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new j((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new j((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Al.assertNotInAngularZone(),Tl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Al.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=le(u,l.pipe(ye()))}return m(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ys?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(mt),o=n.create(Ea.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Pl,null);return a&&o.injector.get(Bl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Kr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=l(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=l(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Yl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vl,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Yl(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ft(Al),ft(gl),ft(Ea),ft(Br),ft(Js),ft(ll))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function Yl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Kl=Ul(null,"core",[{provide:pl,useValue:"unknown"},{provide:Zl,deps:[Ea]},{provide:Bl,deps:[]},{provide:gl,deps:[]}]),Jl=[{provide:$l,useClass:$l,deps:[Al,gl,Ea,Br,Js,ll]},{provide:Au,deps:[Al],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ll,useClass:ll,deps:[[new xe,ul]]},{provide:El,useClass:El,deps:[]},dl,{provide:yu,useFactory:function(){return bu},deps:[]},{provide:mu,useFactory:function(){return ku},deps:[]},{provide:yl,useFactory:function(e){return Bs(e=e||"undefined"!=typeof $localize&&$localize.locale||Ps),e},deps:[[new ke(yl),new xe,new Ce]]},{provide:ml,useValue:"USD"}],Xl=function(){var e=function e(t){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)(ft($l))},providers:Jl}),e}(),ec=null;function tc(){return ec}var nc=function e(){g(this,e)},rc=new rt("DocumentToken"),ic=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),oc=function e(){g(this,e)},ac=function(){var e=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this)).locale=e,r}return m(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ns(t);if(n)return n;var r=t.split("-")[0];if(n=Ns(r))return n;if("en"===r)return Fs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[js.PluralCase]}(t||this.locale)(e)){case ic.Zero:return"zero";case ic.One:return"one";case ic.Two:return"two";case ic.Few:return"few";case ic.Many:return"many";default:return"other"}}}]),n}(oc);return e.\u0275fac=function(t){return new(t||e)(ft(yl))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),sc=function(){var e=function(){function e(t,n,r,i){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return m(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Pe(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ja(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(yu),Ga(mu),Ga(Xs),Ga(ru))},e.\u0275dir=Pt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),uc=function(){function e(t,n,r,i){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return m(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),lc=function(){var e=function(){function e(t,n,r){g(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new uc(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new cc(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new cc(e,s);n.push(u)}}));for(var r=0;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Qe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Qe.getAllAngularRootElements=function(){return e.getAllRootElements()},Qe.frameworkStabilizers||(Qe.frameworkStabilizers=[]),Qe.frameworkStabilizers.push((function(e){var t=Qe.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?tc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Hl=t}}]),e}(),wc=new rt("EventManagerPlugins"),Cc=function(){var e=function(){function e(t,n){var r=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return m(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&zc.hasOwnProperty(t)&&(t=zc[t]))}return Lc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Hc.forEach((function(r){r!=n&&(0,qc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Oc);return e.\u0275fac=function(t){return new(t||e)(ft(rc))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Gc=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return ft(Wc)},token:e,providedIn:"root"}),e}(),Wc=function(){var e=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this))._doc=e,r}return m(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case ki.NONE:return t;case ki.HTML:return Zr(t,"HTML")?Wr(t):_i(this._doc,String(t));case ki.STYLE:return Zr(t,"Style")?Wr(t):t;case ki.SCRIPT:if(Zr(t,"Script"))return Wr(t);throw new Error("unsafe value used in a script context");case ki.URL:return Qr(t),Zr(t,"URL")?Wr(t):ni(String(t));case ki.RESOURCE_URL:if(Zr(t,"ResourceURL"))return Wr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Lr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new zr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new qr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Ur(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Gr(e)}}]),n}(Gc);return e.\u0275fac=function(t){return new(t||e)(ft(rc))},e.\u0275prov=Te({factory:function(){return e=ft(it),new Wc(e.get(rc));var e},token:e,providedIn:"root"}),e}(),Zc=Ul(Kl,"browser",[{provide:pl,useValue:"browser"},{provide:fl,useValue:function(){mc.makeCurrent(),xc.init()},multi:!0},{provide:rc,useFactory:function(){return function(e){dn=e}(document),document},deps:[]}]),Qc=[[],{provide:da,useValue:"root"},{provide:Br,useFactory:function(){return new Br},deps:[]},{provide:wc,useClass:Bc,multi:!0,deps:[rc,Al,pl]},{provide:wc,useClass:Uc,multi:!0,deps:[rc]},[],{provide:Rc,useClass:Rc,deps:[Cc,Sc,cl]},{provide:tu,useExisting:Rc},{provide:Ec,useExisting:Sc},{provide:Sc,useClass:Sc,deps:[rc]},{provide:Pl,useClass:Pl,deps:[Al]},{provide:Cc,useClass:Cc,deps:[wc,Al]},[]],$c=function(){var e=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:cl,useValue:t.appId},{provide:bc,useExisting:cl},kc]}}}]),e}();return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)(ft(e,12))},providers:Qc,imports:[yc,Xl]}),e}();function Yc(e,t){if(1&e){var n=Ja();Qa(0,"span",7),es("click",(function(e){Vn(n);var t=os().$implicit,r=os();return e.preventDefault(),r.removeTab(t)})),Ds(1," \u274c"),$a()}}"undefined"!=typeof window&&window;var Kc=function(e){return["nav-item",e]};function Jc(e,t){if(1&e){var n=Ja();Qa(0,"li",3),es("keydown",(function(e){Vn(n);var r=t.index;return os().keyNavActions(e,r)})),Qa(1,"a",4),es("click",(function(){return t.$implicit.active=!0})),Qa(2,"span",5),Ds(3),$a(),qa(4,Yc,2,0,"span",6),$a(),$a()}if(2&e){var r=t.$implicit;_s("active",r.active)("disabled",r.disabled),Wa("ngClass",Ru(15,Kc,r.customClass||"")),Li(1),_s("active",r.active)("disabled",r.disabled),za("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),Li(1),Wa("ngTransclude",r.headingRef),Li(1),Vs(r.heading),Li(1),Wa("ngIf",r.removable)}}var Xc=["*"],ed=function(){var e=function(){function e(t){g(this,e),this.viewRef=t}return m(e,[{key:"ngTransclude",set:function(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)},get:function(){return this._ngTransclude}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(Cu))},e.\u0275dir=Pt({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),td=function(){var e=function e(){g(this,e),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return new e},token:e,providedIn:"root"}),e}(),nd=function(){var e=function(){function e(t,n,r){g(this,e),this.renderer=n,this.elementRef=r,this.clazz=!0,this.tabs=[],this.classMap={},Object.assign(this,t)}return m(e,[{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(e){this.tabs.push(e),e.active=1===this.tabs.length&&void 0===e.active}},{key:"removeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},n=this.tabs.indexOf(e);if(-1!==n&&!this.isDestroyed){if(t.reselect&&e.active&&this.hasAvailableTabs(n)){var r=this.getClosestTabIndex(n);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(n,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(e,t){if(this.isKeysAllowed){var n=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void n[t%n.length].click();if(39!==e.keyCode&&"RightArrow"!==e.key)if(37!==e.keyCode&&"LeftArrow"!==e.key)if(36!==e.keyCode&&"Home"!==e.key)if(35!==e.keyCode&&"End"!==e.key){if((46===e.keyCode||"Delete"===e.key)&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),n[t+1])return void n[(t+1)%n.length].focus();n[n.length-1]&&n[0].focus()}}else{var r;e.preventDefault();var i=1,o=t;do{o-i<0?(r=n[o=n.length-1],i=0):r=n[o-i],i++}while(r.classList.contains("disabled"));r.focus()}else{var a;e.preventDefault();var s=0;do{a=n[s%n.length],s++}while(a.classList.contains("disabled"));a.focus()}else{var u,l=1,c=t;do{c-l<0?(u=n[c=n.length-1],l=0):u=n[c-l],l++}while(u.classList.contains("disabled"));u.focus()}else{var d,h=1;do{d=n[(t+h)%n.length],h++}while(d.classList.contains("disabled"));d.focus()}}}},{key:"getClosestTabIndex",value:function(e){var t=this.tabs.length;if(!t)return-1;for(var n=1;n<=t;n+=1){var r=e-n,i=e+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1}},{key:"hasAvailableTabs",value:function(e){var t=this.tabs.length;if(!t)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Pt({type:e}),e}(),vd=function(){var e=function(e){d(n,e);var t=v(n);function n(){return g(this,n),t.apply(this,arguments)}return m(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(pd);return e.\u0275fac=function(t){return gd(t||e)},e.\u0275dir=Pt({type:e,features:[Aa]}),e}(),gd=Rr(vd),yd=function(e){d(n,e);var t=v(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return m(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(pd),md=function(){function e(t){g(this,e),this._cd=t}return m(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),_d=function(){var e=function(e){d(n,e);var t=v(n);function n(e){return g(this,n),t.call(this,e)}return n}(md);return e.\u0275fac=function(t){return new(t||e)(Ga(yd,2))},e.\u0275dir=Pt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_s("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Aa]}),e}();function bd(e){return null==e||0===e.length}function kd(e){return null!=e&&"number"==typeof e.length}var xd=new rt("NgValidators"),wd=new rt("NgAsyncValidators"),Cd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Od=function(){function e(){g(this,e)}return m(e,null,[{key:"min",value:function(e){return function(t){if(bd(t.value)||bd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return bd(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return bd(e.value)||Cd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return bd(t.value)||!kd(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(bd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Ed);return 0==t.length?null:function(e){return Td(Ad(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Ed);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Rd=function(){var e=function(){function e(t,n,r,i){g(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return m(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(yd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(ru),Ga(Xs),Ga(Fd),Ga(Ea))},e.\u0275dir=Pt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Qs([Md])]}),e}(),Nd={provide:ud,useExisting:Le((function(){return jd})),multi:!0},jd=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return m(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ga(ru),Ga(Xs))},e.\u0275dir=Pt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Qs([Nd])]}),e}(),Pd={provide:ud,useExisting:Le((function(){return Bd})),multi:!0},Bd=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return m(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Kd,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Jd,this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=$d,this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==$d&&this.status!==Kd||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Jd:$d}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=Kd,this._hasOwnPendingAsyncValidator=!0;var n=Sd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof ah?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof sh&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Lu,this.statusChanges=new Lu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Jd:this.errors?Yd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kd)?Kd:this._anyControlsHaveStatus(Yd)?Yd:$d}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){rh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===$d}},{key:"invalid",get:function(){return this.status===Yd}},{key:"pending",get:function(){return this.status==Kd}},{key:"disabled",get:function(){return this.status===Jd}},{key:"enabled",get:function(){return this.status!==Jd}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),oh=function(e){d(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this,Xd(i),th(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return m(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ih),ah=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,Xd(r),th(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof oh?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(ih),sh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,Xd(r),th(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof oh?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=l(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(ih),uh={provide:yd,useExisting:Le((function(){return ch}))},lh=function(){return Promise.resolve(null)}(),ch=function(){var e=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this)).control=new oh,s._registered=!1,s.update=new Lu,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=Qd(o(s),a),s}return m(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Wd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){zd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;lh.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;lh.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(u(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Ud(this._rawValidators)}},{key:"asyncValidator",get:function(){return Gd(this._rawAsyncValidators)}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(Ga(vd,9),Ga(xd,10),Ga(wd,10),Ga(ud,10))},e.\u0275dir=Pt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qs([uh]),Aa,an]}),e}(),dh=new rt("NgModelWithFormControlWarning"),hh={provide:yd,useExisting:Le((function(){return fh}))},fh=function(){var e=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new Lu,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=r||[],s.valueAccessor=Qd(o(s),i),s}return m(n,[{key:"ngOnChanges",value:function(e){var t,r;this._isControlChanged(e)&&(zd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Wd(e,this.viewModel)&&(t=n,this,r=this._ngModelWarningConfig,Kr()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return Ud(this._rawValidators)}},{key:"asyncValidator",get:function(){return Gd(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(Ga(xd,10),Ga(wd,10),Ga(ud,10),Ga(dh,8))},e.\u0275dir=Pt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Qs([hh]),Aa,an]}),e._ngModelWarningSentOnce=!1,e}(),ph=function(){var e=function e(){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)}}),e}();function vh(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var gh=function(){var e=function(){function e(){g(this,e)}return m(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(vh(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new ah(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new oh(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map((function(e){return r._createControl(e)}));return new sh(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]=t._createControl(e[r])})),n}},{key:"_createControl",value:function(e){return e instanceof oh||e instanceof ah||e instanceof sh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),yh=function(){var e=function e(){g(this,e)};return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)},providers:[Fd],imports:[ph]}),e}(),mh=function(){var e=function(){function e(){g(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:dh,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=Nt({type:e}),e.\u0275inj=Ae({factory:function(t){return new(t||e)},providers:[gh,Fd],imports:[ph]}),e}();function _h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var bh=function(e){d(n,e);var t=v(n);function n(e){var r;return g(this,n),(r=t.call(this))._value=e,r}return m(n,[{key:"_subscribe",value:function(e){var t=i(r(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new B;return this._value}},{key:"next",value:function(e){i(r(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(z),kh=function(e){d(n,e);var t=v(n);function n(){return g(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(V),xh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(V);function wh(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new xh(e,n,r);if(!i.closed)return t instanceof j?t.subscribe(i):X(t)(i)}var Ch={};function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new Mh(e,t,n))}}var Mh=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Fh(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Fh=function(e){d(n,e);var t=v(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return m(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(V),Rh=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Nh(e){return function(t){return 0===e?Ah:t.lift(new jh(e))}}var jh=function(){function e(t){if(g(this,e),this.total=t,this.total<0)throw new Rh}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ph(e,this.total))}}]),e}(),Ph=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return m(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Hh(e))}}var Hh=function(){function e(t){g(this,e),this.defaultValue=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Lh(e,this.defaultValue))}}]),e}(),Lh=function(e){d(n,e);var t=v(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return m(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(V);function zh(e,t,n){return 0===n?[t]:(e.push(t),e)}function qh(){return function(e,t){return arguments.length>=2?function(n){return R(Ih(e,t),Nh(1),Bh(t))(n)}:function(t){return R(Ih((function(t,n,r){return e(t,n,r+1)})),Nh(1))(t)}}(zh,[])}function Uh(e,t){return function(n){return n.lift(new Gh(e,t))}}var Gh=function(){function e(t,n){g(this,e),this.predicate=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Wh(e,this.predicate,this.thisArg))}}]),e}(),Wh=function(e){d(n,e);var t=v(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(V);function Zh(){}var Qh=function(){function e(t,n,r){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new $h(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),$h=function(e){d(n,e);var t=v(n);function n(e,r,i,a){var s;return g(this,n),(s=t.call(this,e))._tapNext=Zh,s._tapError=Zh,s._tapComplete=Zh,s._tapError=i||Zh,s._tapComplete=a||Zh,x(r)?(s._context=o(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||Zh,s._tapError=r.error||Zh,s._tapComplete=r.complete||Zh),s}return m(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(V),Yh=n("XaGS"),Kh=n.n(Yh),Jh=n("oxjq"),Xh=Jh,ef=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Xh(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),tf=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter((function(){return!0}))}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter((function(t){return e(t)}))},e}(),nf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option",""]]}),e}(),rf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),of=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ga(xu))},e.\u0275dir=Pt({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),af=["main"],sf=["input"],uf=["choiceMenu"];function lf(e,t){if(1&e&&(Qa(0,"span",17),Ya(1,"span",18),$a()),2&e){var n=os(2);Li(1),Wa("innerHtml",n.placeholder,xi)}}var cf=function(e){return{"ngx-select__allow-clear":e}},df=function(e,t){return{$implicit:e,index:0,text:t}};function hf(e,t){if(1&e&&(Qa(0,"span",19),Ka(1,20),$a()),2&e){var n=os(2),r=Ua(8);Wa("ngClass",Ru(3,cf,n.allowClear)),Li(1),Wa("ngTemplateOutlet",n.templateSelectedOption||r)("ngTemplateOutletContext",Nu(5,df,n.optionsSelected[0],n.sanitize(n.optionsSelected[0].text)))}}function ff(e,t){if(1&e){var n=Ja();Qa(0,"a",21),es("click",(function(e){Vn(n);var t=os(2);return t.optionRemove(t.optionsSelected[0],e)})),Ya(1,"i",22),$a()}2&e&&Wa("ngClass",os(2).setBtnSize())}function pf(e,t){if(1&e){var n=Ja();Qa(0,"div",9),Qa(1,"div",10),es("click",(function(){return Vn(n),os().optionsOpen()})),qa(2,lf,2,1,"span",11),qa(3,hf,2,8,"span",12),Qa(4,"span",13),qa(5,ff,2,1,"a",14),Ya(6,"i",15),Ya(7,"i",16),$a(),$a(),$a()}if(2&e){var r=os();Li(1),Wa("ngClass",r.setFormControlSize(r.setBtnSize())),Li(1),Wa("ngIf",!r.optionsSelected.length),Li(1),Wa("ngIf",r.optionsSelected.length),Li(2),Wa("ngIf",r.canClearNotMultiple())}}var vf=function(e,t,n){return{$implicit:e,index:t,text:n}};function gf(e,t){if(1&e){var n=Ja();Qa(0,"span"),Qa(1,"span",25),es("click",(function(e){return Vn(n),e.stopPropagation()})),Ka(2,20),Qa(3,"a",26),es("click",(function(e){Vn(n);var r=t.$implicit;return os(2).optionRemove(r,e)})),Ya(4,"i",22),$a(),$a(),$a()}if(2&e){var r=t.$implicit,i=t.index,o=os(2),a=Ua(8);Li(1),Wa("ngClass",o.setBtnSize()),Li(1),Wa("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",(s=4,u=vf,l=r,c=i,d=o.sanitize(r.text),function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=La(e,t,n,r);return Ha(e,t+2,i)||o}(e,u,i,o,a)?Ba(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):ju(e,u+3)}(An(),Pn(),s,u,l,c,d,h))),Li(1),Wa("ngClass",o.setBtnSize())}var s,u,l,c,d,h}function yf(e,t){if(1&e){var n=Ja();Qa(0,"div",23),es("click",(function(){Vn(n);var e=os();return e.inputClick(e.inputElRef&&e.inputElRef.value)})),qa(1,gf,5,8,"span",24),$a()}if(2&e){var r=os();Li(1),Wa("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function mf(e,t){if(1&e){var n=Ja();Qa(0,"input",27,28),es("keyup",(function(e){Vn(n);var t=Ua(1);return os().inputKeyUp(t.value,e)}))("click",(function(){Vn(n);var e=Ua(1);return os().inputClick(e.value)})),$a()}if(2&e){var r=os();Wa("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function _f(e,t){1&e&&Ya(0,"div",37)}function bf(e,t){if(1&e&&(Qa(0,"div",38),Ds(1),$a()),2&e){var n=os().$implicit;Li(1),Vs(n.label)}}var kf=function(e,t){return{"ngx-select__item_active active":e,"ngx-select__item_disabled disabled":t}},xf=function(e,t,n,r){return{$implicit:e,text:t,index:n,subIndex:r}};function wf(e,t){if(1&e){var n=Ja();Qa(0,"a",39,40),es("mouseenter",(function(){Vn(n);var e=t.$implicit,r=os(3);return r.onMouseEnter({activeOption:e,filteredOptionList:r.optionsFiltered,index:r.optionsFiltered.indexOf(e)})}))("click",(function(e){Vn(n);var r=t.$implicit;return os(3).optionSelect(r,e)})),Ka(2,20),$a()}if(2&e){var r=t.$implicit,i=t.index,o=os().index,a=os(2),s=Ua(8);Wa("ngClass",Nu(3,kf,r.active,r.disabled)),Li(2),Wa("ngTemplateOutlet",a.templateOption||s)("ngTemplateOutletContext",(u=6,l=xf,c=r,d=r.highlightedText,h=o,f=i,function(e,t,n,r,i,o,a,s,u){var l=t+n;return function(e,t,n,r,i,o){var a=La(e,t,n,r);return La(e,t+2,i,o)||a}(e,l,i,o,a,s)?Ba(e,l+4,u?r.call(u,i,o,a,s):r(i,o,a,s)):ju(e,l+4)}(An(),Pn(),u,l,c,d,h,f,p)))}var u,l,c,d,h,f,p}var Cf=function(e){return[e]};function Of(e,t){if(1&e&&(Qa(0,"li",33),qa(1,_f,1,0,"div",34),qa(2,bf,2,1,"div",35),qa(3,wf,3,11,"a",36),$a()),2&e){var n=t.$implicit,r=t.index,i=os(2);Li(1),Wa("ngIf","optgroup"===n.type&&r>0),Li(1),Wa("ngIf","optgroup"===n.type),Li(1),Wa("ngForOf",n.optionsFiltered||Ru(4,Cf,n))("ngForTrackBy",i.trackByOption)}}var Ef=function(e){return{$implicit:e}};function Sf(e,t){if(1&e&&(Qa(0,"li",41),Ka(1,20),$a()),2&e){var n=os(2),r=Ua(10);Li(1),Wa("ngTemplateOutlet",n.templateOptionNotFound||r)("ngTemplateOutletContext",Ru(2,Ef,n.inputText))}}function Tf(e,t){if(1&e&&(Qa(0,"ul",29,30),qa(2,Of,4,6,"li",31),qa(3,Sf,2,4,"li",32),$a()),2&e){var n=os();_s("show",n.showChoiceMenu()),Wa("ngClass",n.dropDownMenuOtherClasses),Li(2),Wa("ngForOf",n.optionsFiltered)("ngForTrackBy",n.trackByOption),Li(1),Wa("ngIf",!n.optionsFiltered.length)}}function Af(e,t){1&e&&Ya(0,"span",18),2&e&&Wa("innerHtml",t.text,xi)}function Df(e,t){1&e&&Ds(0),2&e&&Is(" ",os().noResultsFound," ")}var Vf=function(e,t){return{"ngx-select_multiple form-control":e,"open show":t}},If=function(e){return{"ngx-select__disabled":e}},Mf=Jh,Ff=new rt("NGX_SELECT_OPTIONS"),Rf=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function Nf(e,t){return t in e}var jf=function(){function e(e,t,n,r){var i,o=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new Lu,this.focus=new Lu,this.blur=new Lu,this.open=new Lu,this.close=new Lu,this.select=new Lu,this.remove=new Lu,this.navigated=new Lu,this.selectionChanges=new Lu,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new bh([]),this.subjSearchText=new bh(""),this.subjOptionsSelected=new bh([]),this.subjExternalValue=new bh([]),this.subjDefaultValue=new bh([]),this.subjRegisterOnChange=new z,this._focusToInput=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,r),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe((function(e){return o.subjSearchText.next(e)})),this.subjOptionsSelected.subscribe((function(e){return o.selectionChanges.emit(e)}));var a,s=Oh([le(this.subjExternalValue.pipe(G((function(e){return i=null===e?[]:[].concat(e)}))),this.subjOptionsSelected.pipe(G((function(e){return e.map((function(e){return e.value}))})))),this.subjDefaultValue]).pipe(G((function(e){var t=_h(e,2),n=t[0],r=t[1],i=Kh()(n,r)?[]:n;return i.length?i:r})),(a=function(e,t){return Kh()(e,t)},function(e){return e.lift(new Dh(a,void 0))}),ye());Oh([s,this.subjRegisterOnChange]).pipe(G((function(e){return _h(e,1)[0]}))).subscribe((function(e){o.actualValue=e,Kh()(e,i)||(i=e,o.onChange(o.multiple?e:e.length?e[0]:null))})),Oh([this.subjOptions.pipe(ie((function(e){return te(e).pipe(ie((function(e){return e instanceof ef?Th(e):e instanceof tf?te(e.options):Ah})),qh())}))),s]).pipe(G((function(e){var t=_h(e,2),n=t[0],r=[];if(t[1].forEach((function(e){var t=n.find((function(t){return t.value===e}));t&&r.push(t)})),o.keepSelectedItems){var i=r.map((function(e){return e.value})),a=o.subjOptionsSelected.value.filter((function(e){return-1===i.indexOf(e.value)}));r.push.apply(r,function(){for(var e=[],t=0;t=0?r:n.length-1;break;case Rf.next:r=n.indexOf(t.optionActive)+1,i.index=r0?o:0}return i.activeOption=n[i.index],i}))).subscribe((function(e){return t.optionActivate(e)}))},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.ngOnDestroy=function(){this.cd.detach()},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(Rf.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Rf.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Rf.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Rf.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Rf.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:(this.multiple||this.canClearNotMultiple())&&this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof ef?t.value:t instanceof tf?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),t.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?this.typed.emit(e):!this.optionsOpened&&e&&this.optionsOpen(e)},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.keepSelectMenuOpened||this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter((function(t){return t!==e}))),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var r=this,i=new RegExp(Mf(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter((function(e){if(e instanceof ef)return o(e);if(e instanceof tf){var t=e;return t.filter((function(e){return o(e)})),t.optionsFiltered.length}}))},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopt.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.clientHeight)}},e.prototype.showChoiceMenu=function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?Rf.firstSelected:Rf.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t=this,n=[];return Array.isArray(e)&&e.forEach((function(e){if("object"==typeof e&&null!==e&&Nf(e,t.optGroupLabelField)&&Nf(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new tf(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach((function(e){var n=t.buildOption(e,r);n&&r.options.push(n)})),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}})),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!Nf(e,this.optionValueField)&&!Nf(e,this.optionTextField))return null;n=Nf(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=Nf(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!Nf(e,"disabled")&&e.disabled}return new ef(n,r,i,e,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cd.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ga(yu),Ga(Gc),Ga(la),Ga(Ff,8))},e.\u0275cmp=It({type:e,selectors:[["ngx-select"]],contentQueries:function(e,t,n){var r;1&e&&(tl(n,nf,!0,xu),tl(n,rf,!0,xu),tl(n,of,!0,xu)),2&e&&(Ju(r=rl())&&(t.templateOption=r.first),Ju(r=rl())&&(t.templateSelectedOption=r.first),Ju(r=rl())&&(t.templateOptionNotFound=r.first))},viewQuery:function(e,t){var n,r;1&e&&(r=af,!0,el(Dn(),An(),r,true,undefined,!0),Xu(sf,!0),Xu(uf,!0)),2&e&&(Ju(n=rl())&&(t.mainElRef=n.first),Ju(n=rl())&&(t.inputElRef=n.first),Ju(n=rl())&&(t.choiceMenuElRef=n.first))},hostBindings:function(e,t){1&e&&es("focusin",(function(e){return t.documentClick(e)}),!1,tn)("click",(function(e){return t.documentClick(e)}),!1,tn)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",navigated:"navigated",selectionChanges:"selectionChanges"},features:[Qs([{provide:ud,useExisting:Le((function(){return e})),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],["role","menu","class","ngx-select__choices dropdown-menu",3,"ngClass","show",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(e,t){1&e&&(Qa(0,"div",0,1),es("click",(function(e){return t.mainClicked(e)}))("focusin",(function(e){return t.mainClicked(e)}))("focus",(function(){return t.focusToInput()}))("keydown",(function(e){return t.inputKeyDown(e)})),Ya(2,"div",2),qa(3,pf,8,4,"div",3),qa(4,yf,2,2,"div",4),qa(5,mf,2,5,"input",5),qa(6,Tf,4,6,"ul",6),qa(7,Af,1,1,"ng-template",null,7,sl),qa(9,Df,1,1,"ng-template",null,8,sl),$a()),2&e&&(Wa("tabindex",t.disabled?-1:0)("ngClass",t.setFormControlSize(Nu(7,Vf,!0===t.multiple,t.optionsOpened&&t.optionsFiltered.length),!0===t.multiple)),Li(2),Wa("ngClass",Ru(10,If,t.disabled)),Li(1),Wa("ngIf",!1===t.multiple&&(!t.optionsOpened||t.noAutoComplete)),Li(1),Wa("ngIf",!0===t.multiple),Li(1),Wa("ngIf",t.checkInputVisibility()),Li(1),Wa("ngIf",t.isFocused))},directives:[sc,dc,vc,lc],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],changeDetection:0}),e}(),Pf=function(){function e(){var e=this;this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.ngxControl=new oh,this.inputTyped=function(e,t){return console.log("SingleDemoComponent.inputTyped",e,t)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(e){return console.log("SingleDemoComponent.doSelect",e)},this.doRemove=function(e){return console.log("SingleDemoComponent.doRemove",e)},this.doSelectOptions=function(e){return console.log("SingleDemoComponent.doSelectOptions",e)},this._ngxDefaultTimeout=setTimeout((function(){e._ngxDefaultInterval=setInterval((function(){var t=Math.floor(Math.random()*(e.items.length-1));e._ngxDefault=e.items[t]}),2e3)}),2e3)}return e.prototype.ngOnDestroy=function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)},e.prototype.doNgxDefault=function(){return this._ngxDefault},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select a single city"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("typed",(function(e){return t.inputTyped("ngx-select",e)}))("focus",(function(){return t.doFocus()}))("blur",(function(){return t.doBlur()}))("open",(function(){return t.doOpen()}))("close",(function(){return t.doClose()}))("select",(function(e){return t.doSelect(e)}))("remove",(function(e){return t.doRemove(e)}))("selectionChanges",(function(e){return t.doSelectOptions(e)})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxControl.disabled?t.ngxControl.enable():t.ngxControl.disable()})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("formControl",t.ngxControl)("allowClear",!0)("defaultValue",t.doNgxDefault())("items",t.items),Li(4),Vs(Hu(9,6,t.ngxControl.value)),Li(4),Is(" ",t.ngxControl.disabled?"Enable":"Disable"," "))},directives:[jf,_d,fh],pipes:[gc],encapsulation:2}),e}(),Bf=function(){function e(){this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Leeds","Leipzig","Lisbon","\u0141\xf3d\u017a","London","Krak\xf3w","Madrid","M\xe1laga","Manchester","Marseille","Milan","Munich","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza"],this.ngxValue=[],this.ngxDisabled=!1,this.doSelectOptions=function(e){return console.log("MultipleDemoComponent.doSelectOptions",e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select multiple cities"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("ngModelChange",(function(e){return t.ngxValue=e}))("selectionChanges",(function(e){return t.doSelectOptions(e)})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxDisabled=!t.ngxDisabled})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("multiple",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue)("autoClearSearch",!0),Li(4),Vs(Hu(9,7,t.ngxValue)),Li(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[jf,_d,ch],pipes:[gc],encapsulation:2}),e}(),Hf=function(){function e(){this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=It({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h3"),Ds(1,"Select a city by country"),$a(),Qa(2,"div",0),Qa(3,"div",1),Qa(4,"ngx-select",2),es("ngModelChange",(function(e){return t.ngxValue=e})),$a(),Ya(5,"p"),Qa(6,"div",3),Qa(7,"pre"),Ds(8),Bu(9,"json"),$a(),$a(),Qa(10,"div"),Qa(11,"button",4),es("click",(function(){return t.ngxDisabled=!t.ngxDisabled})),Ds(12),$a(),$a(),$a(),$a()),2&e&&(Li(4),Wa("allowClear",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue),Li(4),Vs(Hu(9,6,t.ngxValue)),Li(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[jf,_d,ch],pipes:[gc],encapsulation:2}),e}();function Lf(e,t){if(1&e&&(Ya(0,"span",7),Ya(1,"span",8),Ds(2)),2&e){var n=t.$implicit,r=t.text;(function(e,t,n,r){var i=Dn(),o=Hn(2);i.firstUpdatePass&&xs(i,null,o,r);var a=An();if(n!==Ni&&Ha(a,o,n)){var s=i.data[Xn()+qt];if(As(s,r)&&!ks(i,o)){var u=s.stylesWithoutHost;null!==u&&(n=Be(u,n||"")),Za(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===Ni&&(i=ls);for(var u=0,l=0,c=0