vendor: 5,337 bytes, lines 1-6
1/*! 2* Bootstrap-select v1.13.2 (https://developer.snapappointments.com/bootstrap-select) 3* Copyright 2012-2018 SnapAppointments, LLC 4* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) 5 */ 6!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(e){"use strict";var t,i,s,n=document.createElement("_");if(n.classList.toggle("c3",!1),n.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}function l(e){var t,i=[],s=e&&e.options;if(e.multiple)for(var n=0,o=s.length;n<o;n++)(t=s[n]).selected&&i.push(t.value||t.text);else i=e.value;return i}String.prototype.startsWith||(t=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(e){}return i}(),i={}.toString,s=function(e){if(null==this)throw new TypeError;var t=String(this);if(e&&"[object RegExp]"==i.call(e))throw new TypeError;var s=t.length,n=String(e),o=n.length,l=1<arguments.length?arguments[1]:void 0,r=l?Number(l):0;r!=r&&(r=0);var c=Math.min(Math.max(r,0),s);if(s<o+c)return!1;for(var a=-1;++a<o;)if(t.charCodeAt(c+a)!=n.charCodeAt(a))return!1;return!0},t?t(String.prototype,"startsWith",{value:s,configurable:!0,writable:!0}):String.prototype.startsWith=s),Object.keys||(Object.keys=function(e,t,i){for(t in i=[],e)i.hasOwnProperty.call(e,t)&&i.push(t);return i});var r={useDefault:!1,_set:e.valHooks.select.set};e.valHooks.select.set=function(t,i){return i&&!r.useDefault&&e(t).data("selected",!0),r._set.apply(this,arguments)};var c=null,a=function(){try{return new Event("change"),!0}catch(e){return!1}}();function d(e,t,i,s){for(var n=["content","subtext","tokens"],o=!1,l=0;l<n.length;l++){var r=n[l],c=e[r];if(c&&(c=c.toString(),"content"===r&&(c=c.replace(/<[^>]+>/g,"")),s&&(c=p(c)),c=c.toUpperCase(),o="contains"===i?0<=c.indexOf(t):c.startsWith(t)))break}return o}function h(e){return parseInt(e,10)||0}function p(t){return e.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t?t.replace(this.re,this.ch):""}),t}e.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent?(a?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=e,i.fireEvent("on"+e,t)):this.trigger(e)};var u=function(e){var t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(e){return e=null==e?"":""+e,s.test(e)?e.replace(n,t):e}},m=u({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),f=u({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"}),v={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},g={success:!1,major:"3"};try{g.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),g.major=g.full[0],g.success=!0}catch(t){console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",t)}var b={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title"},w={MENU:"."+b.MENU};"4"===g.major&&(b.DIVIDER="dropdown-divider",b.SHOW="show",b.BUTTONCLASS="btn-light",b.POPOVERHEADER="popover-header");var x=new RegExp("38|40"),I=new RegExp("^9$|27"),k=(new RegExp("13|32"),function(t,i){var s=this;r.useDefault||(e.valHooks.select.set=r._set,r.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{map:{newIndex:{},originalIndex:{}}},current:{map:{}},search:{map:{}},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){s.selectpicker.keydown.keyHistory=""},800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var n=this.options.windowPadding;"number"==typeof n&&(this.options.windowPadding=[n,n,n,n]),this.val=k.prototype.val,this.render=k.prototype.render,this.refresh=k.prototype.refresh,this.setStyle=k.prototype.setStyle,this.selectAll=k.prototype.selectAll,this.deselectAll=k.prototype.deselectAll,this.destroy=k.prototype.destroy,this.remove=k.prototype.remove,this.show=k.prototype.show,this.hide=k.prototype.hide,this.init()});function $(t){var i,s=arguments,n=t;
6if([].shift.apply(s),!g.success){try{g.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){g.full=k.BootstrapVersion.split(" ")[0].split(".")}g.major=g.full[0],g.success=!0,"4"===g.major&&(b.DIVIDER="dropdown-divider",b.SHOW="show",b.BUTTONCLASS="btn-light",k.DEFAULTS.style=b.BUTTONCLASS="btn-light",b.POPOVERHEADER="popover-header")}var o=this.each(function(){var t=e(this);if(t.is("select")){var o=t.data("selectpicker"),l="object"==typeof n&&n;if(o){if(l)for(var r in l)l.hasOwnProperty(r)&&(o.options[r]=l[r])}else{var c=e.extend({},k.DEFAULTS,e.fn.selectpicker.defaults||{},t.data(),l);c.template=e.extend({},k.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},t.data().template,l.template),t.data("selectpicker",o=new k(this,c))}"string"==typeof n&&(i=o[n]instanceof Function?o[n].apply(o,s):o.options[n])}});return void 0!==i?i:o}k.VERSION="1.13.2",k.BootstrapVersion=g.major,k.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e,t){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:b.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1},"4"===g.major&&(k.DEFAULTS.style="btn-light",k.DEFAULTS.iconBase="",k.DEFAULTS.tickIcon="bs-ok-default"),k.prototype={constructor:k,init:function(){var e=this,t=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createDropdown(),this.createLi(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(w.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass(b.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",function(){if(e.isVirtual()){var t=e.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,t.firstChild),t.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!1),e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!0),e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){e.$button.addClass("bs-invalid"),e.$element.on({"shown.bs.select":function(){e.$element.val(e.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&e.$button.removeClass("bs-invalid"),e.$element.off("rendered.bs.select")}}),e.$button.on("blur.bs.select",function(){e.$element.focus().blur(),e.$button.off("blur.bs.select")})}),setTimeout(function(){e.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.autofocus?" autofocus":"",s=this.options.header?'<div class="'+b.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"",n=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+m(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+b.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+b.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>":"",l=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+b.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>":"",r='<div class="dropdown bootstrap-select'+t+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+i+' role="button"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===g.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+b.MENU+" "+("4"===g.major?"":b.SHOW)+'" role="combobox">'+s+n+o+'<div class="inner '+b.SHOW+'" role="listbox" aria-expanded="false" tabindex="-1"><ul class="'+b.MENU+" inner "+("4"===g.major?b.SHOW:"")+'"></ul></div>'+l+"</div></div>";return e(r)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var e=0;e<this.selectpicker.current.data.length;e++){var t=this.selectpicker.current.data[e],i=!0;"divider"===t.type?(i=!1,t.height=this.sizeInfo.dividerHeight):"optgroup-label"===t.type?(i=!1,t.height=this.sizeInfo.dropdownHeaderHeight):t.height=this.sizeInfo.liHeight,t.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,i){i=i||0;var s=this;this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main;var n,o,l=[];function r(e,i){var r,c,a,d,h,p,u,m,f,v=s.selectpicker.current.elements.length,g=[],b=void 0,w=!0,x=s.isVirtual();s.selectpicker.view.scrollTop=e,!0===x&&s.sizeInfo.hasScrollBar&&s.$menu[0].offsetWidth>s.sizeInfo.totalMenuWidth&&(s.sizeInfo.menuWidth=s.$menu[0].offsetWidth,s.sizeInfo.totalMenuWidth=s.sizeInfo.menuWidth+s.sizeInfo.scrollBarWidth,s.$menu.css("min-width",s.sizeInfo.menuWidth)),r=Math.ceil(s.sizeInfo.menuInnerHeight/s.sizeInfo.liHeight*1.5),c=Math.round(v/r)||1;for(var I=0;I<c;I++){var k=(I+1)*r;if(I===c-1&&(k=v),g[I]=[I*r+(I?1:0),k],!v)break;void 0===b&&e<=s.selectpicker.current.data[k-1].position-s.sizeInfo.menuInnerHeight&&(b=I)}if(void 0===b&&(b=0),h=[s.selectpicker.view.position0,s.selectpicker.view.position1],a=Math.max(0,b-1),d=Math.min(c-1,b+1),s.selectpicker.view.position0=Math.max(0,g[a][0])||0,s.selectpicker.view.position1=Math.min(v,g[d][1])||0,p=h[0]!==s.selectpicker.view.position0||h[1]!==s.selectpicker.view.position1,void 0!==s.activeIndex&&(o=s.selectpicker.current.elements[s.selectpicker.current.map.newIndex[s.prevActiveIndex]],l=s.selectpicker.current.elements[s.selectpicker.current.map.newIndex[s.activeIndex]],n=s.selectpicker.current.elements[s.selectpicker.current.map.newIndex[s.selectedIndex]],i&&(s.activeIndex!==s.selectedIndex&&(l.classList.remove("active"),l.firstChild&&l.firstChild.classList.remove("active")),s.activeIndex=void 0),s.activeIndex&&s.activeIndex!==s.selectedIndex&&n&&n.length&&(n.classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active"))),void 0!==s.prevActiveIndex&&s.prevActiveIndex!==s.activeIndex&&s.prevActiveIndex!==s.selectedIndex&&o&&o.length&&(o.classList.remove("active"),o.firstChild&&o.firstChild.classList.remove("active")),(i||p)&&(u=s.selectpicker.view.visibleElements?s.selectpicker.view.visibleElements.slice():[],s.selectpicker.view.visibleElements=s.selectpicker.current.elements.slice(s.selectpicker.view.position0,s.selectpicker.view.position1),s.setOptionStatus(),(t||!1===x&&i)&&(m=u,f=s.selectpicker.view.visibleElements,w=!(m.length===f.length&&m.every(function(e,t){return e===f[t]}))),(i||!0===x)&&w)){var $,E,S=s.$menuInner[0],y=document.createDocumentFragment(),C=S.firstChild.cloneNode(!1),O=!0===x?s.selectpicker.view.visibleElements:s.selectpicker.current.elements;S.replaceChild(C,S.firstChild),I=0;for(var z=O.length;I<z;I++)y.appendChild(O[I]);!0===x&&($=0===s.selectpicker.view.position0?0:s.selectpicker.current.data[s.selectpicker.view.position0-1].position,E=s.selectpicker.view.position1>v-1?0:s.selectpicker.current.data[v-1].position-s.selectpicker.current.data[s.selectpicker.view.position1-1].position,S.firstChild.style.marginTop=$+"px",S.firstChild.style.marginBottom=E+"px"),S.firstChild.appendChild(y)}if(s.prevActiveIndex=s.activeIndex,s.options.liveSearch){if(t&&i){var T,D=0;s.selectpicker.view.canHighlight[D]||(D=1+s.selectpicker.view.canHighlight.slice(1).indexOf(!0)),T=s.selectpicker.view.visibleElements[D],s.selectpicker.view.currentActive&&(s.selectpicker.view.currentActive.classList.remove("active"),s.selectpicker.view.currentActive.firstChild&&s.selectpicker.view.currentActive.firstChild.classList.remove("active")),T&&(T.classList.add("active"),T.firstChild&&T.firstChild.classList.add("active")),s.activeIndex=s.selectpicker.current.map.originalIndex[D]}}else s.$menuInner.focus()}this.setPositionData(),r(i,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){s.noScroll||r(this.scrollTop,t),s.noScroll=!1}),e(window).off("resize.createView").on("resize.createView",function(){r(s.$menuInner[0].scrollTop)})},createLi:function(){var t,i=this,s=[],n=0,o=0,l=[],r=0,c=0,a=-1;this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));var d={span:document.createElement("span"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("Â ")},h=d.span.cloneNode(!1),p=document.createDocumentFragment();h.className=i.options.iconBase+" "+i.options.tickIcon+" check-mark",d.a.appendChild(h),d.a.setAttribute("role","option"),d.subtext.className="text-muted",d.text=d.span.cloneNode(!1),d.text.className="text";var u=function(e,t,i,s){var n=d.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?n.appendChild(e):n.innerHTML=e),void 0!==i&&""!==i&&(n.className=i),null!=s&&n.classList.add("optgroup-"+s),n},f=function(e,t,i){var s=d.a.cloneNode(!0);return e&&(11===e.nodeType?s.appendChild(e):s.insertAdjacentHTML("beforeend",e)),void 0!==t&""!==t&&(s.className=t),"4"===g.major&&s.classList.add("dropdown-item"),i&&s.setAttribute("style",i),s},v=function(e){var t,s,n=d.text.cloneNode(!1);if(e.optionContent)n.innerHTML=e.optionContent;else{if(n.textContent=e.text,e.optionIcon){var o=d.whitespace.cloneNode(!1);(s=d.span.cloneNode(!1)).className=i.options.iconBase+" "+e.optionIcon,p.appendChild(s),p.appendChild(o)}e.optionSubtext&&((t=d.subtext.cloneNode(!1)).innerHTML=e.optionSubtext,n.appendChild(t))}return p.appendChild(n),p};if(this.options.title&&!this.multiple){a--;var w=this.$element[0],x=!1,I=!this.selectpicker.view.titleOption.parentNode;I&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",x=void 0===e(w.options[w.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected")),(I||0!==this.selectpicker.view.titleOption.index)&&w.insertBefore(this.selectpicker.view.titleOption,w.firstChild),x&&(w.selectedIndex=0)}var k=this.$element.find("option");k.each(function(h){var g=e(this);if(a++,!g.hasClass("bs-title-option")){var w,x,I=g.data(),$=this.className||"",E=m(this.style.cssText),S=I.content,y=this.textContent,C=I.tokens,O=I.subtext,z=I.icon,T=g.parent(),D=T[0],H="OPTGROUP"===D.tagName,L=H&&D.disabled,N=this.disabled||L,A=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName,P=T.data();if(!0===I.hidden||i.options.hideDisabled&&(N&&!H||L))w=I.prevHiddenIndex,g.next().data("prevHiddenIndex",void 0!==w?w:h),a--,A||void 0!==w&&(F=k[w].previousElementSibling)&&"OPTGROUP"===F.tagName&&!F.disabled&&(A=!0),A&&"divider"!==l[l.length-1].type&&(a++,s.push(u(!1,0,b.DIVIDER,r+"div")),l.push({type:"divider",optID:r}));else{if(H&&!0!==I.divider){if(i.options.hideDisabled&&N){if(void 0===P.allOptionsDisabled){var R=T.children();T.data("allOptionsDisabled",R.filter(":disabled").length===R.length)}if(T.data("allOptionsDisabled"))return void a--}var W=" "+D.className||"";if(!this.previousElementSibling){r+=1;
6var B=D.label,M=m(B),U=P.subtext,V=P.icon;0!==h&&0<s.length&&(a++,s.push(u(!1,0,b.DIVIDER,r+"div")),l.push({type:"divider",optID:r})),a++;var j=function(e){var t,s,n=d.text.cloneNode(!1);if(n.innerHTML=e.labelEscaped,e.labelIcon){var o=d.whitespace.cloneNode(!1);(s=d.span.cloneNode(!1)).className=i.options.iconBase+" "+e.labelIcon,p.appendChild(s),p.appendChild(o)}return e.labelSubtext&&((t=d.subtext.cloneNode(!1)).textContent=e.labelSubtext,n.appendChild(t)),p.appendChild(n),p}({labelEscaped:M,labelSubtext:U,labelIcon:V});s.push(u(j,0,"dropdown-header"+W,r)),l.push({content:M,subtext:U,type:"optgroup-label",optID:r}),c=a-1}if(i.options.hideDisabled&&N||!0===I.hidden)return void a--;x=v({text:y,optionContent:S,optionSubtext:O,optionIcon:z}),s.push(u(f(x,"opt "+$+W,E),0,"",r)),l.push({content:S||y,subtext:O,tokens:C,type:"option",optID:r,headerIndex:c,lastIndex:c+D.childElementCount,originalIndex:h,data:I}),n++}else if(!0===I.divider)s.push(u(!1,0,b.DIVIDER)),l.push({type:"divider",originalIndex:h,data:I});else{var F;!A&&i.options.hideDisabled&&void 0!==(w=I.prevHiddenIndex)&&(F=k[w].previousElementSibling)&&"OPTGROUP"===F.tagName&&!F.disabled&&(A=!0),A&&"divider"!==l[l.length-1].type&&(a++,s.push(u(!1,0,b.DIVIDER,r+"div")),l.push({type:"divider",optID:r})),x=v({text:y,optionContent:S,optionSubtext:O,optionIcon:z}),s.push(u(f(x,$,E))),l.push({content:S||y,subtext:O,tokens:C,type:"option",originalIndex:h,data:I}),n++}i.selectpicker.main.map.newIndex[h]=a,i.selectpicker.main.map.originalIndex[a]=h;var G=l[l.length-1];G.disabled=N;var _=0;G.content&&(_+=G.content.length),G.subtext&&(_+=G.subtext.length),z&&(_+=1),o<_&&(o=_,t=s[s.length-1])}}}),this.selectpicker.main.elements=s,this.selectpicker.main.data=l,this.selectpicker.current=this.selectpicker.main,this.selectpicker.view.widestOption=t,this.selectpicker.view.availableOptionsCount=n},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var e=this,t=this.$element.find("option"),i=[],s=[];this.togglePlaceholder(),this.tabIndex();for(var n=0,o=this.selectpicker.main.elements.length;n<o;n++){var l=t[this.selectpicker.main.map.originalIndex[n]];if(l&&l.selected&&(i.push(l),s.length<100&&"count"!==e.options.selectedTextFormat||1===i.length)){if(e.options.hideDisabled&&(l.disabled||"OPTGROUP"===l.parentNode.tagName&&l.parentNode.disabled))return;var r,c,a=this.selectpicker.main.data[n].data,d=a.icon&&e.options.showIcon?'<i class="'+e.options.iconBase+" "+a.icon+'"></i> ':"";r=e.options.showSubtext&&a.subtext&&!e.multiple?' <small class="text-muted">'+a.subtext+"</small>":"",c=l.title?l.title:a.content&&e.options.showContent?a.content.toString():d+l.innerHTML.trim()+r,s.push(c)}}var h=this.multiple?s.join(this.options.multipleSeparator):s[0];if(50<i.length&&(h+="..."),this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")){var p=this.options.selectedTextFormat.split(">");if(1<p.length&&i.length>p[1]||1===p.length&&2<=i.length){var u=this.selectpicker.view.availableOptionsCount;h=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(i.length,u):this.options.countSelectedText).replace("{0}",i.length.toString()).replace("{1}",u.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(h=this.options.title),h||(h=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button[0].title=f(h.replace(/<[^>]*>?/g,"").trim()),this.$button.find(".filter-option-inner-inner")[0].innerHTML=h,this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=e||this.options.style;"add"==t?this.$button.addClass(i):"remove"==t?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){if(t||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var i=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div"),o=document.createElement("ul"),l=document.createElement("li"),r=document.createElement("li"),c=document.createElement("li"),a=document.createElement("a"),d=document.createElement("span"),p=this.options.header&&0<this.$menu.find("."+b.POPOVERHEADER).length?this.$menu.find("."+b.POPOVERHEADER)[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,m=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,d.className="text",a.className="dropdown-item "+this.$element.find("option")[0].className,i.className=this.$menu[0].parentNode.className+" "+b.SHOW,i.style.width=this.sizeInfo.selectWidth+"px","auto"===this.options.width&&(s.style.minWidth=0),s.className=b.MENU+" "+b.SHOW,n.className="inner "+b.SHOW,o.className=b.MENU+" inner "+("4"===g.major?b.SHOW:""),l.className=b.DIVIDER,r.className="dropdown-header",d.appendChild(document.createTextNode("Inner text")),a.appendChild(d),c.appendChild(a),r.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&o.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),o.appendChild(c),o.appendChild(l),o.appendChild(r),p&&s.appendChild(p),u){var v=document.createElement("input");u.className="bs-searchbox",v.className="form-control",u.appendChild(v),s.appendChild(u)}m&&s.appendChild(m),n.appendChild(o),s.appendChild(n),f&&s.appendChild(f),i.appendChild(s),document.body.appendChild(i);var w,x=a.offsetHeight,I=r?r.offsetHeight:0,k=p?p.offsetHeight:0,$=u?u.offsetHeight:0,E=m?m.offsetHeight:0,S=f?f.offsetHeight:0,y=e(l).outerHeight(!0),C=!!window.getComputedStyle&&window.getComputedStyle(s),O=s.offsetWidth,z=C?null:e(s),T={vert:h(C?C.paddingTop:z.css("paddingTop"))+h(C?C.paddingBottom:z.css("paddingBottom"))+
vendor: 4,125 bytes, line 6
6h(C?C.borderTopWidth:z.css("borderTopWidth"))+h(C?C.borderBottomWidth:z.css("borderBottomWidth")),horiz:h(C?C.paddingLeft:z.css("paddingLeft"))+h(C?C.paddingRight:z.css("paddingRight"))+h(C?C.borderLeftWidth:z.css("borderLeftWidth"))+h(C?C.borderRightWidth:z.css("borderRightWidth"))},D={vert:T.vert+h(C?C.marginTop:z.css("marginTop"))+h(C?C.marginBottom:z.css("marginBottom"))+2,horiz:T.horiz+h(C?C.marginLeft:z.css("marginLeft"))+h(C?C.marginRight:z.css("marginRight"))+2};n.style.overflowY="scroll",w=s.offsetWidth-O,document.body.removeChild(i),this.sizeInfo.liHeight=x,this.sizeInfo.dropdownHeaderHeight=I,this.sizeInfo.headerHeight=k,this.sizeInfo.searchHeight=$,this.sizeInfo.actionsHeight=E,this.sizeInfo.doneButtonHeight=S,this.sizeInfo.dividerHeight=y,this.sizeInfo.menuPadding=T,this.sizeInfo.menuExtras=D,this.sizeInfo.menuWidth=O,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=w,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,i=e(window),s=this.$newElement.offset(),n=e(this.options.container);this.options.container&&!n.is("body")?((t=n.offset()).top+=parseInt(n.css("borderTopWidth")),t.left+=parseInt(n.css("borderLeftWidth"))):t={top:0,left:0};var o=this.options.windowPadding;this.sizeInfo.selectOffsetTop=s.top-t.top-i.scrollTop(),this.sizeInfo.selectOffsetBot=i.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-o[2],this.sizeInfo.selectOffsetLeft=s.left-t.left-i.scrollLeft(),this.sizeInfo.selectOffsetRight=i.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-o[1],this.sizeInfo.selectOffsetTop-=o[0],this.sizeInfo.selectOffsetLeft-=o[3]},setMenuSize:function(e){this.getSelectPosition();var t,i,s,n,o,l,r,c=this.sizeInfo.selectWidth,a=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,u=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,f=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(r=a*this.selectpicker.current.elements.length+f.vert,this.$newElement.toggleClass(b.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)n=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,s=n+d+h+p+u,l=Math.max(n-f.vert,0),this.$newElement.hasClass(b.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),t=(o=i)-d-h-p-u-f.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var g=0;g<this.options.size;g++)"divider"===this.selectpicker.current.data[g].type&&v++;t=(i=a*this.options.size+v*m+f.vert)-f.vert,o=i+d+h+p+u,s=l=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(b.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.$menu[0].offsetWidth-c),this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":s+"px"}),this.$menuInner.css({"max-height":t+"px","overflow-y":"auto","min-height":l+"px"}),this.sizeInfo.menuInnerHeight=t,this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i,s=this,n=e(window),o=0;this.setMenuSize(),"auto"===this.options.size?(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return s.setMenuSize()}),n.off("resize.setMenuSize scroll.setMenuSize").on("resize.setMenuSize scroll.
6setMenuSize",function(){return s.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize"),n.off("resize.setMenuSize scroll.setMenuSize")),t?o=this.$menuInner[0].scrollTop:s.multiple||"number"==typeof(i=s.selectpicker.main.map.newIndex[s.$element[0].selectedIndex])&&!1!==s.options.size&&(o=(o=s.sizeInfo.liHeight*i)-s.sizeInfo.menuInnerHeight/2+s.sizeInfo.liHeight/2),s.createView(!1,o)}},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame(function(){e.$menu.css("min-width","0"),e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,i),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=e('<div class="bs-container" />');var t,i,s,n=this,o=e(this.options.container),l=function(l){var r={},c=n.options.display||e.fn.dropdown.Constructor.Default.display;n.$bsContainer.addClass(l.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(b.DROPUP,l.hasClass(b.DROPUP)),t=l.offset(),o.is("body")?i={top:0,left:0}:((i=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),i.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),s=l.hasClass(b.DROPUP)?0:l[0].offsetHeight,(g.major<4||"static"===c)&&(r.top=t.top-i.top+s,r.left=t.left-i.left),r.width=l[0].offsetWidth,n.$bsContainer.css(r)};this.$button.on("click.bs.dropdown.data-api",function(){n.isDisabled()||(l(n.$newElement),n.$bsContainer.appendTo(n.options.container).toggleClass(b.SHOW,!n.$button.hasClass(b.SHOW)).append(n.$menu))}),e(window).on("resize scroll",function(){l(n.$newElement)}),this.$element.on("hide.bs.select",function(){n.$menu.data("height",n.$menu.height()),n.$bsContainer.detach()})},setOptionStatus:function(){var e=this,t=this.$element.find("option");if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var i=0;i<e.selectpicker.view.visibleElements.length;i++){var s=e.selectpicker.current.map.originalIndex[i+e.selectpicker.view.position0],n=t[s];if(n){var o=this.selectpicker.main.map.newIndex[s],l=this.selectpicker.main.elements[o];e.setDisabled(s,n.disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled,o,l),e.setSelected(s,n.selected,o,l)}}},setSelected:function(e,t,i,s){var n,o,l,r=void 0!==this.activeIndex,c=this.activeIndex===e||t&&!this.multiple&&!r;i||(i=this.selectpicker.main.map.newIndex[e]),s||(s=this.selectpicker.main.elements[i]),l=s.firstChild,t&&(this.selectedIndex=e),s.classList.toggle("selected",t),s.classList.toggle("active",c),c&&(this.selectpicker.view.currentActive=s,this.activeIndex=e),l&&(l.classList.toggle("selected",t),l.classList.toggle("active",c),l.setAttribute("aria-selected",t)),c||!r&&t&&void 0!==this.prevActiveIndex&&(n=this.selectpicker.main.map.newIndex[this.prevActiveIndex],(o=this.selectpicker.main.elements[n]).classList.toggle("selected",t),o.classList.remove("active"),o.firstChild&&(o.firstChild.classList.toggle("selected",t),o.firstChild.classList.remove("active")))},setDisabled:function(e,t,i,s){var n;i||(i=this.selectpicker.main.map.newIndex[e]),s||(s=this.selectpicker.main.elements[i]),n=s.firstChild,s.classList.toggle(b.DISABLED,t),n&&("4"===g.major&&n.classList.toggle(b.DISABLED,t),n.setAttribute("aria-disabled",t),t?n.setAttribute("tabindex",-1):n.setAttribute("tabindex",0))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass(b.DISABLED),this.$button.addClass(b.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass(b.DISABLED)&&(this.$newElement.removeClass(b.DISABLED),this.$button.removeClass(b.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!e.isDisabled()})},togglePlaceholder:function(){var e=this.$element[0],t=e.selectedIndex,i=-1===t;i||e.options[t].value||(i=!0),this.$button.toggleClass("bs-placeholder",i)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=e(document);function s(){t.options.liveSearch?t.$searchbox.focus():t.$menuInner.focus()}function n(){t.dropdown&&t.dropdown._popper&&t.dropdown._popper.state.isCreated?s():requestAnimationFrame(n)}i.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&i.data("spaceSelect")&&(e.preventDefault(),i.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<g.major&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){t.$newElement.hasClass(b.SHOW)||t.setSize()}),this.$element.on("shown.bs.select",function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),3<g.major?requestAnimationFrame(n):s()}),this.$menuInner.on("click","li a",function(i,s){var n=e(this),o=t.isVirtual()?t.selectpicker.view.position0:0,r=t.selectpicker.current.map.originalIndex[n.parent().index()+o],a=l(t.$element[0]),d=t.$element.prop("selectedIndex"),h=!0;if(t.multiple&&1!==t.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!n.parent().hasClass(b.DISABLED)){var p=t.$element.find("option"),u=p.eq(r),m=u.prop("selected"),f=u.parent("optgroup"),v=f.find("option"),g=t.options.maxOptions,w=f.data("maxOptions")||!1;if(r===t.activeIndex&&(s=!0),s||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(u.prop("selected",!m),t.setSelected(r,!m),n.blur(),!1!==g||!1!==w){var x=g<p.filter(":selected").length,I=w<f.find("option:selected").length;if(g&&x||w&&I)if(g&&1==g){p.prop("selected",!1),u.prop("selected",!0);for(var k=0;k<p.length;k++)t.setSelected(k,!1);t.setSelected(r,!0)}else if(w&&1==w){for(f.find("option:selected").prop("selected",!1),u.prop("selected",!0),k=0;k<v.length;k++){var $=v[k];t.setSelected(p.index($),!1)}
6t.setSelected(r,!0)}else{var E="string"==typeof t.options.maxOptionsText?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,S="function"==typeof E?E(g,w):E,y=S[0].replace("{n}",g),C=S[1].replace("{n}",w),O=e('<div class="notify"></div>');S[2]&&(y=y.replace("{var}",S[2][1<g?0:1]),C=C.replace("{var}",S[2][1<w?0:1])),u.prop("selected",!1),t.$menu.append(O),g&&x&&(O.append(e("<div>"+y+"</div>")),h=!1,t.$element.trigger("maxReached.bs.select")),w&&I&&(O.append(e("<div>"+C+"</div>")),h=!1,t.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){t.setSelected(r,!1)},10),O.delay(750).fadeOut(300,function(){e(this).remove()})}}}else p.prop("selected",!1),u.prop("selected",!0),t.setSelected(r,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.focus():t.options.liveSearch&&t.$searchbox.focus(),h&&(a!=l(t.$element[0])&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&(c=[r,u.prop("selected"),a],t.$element.triggerNative("change"))}}),this.$menu.on("click","li."+b.DISABLED+" a, ."+b.POPOVERHEADER+", ."+b.POPOVERHEADER+" :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!e(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.focus():t.$button.focus()}),this.$menu.on("click","."+b.POPOVERHEADER+" .close",function(){t.$button.click()}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus(),i.preventDefault(),i.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()}),this.$element.on({change:function(){t.render(),t.$element.trigger("changed.bs.select",c),c=null},focus:function(){t.$button.focus()}})},liveSearchListener:function(){var e=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){e.$searchbox.val()&&e.$searchbox.val("")}
6),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var i=e.$searchbox.val();if(e.selectpicker.search.map.newIndex={},e.selectpicker.search.map.originalIndex={},e.selectpicker.search.elements=[],e.selectpicker.search.data=[],i){var s=[],n=i.toUpperCase(),o={},l=[],r=e._searchStyle(),c=e.options.liveSearchNormalize;e._$lisSelected=e.$menuInner.find(".selected");for(var a=0;a<e.selectpicker.main.data.length;a++){var h=e.selectpicker.main.data[a];o[a]||(o[a]=d(h,n,r,c)),o[a]&&void 0!==h.headerIndex&&-1===l.indexOf(h.headerIndex)&&(0<h.headerIndex&&(o[h.headerIndex-1]=!0,l.push(h.headerIndex-1)),o[h.headerIndex]=!0,l.push(h.headerIndex),o[h.lastIndex+1]=!0),o[a]&&"optgroup-label"!==h.type&&l.push(a)}a=0;for(var p=l.length;a<p;a++){var u=l[a],f=l[a-1],v=(h=e.selectpicker.main.data[u],e.selectpicker.main.data[f]);("divider"!==h.type||"divider"===h.type&&v&&"divider"!==v.type&&p-1!==a)&&(e.selectpicker.search.data.push(h),s.push(e.selectpicker.main.elements[u]),h.hasOwnProperty("originalIndex")&&(e.selectpicker.search.map.newIndex[h.originalIndex]=s.length-1,e.selectpicker.search.map.originalIndex[s.length-1]=h.originalIndex))}e.activeIndex=void 0,e.noScroll=!0,e.$menuInner.scrollTop(0),e.selectpicker.search.elements=s,e.createView(!0),s.length||(t.className="no-results",t.innerHTML=e.options.noneResultsText.replace("{0}",'"'+m(i)+'"'),e.$menuInner[0].firstChild.appendChild(t))}else e.$menuInner.scrollTop(0),e.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(e){return void 0!==e?(this.$element.val(e).triggerNative("change"),this.$element):this.$element.val()},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.$element.find("option"),i=0,s=0,n=l(this.$element[0]);this.$element.addClass("bs-select-hidden");for(var o=0;o<this.selectpicker.current.elements.length;o++){var r=this.selectpicker.current.data[o],a=t[this.selectpicker.current.map.originalIndex[o]];a&&!a.disabled&&"divider"!==r.type&&(a.selected&&i++,a.selected=e,a.selected&&s++)}this.$element.removeClass("bs-select-hidden"),i!==s&&(this.setOptionStatus(),this.togglePlaceholder(),c=[null,null,n],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e){(e=e||window.event)&&e.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(t){var i,s,n,o,l,r=e(this),c=r.hasClass("dropdown-toggle"),a=(c?r.closest(".dropdown"):r.closest(w.MENU)).data("this"),h=a.findLis(),p=!1,u=9===t.which&&!c&&!a.options.selectOnTab,m=x.test(t.which)||u,f=a.$menuInner[0].scrollTop,g=a.isVirtual(),k=!0===g?a.selectpicker.view.position0:0;if(!(s=a.$newElement.hasClass(b.SHOW))&&(m||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105||65<=t.which&&t.which<=90)&&a.$button.trigger("click.bs.dropdown.data-api"),27===t.which&&s&&(t.preventDefault(),a.$button.trigger("click.bs.dropdown.data-api").focus()),m){if(!h.length)return;void 0===(i=!0===g?h.index(h.filter(".active")):a.selectpicker.current.map.newIndex[a.activeIndex])&&(i=-1),-1!==i&&((n=a.selectpicker.current.elements[i+k]).classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active")),38===t.which?(-1!==i&&i--,i+k<0&&(i+=h.length),a.selectpicker.view.canHighlight[i+k]||-1==(i=a.selectpicker.view.canHighlight.slice(0,i+k).lastIndexOf(!0)-k)&&(i=h.length-1)):(40===t.which||u)&&(++i+k>=a.selectpicker.view.canHighlight.length&&(i=0),a.selectpicker.view.canHighlight[i+k]||(i=i+1+a.selectpicker.view.canHighlight.slice(i+k+1).indexOf(!0))),t.preventDefault();var $=k+i;38===t.which?0===k&&i===h.length-1?(a.$menuInner[0].scrollTop=a.$menuInner[0].scrollHeight,$=a.selectpicker.current.elements.length-1):p=(l=(o=a.selectpicker.current.data[$]).position-o.height)<f:(40===t.which||u)&&(0===i?$=a.$menuInner[0].scrollTop=0:p=f<(l=(o=a.selectpicker.current.data[$]).position-a.sizeInfo.menuInnerHeight)),(n=a.selectpicker.current.elements[$])&&(n.classList.add("active"),n.firstChild&&n.firstChild.classList.add("active")),a.activeIndex=a.selectpicker.current.map.originalIndex[$],a.selectpicker.view.currentActive=n,p&&(a.$menuInner[0].scrollTop=l),a.options.liveSearch?a.$searchbox.focus():r.focus()}else if(!r.is("input")&&!I.test(t.which)||32===t.which&&a.selectpicker.keydown.keyHistory){var E,S,y=[];t.preventDefault(),a.selectpicker.keydown.keyHistory+=v[t.which],a.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(a.selectpicker.keydown.resetKeyHistory.cancel),a.selectpicker.keydown.resetKeyHistory.cancel=a.selectpicker.keydown.resetKeyHistory.start(),S=a.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(S)&&(S=S.charAt(0));for(var C=0;C<a.selectpicker.current.data.length;C++){var O=a.selectpicker.current.data[C];d(O,S,"startsWith",!0)&&a.selectpicker.view.canHighlight[C]&&(O.index=C,y.push(O.originalIndex))}if(y.length){var z=0;h.removeClass("active").find("a").removeClass("active"),1===S.length&&(-1===(z=y.indexOf(a.activeIndex))||z===y.length-1?z=0:z++),E=a.selectpicker.current.map.newIndex[y[z]],0<f-(o=a.selectpicker.current.data[E]).position?(l=o.position-o.height,p=!0):(l=o.position-a.sizeInfo.menuInnerHeight,p=o.position>f+a.sizeInfo.menuInnerHeight),(n=a.selectpicker.current.elements[E]).classList.add("active"),n.firstChild&&n.firstChild.classList.add("active"),a.activeIndex=y[z],n.firstChild.focus(),p&&(a.$menuInner[0].scrollTop=l),r.focus()}}s&&(32===t.which&&!a.selectpicker.keydown.keyHistory||13===t.which||9===t.which&&a.options.selectOnTab)&&(32!==t.which&&t.preventDefault(),a.options.liveSearch&&32===t.which||(a.$menuInner.find(".active a").trigger("click",!0),r.focus(),a.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.selectpicker.main.map.newIndex={},this.selectpicker.main.map.originalIndex={},this.createLi(),this.checkDisabled(),this.render(),this.setStyle(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var E=e.fn.selectpicker;e.fn.selectpicker=$,e.fn.selectpicker.Constructor=k,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=E,this},e(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',k.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',function(e){e.stopPropagation()}),e(window).on("load.bs.select.data-api",function(){e(".selectpicker").each(function(){var t=e(this);$.call(t,t.data())})})}(e)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.