Socket
Socket
Sign inDemoInstall

tail.select

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.14 to 0.5.15

20

CHANGELOG.md
CHANGELOG
===========
Version 0.5.15 - Beta
---------------------
- Update: Support for `hidden` options (didn't get queried).
- Thanks to [#67](https://github.com/pytesNET/tail.select/issues/67).
- Update: Differentiate .disabled and .hover colors.
- Thanks to [#79](https://github.com/pytesNET/tail.select/issues/79),
- Thanks to [#81](https://github.com/pytesNET/tail.select/pull/81) (Pull Request).
- Bugfix: Typo in `searchConfig` option key.
- Bugfix: Using `this.rebuild` instead of `rebuild` in the `.config()` method.
- Bugfix: Using the olf method `._replaceTypo` on the `.invert()` method (options class).
- Bugfix: The `.query()` method doesn't handle false as item return [ES6 only].
- Bugfix: Missing minified JavaScript files.
- Thanks to [#77](https://github.com/pytesNET/tail.select/issues/77).
- Bugfix: Some Less styling issues.
- Thanks to [#74](https://github.com/pytesNET/tail.select/issues/74),
- Thanks to [#78](https://github.com/pytesNET/tail.select/issues/78),
- Thanks to [#75](https://github.com/pytesNET/tail.select/pull/75) (Pull Request).
- Bugfix: Bootstrap 4 Theme Icon Issue in Chrome.
- Thanks to [#82](https://github.com/pytesNET/tail.select/issues/82).
Version 0.5.14 - Beta

@@ -5,0 +25,0 @@ ---------------------

35

js/tail.select-es6.js

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -80,3 +80,3 @@ | @website https://github.com/pytesNET/tail.select

};
select.version = "0.5.14";
select.version = "0.5.15";
select.status = "experimental";

@@ -120,3 +120,3 @@ select.count = 0;

search: false, // [0.3.0] Boolean
searcgConfig: [ // [0.5.13] Array
searchConfig: [ // [0.5.13] Array
"text", "value"

@@ -631,3 +631,3 @@ ],

| API :: QUERY OPTIONS
| @since 0.5.13 [0.5.0]
| @since 0.5.15 [0.5.0]
*/

@@ -644,2 +644,5 @@ query(search, conf){

for(let item of this.options[func].apply(this.options, args)){
if(item === false){
continue;
}
if(!ul || (ul && ul[gAttr]("data-group") !== item.group)){

@@ -1003,3 +1006,3 @@ tp = (con.cbLoopGroup || this.cbGroup).call(this, item.group, search, root);

| PUBLIC :: GET|SET CONFIG
| @since 0.5.0 [0.4.0]
| @since 0.5.15 [0.4.0]
*/

@@ -1022,3 +1025,3 @@ config(key, value, rebuild){

this.con[key] = value;
if(this.rebuild !== false){
if(rebuild !== false){
this.reload();

@@ -1132,3 +1135,3 @@ }

| SET AN EXISTING OPTION
| @since 0.5.7 [0.3.0]
| @since 0.5.15 [0.3.0]
*/

@@ -1172,3 +1175,4 @@ set(opt, rebuild){

selected: opt.selected,
disabled: opt.disabled
disabled: opt.disabled,
hidden: opt.hidden || false
};

@@ -1366,6 +1370,6 @@ this.length++;

| INVERT CURRENT <STATE>
| @since 0.5.0 [0.3.0]
| @since 0.5.15 [0.3.0]
*/
invert(state){
state = this._replaceType(state);
state = this._r(state);
if(["enable", "disable"].indexOf(state) >= 0){

@@ -1444,3 +1448,3 @@ let invert = this.disabled, action = (state == "enable")? "disable": "enable";

| FIND SOME OPTIONs - ARRAY EDITION
| @since 0.5.13 [0.3.0]
| @since 0.5.15 [0.3.0]
*/

@@ -1497,3 +1501,5 @@ find(search, config){

// Hammer Time
return [...this.self.e.options].filter(matches).map(opt => self.get(opt));
return [...this.self.e.options].filter(matches).map(opt => {
return opt.hidden? false: this.get(opt)
});
},

@@ -1514,3 +1520,3 @@

| NEW OPTIONS WALKER
| @since 0.5.7 [0.4.0]
| @since 0.5.15 [0.4.0]
*/

@@ -1544,2 +1550,5 @@ *walker(orderi, orderg){

for(let l = keys.length, i = 0; i < l; i++){
if(this.items[grp][keys[i]].hidden === true){
continue;
}
yield this.items[grp][keys[i]];

@@ -1546,0 +1555,0 @@ }

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

/* pytesNET/tail.select v.0.5.14 | ES6 Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
/* pytesNET/tail.select v.0.5.15 | ES6 Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
var{select,options}=function(a){function b(a,b){let d=c.createElement(a);return d.className=b&&b.join?b.join(" "):b||"",d}const c=a.document,d="querySelector",e="querySelectorAll",f="parentElement",g="hasAttribute",h="getAttribute",i="setAttribute",j="removeAttribute",k=function(a,b){if(a="string"==typeof a?c[e](a):a,a instanceof NodeList||a instanceof HTMLCollection||a instanceof Array){let c=Array.prototype.map.call(a,a=>new k(a,Object.assign({},b)));return 1===c.length?c[0]:0!==c.length&&c}if(!(a instanceof Element)||!(this instanceof k))return!!(a instanceof Element)&&new k(a,b);if(k.inst[a[h]("data-tail-select")])return k.inst[a[h]("data-tail-select")];if(a[h]("data-select")){let c=JSON.parse(a[h]("data-select").replace(/\'/g,"\""));b=c instanceof Object?Object.assign(b,c):b}let d=a[h]("placeholder")||a[h]("data-placeholder");return b="object"==typeof b?b:{},b.multiple="multiple"in b?b.multiple:a.multiple,b.disabled="disabled"in b?b.disabled:a.disabled,b.placeholder=d||b.placeholder||null,b.width="auto"===b.width?a.offsetWidth+50:b.width,b.sourceBind="bindSourceSelect"in b?b.bindSourceSelect:b.sourceBind||!1,b.sourceHide="sourceHide"in b?b.sourceHide:b.sourceHide||!0,b.multiLimit=0<=b.multiLimit?b.multiLimit:1/0,this.e=a,this.id=++k.count,this.con=Object.assign({},k.defaults,b),this.events={},k.inst["tail-"+this.id]=this,this.init().bind()};k.version="0.5.15",k.status="experimental",k.count=0,k.inst={},k.defaults={animate:!0,classNames:null,csvOutput:!1,csvSeparator:",",descriptions:!1,deselect:!1,disabled:!1,height:350,hideDisabled:!1,hideSelected:!1,items:{},locale:"en",linguisticRules:{е:"\u0451",a:"\xE4",o:"\xF6",u:"\xFC",ss:"\xDF"},multiple:!1,multiLimit:1/0,multiPinSelected:!1,multiContainer:!1,multiShowCount:!0,multiShowLimit:!1,multiSelectAll:!1,multiSelectGroup:!0,openAbove:null,placeholder:null,search:!1,searchConfig:["text","value"],searchFocus:!0,searchMarked:!0,searchMinLength:1,searchDisabled:!0,sortItems:!1,sortGroups:!1,sourceBind:!1,sourceHide:!0,startOpen:!1,stayOpen:!1,width:null,cbComplete:void 0,cbEmpty:void 0,cbLoopItem:void 0,cbLoopGroup:void 0},k.strings={de:{all:"Alle",none:"Keine",actionAll:"Alle ausw\xE4hlen",actionNone:"Alle abw\xE4hlen",empty:"Keine Optionen verf\xFCgbar",emptySearch:"Keine Optionen gefunden",limit:"Keine weiteren Optionen w\xE4hlbar",placeholder:"W\xE4hle eine Option...",placeholderMulti:"W\xE4hle bis zu :limit Optionen...",search:"Tippen zum suchen",disabled:"Dieses Feld ist deaktiviert"},en:{all:"All",none:"None",actionAll:"Select All",actionNone:"Unselect All",empty:"No Options available",emptySearch:"No Options found",limit:"You can't select more Options",placeholder:"Select an Option...",placeholderMulti:"Select up to :limit Options...",search:"Type in to search...",disabled:"This Field is disabled"},es:{all:"Todos",none:"Ninguno",actionAll:"Seleccionar todo",actionNone:"Descartar todo",empty:"No hay opciones disponibles",emptySearch:"No se encontraron opciones",limit:"No puedes seleccionar mas opciones",placeholder:"Selecciona una opci\xF3n...",placeholderMulti:"Selecciona hasta :l\xEDmite de opciones...",search:"Escribe dentro para buscar...",disabled:"Este campo esta deshabilitado"},fi:{all:"Kaikki",none:"Ei mit\xE4\xE4n",actionAll:"Valitse kaikki",actionNone:"Poista kaikki valinnat",empty:"Ei vaihtoehtoja",emptySearch:"Etsim\xE4\xE4si vaihtoehtoa ei l\xF6ytynyt",limit:"Muita vaihtoehtoja ei voi valita",placeholder:"Valitse...",placeholderMulti:"Valitse maksimissaan :limit...",search:"Hae t\xE4st\xE4...",disabled:"Kentt\xE4 on poissa k\xE4yt\xF6st\xE4"},fr:{all:"Tous",none:"Aucun",actionAll:"S\xE9lectionner tout",actionNone:"S\xE9lectionner aucun",empty:"Aucune option disponible",emptySearch:"Aucune option trouv\xE9e",limit:"Aucune autre option s\xE9lectionnable",placeholder:"Choisissez une option ...",placeholderMulti:"Choisissez jusqu'\xE0 :limit option(s) ...",search:"Rechercher ...",disabled:"Ce champs est d\xE9sactiv\xE9"},it:{all:"Tutti",none:"Nessuno",actionAll:"Seleziona Tutto",actionNone:"Deseleziona Tutto",empty:"Nessuna voce disponibile",emptySearch:"Nessuna voce trovata",limit:"Non puoi selezionare pi\xF9 Voci",placeholder:"Seleziona una Voce",placeholderMulti:"Selezione limitata a :limit Voci...",search:"Digita per cercare...",disabled:"Questo Campo \xE8 disabilitato"},no:{all:"Alle",none:"Ingen",actionAll:"Velg alle",actionNone:"Velg ingen",empty:"Ingen valg tilgjengelig",emptySearch:"Ingen valg funnet",limit:"Du kan ikke velge flere",placeholder:"Velg...",placeholderMulti:"Velg opptil :limit...",search:"S\xF8k...",disabled:"Dette feltet er deaktivert"},pt_BR:{all:"Todas",none:"Nenhuma",actionAll:"Selecionar todas",actionNone:"Desmarcar todas",empty:"Nenhuma op\xE7\xE3o dispon\xEDvel",emptySearch:"Nenhuma op\xE7\xE3o encontrada",limit:"N\xE3o \xE9 poss\xEDvel selecionar outra op\xE7\xE3o",placeholder:"Escolha uma op\xE7\xE3o ...",placeholderMulti:"Escolha at\xE9: :limit op\xE7\xE3o(\xF5es) ...",search:"Buscar ...",disabled:"Campo desativado"},ru:{all:"\u0412\u0441\u0435",none:"\u041D\u0438\u0447\u0435\u0433\u043E",actionAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",actionNone:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435",empty:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432",emptySearch:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",limit:"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432",placeholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442...",placeholderMulti:function(a){let b=a[":limit"],c=["\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u0430","\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432","\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432"][4<b%100&&20>b%100?2:[2,0,1,1,1,2][5>b%10?b%10:5]];return"\u0412\u044B\u0431\u043E\u0440 \u0434\u043E :limit "+c+" ..."},search:"\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u043D\u0430\u0431\u0438\u0440\u0430\u0442\u044C \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430 ...",disabled:"\u041F\u043E\u043B\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043E"},tr:{all:"T\xFCm\xFC",none:"Hi\xE7biri",actionAll:"T\xFCm\xFCn\xFC Se\xE7",actionNone:"Hi\xE7birini Se\xE7me",empty:"Se\xE7enek yok",emptySearch:"Se\xE7enek bulunamad\u0131",limit:"Daha fazla Se\xE7enek se\xE7emezsiniz",placeholder:"Bir Se\xE7enek se\xE7in...",placeholderMulti:"En fazla :limit Se\xE7enek se\xE7in...",search:"Aramak i\xE7in yaz\u0131n...",disabled:"Bu Alan kullan\u0131lamaz"},modify(a,b,c){if(!(a in this))return!1;if(b instanceof Object)for(let c in b)this.modify(a,c,b[c]);else this[a][b]="string"==typeof c?c:this[a][b];return!0},register(a,b){return!!("string"==typeof a&&b instanceof Object)&&(this[a]=b,!0)}},k.prototype={_e(a,b,c){if(!(a in this.__))return c?c:a;if(a=this.__[a],"function"==typeof a&&(a=a.call(this,b)),"object"==typeof b)for(let c in b)a=a.replace(c,b[c]);return a},init(){let a=["tail-select"],g=this.con,h=/^[0-9.]+(?:cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|\%)$/i;return this.__=Object.assign({},k.strings.en,k.strings[g.locale]||{}),this._init=!0,this._query=!1,a=a.concat(!0===g.classNames?this.e.className:g.classNames),g.hideSelected&&a.push("hide-selected"),g.hideDisabled&&a.push("hide-disabled"),0==g.multiLimit&&a.push("disabled"),g.multiple&&a.push("multiple"),g.deselect&&a.push("deselect"),g.disabled&&a.push("disabled"),this.select=b("DIV",a),null===this.e.getAttribute("tabindex")?this.select.setAttribute("tabindex",0):this.select.setAttribute("tabindex",this.e.getAttribute("tabindex")),g.width&&h.test(g.width)?this.select.style.width=g.width:g.width&&!isNaN(parseFloat(g.width,10))&&(this.select.style.width=g.width+"px"),this.label=b("DIV","select-label"),this.label.addEventListener("click",()=>{this.toggle()}),this.select.appendChild(this.label),this.dropdown=b("DIV","select-dropdown"),isNaN(parseInt(g.height,10))||(this.dropdown.style.maxHeight=parseInt(g.height,10)+"px"),g.search&&(this.search=b("DIV","dropdown-search"),this.search.innerHTML=`<input type="text" class="search-input" placeholder="${this._e("search")}" />`,this.search.children[0].addEventListener("input",a=>{this.query(a.target.value.length>g.searchMinLength?a.target.value:void 0)}),this.dropdown.appendChild(this.search)),this.select.appendChild(this.dropdown),this.csvInput=b("INPUT","select-search"),this.csvInput.type="hidden",g.csvOutput&&(this.csvInput.name=this.e.name,this.e[j]("name"),this.select.appendChild(this.csvInput)),g.multiple&&g.multiContainer&&(c[d](g.multiContainer)?(this.container=c[d](g.multiContainer),this.container.classList.add("tail-select-container")):!0===g.multiContainer&&(this.container=this.label,this.container.classList.add("tail-select-container"))),this.options=new l(this.e,this),Array.prototype.map.call(this.e.options,a=>{this.options.set(a,!1)}),Object.keys(g.items).forEach(f=>{let h=g.items[f].join?g.items[f]:{value:g.items[f]},{value:i,group:a,selected:b,disabled:c,description:d}=h;this.options.add(g.items[f].key||f,i,a,b,c,d)}),this.query(),this.e.nextElementSibling?this.e[f].insertBefore(this.select,this.e.nextElementSibling):this.e[f].appendChild(this.select),g.sourceHide&&("none"==this.e.style.display?(this.select.style.display="none",this.e.setAttribute("data-select-hidden","display")):"hidden"==this.e.style.visibility?(this.select.style.visibiltiy="hidden",this.e.setAttribute("data-select-hidden","visibility")):(this.e.style.display="none",this.e.setAttribute("data-select-hidden","0"))),this._init=!1,this.e[i]("data-tail-select","tail-"+this.id),(g.cbComplete||function(){}).call(this,this.select),g.startOpen?this.open(this.con.animate):this},bind(){return(c.addEventListener("keydown",a=>{let b,c,g,h,i,j=a.keyCode||a.which,k=32==j&&self.select===document.activeElement;if(!k||!this.select.classList.contains("active")||0>[13,27,38,40].indexOf(j))return!1;if(a.preventDefault(),a.stopPropagation(),32===j)return this.open(self.con.animate);if(13==j&&(b=this.dropdown[d](".dropdown-option.hover:not(.disabled)"))&&this.options.select(b),27==j||13==j)return this.close(this.con.animate);if(b=this.dropdown[d](".dropdown-option.hover:not(.disabled)")){b.classList.remove("hover"),g=[(40==j?"next":"previous")+"ElementSibling"];do{if(b=null!==(h=b[g])&&"LI"==b.tagName?h:!!(null!==(h=b[f][g])&&0<h.children.length&&"UL"==h.tagName)&&h.children[40==j?0:h.children.length-1],b&&(!/dropdown-option/.test(b.className)||/disabled/.test(b.className)))continue;break}while(!0)}if(b||40!=j?!b&&38==j&&(i=self.dropdown.querySelectorAll(".dropdown-option:not(.disabled)"),b=i[i.length-1]):b=this.dropdown[d](".dropdown-option:not(.disabled)"),b&&(c=this.dropdown[d](".dropdown-inner"))){let a=function(a){let b={top:a.offsetTop,height:a.offsetHeight};for(;(a=a[f])!=c;)b.top+=a.offsetTop;return b}(b);b.classList.add("hover"),a.top+2*a.height>c.offsetHeight+c.scrollTop?c.scrollBy(0,a.top+2*a.height-(c.offsetHeight+c.scrollTop)):a.top-a.height<c.scrollTop&&c.scrollBy(0,-Math.abs(c.scrollTop-a.top+a.height))}return!0}),c.addEventListener("click",a=>{let b=!this.select.classList.contains("active")||this.select.classList.contains("idle");if(b||this.con.stayOpen)return!1;let c=[this.e,this.select,this.container].filter(b=>b&&(b.contains(a.target)||b==a.target));return 0==c.length&&this.close(this.con.animate)}),!!!this.con.sourceBind)||(this.e.addEventListener("change",()=>{if(null!=event.detail)return!1;if(event.preventDefault(),event.stopPropagation(),!this.multiple&&this.selectedIndex)this.options.select(this.e.options[this.selectedIndex]);else{let a=[].concat(self.options.selected),b=Array.from(this.e[e]("option:checked")).filter(b=>!(0<=a.indexOf(b))||(a.splice(a.indexOf(b),1),!1));this.options.walk("unselect",a),this.options.walk("select",b)}}),!0)},callback(a,b,c){let e=a.key.replace(/('|\\)/g,"\\$1"),f=a.group.replace(/('|\\)/g,"\\$1");if("rebuild"==b)return this.query();let g=this.dropdown[d](`[data-key='${e}'][data-group='${f}']`);return g&&0<=["select","disable"].indexOf(b)?g.classList.add("select"==b?"selected":"disabled"):g&&0<=["unselect","enable"].indexOf(b)&&g.classList.remove("unselect"==b?"selected":"disabled"),this.update(a),!!c||this.trigger("change",a,b)},trigger(a){if(this._init)return!1;let b={bubbles:!1,cancelable:!0,detail:{args:arguments,self:this}};"change"==a&&arguments[2]&&0<=arguments[2].indexOf("select")&&(this.e.dispatchEvent(new CustomEvent("input",b)),this.e.dispatchEvent(new CustomEvent("change",b))),this.select.dispatchEvent(new CustomEvent("tail::"+a,b));let c,d=[...arguments];return d.shift(),(this.events[a]||[]).forEach(a=>{c=[].concat(d),c.push(a.args||null),(a.cb||function(){}).apply(this,c)}),!0},calc(){let b=this.dropdown.cloneNode(!0),c=this.con.height,e=0,g=this.dropdown[d](".dropdown-inner");b=this.dropdown.cloneNode(!0),b.style.cssText="height:auto;min-height:auto;max-height:none;opacity:0;display:block;visibility:hidden;",b.style.maxHeight=this.con.height+"px",b.className+=" cloned",this.dropdown[f].appendChild(b),c=c>b.clientHeight?b.clientHeight:c,this.con.search&&(e=b[d](".dropdown-search").clientHeight),this.dropdown[f].removeChild(b);let h=this.select.getBoundingClientRect(),i=a.innerHeight-(h.top+h.height),j=!!(c+e>i)&&h.top>i;return!0===this.con.openAbove||!1!==this.con.openAbove&&j?(j=!0,c=Math.min(c,h.top-10),this.select.classList.add("open-top")):(j=!1,c=Math.min(c,i-10),this.select.classList.remove("open-top")),g&&(this.dropdown.style.maxHeight=c+"px",g.style.maxHeight=c-e+"px"),this},query(a,c){let f,g,j,k,l=this.con,n=b("DIV","dropdown-inner"),o=a?"finder":"walker",p=a?[a,c]:[l.sortItems,l.sortGroups];this._query="string"==typeof a&&a;for(let b of this.options[o].apply(this.options,p)){if(!1===b)continue;if(!g||g&&g[h]("data-group")!==b.group)if(f=(l.cbLoopGroup||this.cbGroup).call(this,b.group,a,n),f instanceof Element)g=f,g[i]("data-group",b.group),n.appendChild(g);else break;let c=(l.cbLoopItem||this.cbItem).call(this,b,g,a,n);if(null!==c){if(!1===c)break;c[i]("data-key",b.key),c[i]("data-group",b.group),c.addEventListener("click",()=>!!c[h]("data-key")&&void(this.options.toggle(c[h]("data-key"),c[h]("data-group"))&&!l.stayOpen&&!l.multiple&&this.close(this.con.animate))),g.appendChild(c)}}let q=n[e]("*[data-key]").length;if(0==q&&(this.con.cbEmpty||function(a){let c=b("SPAN","dropdown-empty");c.innerText=this._e("empty"),a.appendChild(c)}).call(this,n,a),0<q&&l.multiple&&l.multiLimit==1/0&&l.multiSelectAll){j=b("BUTTON","tail-all"),k=b("BUTTON","tail-none"),j.innerText=this._e("actionAll"),j.addEventListener("click",a=>{a.preventDefault(),this.options.walk("select",this.dropdown.querySelectorAll(".dropdown-inner .dropdown-option"))}),k.innerText=this._e("actionNone"),k.addEventListener("click",a=>{a.preventDefault(),this.options.walk("unselect",this.dropdown.querySelectorAll(".dropdown-inner .dropdown-option"))});let a=b("SPAN","dropdown-action");a.appendChild(j),a.appendChild(k),n.insertBefore(a,n.children[0])}let r=this.dropdown[d](".dropdown-inner");return this.dropdown[(r?"replace":"append")+"Child"](n,r),this.select.classList.contains("active")&&this.calc(),this.updateCSV().updateLabel()},cbGroup(a,c){let d,e,g=b("UL","dropdown-optgroup"),i=this;return"#"==a?g:(g.innerHTML=`<li class="optgroup-title"><b>${a}</b></li>`,this.con.multiple&&this.con.multiLimit==1/0&&this.con.multiSelectAll&&(d=b("BUTTON","tail-none"),e=b("BUTTON","tail-all"),d.innerText=this._e("none"),d.addEventListener("click",a=>{a.preventDefault(),this.options.all("unselect",a.target[f][f][h]("data-group"))}),e.innerText=this._e("all"),e.addEventListener("click",a=>{a.preventDefault(),this.options.all("select",a.target[f][f][h]("data-group"))}),g.children[0].appendChild(d),g.children[0].appendChild(e)),g)},cbItem(a,c,e){let{value:f,selected:g,disabled:h}=a,d=b("LI","dropdown-option"+(g?" selected":"")+(h?" disabled":""));return e&&0<e.length&&this.con.searchMarked?(e=this.options.applyLinguisticRules(e),d.innerHTML=f.replace(new RegExp(`(${e})`,"i"),"<mark>$1</mark>")):d.innerText=f,this.con.descriptions&&a.description&&(d.innerHTML+=`<span class="option-description">${a.description}</span>`),d},update(a){return this.updateLabel().updateContainer(a).updatePin(a).updateCSV(a)},updateLabel(a){if(this.container==this.label&&0<this.options.selected.length)return this.label[d](".label-inner")&&this.label.removeChild(this.label[d](".label-inner")),this.label[d](".label-count")&&this.label.removeChild(this.label[d](".label-count")),this;let b,f=this.con,c=this.options.selected.length;return"string"!=typeof a&&(f.disabled?a="disabled":0==this.dropdown[e]("*[data-key]").length?a="empty"+(this.select.classList.contains("in-search")?"Search":""):f.multiLimit<=c?a="limit":!f.multiple&&0<this.options.selected.length?a=this.options.selected[0].innerText:"string"==typeof f.placeholder?a=f.placeholder:a="placeholder"+(f.multiple&&f.multiLimit<1/0?"Multi":"")),a=this._e(a,{":limit":f.multiLimit},a),a=`<span class="label-inner">${a}</span>`,b=f.multiShowLimit&&f.multiLimit<1/0,f.multiple&&f.multiShowCount&&(a=`<span class="label-count">:c</span>\n${a}`,a=a.replace(":c",c+(b?" / "+f.multiLimit:""))),this.label.innerHTML=a,this},updateContainer(a){if(!this.container||!this.con.multiContainer)return this;let c=`[data-group='${a.group}'][data-key='${a.key}']`;if(this.container[d](c))return a.selected||this.container.removeChild(this.container[d](c)),this;if(a.selected){let c=b("DIV","select-handle");c.innerText=a.value,c[i]("data-key",a.key),c[i]("data-group",a.group),c.addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),this.options.unselect(a.target[h]("data-key"),a.target[h]("data-group"))}),this.container.appendChild(c)}return this},updatePin(a){let b=this.dropdown[d](".dropdown-inner ul");if(!this.con.multiPinSelected||!b||!1!==this._query)return this;if(option=this.dropdown[d](`li[data-key='${a.key}'][data-group='${a.group}']`),a.selected)b.insertBefore(option,b.children[0]);else{let b=this.dropdown[d](`ul[data-group='${a.group}']`),c=this.options[a.index-1],e=!1;for(;c&&c.group==a.group&&!(e=b[d](`li[data-key='${c.key}']`));)c=this.options[c.index-1];e&&e.nextElementSibling?b.insertBefore(option,e.nextElementSibling):b.appendChild(option)}return this},updateCSV(a){if(!this.csvInput||!this.con.csvOutput)return this;let b=this.options.selected.map(a=>a.value);return this.csvInput.value=b.join(this.con.csvSeparator||","),this},open(a){if(/active|idle/.test(this.select.className)||this.con.disabled)return!1;this.calc();let b=function(){this.select.classList.add("active"),this.select.classList.remove("idle"),this.dropdown.style.height="auto",this.dropdown.style.overflow="visible",this.label[j]("style"),this.con.search&&this.con.searchFocus&&this.dropdown[d]("input").focus(),this.trigger.call(this,"open")},c=this,f=this.dropdown.style;if(this.con.animate&&!1!==a){this.label.style.zIndex=25,this.dropdown.style.cssText+="height:0;display:block;overflow:hidden;",this.select.classList.add("idle");let a=()=>{let d=parseInt(f.height,10),e=parseInt(f.maxHeight,10);return d>=e?b.call(c):void(f.height=(d+50>e?e:d+50)+"px",setTimeout(a,20))};a()}else f.cssText=`height:${f.maxHeight};display:block;overflow:hidden;`,b.call(this);return this},close(a){if(!this.select.classList.contains("active")||this.select.classList.contains("idle"))return!1;let b=function(){this.select.classList.remove("idle","active"),this.dropdown[j]("style"),this.dropdown[d](".dropdown-inner")[j]("style"),this.trigger.call(this,"close")},c=this,f=this.dropdown;if(this.con.animate&&!1!==a){this.select.classList.add("idle"),this.dropdown.style.overflow="hidden";let a=()=>0>=parseInt(f.offsetHeight,10)-50?b.call(c):void(f.style.height=parseInt(f.offsetHeight,10)-50+"px",setTimeout(a,20));a()}else b.call(this);return this},toggle(a){return this.select.classList.contains("active")?this.close(a):this.select.classList.contains("idle")?this:this.open(a)},remove(){return this.e[j]("data-tail-select"),this.e[g]("data-select-hidden")&&("0"==this.e[h]("data-select-hidden")&&this.e.style.removeProperty("display"),this.e[j]("data-select-hidden")),Array.from(this.e[e]("[data-select-option='add']"),a=>{a.parentElement.removeChild(a)}),Array.from(this.e[e]("[data-select-optgroup='add']"),a=>{a.parentElement.removeChild(a)}),this.e.name=this.csvInput.hasAttribute("name")?this.csvInput.name:this.e.name,this.select[f].removeChild(this.select),this.container&&Array.from(this.container[e](".select-handle"),a=>{a.parentElement.removeChild(a)}),this},reload(){return this.remove().init()},config(a,b,c){if(a instanceof Object){for(let b in a)this.config(b,a[b],!1);return this.reload()?this.con:this.con}return"undefined"==typeof a?this.con:!!(a in this.con)&&("undefined"==typeof b?this.con[a]:(this.con[a]=b,!1!==c&&this.reload(),this))},enable(a){return this.select.classList.remove("disabled"),this.e.disabled=!1,this.con.disabled=!1,!1===a?this:this.reload()},disable(a){return this.select.classList.add("disabled"),this.e.disabled=!0,this.con.disabled=!0,!1===a?this:this.reload()},on(a,b,c){return!(0>["open","close","change"].indexOf(a)||"function"!=typeof b)&&(a in this.events||(this.events[a]=[]),this.events[a].push({cb:b,args:c instanceof Array?c:[]}),this)},value(){return 0==this.options.selected.length?null:this.con.multiple?this.options.selected.map(a=>a.value):this.options.selected[0].value}};const l=k.options=function(a,b){return this instanceof l?(this.self=b,this.element=a,this.length=0,this.selected=[],this.disabled=[],this.items={"#":{}},this.groups={},this):new l(a,b)};return l.prototype={_r(a){return a.replace("disabled","disable").replace("enabled","enable").replace("selected","select").replace("unselected","unselect")},get(a,b){if("object"==typeof a&&a.key&&a.group)b=a.group||b,a=a.key;else if(a instanceof Element)"OPTION"==a.tagName?(b=a[f].label||"#",a=a.value||a.innerText):a[g]("data-key")&&(b=a[h]("data-group")||a[f][h]("data-group")||"#",a=a[h]("data-key"));else if("string"!=typeof a)return!1;return a=/^[0-9]+$/.test(a)?"_"+a:a,!!(b in this.items)&&this.items[b][a]},set(a,c){let d=a.value||a.innerText,e=a[f].label||"#";if(e in this.items||(this.items[e]={},this.groups[e]=a[f]),d in this.items[e])return!1;let j=/^[0-9]+$/.test(d)?"_"+d:d,k=this.self.con;if(k.multiple&&this.selected.length>=k.multiLimit&&(a.selected=!1),a.selected&&k.deselect&&(!a[g]("selected")||0==k.multiLimit)&&(a.selected=!1,a.parentElement.selectedIndex=-1),a[g]("data-description")){let c=b("SPAN");c.innerHTML=a[h]("data-description"),a[i]("data-description",c.innerHTML)}return this.items[e][j]={key:d,value:a.text,description:a[h]("data-description")||null,group:e,option:a,optgroup:"#"==e?void 0:this.groups[e],selected:a.selected,disabled:a.disabled,hidden:a.hidden||!1},this.length++,a.selected&&this.select(this.items[e][j]),a.disabled&&this.disable(this.items[e][j]),!c||this.self.callback(this.items[e][d],"rebuild")},add(f,g,h,j,k,l,n){if(f instanceof Object){for(let g in f){let{value:h,group:a,selected:b,disabled:c,description:d}=f[g];this.add(f[g].key||g,h,a,b,c,d,!1)}return this.self.query()}if(this.get(f,h))return!1;if(h="string"==typeof h?h:"#","#"!==h&&!(h in this.groups)){let a=b("OPTGROUP");a.label=h,a[i]("data-select-optgroup","add"),this.element.appendChild(a),this.items[h]={},this.groups[h]=a}let o=this.self.con;o.multiple&&this.selected.length>=o.multiLimit&&(j=!1),k=!!k;let p=c.createElement("OPTION");return p.value=f,p.selected=j,p.disabled=k,p.innerText=g,p[i]("data-select-option","add"),l&&0<l.length&&p[i]("data-description",l),("#"==h?this.element:this.groups[h]).appendChild(p),this.set(p,n)},move(a,c,d,e){if(!(a=this.get(a,c)))return!1;if("#"!==d&&!(d in this.groups)){let c=b("OPTGROUP");c.label=d,this.element.appendChild(c),this.items[d]={},this.groups[d]=c,this.groups[d].appendChild(a.option)}return delete this.items[a.group][a.key],a.group=d,a.optgroup=this.groups[d]||void 0,this.items[d][a.key]=a,!e||this.self.query()},remove(a,b,c){if(!(a=this.get(a,b)))return!1;a.selected&&this.unselect(a),a.disabled&&this.enable(a),a.option[f].removeChild(a.option);let d=/^[0-9]+$/.test(a.key)?"_"+a.key:a.key;return delete this.items[a.group][d],this.length--,0===Object.keys(this.items[a.group]).length&&(delete this.items[a.group],delete this.groups[a.group]),!c||this.self.query()},is(a,b,c){return(a=this._r(a),b=this.get(b,c),!b||0>["select","unselect","disable","enable"].indexOf(a))?null:"disable"==a||"enable"==a?"disable"==a?b.disabled:!b.disabled:("select"==a||"unselect"==a)&&("select"==a?b.selected:!b.selected)},handle(a,b,c,d){if(a=this._r(a),b=this.get(b,c),!b||0>["select","unselect","disable","enable"].indexOf(a))return null;if("disable"==a||"enable"==a)return b.option in this.disabled||"disable"!=a?b.option in this.disabled&&"enable"==a&&this.disabled.splice(this.disabled.indexOf(b.option),1):this.disabled.push(b.option),b.disabled="disable"==a,b.option.disabled="disable"==a,this.self.callback.call(this.self,b,a);let e=this.self.select.classList.contains("disabled")||b.disabled||b.option.disabled,f=this.self.con.multiple&&this.self.con.multiLimit<=this.selected.length,g=!this.self.con.multiple&&0<this.selected.indexOf(b.option),h=0==this.self.con.multiLimit&&!0==this.self.con.deselect,i=!this.self.con.multiple&&!this.self.con.deselect&&!0!==d;if("select"==a){if(e||f||h||g)return!1;if(!this.self.con.multiple)for(let a in this.selected)this.unselect(this.selected[a],void 0,!0);0>this.selected.indexOf(b.option)&&this.selected.push(b.option)}else if("unselect"==a){if(e||i)return!1;this.selected.splice(this.selected.indexOf(b.option),1)}return b.selected="select"==a,b.option.selected="select"==a,b.option[(6<a.length?"remove":"set")+"Attribute"]("selected","selected"),this.self.callback.call(this.self,b,a)},enable(a,b){return this.handle("enable",a,b)},disable(a,b){return this.handle("disable",a,b)},select(a,b){return this.handle("select",a,b)},unselect(a,b,c){return this.handle("unselect",a,b,c)},toggle(a,b){return!!(a=this.get(a,b))&&this.handle(a.selected?"unselect":"select",a,b)},invert(a){if(a=this._r(a),0<=["enable","disable"].indexOf(a)){let b=this.disabled,c="enable"==a?"disable":"enable"}else if(0<=["select","unselect"].indexOf(a)){let b=this.selected,c="select"==a?"unselect":"select"}let b=Array.from(this).filter(a=>{!(a in invert)});return[].concat(invert).forEach(a=>{this.handle(action,a)}),[].concat(b).forEach(b=>{this.handle(a,b)}),!0},all(a,b){let c=this;return b in this.items?c=Object.keys(this.items[b]):0<=["unselect","enable"].indexOf(a)&&(c="unselect"==a?this.selected:this.disabled),[].concat(Array.from(c)).forEach(c=>{this.handle(a,c,b)}),!0},walk(a,b,c){if(b instanceof Array||b.length)for(let d=b.length,e=0;e<d;e++)this.handle.apply(this,[a,b[e],null].concat(c));else if(b instanceof Object)if(b.forEach)b.forEach(()=>{this.handle.apply(this,[a,value,null].concat(c))});else for(let d in b)("string"==typeof b[d]||"number"==typeof b[d]||b[d]instanceof Element)&&this.handle.apply(this,[a,b[d],d in this.items?d:null]).concat(c);return this},applyLinguisticRules(a,b){let c=this.self.con.linguisticRules,d=Object.keys(c).map(a=>"("+a+"|["+c[a]+"])");return b&&(d=d.concat(d.map(a=>a.toUpperCase()))),a.replace(new RegExp(d.join("|"),b?"g":"ig"),(a,...b)=>d[b.indexOf(a)])},find(a,b){let c,d=this,e={};if(b||(b=this.self.con.searchConfig),"function"==typeof b)c=b.bind(this,a);else{b=b instanceof Array?b:[b],b.forEach(a=>{"string"==typeof a&&(e[a]=!0)}),e.any=e.any?e.any:e.attributes&&e.value,(!e.regex||e.text)&&(a=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),e.exactglyphes||(a=this.self.options.applyLinguisticRules(a,e.case)),e.word&&(a="\\b"+a+"\\b");var f=new RegExp(a,e.case?"m":"mi"),g=a=>f.test(a.text||a.value);if(c=e.any?a=>g(a)||[...a.attributes].some(m):e.attributes?a=>[...a.attributes].some(m):g,!this.self.con.searchDisabled){let a=c;c=b=>!b.disabled&&a(b)}}return[...this.self.e.options].filter(c).map(a=>!a.hidden&&this.get(a))},*finder(a,b){for(let c,d=this.find(a,b);void 0!==(c=d.shift());)yield c},*walker(a,b){let c=Object.keys(this.groups);"ASC"==b?c.sort():"DESC"==b?c.sort().reverse():"function"==typeof b&&(c=b.call(this,c)),c.unshift("#");for(let d,e,f=c.length,g=0;g<f&&(d=c[g],!!(d in this.items));g++){e=Object.keys(this.items[d]),"ASC"==a?e.sort():"DESC"==a?e.sort().reverse():"function"==typeof a&&(e=a.call(this,e));for(let a=e.length,b=0;b<a;b++)!0!==this.items[d][e[b]].hidden&&(yield this.items[d][e[b]])}}},{select:k,options:l}}(window||this);export{select,options};

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

/* pytesNET/tail.select v.0.5.14 | Full Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
/* pytesNET/tail.select v.0.5.15 | Full Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
!function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(e):(void 0===e.tail&&(e.tail={}),e.tail.select=t(e),"undefined"!=typeof jQuery&&(jQuery.fn.tailselect=function(e){var t,i=[];return this.each(function(){!1!==(t=tail.select(this,e))&&i.push(t)}),1===i.length?i[0]:0!==i.length&&i}),"undefined"!=typeof MooTools&&Element.implement({tailselect:function(e){return new tail.select(this,e)}}))}(window,function(e){"use strict";var r=e,h=e.document;function b(e,t){return!!(e&&"classList"in e)&&e.classList.contains(t)}function c(e,t){return e&&"classList"in e?e.classList.add(t):void 0}function d(e,t){return e&&"classList"in e?e.classList.remove(t):void 0}function s(e,t,i){if(CustomEvent&&CustomEvent.name)var n=new CustomEvent(t,i);else(n=h.createEvent("CustomEvent")).initCustomEvent(t,!!i.bubbles,!!i.cancelable,i.detail);return e.dispatchEvent(n)}function u(e,t){if("function"==typeof Object.assign)return Object.assign({},e,t||{});var i=Object.constructor();for(var n in e)i[n]=n in t?t[n]:e[n];return i}function g(e,t){var i=h.createElement(e);return i.className=t&&t.join?t.join(" "):t||"",i}var a,p=function(e,t){if((e="string"==typeof e?h.querySelectorAll(e):e)instanceof NodeList||e instanceof HTMLCollection||e instanceof Array){for(var i=[],n=e.length,s=0;s<n;s++)i.push(new p(e[s],u(t,{})));return 1===i.length?i[0]:0!==i.length&&i}if(!(e instanceof Element&&this instanceof p))return e instanceof Element&&new p(e,t);if(p.inst[e.getAttribute("data-tail-select")])return p.inst[e.getAttribute("data-tail-select")];if(e.getAttribute("data-select")){var l=JSON.parse(e.getAttribute("data-select").replace(/\'/g,'"'));l instanceof Object&&(t=u(t,l))}var o=e.getAttribute("placeholder")||e.getAttribute("data-placeholder"),r="bindSourceSelect",a="sourceHide";return(t="object"==typeof t?t:{}).multiple="multiple"in t?t.multiple:e.multiple,t.disabled="disabled"in t?t.disabled:e.disabled,t.placeholder=o||t.placeholder||null,t.width="auto"===t.width?e.offsetWidth+50:t.width,t.sourceBind=r in t?t[r]:t.sourceBind||!1,t.sourceHide=a in t?t[a]:t.sourceHide||!0,t.multiLimit=0<=t.multiLimit?t.multiLimit:1/0,this.e=e,this.id=++p.count,this.con=u(p.defaults,t),this.events={},(p.inst["tail-"+this.id]=this).init().bind()};return p.version="0.5.15",p.status="beta",p.count=0,p.inst={},p.defaults={animate:!0,classNames:null,csvOutput:!1,csvSeparator:",",descriptions:!1,deselect:!1,disabled:!1,height:350,hideDisabled:!1,hideSelected:!1,items:{},locale:"en",linguisticRules:{"е":"ё",a:"ä",o:"ö",u:"ü",ss:"ß"},multiple:!1,multiLimit:1/0,multiPinSelected:!1,multiContainer:!1,multiShowCount:!0,multiShowLimit:!1,multiSelectAll:!1,multiSelectGroup:!0,openAbove:null,placeholder:null,search:!1,searchConfig:["text","value"],searchFocus:!0,searchMarked:!0,searchMinLength:1,searchDisabled:!0,sortItems:!1,sortGroups:!1,sourceBind:!1,sourceHide:!0,startOpen:!1,stayOpen:!1,width:null,cbComplete:void 0,cbEmpty:void 0,cbLoopItem:void 0,cbLoopGroup:void 0},p.strings={de:{all:"Alle",none:"Keine",empty:"Keine Optionen verfügbar",emptySearch:"Keine Optionen gefunden",limit:"Keine weiteren Optionen wählbar",placeholder:"Wähle eine Option...",placeholderMulti:"Wähle bis zu :limit Optionen...",search:"Tippen zum suchen",disabled:"Dieses Feld ist deaktiviert"},en:{all:"All",none:"None",empty:"No Options available",emptySearch:"No Options found",limit:"You can't select more Options",placeholder:"Select an Option...",placeholderMulti:"Select up to :limit Options...",search:"Type in to search...",disabled:"This Field is disabled"},es:{all:"Todos",none:"Ninguno",empty:"No hay opciones disponibles",emptySearch:"No se encontraron opciones",limit:"No puedes seleccionar mas opciones",placeholder:"Selecciona una opción...",placeholderMulti:"Selecciona hasta :límite de opciones...",search:"Escribe dentro para buscar...",disabled:"Este campo esta deshabilitado"},fi:{all:"Kaikki",none:"Ei mitään",empty:"Ei vaihtoehtoja",emptySearch:"Etsimääsi vaihtoehtoa ei löytynyt",limit:"Muita vaihtoehtoja ei voi valita",placeholder:"Valitse...",placeholderMulti:"Valitse maksimissaan :limit...",search:"Hae tästä...",disabled:"Kenttä on poissa käytöstä"},fr:{all:"Tous",none:"Aucun",empty:"Aucune option disponible",emptySearch:"Aucune option trouvée",limit:"Aucune autre option sélectionnable",placeholder:"Choisissez une option...",placeholderMulti:"Choisissez jusqu'à :limit option(s)...",search:"Rechercher...",disabled:"Ce champs est désactivé"},it:{all:"Tutti",none:"Nessuno",empty:"Nessuna voce disponibile",emptySearch:"Nessuna voce trovata",limit:"Non puoi selezionare più Voci",placeholder:"Seleziona una Voce",placeholderMulti:"Selezione limitata a :limit Voci...",search:"Digita per cercare...",disabled:"Questo Campo è disabilitato"},no:{all:"Alle",none:"Ingen",empty:"Ingen valg tilgjengelig",emptySearch:"Ingen valg funnet",limit:"Du kan ikke velge flere",placeholder:"Velg...",placeholderMulti:"Velg opptil :limit...",search:"Søk...",disabled:"Dette feltet er deaktivert"},pt_BR:{all:"Todas",none:"Nenhuma",empty:"Nenhuma opção disponível",emptySearch:"Nenhuma opção encontrada",limit:"Não é possível selecionar outra opção",placeholder:"Escolha uma opção ...",placeholderMulti:"Escolha até: :limit opção(ões) ...",search:"Buscar ...",disabled:"Campo desativado"},ru:{all:"Все",none:"Ничего",empty:"Нет доступных вариантов",emptySearch:"Ничего не найдено",limit:"Вы не можете выбрать больше вариантов",placeholder:"Выберите вариант...",placeholderMulti:function(e){var t=e[":limit"];return"Выбор до :limit "+["варианта","вариантов","вариантов"][4<t%100&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]+" ..."},search:"Начните набирать для поиска ...",disabled:"Поле отключено"},tr:{all:"Tümü",none:"Hiçbiri",empty:"Seçenek yok",emptySearch:"Seçenek bulunamadı",limit:"Daha fazla Seçenek seçemezsiniz",placeholder:"Bir Seçenek seçin...",placeholderMulti:"En fazla :limit Seçenek seçin...",search:"Aramak için yazın...",disabled:"Bu Alan kullanılamaz"},modify:function(e,t,i){if(!(e in this))return!1;if(t instanceof Object)for(var n in t)this.modify(e,n,t[n]);else this[e][t]="string"==typeof i?i:this[e][t];return!0},register:function(e,t){return"string"==typeof e&&t instanceof Object&&(this[e]=t,!0)}},p.prototype={_e:function(e,t,i){if(!(e in this.__))return i||e;if("function"==typeof(e=this.__[e])&&(e=e.call(this,t)),"object"==typeof t)for(var n in t)e=e.replace(n,t[n]);return e},init:function(){var t=this,e=["tail-select"],i=this.con,n=!0===i.classNames?this.e.className:i.classNames;e.push(n&&n.push?n.join(" "):n&&n.split?n:"no-classes"),i.hideSelected&&e.push("hide-selected"),i.hideDisabled&&e.push("hide-disabled"),0==i.multiLimit&&e.push("disabled"),i.multiple&&e.push("multiple"),i.deselect&&e.push("deselect"),i.disabled&&e.push("disabled"),this.__=u(p.strings.en,p.strings[i.locale]||{}),this._init=!0,this._query=!1,this.select=g("DIV",e),this.label=g("DIV","select-label"),this.dropdown=g("DIV","select-dropdown"),this.search=g("DIV","dropdown-search"),this.csvInput=g("INPUT","select-search"),null!==this.e.getAttribute("tabindex")?this.select.setAttribute("tabindex",this.e.getAttribute("tabindex")):this.select.setAttribute("tabindex",0),i.width&&/^[0-9.]+(?:cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|\%)$/i.test(i.width)?this.select.style.width=i.width:i.width&&!isNaN(parseFloat(i.width,10))&&(this.select.style.width=i.width+"px"),this.label.addEventListener("click",function(e){t.toggle.call(t,t.con.animate)}),this.select.appendChild(this.label),isNaN(parseInt(i.height,10))||(this.dropdown.style.maxHeight=parseInt(i.height,10)+"px"),i.search&&(this.search.innerHTML='<input type="text" class="search-input" />',this.search.children[0].placeholder=this._e("search"),this.search.children[0].addEventListener("input",function(e){t.query.call(t,this.value.length>i.searchMinLength?this.value:void 0)}),this.dropdown.appendChild(this.search)),this.select.appendChild(this.dropdown),this.csvInput.type="hidden",i.csvOutput&&(this.csvInput.name=this.e.name,this.e.removeAttribute("name"),this.select.appendChild(this.csvInput)),i.multiple&&i.multiContainer&&(h.querySelector(i.multiContainer)?(this.container=h.querySelector(i.multiContainer),this.container.className+=" tail-select-container"):!0===i.multiContainer&&(this.container=this.label,this.container.className+=" tail-select-container")),this.options=new a(this.e,this);for(var s=this.e.options.length,l=0;l<s;l++)this.options.set(this.e.options[l],!1);for(var o in i.items)"string"==typeof i.items[o]&&(i.items[o]={value:i.items[o]}),this.options.add(i.items[o].key||o,i.items[o].value,i.items[o].group,i.items[o].selected,i.items[o].disabled,i.items[o].description);return this.query(),this.e.nextElementSibling?this.e.parentElement.insertBefore(this.select,this.e.nextElementSibling):this.e.parentElement.appendChild(this.select),i.sourceHide&&("none"==this.e.style.display?(this.select.style.display="none",this.e.setAttribute("data-select-hidden","display")):"hidden"==this.e.style.visibility?(this.select.style.visibiltiy="hidden",this.e.setAttribute("data-select-hidden","visibility")):(this.e.style.display="none",this.e.setAttribute("data-select-hidden","0"))),this.e.setAttribute("data-tail-select","tail-"+this.id),t.con.startOpen&&this.open(i.animate),(i.cbComplete||function(){}).call(this,this.select),this._init=!1,this},bind:function(){var a=this;return h.addEventListener("keydown",function(e){var t,i,n,s,l,o=e.keyCode||e.which;if(!(32==o&&a.select===document.activeElement)&&(!b(a.select,"active")||[13,27,38,40].indexOf(o)<0))return!1;if(e.preventDefault(),e.stopPropagation(),32===o)return a.open(a.con.animate);if(13==o&&(t=a.dropdown.querySelector(".dropdown-option.hover:not(.disabled)"))&&a.options.select.call(a.options,t),27==o||13==o)return a.close(a.con.animate);if(t=a.dropdown.querySelector(".dropdown-option.hover:not(.disabled)"))for(d(t,"hover"),n=[(40==o?"next":"previous")+"ElementSibling"];(t=null!==(s=t[n])&&"LI"==t.tagName?s:null!==(s=t.parentElement[n])&&0<s.children.length&&"UL"==s.tagName&&s.children[40==o?0:s.children.length-1])&&(!b(t,"dropdown-option")||b(t,"disabled")););if(t||40!=o?t||38!=o||(t=(l=a.dropdown.querySelectorAll(".dropdown-option:not(.disabled)"))[l.length-1]):t=a.dropdown.querySelector(".dropdown-option:not(.disabled)"),t&&(i=a.dropdown.querySelector(".dropdown-inner"))){var r=function(e){for(var t={top:e.offsetTop,height:e.offsetHeight};(e=e.parentElement)!=i;)t.top+=e.offsetTop;return t}(t);c(t,"hover"),i.scrollTop=Math.max(0,r.top-2*r.height)}return!0}),h.addEventListener("click",function(e){if(!b(a.select,"active")||b(a.select,"idle"))return!1;if(!0===a.con.stayOpen)return!1;for(var t=[a.e,a.select,a.container],i=t.length,n=0;n<i;n++){if(t[n]&&(t[n].contains(e.target)||t[n]==e.target))return!1;if(!e.target.parentElement)return!1}return a.close.call(a,a.con.animate)}),this.con.sourceBind&&this.e.addEventListener("change",function(e){if(null!=e.detail)return!1;if(e.preventDefault(),e.stopPropagation(),!this.multiple&&this.selectedIndex)a.options.select.call(a.options,this.options[this.selectedIndex]);else{var t=[].concat(a.options.selected),i=[].filter.call(this.querySelectorAll("option:checked"),function(e){return!(0<=t.indexOf(e))||(t.splice(t.indexOf(e),1),!1)});a.options.walk.call(a.options,"unselect",t),a.options.walk.call(a.options,"select",i)}}),!0},callback:function(e,t,i){var n="[data-key='"+e.key.replace(/('|\\)/g,"\\$1")+"'][data-group='"+e.group.replace(/('|\\)/g,"\\$1")+"']";if("rebuild"==t)return this.query();var s=this.dropdown.querySelector(n);return s&&0<=["select","disable"].indexOf(t)?c(s,"select"==t?"selected":"disabled"):s&&0<=["unselect","enable"].indexOf(t)&&d(s,"unselect"==t?"selected":"disabled"),this.update(e),!0===i||this.trigger("change",e,t)},trigger:function(e){if(this._init)return!1;var t={bubbles:!1,cancelable:!0,detail:{args:arguments,self:this}};"change"==e&&arguments[2]&&0<=arguments[2].indexOf("select")&&(s(this.e,"input",t),s(this.e,"change",t)),s(this.select,"tail::"+e,t);var i,n=[];return Array.prototype.map.call(arguments,function(e,t){0<t&&n.push(e)}),(this.events[e]||[]).forEach(function(e){(i=[].concat(n)).push(e.args||null),(e.cb||function(){}).apply(t.detail.self,i)}),!0},calc:function(){var e=this.dropdown.cloneNode(!0),t=this.con.height,i=0,n=this.dropdown.querySelector(".dropdown-inner");(e=this.dropdown.cloneNode(!0)).style.cssText="height:auto;min-height:auto;max-height:none;opacity:0;display:block;visibility:hidden;",e.style.maxHeight=this.con.height+"px",e.className+=" cloned",this.dropdown.parentElement.appendChild(e),t=t>e.clientHeight?e.clientHeight:t,this.con.search&&(i=e.querySelector(".dropdown-search").clientHeight),this.dropdown.parentElement.removeChild(e);var s=this.select.getBoundingClientRect(),l=r.innerHeight-(s.top+s.height),o=l<t+i&&s.top>l;return!0===this.con.openAbove||!1!==this.con.openAbove&&o?(o=!0,t=Math.min(t,s.top-10),c(this.select,"open-top")):(o=!1,t=Math.min(t,l-10),d(this.select,"open-top")),n&&(this.dropdown.style.maxHeight=t+"px",n.style.maxHeight=t-i+"px"),this},query:function(e,t){var i,n,s,l,o,r,a=this,c=this.con,h="getAttribute",d=g("DIV","dropdown-inner"),u=e?"finder":"walker",p=e?[e,t]:[c.sortItems,c.sortGroups];for(this._query="string"==typeof e&&e;i=this.options[u].apply(this.options,p);){if(!s||s&&s[h]("data-group")!==i.group){if(!((n=(c.cbLoopGroup||this.cbGroup).call(this,i.group,e,d))instanceof Element))break;(s=n).setAttribute("data-group",i.group),d.appendChild(s)}if(null!==(l=(c.cbLoopItem||this.cbItem).call(this,i,s,e,d))){if(!1===l)break;l.setAttribute("data-key",i.key),l.setAttribute("data-group",i.group),l.addEventListener("click",function(e){if(!this.hasAttribute("data-key"))return!1;var t=this[h]("data-key"),i=this[h]("data-group")||"#";a.options.toggle.call(a.options,t,i)&&(!1!==a.con.stayOpen||a.con.multiple||a.close.call(a,a.con.animate))}),s.appendChild(l)}}var f=d.querySelectorAll("*[data-key]").length;0==f&&(this.con.cbEmpty||function(e){var t=g("SPAN","dropdown-empty");t.innerText=this._e("empty"),e.appendChild(t)}).call(this,d,e),0<f&&c.multiple&&c.multiLimit==1/0&&c.multiSelectAll&&(o=g("BUTTON","tail-all"),r=g("BUTTON","tail-none"),o.innerText=this._e("all"),o.addEventListener("click",function(e){e.preventDefault();var t=a.dropdown.querySelectorAll(".dropdown-inner .dropdown-option");a.options.walk.call(a.options,"select",t)}),r.innerText=this._e("none"),r.addEventListener("click",function(e){e.preventDefault();var t=a.dropdown.querySelectorAll(".dropdown-inner .dropdown-option");a.options.walk.call(a.options,"unselect",t)}),(l=g("SPAN","dropdown-action")).appendChild(o),l.appendChild(r),d.insertBefore(l,d.children[0]));var m=this.dropdown.querySelector(".dropdown-inner");return this.dropdown[(m?"replace":"append")+"Child"](d,m),b(this.select,"active")&&this.calc(),this.updateCSV().updateLabel()},cbGroup:function(e,t){var i,n,s=g("UL","dropdown-optgroup"),l=this;return"#"==e||(s.innerHTML='<li class="optgroup-title"><b>'+e+"</b></li>",this.con.multiple&&this.con.multiLimit==1/0&&this.con.multiSelectAll&&(i=g("BUTTON","tail-none"),n=g("BUTTON","tail-all"),i.innerText=this._e("none"),i.addEventListener("click",function(e){e.preventDefault();var t=this.parentElement.parentElement.getAttribute("data-group");l.options.all.call(l.options,"unselect",t)}),n.innerText=this._e("all"),n.addEventListener("click",function(e){e.preventDefault();var t=this.parentElement.parentElement.getAttribute("data-group");l.options.all.call(l.options,"select",t)}),s.children[0].appendChild(i),s.children[0].appendChild(n))),s},cbItem:function(e,t,i){var n=g("LI","dropdown-option"+(e.selected?" selected":"")+(e.disabled?" disabled":""));return i&&0<i.length&&this.con.searchMarked?(i=this.options.applyLinguisticRules(i),n.innerHTML=e.value.replace(new RegExp("("+i+")","i"),"<mark>$1</mark>")):n.innerText=e.value,this.con.descriptions&&e.description&&(n.innerHTML+='<span class="option-description">'+e.description+"</span>"),n},update:function(e){return this.updateLabel().updateContainer(e).updatePin(e).updateCSV(e)},updateLabel:function(e){if(this.container==this.label&&0<this.options.selected.length)return this.label.querySelector(".label-inner")&&this.label.removeChild(this.label.querySelector(".label-inner")),this.label.querySelector(".label-count")&&this.label.removeChild(this.label.querySelector(".label-count")),this;var t,i=this.con,n=this.options.selected.length;return"string"!=typeof e&&(e=i.disabled?"disabled":0==this.dropdown.querySelectorAll("*[data-key]").length?"empty"+(b(this.select,"in-search")?"Search":""):i.multiLimit<=n?"limit":!i.multiple&&0<this.options.selected.length?this.options.selected[0].innerText:"string"==typeof i.placeholder?i.placeholder:"placeholder"+(i.multiple&&i.multiLimit<1/0?"Multi":"")),e='<span class="label-inner">'+(e=this._e(e,{":limit":i.multiLimit},e))+"</span>",t=i.multiShowLimit&&i.multiLimit<1/0,i.multiple&&i.multiShowCount&&(e=(e='<span class="label-count">:c</span>'+e).replace(":c",n+(t?" / "+i.multiLimit:""))),this.label.innerHTML=e,this},updateContainer:function(e){if(!this.container||!this.con.multiContainer)return this;var t="[data-group='"+e.group+"'][data-key='"+e.key+"']";if(this.container.querySelector(t))return e.selected||this.container.removeChild(this.container.querySelector(t)),this;if(e.selected){var n=this,i=g("DIV","select-handle");i.innerText=e.value,i.setAttribute("data-key",e.key),i.setAttribute("data-group",e.group),i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=this.getAttribute("data-key"),i=this.getAttribute("data-group");n.options.unselect.call(n.options,t,i)}),this.container.appendChild(i)}return this},updatePin:function(e){var t=this.dropdown.querySelector(".dropdown-inner ul"),i="li[data-key='"+e.key+"'][data-group='"+e.group+"']";if(!this.con.multiPinSelected||!t||!1!==this._query)return this;if(i=this.dropdown.querySelector(i),e.selected)t.insertBefore(i,t.children[0]);else{for(var n=this.dropdown.querySelector("ul[data-group='"+e.group+"']"),s=this.options[e.index-1],l=!1;s&&s.group==e.group&&!(l=n.querySelector("li[data-key='"+s.key+"']"));)s=this.options[s.index-1];l&&l.nextElementSibling?n.insertBefore(i,l.nextElementSibling):n.appendChild(i)}return this},updateCSV:function(e){if(!this.csvInput||!this.con.csvOutput)return this;for(var t=[],i=this.options.selected.length,n=0;n<i;n++)t.push(this.options.selected[n].value);return this.csvInput.value=t.join(this.con.csvSeparator||","),this},open:function(e){if(b(this.select,"active")||b(this.select,"idle")||this.con.disabled)return!1;this.calc();function n(){c(s.select,"active"),d(s.select,"idle"),this.dropdown.style.height="auto",this.dropdown.style.overflow="visible",this.label.removeAttribute("style"),this.con.search&&this.con.searchFocus&&this.dropdown.querySelector("input").focus(),this.trigger.call(this,"open")}var s=this,l=this.dropdown.style;return!1!==e?(this.label.style.zIndex=25,this.dropdown.style.cssText+="height:0;display:block;overflow:hidden;",c(s.select,"idle"),function e(){var t=parseInt(l.height,10),i=parseInt(l.maxHeight,10);if(i<=t)return n.call(s);l.height=(i<t+50?i:t+50)+"px",setTimeout(e,20)}()):(l.cssText="height:"+l.maxHeight+";display:block;overflow:hidden;",n.call(this)),this},close:function(e){if(!b(this.select,"active")||b(this.select,"idle"))return!1;function t(){d(this.select,"active"),d(this.select,"idle"),this.dropdown.removeAttribute("style"),this.dropdown.querySelector(".dropdown-inner").removeAttribute("style"),this.trigger.call(this,"close")}var i=this,n=this.dropdown;return!1!==e?(c(this.select,"idle"),this.dropdown.style.overflow="hidden",function e(){if(parseInt(n.offsetHeight,10)-50<=0)return t.call(i);n.style.height=parseInt(n.offsetHeight,10)-50+"px",setTimeout(e,20)}()):t.call(this),this},toggle:function(e){return b(this.select,"active")?this.close(e):b(this.select,"idle")?this:this.open(e)},remove:function(){if(this.e.removeAttribute("data-tail-select"),this.e.hasAttribute("data-select-hidden")&&("0"==this.e.getAttribute("data-select-hidden")&&this.e.style.removeProperty("display"),this.e.removeAttribute("data-select-hidden")),Array.prototype.map.call(this.e.querySelectorAll("[data-select-option='add']"),function(e){e.parentElement.removeChild(e)}),Array.prototype.map.call(this.e.querySelectorAll("[data-select-optgroup='add']"),function(e){e.parentElement.removeChild(e)}),this.e.name=this.csvInput.hasAttribute("name")?this.csvInput.name:this.e.name,this.select.parentElement&&this.select.parentElement.removeChild(this.select),this.container)for(var e=this.container.querySelectorAll(".select-handle"),t=e.length,i=0;i<t;i++)this.container.removeChild(e[i]);return this},reload:function(){return this.remove().init()},config:function(e,t,i){if(e instanceof Object){for(var n in e)this.config(n,e[n],!1);return this.reload(),this.con}return void 0===e?this.con:e in this.con&&(void 0===t?this.con[e]:(this.con[e]=t,!1!==i&&this.reload(),this))},enable:function(e){return d(this.select,"disabled"),this.e.disabled=!1,(this.con.disabled=!1)===e?this:this.reload()},disable:function(e){return c(this.select,"disabled"),this.e.disabled=!0,!(this.con.disabled=!0)===e?this:this.reload()},on:function(e,t,i){return!(["open","close","change"].indexOf(e)<0||"function"!=typeof t)&&(e in this.events||(this.events[e]=[]),this.events[e].push({cb:t,args:i instanceof Array?i:[]}),this)},value:function(){return 0==this.options.selected.length?null:this.con.multiple?this.options.selected.map(function(e){return e.value}):this.options.selected[0].value}},(a=p.options=function(e,t){return this instanceof a?(this.self=t,this.element=e,this.length=0,this.selected=[],this.disabled=[],this.items={"#":{}},this.groups={},this):new a(e,t)}).prototype={_r:function(e){return e.replace("disabled","disable").replace("enabled","enable").replace("selected","select").replace("unselected","unselect")},get:function(e,t){var i="getAttribute";if("object"==typeof e&&e.key&&e.group)t=e.group||t,e=e.key;else if(e instanceof Element)"OPTION"==e.tagName?(t=e.parentElement.label||"#",e=e.value||e.innerText):e.hasAttribute("data-key")&&(t=e[i]("data-group")||e.parentElement[i]("data-group")||"#",e=e[i]("data-key"));else if("string"!=typeof e)return!1;return e=/^[0-9]+$/.test(e)?"_"+e:e,t in this.items&&this.items[t][e]},set:function(e,t){var i=e.value||e.innerText,n=e.parentElement.label||"#";if(n in this.items||(this.items[n]={},this.groups[n]=e.parentElement),i in this.items[n])return!1;var s=/^[0-9]+$/.test(i)?"_"+i:i,l=this.self.con;if(l.multiple&&this.selected.length>=l.multiLimit&&(e.selected=!1),!e.selected||!l.deselect||e.hasAttribute("selected")&&0!=l.multiLimit||(e.selected=!1,e.parentElement.selectedIndex=-1),e.hasAttribute("data-description")){var o=g("SPAN");o.innerHTML=e.getAttribute("data-description"),e.setAttribute("data-description",o.innerHTML)}return this.items[n][s]={key:i,value:e.text,description:e.getAttribute("data-description")||null,group:n,option:e,optgroup:"#"!=n?this.groups[n]:void 0,selected:e.selected,disabled:e.disabled,hidden:e.hidden||!1},this.length++,e.selected&&this.select(this.items[n][s]),e.disabled&&this.disable(this.items[n][s]),!t||this.self.callback(this.items[n][i],"rebuild")},add:function(e,t,i,n,s,l,o){if(e instanceof Object){for(var r in e)this.add(e[r].key||r,e[r].value,e[r].group,e[r].selected,e[r].disabled,e[r].description,!1);return this.self.query()}if(this.get(e,i))return!1;if("#"!==(i="string"==typeof i?i:"#")&&!(i in this.groups)){var a=g("OPTGROUP");a.label=i,a.setAttribute("data-select-optgroup","add"),this.element.appendChild(a),this.items[i]={},this.groups[i]=a}this.self.con.multiple&&this.selected.length>=this.self.con.multiLimit&&(n=!1),s=!!s;var c=h.createElement("OPTION");return c.value=e,c.selected=n,c.disabled=s,c.innerText=t,c.setAttribute("data-select-option","add"),l&&0<l.length&&c.setAttribute("data-description",l),("#"==i?this.element:this.groups[i]).appendChild(c),this.set(c,o)},move:function(e,t,i,n){if(!(e=this.get(e,t)))return!1;if("#"!==i&&!(i in this.groups)){var s=g("OPTGROUP");s.label=i,this.element.appendChild(s),this.items[i]={},this.groups[i]=s,this.groups[i].appendChild(e.option)}return delete this.items[e.group][e.key],e.group=i,e.optgroup=this.groups[i]||void 0,this.items[i][e.key]=e,!n||this.self.query()},remove:function(e,t,i){if(!(e=this.get(e,t)))return!1;e.selected&&this.unselect(e),e.disabled&&this.enable(e),e.option.parentElement.removeChild(e.option);var n=/^[0-9]+$/.test(e.key)?"_"+e.key:e.key;return delete this.items[e.group][n],this.length--,0===Object.keys(this.items[e.group]).length&&(delete this.items[e.group],delete this.groups[e.group]),!i||this.self.query()},is:function(e,t,i){e=this._r(e);var n=this.get(t,i);return!n||["select","unselect","disable","enable"].indexOf(e)<0?null:"disable"==e||"enable"==e?"disable"==e?n.disabled:!n.disabled:("select"==e||"unselect"==e)&&("select"==e?n.selected:!n.selected)},handle:function(e,t,i,n){var s=this.get(t,i);e=this._r(e);if(!s||["select","unselect","disable","enable"].indexOf(e)<0)return null;if("disable"==e||"enable"==e)return s.option in this.disabled||"disable"!=e?s.option in this.disabled&&"enable"==e&&this.disabled.splice(this.disabled.indexOf(s.option),1):this.disabled.push(s.option),s.disabled="disable"==e,s.option.disabled="disable"==e,this.self.callback.call(this.self,s,e);var l=b(this.self.select,"disabled")||s.disabled||s.option.disabled,o=this.self.con.multiple&&this.self.con.multiLimit<=this.selected.length,r=!this.self.con.multiple&&0<this.selected.indexOf(s.option),a=0==this.self.con.multiLimit&&1==this.self.con.deselect,c=!this.self.con.multiple&&!this.self.con.deselect&&!0!==n;if("select"==e){if(l||o||a||r)return!1;if(!this.self.con.multiple)for(var h in this.selected)this.unselect(this.selected[h],void 0,!0);this.selected.indexOf(s.option)<0&&this.selected.push(s.option)}else if("unselect"==e){if(l||c)return!1;this.selected.splice(this.selected.indexOf(s.option),1)}return s.selected="select"==e,s.option.selected="select"==e,s.option[(6<e.length?"remove":"set")+"Attribute"]("selected","selected"),this.self.callback.call(this.self,s,e,n)},enable:function(e,t){return this.handle("enable",e,t,!1)},disable:function(e,t){return this.handle("disable",e,t,!1)},select:function(e,t){return this.handle("select",e,t,!1)},unselect:function(e,t,i){return this.handle("unselect",e,t,i)},toggle:function(e,t){return!!(e=this.get(e,t))&&this.handle(e.selected?"unselect":"select",e,t,!1)},invert:function(t){if(t=this._r(t),0<=["enable","disable"].indexOf(t))var i=this.disabled,n="enable"==t?"disable":"enable";else if(0<=["select","unselect"].indexOf(t))i=this.selected,n="select"==t?"unselect":"select";var e=Array.prototype.filter.call(this,function(e){return!(e in i)}),s=this;return[].concat(i).forEach(function(e){s.handle.call(s,n,e)}),[].concat(e).forEach(function(e){s.handle.call(s,t,e)}),!0},all:function(t,i){var n=this,e=this;return i in this.items?e=Object.keys(this.items[i]):0<=["unselect","enable"].indexOf(t)&&(e=[].concat("unselect"==t?this.selected:this.disabled)),Array.prototype.forEach.call(e,function(e){n.handle.call(n,t,e,i,!1)}),!0},walk:function(t,e,i){if(e instanceof Array||e.length)for(var n=e.length,s=0;s<n;s++)this.handle.apply(this,[t,e[s],null].concat(i));else if(e instanceof Object){var l=this;if(e.forEach)e.forEach(function(e){l.handle.apply(l,[t,e,null].concat(i))});else for(var o in e)("string"==typeof e[o]||"number"==typeof e[o]||e[o]instanceof Element)&&this.handle.apply(this,[t,e[o],o in this.items?o:null]).concat(i)}return this},applyLinguisticRules:function(e,t){var i=this.self.con.linguisticRules,n=[];return Object.keys(i).forEach(function(e){n.push("("+e+"|["+i[e]+"])")}),t&&(n=n.concat(n.map(function(e){return e.toUpperCase()}))),e.replace(new RegExp(n.join("|"),t?"g":"ig"),function(e){return n[[].indexOf.call(arguments,e,1)-1]})},find:function(e,t){var i,n=this,s={};if(t||(t=this.self.con.searchConfig),"function"==typeof t)i=t.bind(this,e);else{(t=t instanceof Array?t:[t]).forEach(function(e){"string"==typeof e&&(s[e]=!0)}),s.any=s.any?s.any:s.attributes&&s.value,s.regex&&!s.text||(e=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),s.exactglyphes||(e=this.self.options.applyLinguisticRules(e,s.case)),s.word&&(e="\\b"+e+"\\b");var l=new RegExp(e,s.case?"m":"mi"),o=function(e){return l.test(e.text||e.value)};if(i=s.any?function(e){return o(e)||[].some.call(e.attributes,o)}:s.attributes?function(e){return[].some.call(e.attributes,o)}:o,!this.self.con.searchDisabled){var r=i;i=function(e){return!e.disabled&&r(e)}}}return[].filter.call(this.self.e.options,i).map(function(e){return!e.hidden&&n.get(e)})},finder:function(e,t){var i;for(void 0===this._finderLoop&&(this._finderLoop=this.find(e,t));void 0!==(i=this._finderLoop.shift());)return i;return delete this._finderLoop,!1},walker:function(e,t){if(void 0!==this._inLoop&&this._inLoop){if(0<this._inItems.length){do{var i=this.items[this._inGroup][this._inItems.shift()]}while(!0===i.hidden);return i}if(0<this._inGroups.length){for(;0<this._inGroups.length;){var n=this._inGroups.shift();if(!(n in this.items))return!1;var s=Object.keys(this.items[n]);if(0<s.length)break}return"ASC"==e?s.sort():"DESC"==e?s.sort().reverse():"function"==typeof e&&(s=e.call(this,s)),this._inItems=s,this._inGroup=n,this.walker(null,null)}return delete this._inLoop,delete this._inItems,delete this._inGroup,delete this._inGroups,!1}var l=Object.keys(this.groups)||[];return"ASC"==t?l.sort():"DESC"==t?l.sort().reverse():"function"==typeof t&&(l=t.call(this,l)),l.unshift("#"),this._inLoop=!0,this._inItems=[],this._inGroups=l,this.walker(e,null)}},p});

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -123,3 +123,3 @@ | @website https://github.com/pytesNET/tail.select

}, options;
select.version = "0.5.14";
select.version = "0.5.15";
select.status = "beta";

@@ -163,3 +163,3 @@ select.count = 0;

search: false, // [0.3.0] Boolean
searcgConfig: [ // [0.5.13] Array
searchConfig: [ // [0.5.13] Array
"text", "value"

@@ -958,3 +958,3 @@ ],

| PUBLIC :: GET|SET CONFIG
| @since 0.5.3 [0.4.0]
| @since 0.5.15 [0.4.0]
*/

@@ -977,3 +977,3 @@ config: function(key, value, rebuild){

this.con[key] = value;
if(this.rebuild !== false){
if(rebuild !== false){
this.reload();

@@ -1085,3 +1085,3 @@ }

| SET AN EXISTING OPTION
| @since 0.5.13 [0.3.0]
| @since 0.5.15 [0.3.0]
*/

@@ -1125,3 +1125,4 @@ set: function(opt, rebuild){

selected: opt.selected,
disabled: opt.disabled
disabled: opt.disabled,
hidden: opt.hidden || false
};

@@ -1317,6 +1318,6 @@ this.length++;

| INVERT CURRENT <STATE>
| @since 0.5.0 [0.3.0]
| @since 0.5.15 [0.3.0]
*/
invert: function(state){
state = this._replaceType(state);
state = this._r(state);
if(["enable", "disable"].indexOf(state) >= 0){

@@ -1408,3 +1409,3 @@ var invert = this.disabled, action = (state == "enable")? "disable": "enable";

| FIND SOME OPTIONs - ARRAY EDITION
| @since 0.5.13 [0.3.0]
| @since 0.5.15 [0.3.0]
*/

@@ -1463,3 +1464,5 @@ find: function(search, config){

// Hammer Time
return [].filter.call(this.self.e.options, matches).map(function(opt){return self.get(opt) });
return [].filter.call(this.self.e.options, matches).map(function(opt){
return opt.hidden? false: self.get(opt)
});
},

@@ -1485,3 +1488,3 @@

| NEW OPTIONS WALKER
| @since 0.5.7 [0.4.0]
| @since 0.5.15 [0.4.0]
*/

@@ -1491,4 +1494,6 @@ walker: function(orderi, orderg){

if(this._inItems.length > 0){
var key = this._inItems.shift();
return this.items[this._inGroup][key];
do {
var temp = this.items[this._inGroup][this._inItems.shift()];
} while(temp.hidden === true);
return temp;
}

@@ -1495,0 +1500,0 @@

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

/* pytesNET/tail.select v.0.5.14 | Basic Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
/* pytesNET/tail.select v.0.5.15 | Basic Version | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
(function(a,b){"function"==typeof define&&define.amd?define(function(){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(a):("undefined"==typeof a.tail&&(a.tail={}),a.tail.select=b(a),"undefined"!=typeof jQuery&&(jQuery.fn.tailselect=function(a){var b,c=[];return this.each(function(){!1!==(b=tail.select(this,a))&&c.push(b)}),1===c.length?c[0]:0!==c.length&&c}),"undefined"!=typeof MooTools&&Element.implement({tailselect:function(a){return new tail.select(this,a)}}))})(window,function(a){"use strict";function b(a,b){return!!(a&&"classList"in a)&&a.classList.contains(b)}function c(a,b){return a&&"classList"in a?a.classList.add(b):void 0}function f(a,b){return a&&"classList"in a?a.classList.remove(b):void 0}function g(a,b,c){if(CustomEvent&&CustomEvent.name)var d=new CustomEvent(b,c);else{var d=m.createEvent("CustomEvent");d.initCustomEvent(b,!!c.bubbles,!!c.cancelable,c.detail)}return a.dispatchEvent(d)}function h(a,b){if("function"==typeof Object.assign)return Object.assign({},a,b||{});var c=Object.constructor();for(var d in a)c[d]=d in b?b[d]:a[d];return c}function j(a,b){var c=m.createElement(a);return c.className=b&&b.join?b.join(" "):b||"",c}var k,m=a.document,d=function(a,b){if(a="string"==typeof a?m.querySelectorAll(a):a,a instanceof NodeList||a instanceof HTMLCollection||a instanceof Array){for(var c=[],e=a.length,f=0;f<e;f++)c.push(new d(a[f],h(b,{})));return 1===c.length?c[0]:0!==c.length&&c}if(!(a instanceof Element)||!(this instanceof d))return!!(a instanceof Element)&&new d(a,b);if(d.inst[a.getAttribute("data-tail-select")])return d.inst[a.getAttribute("data-tail-select")];if(a.getAttribute("data-select")){var g=JSON.parse(a.getAttribute("data-select").replace(/\'/g,"\""));g instanceof Object&&(b=h(b,g))}var j=a.getAttribute("placeholder")||a.getAttribute("data-placeholder");return b="object"==typeof b?b:{},b.multiple="multiple"in b?b.multiple:a.multiple,b.disabled="disabled"in b?b.disabled:a.disabled,b.placeholder=j||b.placeholder||null,b.width="auto"===b.width?a.offsetWidth+50:b.width,b.sourceBind="bindSourceSelect"in b?b.bindSourceSelect:b.sourceBind||!1,b.sourceHide="sourceHide"in b?b.sourceHide:b.sourceHide||!0,b.multiLimit=0<=b.multiLimit?b.multiLimit:1/0,this.e=a,this.id=++d.count,this.con=h(d.defaults,b),this.events={},d.inst["tail-"+this.id]=this,this.init().bind()};return d.version="0.5.15",d.status="beta",d.count=0,d.inst={},d.defaults={animate:!0,classNames:null,csvOutput:!1,csvSeparator:",",descriptions:!1,deselect:!1,disabled:!1,height:350,hideDisabled:!1,hideSelected:!1,items:{},locale:"en",linguisticRules:{е:"\u0451",a:"\xE4",o:"\xF6",u:"\xFC",ss:"\xDF"},multiple:!1,multiLimit:1/0,multiPinSelected:!1,multiContainer:!1,multiShowCount:!0,multiShowLimit:!1,multiSelectAll:!1,multiSelectGroup:!0,openAbove:null,placeholder:null,search:!1,searchConfig:["text","value"],searchFocus:!0,searchMarked:!0,searchMinLength:1,searchDisabled:!0,sortItems:!1,sortGroups:!1,sourceBind:!1,sourceHide:!0,startOpen:!1,stayOpen:!1,width:null,cbComplete:void 0,cbEmpty:void 0,cbLoopItem:void 0,cbLoopGroup:void 0},d.strings={en:{all:"All",none:"None",empty:"No Options available",emptySearch:"No Options found",limit:"You can't select more Options",placeholder:"Select an Option...",placeholderMulti:"Select up to :limit Options...",search:"Type in to search...",disabled:"This Field is disabled"},modify:function(a,b,c){if(!(a in this))return!1;if(b instanceof Object)for(var d in b)this.modify(a,d,b[d]);else this[a][b]="string"==typeof c?c:this[a][b];return!0},register:function(a,b){return!!("string"==typeof a&&b instanceof Object)&&(this[a]=b,!0)}},d.prototype={_e:function(a,b,c){if(!(a in this.__))return c?c:a;var a=this.__[a];if("function"==typeof a&&(a=a.call(this,b)),"object"==typeof b)for(var d in b)a=a.replace(d,b[d]);return a},init:function(){var a=this,b=["tail-select"],e=this.con,f=/^[0-9.]+(?:cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|\%)$/i,g=!0===e.classNames?this.e.className:e.classNames;b.push(g&&g.push?g.join(" "):g&&g.split?g:"no-classes"),e.hideSelected&&b.push("hide-selected"),e.hideDisabled&&b.push("hide-disabled"),0==e.multiLimit&&b.push("disabled"),e.multiple&&b.push("multiple"),e.deselect&&b.push("deselect"),e.disabled&&b.push("disabled"),this.__=h(d.strings.en,d.strings[e.locale]||{}),this._init=!0,this._query=!1,this.select=j("DIV",b),this.label=j("DIV","select-label"),this.dropdown=j("DIV","select-dropdown"),this.search=j("DIV","dropdown-search"),this.csvInput=j("INPUT","select-search"),null===this.e.getAttribute("tabindex")?this.select.setAttribute("tabindex",0):this.select.setAttribute("tabindex",this.e.getAttribute("tabindex")),e.width&&f.test(e.width)?this.select.style.width=e.width:e.width&&!isNaN(parseFloat(e.width,10))&&(this.select.style.width=e.width+"px"),this.label.addEventListener("click",function(){a.toggle.call(a,a.con.animate)}),this.select.appendChild(this.label),isNaN(parseInt(e.height,10))||(this.dropdown.style.maxHeight=parseInt(e.height,10)+"px"),e.search&&(this.search.innerHTML="<input type=\"text\" class=\"search-input\" />",this.search.children[0].placeholder=this._e("search"),this.search.children[0].addEventListener("input",function(){a.query.call(a,this.value.length>e.searchMinLength?this.value:void 0)}),this.dropdown.appendChild(this.search)),this.select.appendChild(this.dropdown),this.csvInput.type="hidden",e.csvOutput&&(this.csvInput.name=this.e.name,this.e.removeAttribute("name"),this.select.appendChild(this.csvInput)),e.multiple&&e.multiContainer&&(m.querySelector(e.multiContainer)?(this.container=m.querySelector(e.multiContainer),this.container.className+=" tail-select-container"):!0===e.multiContainer&&(this.container=this.label,this.container.className+=" tail-select-container")),this.options=new k(this.e,this);for(var c=this.e.options.length,l=0;l<c;l++)this.options.set(this.e.options[l],!1);for(var n in e.items)"string"==typeof e.items[n]&&(e.items[n]={value:e.items[n]}),this.options.add(e.items[n].key||n,e.items[n].value,e.items[n].group,e.items[n].selected,e.items[n].disabled,e.items[n].description);return this.query(),this.e.nextElementSibling?this.e.parentElement.insertBefore(this.select,this.e.nextElementSibling):this.e.parentElement.appendChild(this.select),e.sourceHide&&("none"==this.e.style.display?(this.select.style.display="none",this.e.setAttribute("data-select-hidden","display")):"hidden"==this.e.style.visibility?(this.select.style.visibiltiy="hidden",this.e.setAttribute("data-select-hidden","visibility")):(this.e.style.display="none",this.e.setAttribute("data-select-hidden","0"))),this.e.setAttribute("data-tail-select","tail-"+this.id),a.con.startOpen&&this.open(e.animate),(e.cbComplete||function(){}).call(this,this.select),(this._init=!1)?this:this},bind:function(){var a=this;return(m.addEventListener("keydown",function(d){var g,h,i,j,k,l=d.keyCode||d.which,m=32==l&&a.select===document.activeElement;if(!m&&(!b(a.select,"active")||0>[13,27,38,40].indexOf(l)))return!1;if(d.preventDefault(),d.stopPropagation(),32===l)return a.open(a.con.animate);if(13==l&&(g=a.dropdown.querySelector(".dropdown-option.hover:not(.disabled)"))&&a.options.select.call(a.options,g),27==l||13==l)return a.close(a.con.animate);if(g=a.dropdown.querySelector(".dropdown-option.hover:not(.disabled)")){f(g,"hover"),i=[(40==l?"next":"previous")+"ElementSibling"];do{if(g=null!==(j=g[i])&&"LI"==g.tagName?j:!!(null!==(j=g.parentElement[i])&&0<j.children.length&&"UL"==j.tagName)&&j.children[40==l?0:j.children.length-1],g&&(!b(g,"dropdown-option")||b(g,"disabled")))continue;break}while(!0)}if(g||40!=l?!g&&38==l&&(k=a.dropdown.querySelectorAll(".dropdown-option:not(.disabled)"),g=k[k.length-1]):g=a.dropdown.querySelector(".dropdown-option:not(.disabled)"),g&&(h=a.dropdown.querySelector(".dropdown-inner"))){var n=function(a){for(var b={top:a.offsetTop,height:a.offsetHeight};(a=a.parentElement)!=h;)b.top+=a.offsetTop;return b}(g);c(g,"hover"),h.scrollTop=Math.max(0,n.top-2*n.height)}return!0}),m.addEventListener("click",function(c){if(!b(a.select,"active")||b(a.select,"idle"))return!1;if(!0===a.con.stayOpen)return!1;for(var d=[a.e,a.select,a.container],e=d.length,f=0;f<e;f++){if(d[f]&&(d[f].contains(c.target)||d[f]==c.target))return!1;if(!c.target.parentElement)return!1}return a.close.call(a,a.con.animate)}),!!!this.con.sourceBind)||(this.e.addEventListener("change",function(b){if(null!=b.detail)return!1;if(b.preventDefault(),b.stopPropagation(),!this.multiple&&this.selectedIndex)a.options.select.call(a.options,this.options[this.selectedIndex]);else{var c=[].concat(a.options.selected),d=[].filter.call(this.querySelectorAll("option:checked"),function(a){return!(0<=c.indexOf(a))||(c.splice(c.indexOf(a),1),!1)});a.options.walk.call(a.options,"unselect",c),a.options.walk.call(a.options,"select",d)}}),!0)},callback:function(a,b,d){var e=a.key.replace(/('|\\)/g,"\\$1"),g=a.group.replace(/('|\\)/g,"\\$1");if("rebuild"==b)return this.query();var h=this.dropdown.querySelector("[data-key='"+e+"'][data-group='"+g+"']");return h&&0<=["select","disable"].indexOf(b)?c(h,"select"==b?"selected":"disabled"):h&&0<=["unselect","enable"].indexOf(b)&&f(h,"unselect"==b?"selected":"disabled"),this.update(a),!0===d||this.trigger("change",a,b)},trigger:function(a){if(this._init)return!1;var b={bubbles:!1,cancelable:!0,detail:{args:arguments,self:this}};"change"==a&&arguments[2]&&0<=arguments[2].indexOf("select")&&(g(this.e,"input",b),g(this.e,"change",b)),g(this.select,"tail::"+a,b);var c,d=[];return Array.prototype.map.call(arguments,function(a,b){0<b&&d.push(a)}),(this.events[a]||[]).forEach(function(a){c=[].concat(d),c.push(a.args||null),(a.cb||function(){}).apply(b.detail.self,c)}),!0},calc:function(){var b=this.dropdown.cloneNode(!0),d=this.con.height,e=0,g=this.dropdown.querySelector(".dropdown-inner");b=this.dropdown.cloneNode(!0),b.style.cssText="height:auto;min-height:auto;max-height:none;opacity:0;display:block;visibility:hidden;",b.style.maxHeight=this.con.height+"px",b.className+=" cloned",this.dropdown.parentElement.appendChild(b),d=d>b.clientHeight?b.clientHeight:d,this.con.search&&(e=b.querySelector(".dropdown-search").clientHeight),this.dropdown.parentElement.removeChild(b);var h=this.select.getBoundingClientRect(),i=a.innerHeight-(h.top+h.height),j=!!(d+e>i)&&h.top>i;return!0===this.con.openAbove||!1!==this.con.openAbove&&j?(j=!0,d=Math.min(d,h.top-10),c(this.select,"open-top")):(j=!1,d=Math.min(d,i-10),f(this.select,"open-top")),g&&(this.dropdown.style.maxHeight=d+"px",g.style.maxHeight=d-e+"px"),this},query:function(a,c){var d,e,f,h,i,k,l=this,m=this.con,n="getAttribute",g=j("DIV","dropdown-inner"),o=a?"finder":"walker",p=a?[a,c]:[m.sortItems,m.sortGroups];for(this._query="string"==typeof a&&a;d=this.options[o].apply(this.options,p);){if(!f||f&&f[n]("data-group")!==d.group)if(e=(m.cbLoopGroup||this.cbGroup).call(this,d.group,a,g),e instanceof Element)f=e,f.setAttribute("data-group",d.group),g.appendChild(f);else break;if(null!==(h=(m.cbLoopItem||this.cbItem).call(this,d,f,a,g))){if(!1===h)break;h.setAttribute("data-key",d.key),h.setAttribute("data-group",d.group),h.addEventListener("click",function(){if(!this.hasAttribute("data-key"))return!1;var a=this[n]("data-key"),b=this[n]("data-group")||"#";l.options.toggle.call(l.options,a,b)&&!1===l.con.stayOpen&&!l.con.multiple&&l.close.call(l,l.con.animate)}),f.appendChild(h)}}var q=g.querySelectorAll("*[data-key]").length;0==q&&(this.con.cbEmpty||function(a){var b=j("SPAN","dropdown-empty");b.innerText=this._e("empty"),a.appendChild(b)}).call(this,g,a),0<q&&m.multiple&&m.multiLimit==1/0&&m.multiSelectAll&&(i=j("BUTTON","tail-all"),k=j("BUTTON","tail-none"),i.innerText=this._e("all"),i.addEventListener("click",function(a){a.preventDefault();var b=l.dropdown.querySelectorAll(".dropdown-inner .dropdown-option");l.options.walk.call(l.options,"select",b)}),k.innerText=this._e("none"),k.addEventListener("click",function(a){a.preventDefault();var b=l.dropdown.querySelectorAll(".dropdown-inner .dropdown-option");l.options.walk.call(l.options,"unselect",b)}),h=j("SPAN","dropdown-action"),h.appendChild(i),h.appendChild(k),g.insertBefore(h,g.children[0]));var r=this.dropdown.querySelector(".dropdown-inner");return this.dropdown[(r?"replace":"append")+"Child"](g,r),b(this.select,"active")&&this.calc(),this.updateCSV().updateLabel()},cbGroup:function(a){var b,c,d=j("UL","dropdown-optgroup"),e=this;return"#"==a?d:(d.innerHTML="<li class=\"optgroup-title\"><b>"+a+"</b></li>",this.con.multiple&&this.con.multiLimit==1/0&&this.con.multiSelectAll&&(b=j("BUTTON","tail-none"),c=j("BUTTON","tail-all"),b.innerText=this._e("none"),b.addEventListener("click",function(a){a.preventDefault();var b=this.parentElement.parentElement.getAttribute("data-group");e.options.all.call(e.options,"unselect",b)}),c.innerText=this._e("all"),c.addEventListener("click",function(a){a.preventDefault();var b=this.parentElement.parentElement.getAttribute("data-group");e.options.all.call(e.options,"select",b)}),d.children[0].appendChild(b),d.children[0].appendChild(c)),d)},cbItem:function(a,b,c){var d=j("LI","dropdown-option"+(a.selected?" selected":"")+(a.disabled?" disabled":""));return c&&0<c.length&&this.con.searchMarked?(c=this.options.applyLinguisticRules(c),d.innerHTML=a.value.replace(new RegExp("("+c+")","i"),"<mark>$1</mark>")):d.innerText=a.value,this.con.descriptions&&a.description&&(d.innerHTML+="<span class=\"option-description\">"+a.description+"</span>"),d},update:function(a){return this.updateLabel().updateContainer(a).updatePin(a).updateCSV(a)},updateLabel:function(a){if(this.container==this.label&&0<this.options.selected.length)return this.label.querySelector(".label-inner")&&this.label.removeChild(this.label.querySelector(".label-inner")),this.label.querySelector(".label-count")&&this.label.removeChild(this.label.querySelector(".label-count")),this;var d,e=this.con,c=this.options.selected.length;return"string"!=typeof a&&(e.disabled?a="disabled":0==this.dropdown.querySelectorAll("*[data-key]").length?a="empty"+(b(this.select,"in-search")?"Search":""):e.multiLimit<=c?a="limit":!e.multiple&&0<this.options.selected.length?a=this.options.selected[0].innerText:"string"==typeof e.placeholder?a=e.placeholder:a="placeholder"+(e.multiple&&e.multiLimit<1/0?"Multi":"")),a=this._e(a,{":limit":e.multiLimit},a),a="<span class=\"label-inner\">"+a+"</span>",d=e.multiShowLimit&&e.multiLimit<1/0,e.multiple&&e.multiShowCount&&(a="<span class=\"label-count\">:c</span>"+a,a=a.replace(":c",c+(d?" / "+e.multiLimit:""))),this.label.innerHTML=a,this},updateContainer:function(a){if(!this.container||!this.con.multiContainer)return this;var b="[data-group='"+a.group+"'][data-key='"+a.key+"']";if(this.container.querySelector(b))return a.selected||this.container.removeChild(this.container.querySelector(b)),this;if(a.selected){var c=this,d=j("DIV","select-handle");d.innerText=a.value,d.setAttribute("data-key",a.key),d.setAttribute("data-group",a.group),d.addEventListener("click",function(a){a.preventDefault(),a.stopPropagation();var b=this.getAttribute("data-key"),d=this.getAttribute("data-group");c.options.unselect.call(c.options,b,d)}),this.container.appendChild(d)}return this},updatePin:function(a){var b=this.dropdown.querySelector(".dropdown-inner ul"),c="li[data-key='"+a.key+"'][data-group='"+a.group+"']";if(!this.con.multiPinSelected||!b||!1!==this._query)return this;if(c=this.dropdown.querySelector(c),a.selected)b.insertBefore(c,b.children[0]);else{for(var d=this.dropdown.querySelector("ul[data-group='"+a.group+"']"),e=this.options[a.index-1],f=!1;e&&e.group==a.group&&!(f=d.querySelector("li[data-key='"+e.key+"']"));)e=this.options[e.index-1];f&&f.nextElementSibling?d.insertBefore(c,f.nextElementSibling):d.appendChild(c)}return this},updateCSV:function(){if(!this.csvInput||!this.con.csvOutput)return this;for(var a=[],b=this.options.selected.length,c=0;c<b;c++)a.push(this.options.selected[c].value);return this.csvInput.value=a.join(this.con.csvSeparator||","),this},open:function(a){if(b(this.select,"active")||b(this.select,"idle")||this.con.disabled)return!1;this.calc();var d=function(){c(g.select,"active"),f(g.select,"idle"),this.dropdown.style.height="auto",this.dropdown.style.overflow="visible",this.label.removeAttribute("style"),this.con.search&&this.con.searchFocus&&this.dropdown.querySelector("input").focus(),this.trigger.call(this,"open")},g=this,i=this.dropdown.style;return!1===a?(i.cssText="height:"+i.maxHeight+";display:block;overflow:hidden;",d.call(this)):(this.label.style.zIndex=25,this.dropdown.style.cssText+="height:0;display:block;overflow:hidden;",c(g.select,"idle"),function a(){var b=parseInt(i.height,10),c=parseInt(i.maxHeight,10);return b>=c?d.call(g):void(i.height=(b+50>c?c:b+50)+"px",setTimeout(a,20))}()),this},close:function(a){if(!b(this.select,"active")||b(this.select,"idle"))return!1;var d=function(){f(this.select,"active"),f(this.select,"idle"),this.dropdown.removeAttribute("style"),this.dropdown.querySelector(".dropdown-inner").removeAttribute("style"),this.trigger.call(this,"close")},g=this,h=this.dropdown;return!1===a?d.call(this):(c(this.select,"idle"),this.dropdown.style.overflow="hidden",function a(){return 0>=parseInt(h.offsetHeight,10)-50?d.call(g):void(h.style.height=parseInt(h.offsetHeight,10)-50+"px",setTimeout(a,20))}()),this},toggle:function(a){return b(this.select,"active")?this.close(a):b(this.select,"idle")?this:this.open(a)},remove:function(){if(this.e.removeAttribute("data-tail-select"),this.e.hasAttribute("data-select-hidden")&&("0"==this.e.getAttribute("data-select-hidden")&&this.e.style.removeProperty("display"),this.e.removeAttribute("data-select-hidden")),Array.prototype.map.call(this.e.querySelectorAll("[data-select-option='add']"),function(a){a.parentElement.removeChild(a)}),Array.prototype.map.call(this.e.querySelectorAll("[data-select-optgroup='add']"),function(a){a.parentElement.removeChild(a)}),this.e.name=this.csvInput.hasAttribute("name")?this.csvInput.name:this.e.name,this.select.parentElement&&this.select.parentElement.removeChild(this.select),this.container)for(var a=this.container.querySelectorAll(".select-handle"),b=a.length,c=0;c<b;c++)this.container.removeChild(a[c]);return this},reload:function(){return this.remove().init()},config:function(a,b,c){if(a instanceof Object){for(var d in a)this.config(d,a[d],!1);return this.reload()?this.con:this.con}return"undefined"==typeof a?this.con:!!(a in this.con)&&("undefined"==typeof b?this.con[a]:(this.con[a]=b,!1!==c&&this.reload(),this))},enable:function(a){return f(this.select,"disabled"),this.e.disabled=!1,this.con.disabled=!1,!1===a?this:this.reload()},disable:function(a){return c(this.select,"disabled"),this.e.disabled=!0,this.con.disabled=!0,!1===a?this:this.reload()},on:function(a,b,c){return!(0>["open","close","change"].indexOf(a)||"function"!=typeof b)&&(a in this.events||(this.events[a]=[]),this.events[a].push({cb:b,args:c instanceof Array?c:[]}),this)},value:function(){return 0==this.options.selected.length?null:this.con.multiple?this.options.selected.map(function(a){return a.value}):this.options.selected[0].value}},k=d.options=function(a,b){return this instanceof k?(this.self=b,this.element=a,this.length=0,this.selected=[],this.disabled=[],this.items={"#":{}},this.groups={},this):new k(a,b)},k.prototype={_r:function(a){return a.replace("disabled","disable").replace("enabled","enable").replace("selected","select").replace("unselected","unselect")},get:function(a,b){if("object"==typeof a&&a.key&&a.group)b=a.group||b,a=a.key;else if(a instanceof Element)"OPTION"==a.tagName?(b=a.parentElement.label||"#",a=a.value||a.innerText):a.hasAttribute("data-key")&&(b=a.getAttribute("data-group")||a.parentElement.getAttribute("data-group")||"#",a=a.getAttribute("data-key"));else if("string"!=typeof a)return!1;return a=/^[0-9]+$/.test(a)?"_"+a:a,!!(b in this.items)&&this.items[b][a]},set:function(a,b){var c=a.value||a.innerText,d=a.parentElement.label||"#";if(d in this.items||(this.items[d]={},this.groups[d]=a.parentElement),c in this.items[d])return!1;var e=/^[0-9]+$/.test(c)?"_"+c:c,f=this.self.con;if(f.multiple&&this.selected.length>=f.multiLimit&&(a.selected=!1),a.selected&&f.deselect&&(!a.hasAttribute("selected")||0==f.multiLimit)&&(a.selected=!1,a.parentElement.selectedIndex=-1),a.hasAttribute("data-description")){var g=j("SPAN");g.innerHTML=a.getAttribute("data-description"),a.setAttribute("data-description",g.innerHTML)}return this.items[d][e]={key:c,value:a.text,description:a.getAttribute("data-description")||null,group:d,option:a,optgroup:"#"==d?void 0:this.groups[d],selected:a.selected,disabled:a.disabled,hidden:a.hidden||!1},this.length++,a.selected&&this.select(this.items[d][e]),a.disabled&&this.disable(this.items[d][e]),!b||this.self.callback(this.items[d][c],"rebuild")},add:function(a,b,c,d,e,f,g){if(a instanceof Object){for(var h in a)this.add(a[h].key||h,a[h].value,a[h].group,a[h].selected,a[h].disabled,a[h].description,!1);return this.self.query()}if(this.get(a,c))return!1;if(c="string"==typeof c?c:"#","#"!==c&&!(c in this.groups)){var i=j("OPTGROUP");i.label=c,i.setAttribute("data-select-optgroup","add"),this.element.appendChild(i),this.items[c]={},this.groups[c]=i}this.self.con.multiple&&this.selected.length>=this.self.con.multiLimit&&(d=!1),e=!!e;var k=m.createElement("OPTION");return k.value=a,k.selected=d,k.disabled=e,k.innerText=b,k.setAttribute("data-select-option","add"),f&&0<f.length&&k.setAttribute("data-description",f),("#"==c?this.element:this.groups[c]).appendChild(k),this.set(k,g)},move:function(a,b,c,d){if(!(a=this.get(a,b)))return!1;if("#"!==c&&!(c in this.groups)){var e=j("OPTGROUP");e.label=c,this.element.appendChild(e),this.items[c]={},this.groups[c]=e,this.groups[c].appendChild(a.option)}return delete this.items[a.group][a.key],a.group=c,a.optgroup=this.groups[c]||void 0,this.items[c][a.key]=a,!d||this.self.query()},remove:function(a,b,c){if(!(a=this.get(a,b)))return!1;a.selected&&this.unselect(a),a.disabled&&this.enable(a),a.option.parentElement.removeChild(a.option);var d=/^[0-9]+$/.test(a.key)?"_"+a.key:a.key;return delete this.items[a.group][d],this.length--,0===Object.keys(this.items[a.group]).length&&(delete this.items[a.group],delete this.groups[a.group]),!c||this.self.query()},is:function(a,b,c){var a=this._r(a),d=this.get(b,c);return!d||0>["select","unselect","disable","enable"].indexOf(a)?null:"disable"==a||"enable"==a?"disable"==a?d.disabled:!d.disabled:("select"==a||"unselect"==a)&&("select"==a?d.selected:!d.selected)},handle:function(a,c,d,e){var f=this.get(c,d),a=this._r(a);if(!f||0>["select","unselect","disable","enable"].indexOf(a))return null;if("disable"==a||"enable"==a)return f.option in this.disabled||"disable"!=a?f.option in this.disabled&&"enable"==a&&this.disabled.splice(this.disabled.indexOf(f.option),1):this.disabled.push(f.option),f.disabled="disable"==a,f.option.disabled="disable"==a,this.self.callback.call(this.self,f,a);var g=b(this.self.select,"disabled")||f.disabled||f.option.disabled,h=this.self.con.multiple&&this.self.con.multiLimit<=this.selected.length,j=!this.self.con.multiple&&0<this.selected.indexOf(f.option),k=0==this.self.con.multiLimit&&!0==this.self.con.deselect,l=!this.self.con.multiple&&!this.self.con.deselect&&!0!==e;if("select"==a){if(g||h||k||j)return!1;if(!this.self.con.multiple)for(var m in this.selected)this.unselect(this.selected[m],void 0,!0);0>this.selected.indexOf(f.option)&&this.selected.push(f.option)}else if("unselect"==a){if(g||l)return!1;this.selected.splice(this.selected.indexOf(f.option),1)}return f.selected="select"==a,f.option.selected="select"==a,f.option[(6<a.length?"remove":"set")+"Attribute"]("selected","selected"),this.self.callback.call(this.self,f,a,e)},enable:function(a,b){return this.handle("enable",a,b,!1)},disable:function(a,b){return this.handle("disable",a,b,!1)},select:function(a,b){return this.handle("select",a,b,!1)},unselect:function(a,b,c){return this.handle("unselect",a,b,c)},toggle:function(a,b){return!!(a=this.get(a,b))&&this.handle(a.selected?"unselect":"select",a,b,!1)},invert:function(a){if(a=this._r(a),0<=["enable","disable"].indexOf(a))var b=this.disabled,c="enable"==a?"disable":"enable";else if(0<=["select","unselect"].indexOf(a))var b=this.selected,c="select"==a?"unselect":"select";var d=Array.prototype.filter.call(this,function(a){return!(a in b)}),e=this;return[].concat(b).forEach(function(a){e.handle.call(e,c,a)}),[].concat(d).forEach(function(b){e.handle.call(e,a,b)}),!0},all:function(a,b){var c=this,d=this;return b in this.items?d=Object.keys(this.items[b]):0<=["unselect","enable"].indexOf(a)&&(d=[].concat("unselect"==a?this.selected:this.disabled)),Array.prototype.forEach.call(d,function(d){c.handle.call(c,a,d,b,!1)}),!0},walk:function(a,b,c){if(b instanceof Array||b.length)for(var d=b.length,e=0;e<d;e++)this.handle.apply(this,[a,b[e],null].concat(c));else if(b instanceof Object){var f=this;if(b.forEach)b.forEach(function(b){f.handle.apply(f,[a,b,null].concat(c))});else for(var g in b)("string"==typeof b[g]||"number"==typeof b[g]||b[g]instanceof Element)&&this.handle.apply(this,[a,b[g],g in this.items?g:null]).concat(c)}return this},applyLinguisticRules:function(a,b){var c=this.self.con.linguisticRules,d=[];return Object.keys(c).forEach(function(a){d.push("("+a+"|["+c[a]+"])")}),b&&(d=d.concat(d.map(function(a){return a.toUpperCase()}))),a.replace(new RegExp(d.join("|"),b?"g":"ig"),function(a){return d[[].indexOf.call(arguments,a,1)-1]})},find:function(a,b){var c,d=this,e={};if(b||(b=this.self.con.searchConfig),"function"==typeof b)c=b.bind(this,a);else{b=b instanceof Array?b:[b],b.forEach(function(a){"string"==typeof a&&(e[a]=!0)}),e.any=e.any?e.any:e.attributes&&e.value,(!e.regex||e.text)&&(a=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),e.exactglyphes||(a=this.self.options.applyLinguisticRules(a,e.case)),e.word&&(a="\\b"+a+"\\b");var f=new RegExp(a,e.case?"m":"mi"),g=function(a){return f.test(a.text||a.value)};if(c=e.any?function(a){return g(a)||[].some.call(a.attributes,g)}:e.attributes?function(a){return[].some.call(a.attributes,g)}:g,!this.self.con.searchDisabled){var h=c;c=function(a){return!a.disabled&&h(a)}}}return[].filter.call(this.self.e.options,c).map(function(a){return!a.hidden&&d.get(a)})},finder:function(a,b){void 0===this._finderLoop&&(this._finderLoop=this.find(a,b));for(var c;void 0!==(c=this._finderLoop.shift());)return c;return delete this._finderLoop,!1},walker:function(a,b){if("undefined"!=typeof this._inLoop&&this._inLoop){if(0<this._inItems.length){do var c=this.items[this._inGroup][this._inItems.shift()];while(!0===c.hidden);return c}if(0<this._inGroups.length){for(;0<this._inGroups.length;){var d=this._inGroups.shift();if(!(d in this.items))return!1;var e=Object.keys(this.items[d]);if(0<e.length)break}return"ASC"==a?e.sort():"DESC"==a?e.sort().reverse():"function"==typeof a&&(e=a.call(this,e)),this._inItems=e,this._inGroup=d,this.walker(null,null)}return delete this._inLoop,delete this._inItems,delete this._inGroup,delete this._inGroups,!1}var f=Object.keys(this.groups)||[];return"ASC"==b?f.sort():"DESC"==b?f.sort().reverse():"function"==typeof b&&(f=b.call(this,f)),f.unshift("#"),this._inLoop=!0,this._inItems=[],this._inGroups=f,this.walker(a,null)}},d});

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

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

/* pytesNET/tail.select v.0.5.13 | Language Package | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
/* pytesNET/tail.select v.0.5.15 | Language Package | @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */
!function(i){"function"==typeof define&&define.amd?define(function(){return function(e){i(e)}}):void 0!==window.tail&&window.tail.select&&i(window.tail.select)}(function(e){return e.strings.register("de",{all:"Alle",none:"Keine",empty:"Keine Optionen verfügbar",emptySearch:"Keine Optionen gefunden",limit:"Keine weiteren Optionen wählbar",placeholder:"Wähle eine Option...",placeholderMulti:"Wähle bis zu :limit Optionen...",search:"Tippen zum suchen",disabled:"Dieses Feld ist deaktiviert"}),e.strings.register("es",{all:"Todos",none:"Ninguno",empty:"No hay opciones disponibles",emptySearch:"No se encontraron opciones",limit:"No puedes seleccionar mas opciones",placeholder:"Selecciona una opción...",placeholderMulti:"Selecciona hasta :límite de opciones...",search:"Escribe dentro para buscar...",disabled:"Este campo esta deshabilitado"}),e.strings.register("fi",{all:"Kaikki",none:"Ei mitään",empty:"Ei vaihtoehtoja",emptySearch:"Etsimääsi vaihtoehtoa ei löytynyt",limit:"Muita vaihtoehtoja ei voi valita",placeholder:"Valitse...",placeholderMulti:"Valitse maksimissaan :limit...",search:"Hae tästä...",disabled:"Kenttä on poissa käytöstä"}),e.strings.register("fr",{all:"Tous",none:"Aucun",empty:"Aucune option disponible",emptySearch:"Aucune option trouvée",limit:"Aucune autre option sélectionnable",placeholder:"Choisissez une option...",placeholderMulti:"Choisissez jusqu'à :limit option(s)...",search:"Rechercher...",disabled:"Ce champs est désactivé"}),e.strings.register("it",{all:"Tutti",none:"Nessuno",empty:"Nessuna voce disponibile",emptySearch:"Nessuna voce trovata",limit:"Non puoi selezionare più Voci",placeholder:"Seleziona una Voce",placeholderMulti:"Selezione limitata a :limit Voci...",search:"Digita per cercare...",disabled:"Questo Campo è disabilitato"}),e.strings.register("no",{all:"Alle",none:"Ingen",empty:"Ingen valg tilgjengelig",emptySearch:"Ingen valg funnet",limit:"Du kan ikke velge flere",placeholder:"Velg...",placeholderMulti:"Velg opptil :limit...",search:"Søk...",disabled:"Dette feltet er deaktivert"}),e.strings.register("pt_BR",{all:"Todas",none:"Nenhuma",empty:"Nenhuma opção disponível",emptySearch:"Nenhuma opção encontrada",limit:"Não é possível selecionar outra opção",placeholder:"Escolha uma opção ...",placeholderMulti:"Escolha até: :limit opção(ões) ...",search:"Buscar ...",disabled:"Campo desativado"}),e.strings.register("ru",{all:"Все",none:"Ничего",empty:"Нет доступных вариантов",emptySearch:"Ничего не найдено",limit:"Вы не можете выбрать больше вариантов",placeholder:"Выберите вариант...",placeholderMulti:function(e){var i=e[":limit"];return"Выбор до :limit "+["варианта","вариантов","вариантов"][4<i%100&&i%100<20?2:[2,0,1,1,1,2][i%10<5?i%10:5]]+" ..."},search:"Начните набирать для поиска ...",disabled:"Поле отключено"}),e.strings.register("tr",{all:"Tümü",none:"Hiçbiri",empty:"Seçenek yok",emptySearch:"Seçenek bulunamadı",limit:"Daha fazla Seçenek seçemezsiniz",placeholder:"Bir Seçenek seçin...",placeholderMulti:"En fazla :limit Seçenek seçin...",search:"Aramak için yazın...",disabled:"Bu Alan kullanılamaz"}),e});

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -5,3 +5,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -8,0 +8,0 @@ | @website https://github.com/pytesNET/tail.select

@@ -18,3 +18,3 @@ /*

| @author SamBrishes <sam@pytes.net>
| @version 0.5.14 - Beta
| @version 0.5.15 - Beta
|

@@ -30,3 +30,3 @@ | @website https://github.com/pytesNET/tail.select

const headerMIN = `@charset "UTF-8"; /* pytesNET/tail.select v.0.5.14 */
const headerMIN = `@charset "UTF-8"; /* pytesNET/tail.select v.0.5.15 */
/* @author SamBrishes, pytesNET <sam@pytes.net> | @license MIT */

@@ -121,2 +121,3 @@ {css}

files.forEach((filename) => {
console.log('Render:', filename);
if(filename.indexOf("tail.select-") !== 0){

@@ -123,0 +124,0 @@ return false;

{
"name": "tail.select",
"version": "0.5.14",
"version": "0.5.15",
"description": "Create beautiful, functional and extensive (Multi) select fields, written in Vanilla without any dependencies!",

@@ -5,0 +5,0 @@ "keywords": [

@@ -12,3 +12,3 @@ tail.select - Beautify Select Fields

<p align="center" style="text-align:center"><a href="https://github.pytes.net/tail.select">
<img src="https://repository-images.githubusercontent.com/150568173/1ad2ae00-a16e-11e9-9d27-4b29de95ebe6" style="width:auto;max-width:640px;" />
<img src="https://repository-images.githubusercontent.com/150568173/e3ebbd80-a27d-11e9-9da1-c6caa6484bcc" style="width:auto;max-width:640px;" />
</a></p>

@@ -185,3 +185,3 @@

search: false, // [0.3.0] Boolean
searcgConfig: [ // [0.5.13] Array
searchConfig: [ // [0.5.13] Array
"text", "value"

@@ -188,0 +188,0 @@ ],

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 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 not supported yet

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 not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc