Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ng-select/ng-select

Package Overview
Dependencies
Maintainers
2
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-select/ng-select - npm Package Compare versions

Comparing version 0.23.2 to 0.23.3

2

bundles/ng-select.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,t,n,i,o,s,r){"use strict";function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(o)throw o.error}}return r}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function c(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return m[e]||e})}var p=function(){return function(e){this.template=e}}();p.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],p.ctorParameters=function(){return[{type:t.TemplateRef}]};var d=function(){return function(e){this.template=e}}();d.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],d.ctorParameters=function(){return[{type:t.TemplateRef}]};var u=function(){return function(e){this.template=e}}();u.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],u.ctorParameters=function(){return[{type:t.TemplateRef}]};var h=function(){return function(e){this.template=e}}();h.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],h.ctorParameters=function(){return[{type:t.TemplateRef}]};var g={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};g[g.Tab]="Tab",g[g.Enter]="Enter",g[g.Esc]="Esc",g[g.Space]="Space",g[g.ArrowUp]="ArrowUp",g[g.ArrowDown]="ArrowDown",g[g.Backspace]="Backspace";var m={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},f=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!1),this._items=e.map(function(e,i){return n.mapItem(e,t,i)}),this._filteredItems=a(this._items)},e.prototype.select=function(e){e.selected||this.maxItemsSelected()||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(e),e.selected=!0)},e.prototype.maxItemsSelected=function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},e.prototype.findItem=function(e){var t=this;if(this._ngSelect.bindValue)return this._items.find(function(n){return t.resolveNested(n.value,t._ngSelect.bindValue)===e});var n=this._items.findIndex(function(t){return t.value===e});return n>-1?this._items[n]:this._items.find(function(n){return n.label&&n.label===t.resolveNested(e,t._ngSelect.bindLabel)})},e.prototype.unselect=function(e){this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1},e.prototype.unselectLast=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},e.prototype.addItem=function(e){var t={index:this._items.length,label:this.resolveNested(e,this._ngSelect.bindLabel),value:e};return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[]},e.prototype.filter=function(e){var t=this._getDefaultFilterFunc(e);this._filteredItems=e?this._items.filter(function(e){return t(e)}):this._items},e.prototype.clearFilter=function(){this._filteredItems=a(this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&t>-1?this._markedIndex=t:this._markedIndex=e?0:-1}},e.prototype.resolveNested=function(e,t){if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,s=n.length;o<s;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t,n){var i=e,o=null;return t?(i=e,o=e):o=this.resolveNested(i,this._ngSelect.bindLabel),{index:n,label:o,value:i,disabled:i.disabled}},e.prototype._getNextItemIndex=function(e){return e>0?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){if(0!==this._filteredItems.length)for(this._markedIndex=this._getNextItemIndex(e);this.markedItem.disabled;)this._stepToItem(e)},e.prototype._getDefaultFilterFunc=function(e){return function(t){return c(t.label?t.label.toString():"").toLowerCase().indexOf(c(e).toLowerCase())>-1}},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e){this.elementRef=e,this.stateChange$=new n.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();y.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],y.ctorParameters=function(){return[{type:t.ElementRef}]},y.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var v=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();v.decorators=[{type:t.Injectable}],v.ctorParameters=function(){return[]};var b=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var o=Math.max(0,t.scrollTop)/i*e.itemsLength,s=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),r=s,l=Math.max(0,r-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,s=isNaN(s)?-1:s,a-=n,a=Math.max(0,a),s+=n,s=Math.min(e.itemsLength,s),{topPadding:c,scrollHeight:i,start:a,end:s}},e.prototype.calculateDimensions=function(e,t,n){var i,o=t.clientWidth,s=t.clientHeight,r=(i=n.children[0]?n.children[0].getBoundingClientRect():{width:o,height:s}).width,l=i.height;return{itemsLength:e,viewWidth:o,viewHeight:s,childWidth:r,childHeight:l,itemsPerCol:Math.max(1,Math.floor(s/l))}},e}();b.decorators=[{type:t.Injectable}],b.ctorParameters=function(){return[]};var _=function(){function e(e,n,i,o,s,r){this._renderer=n,this._elementRef=i,this._zone=o,this._virtualScrollService=s,this._window=r,this.items=[],this.bufferAmount=4,this.update=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.positionChange=new t.EventEmitter,this.currentPosition="bottom",this._startupLoop=!0,this._scrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll(),this.appendTo&&this._handleAppendTo()},e.prototype.ngOnChanges=function(e){e.position&&e.position.currentValue&&(this.currentPosition=e.position.currentValue,"auto"===this.currentPosition&&this._autoPositionDropdown(),this.appendTo&&this._updateDropdownPosition()),e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener(),this._elementRef.nativeElement.remove()},e.prototype.refresh=function(){var e=this;this._zone.runOutsideAngular(function(){e._window.requestAnimationFrame(function(){return e._calculateItems()})})},e.prototype.scrollInto=function(e){if(e){var t=(this.items||[]).indexOf(e);if(!(t<0||t>=(this.items||[]).length)){var n=this.scrollElementRef.nativeElement,i=this._calculateDimensions(),o=Math.floor(i.viewHeight/i.childHeight)-1;n.scrollTop=Math.floor(t)*i.childHeight-i.childHeight*Math.min(t,o)}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh()})},e.prototype._handleItemsChange=function(e){this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh()},e.prototype._calculateItems=function(){var e=this;t.NgZone.assertNotInAngularZone();var n=this._calculateDimensions(),i=this._virtualScrollService.calculateItems(n,this.scrollElementRef.nativeElement,this.bufferAmount||0);this.paddingElementRef.nativeElement.style.height=i.scrollHeight+"px";var o="translateY("+i.topPadding+"px)";this.contentElementRef.nativeElement.style.transform=o,i.start!==this._previousStart||i.end!==this._previousEnd?(this._zone.run(function(){e.update.emit(e.items.slice(i.start,i.end)),i.end!==e.items.length||e._scrollToEndFired||(e._scrollToEndFired=!0,e.scrollToEnd.emit({start:i.start,end:i.end})),e._previousStart=i.start,e._previousEnd=i.end}),!0===this._startupLoop&&this.refresh()):!0===this._startupLoop&&(this._startupLoop=!1,this._scrollToMarked())},e.prototype._calculateDimensions=function(){return this._virtualScrollService.calculateDimensions(this.items.length,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._scrolledToMarked||(this._scrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleAppendTo=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");this._updateDropdownPosition(),e.appendChild(this._elementRef.nativeElement),this._handleDocumentResize()},e.prototype._updateDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),o=t.top-i.top,s=t.left-i.left,r="bottom"===this.currentPosition?t.height:-n.clientHeight;n.style.top=o+r+"px",n.style.bottom="auto",n.style.left=s+"px",n.style.width=t.width+"px"},e.prototype._autoPositionDropdown=function(){var e=this,t=this._elementRef.nativeElement.querySelector(".ng-option");if(this.items.length>0&&!t)setTimeout(function(){e._autoPositionDropdown()},50);else{var n=this._selectElementRef.nativeElement.getBoundingClientRect(),i=document.documentElement.scrollTop||document.body.scrollTop;n.top+window.pageYOffset+n.height+this._elementRef.nativeElement.getBoundingClientRect().height>i+document.documentElement.clientHeight?this.currentPosition="top":this.currentPosition="bottom",this.positionChange.emit(this.currentPosition)}},e}();_.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding class="total-padding"></div>\n <div #content [class.scrollable-content]="items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],host:{"[class.top]":'currentPosition === "top"',"[class.bottom]":'currentPosition === "bottom"'}}]}],_.ctorParameters=function(){return[{type:I,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return I})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:b},{type:v}]},_.propDecorators={items:[{type:t.Input}],position:[{type:t.Input}],appendTo:[{type:t.Input}],bufferAmount:[{type:t.Input}],headerTemplate:[{type:t.Input}],footerTemplate:[{type:t.Input}],update:[{type:t.Output}],scrollToEnd:[{type:t.Output}],positionChange:[{type:t.Output}],contentElementRef:[{type:t.ViewChild,args:["content",{read:t.ElementRef}]}],scrollElementRef:[{type:t.ViewChild,args:["scroll",{read:t.ElementRef}]}],paddingElementRef:[{type:t.ViewChild,args:["padding",{read:t.ElementRef}]}]};var w=new t.InjectionToken("ng-select-default-options"),I=function(){function e(e,i,o){var s=this;this.changeDetectorRef=i,this.elementRef=o,this.items=[],this.clearable=!0,this.markFirst=!0,this.loading=!1,this.closeOnSelect=!0,this.bufferAmount=4,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new t.EventEmitter,this.focusEvent=new t.EventEmitter,this.changeEvent=new t.EventEmitter,this.openEvent=new t.EventEmitter,this.closeEvent=new t.EventEmitter,this.searchEvent=new t.EventEmitter,this.clearEvent=new t.EventEmitter,this.addEvent=new t.EventEmitter,this.removeEvent=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new f(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",this._ngModel=null,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new n.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(e){var t=s.selectedItems.find(function(t){return t.value===e});s.unselect(t)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return this.selectedItems.length>0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.dropdownPosition&&(this.currentDropdownPosition=e.dropdownPosition.currentValue)},e.prototype.ngAfterViewInit=function(){this.ngOptions.length>0&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(g[e.which])switch(e.which){case g.ArrowDown:this._handleArrowDown(e);break;case g.ArrowUp:this._handleArrowUp(e);break;case g.Space:this._handleSpace(e);break;case g.Enter:this._handleEnter(e);break;case g.Tab:this._handleTab(e);break;case g.Esc:this.close();break;case g.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focusSearchInput(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this._ngModel=e,this._validateWriteValue(e),this.itemsList.clearSelected(),this._selectWriteValue(e),this.detectChanges()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this.detectChanges()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected()||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focusSearchInput())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),this.closeOnSelect&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t=this;this.addTag instanceof Function?e=this.addTag(this.filterValue):((n={})[this.bindLabel]=this.filterValue,e=n),e instanceof Promise?e.then(function(e){return t.select(t.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e));var n},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var e=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(t){return t.label.toLowerCase()===e.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.onFilter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},e.prototype.focusSearchInput=function(){this.filterInput.nativeElement.focus(),this.filterInput.nativeElement.select()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel;var n=t&&!(t instanceof Object);this.itemsList.setItems(e,n),this._isDefined(this._ngModel)&&e.length>0&&(this.itemsList.clearSelected(),this._selectWriteValue(this._ngModel)),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var e=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;var t=function(t){e.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),e.itemsList.setItems(e.items,!1),e._isDefined(e._ngModel)&&(e.itemsList.clearSelected(),e._selectWriteValue(e._ngModel)),e.detectChanges()},n=function(){var t=i.merge(e.ngOptions.changes,e._destroy$);i.merge.apply(void 0,a(e.ngOptions.map(function(e){return e.stateChange$}))).pipe(o.takeUntil(t)).subscribe(function(t){e.itemsList.findItem(t.value).disabled=t.disabled,e.changeDetectorRef.markForCheck()})};this.ngOptions.changes.pipe(o.startWith(this.ngOptions),o.takeUntil(this._destroy$)).subscribe(function(e){t(e),n()})},e.prototype._validateWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){if(e instanceof Object&&t.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(e))throw new Error("Multiple select model should be array.");e.forEach(function(e){return n(e)})}else n(e)}},e.prototype._selectWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=e instanceof Object,o=!i&&!t.bindValue;(i||o)&&t.itemsList.select(t.itemsList.mapItem(e,o,null))}};this.multiple?e.forEach(function(e){n(e)}):n(e)}},e.prototype._updateNgModel=function(){var e=this,t=this._value;this._isDefined(t)?this.bindValue?(t=Array.isArray(t)?t.map(function(t){return e.itemsList.resolveNested(t,e.bindValue)}):this.itemsList.resolveNested(t,this.bindValue),this._onChange(t)):this._onChange(t):this._onChange(null),this._ngModel=t,this.changeEvent.emit(this._value),this.changeDetectorRef.markForCheck()},e.prototype._clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&this.close()},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&this.typeahead.observers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_value",{get:function(){if(this.multiple)return this.selectedItems.map(function(e){return e.value});var e=this.selectedItems[0];return e?e.value:null},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e.prototype._isDefined=function(e){return null!==e&&e!==undefined},e}();I.decorators=[{type:t.Component,args:[{selector:"ng-select",template:'<div (click)="searchable ? open() : toggle()" class="ng-control">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label" [innerHTML]="item.label"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n <div *ngIf="showFilter()" class="ng-input">\n <input #filterInput\n type="text"\n autocomplete="off"\n [readOnly]="!searchable"\n [value]="filterValue"\n (input)="onFilter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (click)="handleArrowClick($event)" class="ng-arrow-zone">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="isOpen = false" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (positionChange)="currentDropdownPosition = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}">\n <ng-container>\n <div class="ng-option" role="option" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.disabled]="item.disabled"\n [class.selected]="item.selected"\n [class.marked]="item === itemsList.markedItem">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label" [innerHTML]="item.label" [ngOptionHighlight]="filterValue"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="optionTemplate || defaultOptionTemplate"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <div class="ng-option disabled" *ngIf="showNoItemsFound()">\n {{notFoundText}}\n </div>\n <div class="ng-option disabled" *ngIf="showTypeToSearch()">\n {{typeToSearchText}}\n </div>\n <div class="ng-option disabled" *ngIf="isLoading && itemsList.filteredItems.length === 0">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n',styles:[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select.ng-selected .ng-control .ng-value-container .ng-placeholder, .ng-select.filtered .ng-control .ng-value-container .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],providers:[{provide:s.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return I}),multi:!0}],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"dropdown","class":"ng-select","[class.top]":'currentDropdownPosition === "top"',"[class.bottom]":'currentDropdownPosition === "bottom"',"[class.ng-single]":"!multiple","[class.ng-selected]":"hasValue"}}]}],I.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[w]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},I.propDecorators={items:[{type:t.Input}],bindLabel:[{type:t.Input}],bindValue:[{type:t.Input}],clearable:[{type:t.Input}],markFirst:[{type:t.Input}],placeholder:[{type:t.Input}],notFoundText:[{type:t.Input}],typeToSearchText:[{type:t.Input}],addTagText:[{type:t.Input}],loadingText:[{type:t.Input}],clearAllText:[{type:t.Input}],dropdownPosition:[{type:t.Input}],appendTo:[{type:t.Input}],loading:[{type:t.Input}],closeOnSelect:[{type:t.Input}],maxSelectedItems:[{type:t.Input}],bufferAmount:[{type:t.Input}],typeahead:[{type:t.Input},{type:t.HostBinding,args:["class.typeahead"]}],multiple:[{type:t.Input},{type:t.HostBinding,args:["class.ng-multiple"]}],addTag:[{type:t.Input},{type:t.HostBinding,args:["class.taggable"]}],searchable:[{type:t.Input},{type:t.HostBinding,args:["class.searchable"]}],blurEvent:[{type:t.Output,args:["blur"]}],focusEvent:[{type:t.Output,args:["focus"]}],changeEvent:[{type:t.Output,args:["change"]}],openEvent:[{type:t.Output,args:["open"]}],closeEvent:[{type:t.Output,args:["close"]}],searchEvent:[{type:t.Output,args:["search"]}],clearEvent:[{type:t.Output,args:["clear"]}],addEvent:[{type:t.Output,args:["add"]}],removeEvent:[{type:t.Output,args:["remove"]}],scrollToEnd:[{type:t.Output,args:["scrollToEnd"]}],optionTemplate:[{type:t.ContentChild,args:[p,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[d,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[u,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[h,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return _})]}],ngOptions:[{type:t.ContentChildren,args:[y,{descendants:!0}]}],filterInput:[{type:t.ViewChild,args:["filterInput"]}],isOpen:[{type:t.HostBinding,args:["class.opened"]}],isFocused:[{type:t.HostBinding,args:["class.focused"]}],isDisabled:[{type:t.HostBinding,args:["class.disabled"]}],filtered:[{type:t.HostBinding,args:["class.filtered"]}],handleKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var T=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnChanges=function(){this._highlightLabelWithSearchTerm()},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label?this.label.toString():"";if(e&&this.term){var t=c(e).toLowerCase().indexOf(c(this.term).toLowerCase());t>-1?this._setInnerHtml(e.substring(0,t)+"<span class='highlighted'>"+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();T.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],T.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},T.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var x=function(){return function(){}}();x.decorators=[{type:t.NgModule,args:[{declarations:[_,y,I,T,p,d,u,h],imports:[r.CommonModule],exports:[I,y,T,p,d,u,h],providers:[v,b,{provide:w,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],x.ctorParameters=function(){return[]},e.NgSelectComponent=I,e.NG_SELECT_DEFAULT_CONFIG=w,e.NgSelectModule=x,e.ɵe=_,e.ɵi=T,e.ɵh=y,e.ɵd=h,e.ɵc=u,e.ɵb=d,e.ɵa=p,e.ɵf=b,e.ɵg=v,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,t,n,i,o,s,r){"use strict";function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(o)throw o.error}}return r}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function c(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return m[e]||e})}var p=function(){return function(e){this.template=e}}();p.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],p.ctorParameters=function(){return[{type:t.TemplateRef}]};var d=function(){return function(e){this.template=e}}();d.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],d.ctorParameters=function(){return[{type:t.TemplateRef}]};var u=function(){return function(e){this.template=e}}();u.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],u.ctorParameters=function(){return[{type:t.TemplateRef}]};var h=function(){return function(e){this.template=e}}();h.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],h.ctorParameters=function(){return[{type:t.TemplateRef}]};var g={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};g[g.Tab]="Tab",g[g.Enter]="Enter",g[g.Esc]="Esc",g[g.Space]="Space",g[g.ArrowUp]="ArrowUp",g[g.ArrowDown]="ArrowDown",g[g.Backspace]="Backspace";var m={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},f=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!1),this._items=e.map(function(e,i){return n.mapItem(e,t,i)}),this._filteredItems=a(this._items)},e.prototype.select=function(e){e.selected||this.maxItemsSelected()||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(e),e.selected=!0)},e.prototype.maxItemsSelected=function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},e.prototype.findItem=function(e){var t=this;if(this._ngSelect.bindValue)return this._items.find(function(n){return t.resolveNested(n.value,t._ngSelect.bindValue)===e});var n=this._items.findIndex(function(t){return t.value===e});return n>-1?this._items[n]:this._items.find(function(n){return n.label&&n.label===t.resolveNested(e,t._ngSelect.bindLabel)})},e.prototype.unselect=function(e){this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1},e.prototype.unselectLast=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},e.prototype.addItem=function(e){var t={index:this._items.length,label:this.resolveNested(e,this._ngSelect.bindLabel),value:e};return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[]},e.prototype.filter=function(e){var t=this._getDefaultFilterFunc(e);this._filteredItems=e?this._items.filter(function(e){return t(e)}):this._items},e.prototype.clearFilter=function(){this._filteredItems=a(this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&t>-1?this._markedIndex=t:this._markedIndex=e?0:-1}},e.prototype.resolveNested=function(e,t){if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,s=n.length;o<s;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t,n){var i=e,o=null;return t?(i=e,o=e):o=this.resolveNested(i,this._ngSelect.bindLabel),{index:n,label:o,value:i,disabled:i.disabled}},e.prototype._getNextItemIndex=function(e){return e>0?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){if(0!==this._filteredItems.length)for(this._markedIndex=this._getNextItemIndex(e);this.markedItem.disabled;)this._stepToItem(e)},e.prototype._getDefaultFilterFunc=function(e){return function(t){return c(t.label?t.label.toString():"").toLowerCase().indexOf(c(e).toLowerCase())>-1}},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e){this.elementRef=e,this.stateChange$=new n.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();y.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],y.ctorParameters=function(){return[{type:t.ElementRef}]},y.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var v=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();v.decorators=[{type:t.Injectable}],v.ctorParameters=function(){return[]};var b=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var o=Math.max(0,t.scrollTop)/i*e.itemsLength,s=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),r=s,l=Math.max(0,r-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,s=isNaN(s)?-1:s,a-=n,a=Math.max(0,a),s+=n,s=Math.min(e.itemsLength,s),{topPadding:c,scrollHeight:i,start:a,end:s}},e.prototype.calculateDimensions=function(e,t,n){var i,o=t.clientWidth,s=t.clientHeight,r=(i=n.children[0]?n.children[0].getBoundingClientRect():{width:o,height:s}).width,l=i.height;return{itemsLength:e,viewWidth:o,viewHeight:s,childWidth:r,childHeight:l,itemsPerCol:Math.max(1,Math.floor(s/l))}},e}();b.decorators=[{type:t.Injectable}],b.ctorParameters=function(){return[]};var _=function(){function e(e,n,i,o,s,r){this._renderer=n,this._elementRef=i,this._zone=o,this._virtualScrollService=s,this._window=r,this.items=[],this.bufferAmount=4,this.update=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.positionChange=new t.EventEmitter,this.currentPosition="bottom",this._startupLoop=!0,this._scrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll(),this.appendTo&&this._handleAppendTo()},e.prototype.ngOnChanges=function(e){e.position&&e.position.currentValue&&(this.currentPosition=e.position.currentValue,"auto"===this.currentPosition&&this._autoPositionDropdown(),this.appendTo&&this._updateDropdownPosition()),e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener()},e.prototype.refresh=function(){var e=this;this._zone.runOutsideAngular(function(){e._window.requestAnimationFrame(function(){return e._calculateItems()})})},e.prototype.scrollInto=function(e){if(e){var t=(this.items||[]).indexOf(e);if(!(t<0||t>=(this.items||[]).length)){var n=this.scrollElementRef.nativeElement,i=this._calculateDimensions(),o=Math.floor(i.viewHeight/i.childHeight)-1;n.scrollTop=Math.floor(t)*i.childHeight-i.childHeight*Math.min(t,o)}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh()})},e.prototype._handleItemsChange=function(e){this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh()},e.prototype._calculateItems=function(){var e=this;t.NgZone.assertNotInAngularZone();var n=this._calculateDimensions(),i=this._virtualScrollService.calculateItems(n,this.scrollElementRef.nativeElement,this.bufferAmount||0);this.paddingElementRef.nativeElement.style.height=i.scrollHeight+"px";var o="translateY("+i.topPadding+"px)";this.contentElementRef.nativeElement.style.transform=o,i.start!==this._previousStart||i.end!==this._previousEnd?(this._zone.run(function(){e.update.emit(e.items.slice(i.start,i.end)),i.end!==e.items.length||e._scrollToEndFired||(e._scrollToEndFired=!0,e.scrollToEnd.emit({start:i.start,end:i.end})),e._previousStart=i.start,e._previousEnd=i.end}),!0===this._startupLoop&&this.refresh()):!0===this._startupLoop&&(this._startupLoop=!1,this._scrollToMarked())},e.prototype._calculateDimensions=function(){return this._virtualScrollService.calculateDimensions(this.items.length,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._scrolledToMarked||(this._scrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleAppendTo=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");this._updateDropdownPosition(),e.appendChild(this._elementRef.nativeElement),this._handleDocumentResize()},e.prototype._updateDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),o=t.top-i.top,s=t.left-i.left,r="bottom"===this.currentPosition?t.height:-n.clientHeight;n.style.top=o+r+"px",n.style.bottom="auto",n.style.left=s+"px",n.style.width=t.width+"px"},e.prototype._autoPositionDropdown=function(){var e=this,t=this._elementRef.nativeElement.querySelector(".ng-option");if(this.items.length>0&&!t)setTimeout(function(){e._autoPositionDropdown()},50);else{var n=this._selectElementRef.nativeElement.getBoundingClientRect(),i=document.documentElement.scrollTop||document.body.scrollTop;n.top+window.pageYOffset+n.height+this._elementRef.nativeElement.getBoundingClientRect().height>i+document.documentElement.clientHeight?this.currentPosition="top":this.currentPosition="bottom",this.positionChange.emit(this.currentPosition)}},e}();_.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding class="total-padding"></div>\n <div #content [class.scrollable-content]="items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],host:{"[class.top]":'currentPosition === "top"',"[class.bottom]":'currentPosition === "bottom"'}}]}],_.ctorParameters=function(){return[{type:I,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return I})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:b},{type:v}]},_.propDecorators={items:[{type:t.Input}],position:[{type:t.Input}],appendTo:[{type:t.Input}],bufferAmount:[{type:t.Input}],headerTemplate:[{type:t.Input}],footerTemplate:[{type:t.Input}],update:[{type:t.Output}],scrollToEnd:[{type:t.Output}],positionChange:[{type:t.Output}],contentElementRef:[{type:t.ViewChild,args:["content",{read:t.ElementRef}]}],scrollElementRef:[{type:t.ViewChild,args:["scroll",{read:t.ElementRef}]}],paddingElementRef:[{type:t.ViewChild,args:["padding",{read:t.ElementRef}]}]};var w=new t.InjectionToken("ng-select-default-options"),I=function(){function e(e,i,o){var s=this;this.changeDetectorRef=i,this.elementRef=o,this.items=[],this.clearable=!0,this.markFirst=!0,this.loading=!1,this.closeOnSelect=!0,this.bufferAmount=4,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new t.EventEmitter,this.focusEvent=new t.EventEmitter,this.changeEvent=new t.EventEmitter,this.openEvent=new t.EventEmitter,this.closeEvent=new t.EventEmitter,this.searchEvent=new t.EventEmitter,this.clearEvent=new t.EventEmitter,this.addEvent=new t.EventEmitter,this.removeEvent=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new f(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",this._ngModel=null,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new n.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(e){var t=s.selectedItems.find(function(t){return t.value===e});s.unselect(t)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return this.selectedItems.length>0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.dropdownPosition&&(this.currentDropdownPosition=e.dropdownPosition.currentValue)},e.prototype.ngAfterViewInit=function(){this.ngOptions.length>0&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(g[e.which])switch(e.which){case g.ArrowDown:this._handleArrowDown(e);break;case g.ArrowUp:this._handleArrowUp(e);break;case g.Space:this._handleSpace(e);break;case g.Enter:this._handleEnter(e);break;case g.Tab:this._handleTab(e);break;case g.Esc:this.close();break;case g.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focusSearchInput(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this._ngModel=e,this._validateWriteValue(e),this.itemsList.clearSelected(),this._selectWriteValue(e),this.detectChanges()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this.detectChanges()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected()||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focusSearchInput())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),this.closeOnSelect&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t=this;this.addTag instanceof Function?e=this.addTag(this.filterValue):((n={})[this.bindLabel]=this.filterValue,e=n),e instanceof Promise?e.then(function(e){return t.select(t.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e));var n},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var e=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(t){return t.label.toLowerCase()===e.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.onFilter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},e.prototype.focusSearchInput=function(){this.filterInput.nativeElement.focus(),this.filterInput.nativeElement.select()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel;var n=t&&!(t instanceof Object);this.itemsList.setItems(e,n),this._isDefined(this._ngModel)&&e.length>0&&(this.itemsList.clearSelected(),this._selectWriteValue(this._ngModel)),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var e=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;var t=function(t){e.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),e.itemsList.setItems(e.items,!1),e._isDefined(e._ngModel)&&(e.itemsList.clearSelected(),e._selectWriteValue(e._ngModel)),e.detectChanges()},n=function(){var t=i.merge(e.ngOptions.changes,e._destroy$);i.merge.apply(void 0,a(e.ngOptions.map(function(e){return e.stateChange$}))).pipe(o.takeUntil(t)).subscribe(function(t){e.itemsList.findItem(t.value).disabled=t.disabled,e.changeDetectorRef.markForCheck()})};this.ngOptions.changes.pipe(o.startWith(this.ngOptions),o.takeUntil(this._destroy$)).subscribe(function(e){t(e),n()})},e.prototype._validateWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){if(e instanceof Object&&t.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(e))throw new Error("Multiple select model should be array.");e.forEach(function(e){return n(e)})}else n(e)}},e.prototype._selectWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=e instanceof Object,o=!i&&!t.bindValue;(i||o)&&t.itemsList.select(t.itemsList.mapItem(e,o,null))}};this.multiple?e.forEach(function(e){n(e)}):n(e)}},e.prototype._updateNgModel=function(){var e=this,t=this._value;this._isDefined(t)?this.bindValue?(t=Array.isArray(t)?t.map(function(t){return e.itemsList.resolveNested(t,e.bindValue)}):this.itemsList.resolveNested(t,this.bindValue),this._onChange(t)):this._onChange(t):this._onChange(null),this._ngModel=t,this.changeEvent.emit(this._value),this.changeDetectorRef.markForCheck()},e.prototype._clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&this.close()},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&this.typeahead.observers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_value",{get:function(){if(this.multiple)return this.selectedItems.map(function(e){return e.value});var e=this.selectedItems[0];return e?e.value:null},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e.prototype._isDefined=function(e){return null!==e&&e!==undefined},e}();I.decorators=[{type:t.Component,args:[{selector:"ng-select",template:'<div (click)="searchable ? open() : toggle()" class="ng-control">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label" [innerHTML]="item.label"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n <div *ngIf="showFilter()" class="ng-input">\n <input #filterInput\n type="text"\n autocomplete="off"\n [readOnly]="!searchable"\n [value]="filterValue"\n (input)="onFilter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (click)="handleArrowClick($event)" class="ng-arrow-zone">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="isOpen = false" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (positionChange)="currentDropdownPosition = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}">\n <ng-container>\n <div class="ng-option" role="option" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.disabled]="item.disabled"\n [class.selected]="item.selected"\n [class.marked]="item === itemsList.markedItem">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label" [innerHTML]="item.label" [ngOptionHighlight]="filterValue"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="optionTemplate || defaultOptionTemplate"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <div class="ng-option disabled" *ngIf="showNoItemsFound()">\n {{notFoundText}}\n </div>\n <div class="ng-option disabled" *ngIf="showTypeToSearch()">\n {{typeToSearchText}}\n </div>\n <div class="ng-option disabled" *ngIf="isLoading && itemsList.filteredItems.length === 0">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n',styles:[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select.ng-selected .ng-control .ng-value-container .ng-placeholder, .ng-select.filtered .ng-control .ng-value-container .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],providers:[{provide:s.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return I}),multi:!0}],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"dropdown","class":"ng-select","[class.top]":'currentDropdownPosition === "top"',"[class.bottom]":'currentDropdownPosition === "bottom"',"[class.ng-single]":"!multiple","[class.ng-selected]":"hasValue"}}]}],I.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[w]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},I.propDecorators={items:[{type:t.Input}],bindLabel:[{type:t.Input}],bindValue:[{type:t.Input}],clearable:[{type:t.Input}],markFirst:[{type:t.Input}],placeholder:[{type:t.Input}],notFoundText:[{type:t.Input}],typeToSearchText:[{type:t.Input}],addTagText:[{type:t.Input}],loadingText:[{type:t.Input}],clearAllText:[{type:t.Input}],dropdownPosition:[{type:t.Input}],appendTo:[{type:t.Input}],loading:[{type:t.Input}],closeOnSelect:[{type:t.Input}],maxSelectedItems:[{type:t.Input}],bufferAmount:[{type:t.Input}],typeahead:[{type:t.Input},{type:t.HostBinding,args:["class.typeahead"]}],multiple:[{type:t.Input},{type:t.HostBinding,args:["class.ng-multiple"]}],addTag:[{type:t.Input},{type:t.HostBinding,args:["class.taggable"]}],searchable:[{type:t.Input},{type:t.HostBinding,args:["class.searchable"]}],blurEvent:[{type:t.Output,args:["blur"]}],focusEvent:[{type:t.Output,args:["focus"]}],changeEvent:[{type:t.Output,args:["change"]}],openEvent:[{type:t.Output,args:["open"]}],closeEvent:[{type:t.Output,args:["close"]}],searchEvent:[{type:t.Output,args:["search"]}],clearEvent:[{type:t.Output,args:["clear"]}],addEvent:[{type:t.Output,args:["add"]}],removeEvent:[{type:t.Output,args:["remove"]}],scrollToEnd:[{type:t.Output,args:["scrollToEnd"]}],optionTemplate:[{type:t.ContentChild,args:[p,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[d,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[u,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[h,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return _})]}],ngOptions:[{type:t.ContentChildren,args:[y,{descendants:!0}]}],filterInput:[{type:t.ViewChild,args:["filterInput"]}],isOpen:[{type:t.HostBinding,args:["class.opened"]}],isFocused:[{type:t.HostBinding,args:["class.focused"]}],isDisabled:[{type:t.HostBinding,args:["class.disabled"]}],filtered:[{type:t.HostBinding,args:["class.filtered"]}],handleKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var T=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnChanges=function(){this._highlightLabelWithSearchTerm()},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label?this.label.toString():"";if(e&&this.term){var t=c(e).toLowerCase().indexOf(c(this.term).toLowerCase());t>-1?this._setInnerHtml(e.substring(0,t)+"<span class='highlighted'>"+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();T.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],T.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},T.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var x=function(){return function(){}}();x.decorators=[{type:t.NgModule,args:[{declarations:[_,y,I,T,p,d,u,h],imports:[r.CommonModule],exports:[I,y,T,p,d,u,h],providers:[v,b,{provide:w,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],x.ctorParameters=function(){return[]},e.NgSelectComponent=I,e.NG_SELECT_DEFAULT_CONFIG=w,e.NgSelectModule=x,e.ɵe=_,e.ɵi=T,e.ɵh=y,e.ɵd=h,e.ɵc=u,e.ɵb=d,e.ɵa=p,e.ɵf=b,e.ɵg=v,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-select.umd.min.js.map
{
"$schema": "../node_modules/ng-packagr/package.schema.json",
"name": "@ng-select/ng-select",
"version": "0.23.2",
"version": "0.23.3",
"description": "Angular ng-select - All in One UI Select, Multiselect and Autocomplete",

@@ -6,0 +6,0 @@ "author": "@ng-select/ng-select",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc