<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @public_path/build/300.1c6475cd.js */
class __TwigTemplate_8d8eaad53466e88cd51a41714c43a46b85f1b1c246a4e1f3880859b64d7ef529 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@public_path/build/300.1c6475cd.js"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@public_path/build/300.1c6475cd.js"));

        yield "/*! For license information please see 300.1c6475cd.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[300],{70300:function(e,t,i){var s,n;void 0===this&&void 0!==window&&window,s=[i(19755)],void 0===(n=function(e){!function(e){\"use strict\";var t=[\"sanitize\",\"whiteList\",\"sanitizeFn\"],i=[\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"],s={\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",\"tabindex\",\"style\",/^aria-[\\w-]*\$/i],a:[\"target\",\"href\",\"title\",\"rel\"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|\$))/gi,o=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*\$/i,l=[\"title\",\"placeholder\"];function r(t,s){var l=t.nodeName.toLowerCase();if(-1!==e.inArray(l,s))return-1===e.inArray(l,i)||Boolean(t.nodeValue.match(n)||t.nodeValue.match(o));for(var r=e(s).filter((function(e,t){return t instanceof RegExp})),a=0,c=r.length;a<c;a++)if(l.match(r[a]))return!0;return!1}function a(e,t,i){if(i&&\"function\"==typeof i)return i(e);for(var s=Object.keys(t),n=0,o=e.length;n<o;n++)for(var l=e[n].querySelectorAll(\"*\"),a=0,c=l.length;a<c;a++){var d=l[a],h=d.nodeName.toLowerCase();if(-1!==s.indexOf(h))for(var p=[].slice.call(d.attributes),u=[].concat(t[\"*\"]||[],t[h]||[]),f=0,m=p.length;f<m;f++){var v=p[f];r(v,u)||d.removeAttribute(v.nodeName)}else d.parentNode.removeChild(d)}}function c(e){var t,i={};return l.forEach((function(s){(t=e.attr(s))&&(i[s]=t)})),!i.placeholder&&i.title&&(i.placeholder=i.title),i}\"classList\"in document.createElement(\"_\")||function(t){if(\"Element\"in t){var i=\"classList\",s=\"prototype\",n=t.Element[s],o=Object,l=function(){var t=e(this);return{add:function(e){return e=Array.prototype.slice.call(arguments).join(\" \"),t.addClass(e)},remove:function(e){return e=Array.prototype.slice.call(arguments).join(\" \"),t.removeClass(e)},toggle:function(e,i){return t.toggleClass(e,i)},contains:function(e){return t.hasClass(e)}}};if(o.defineProperty){var r={get:l,enumerable:!0,configurable:!0};try{o.defineProperty(n,i,r)}catch(e){void 0!==e.number&&-2146823252!==e.number||(r.enumerable=!1,o.defineProperty(n,i,r))}}else o[s].__defineGetter__&&n.__defineGetter__(i,l)}}(window);var d,h,p=document.createElement(\"_\");if(p.classList.add(\"c1\",\"c2\"),!p.classList.contains(\"c2\")){var u=DOMTokenList.prototype.add,f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,u.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,f.bind(this))}}if(p.classList.toggle(\"c3\",!1),p.classList.contains(\"c3\")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:m.call(this,e)}}function v(e,t){return e.length===t.length&&e.every((function(e,i){return e===t[i]}))}function g(){var e=this.selectpicker.main.data.filter((function(e){return!(!e.selected||this.options.hideDisabled&&e.disabled)}),this);if(this.options.source.data&&!this.multiple&&e.length>1){for(var t=0;t<e.length-1;t++)e[t].selected=!1;e=[e[e.length-1]]}return e}function b(e){for(var t,i=[],s=e||g.call(this),n=0,o=s.length;n<o;n++)(t=s[n]).disabled||i.push(void 0===t.value?t.text:t.value);return this.multiple?i:i.length?i[0]:null}p=null,String.prototype.startsWith||(d={}.toString,h=function(e){if(null==this)throw new TypeError;var t=String(this);if(e&&\"[object RegExp]\"==d.call(e))throw new TypeError;var i=t.length,s=String(e),n=s.length,o=arguments.length>1?arguments[1]:void 0,l=o?Number(o):0;l!=l&&(l=0);var r=Math.min(Math.max(l,0),i);if(n+r>i)return!1;for(var a=-1;++a<n;)if(t.charCodeAt(r+a)!=s.charCodeAt(a))return!1;return!0},Object.defineProperty?Object.defineProperty(String.prototype,\"startsWith\",{value:h,configurable:!0,writable:!0}):String.prototype.startsWith=h);var w={useDefault:!1,_set:e.valHooks.select.set};e.valHooks.select.set=function(t,i){return i&&!w.useDefault&&e(t).data(\"selected\",!0),w._set.apply(this,arguments)};var I=null,k=function(){try{return new Event(\"change\"),!0}catch(e){return!1}}();function x(e,t,i,s){for(var n=[\"display\",\"subtext\",\"tokens\"],o=!1,l=0;l<n.length;l++){var r=n[l],a=e[r];if(a&&(a=a.toString(),\"display\"===r&&(a=a.replace(/<[^>]+>/g,\"\")),s&&(a=O(a)),a=a.toUpperCase(),o=\"function\"==typeof i?i(a,t):\"contains\"===i?a.indexOf(t)>=0:a.startsWith(t)))break}return o}function y(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent&&(k?t=new Event(e,{bubbles:!0}):(t=document.createEvent(\"Event\")).initEvent(e,!0,!1),i.dispatchEvent(t))};var \$={À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"},S=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,E=RegExp(\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\u1ab0-\\\\u1aff\\\\u1dc0-\\\\u1dff]\",\"g\");function C(e){return \$[e]}function O(e){return(e=e.toString())&&e.replace(S,C).replace(E,\"\")}var A,T,z,D,N,L=(A={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\",\"`\":\"&#x60;\"},T=function(e){return A[e]},z=\"(?:\"+Object.keys(A).join(\"|\")+\")\",D=RegExp(z),N=RegExp(z,\"g\"),function(e){return e=null==e?\"\":\"\"+e,D.test(e)?e.replace(N,T):e}),H={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\"},W={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40},P=window.Dropdown||bootstrap.Dropdown;function R(){var t;try{t=e.fn.dropdown.Constructor.VERSION}catch(e){t=P.VERSION}return t}var B={success:!1,major:\"3\"};try{B.full=(R()||\"\").split(\" \")[0].split(\".\"),B.major=B.full[0],B.success=!0}catch(e){}var M=0,U=\".bs.select\",V={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\",ICONBASE:\"glyphicon\",TICKICON:\"glyphicon-ok\"},j={MENU:\".\"+V.MENU,DATA_TOGGLE:'data-toggle=\"dropdown\"'},_={div:document.createElement(\"div\"),span:document.createElement(\"span\"),i:document.createElement(\"i\"),subtext:document.createElement(\"small\"),a:document.createElement(\"a\"),li:document.createElement(\"li\"),whitespace:document.createTextNode(\" \"),fragment:document.createDocumentFragment(),option:document.createElement(\"option\")};_.selectedOption=_.option.cloneNode(!1),_.selectedOption.setAttribute(\"selected\",!0),_.noResults=_.li.cloneNode(!1),_.noResults.className=\"no-results\",_.a.setAttribute(\"role\",\"option\"),_.a.className=\"dropdown-item\",_.subtext.className=\"text-muted\",_.text=_.span.cloneNode(!1),_.text.className=\"text\",_.checkMark=_.span.cloneNode(!1);var F=new RegExp(W.ARROW_UP+\"|\"+W.ARROW_DOWN),G=new RegExp(\"^\"+W.TAB+\"\$|\"+W.ESCAPE),q={li:function(e,t,i){var s=_.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?s.appendChild(e):s.innerHTML=e),void 0!==t&&\"\"!==t&&(s.className=t),null!=i&&s.classList.add(\"optgroup-\"+i),s},a:function(e,t,i){var s=_.a.cloneNode(!0);return e&&(11===e.nodeType?s.appendChild(e):s.insertAdjacentHTML(\"beforeend\",e)),void 0!==t&&\"\"!==t&&s.classList.add.apply(s.classList,t.split(/\\s+/)),i&&s.setAttribute(\"style\",i),s},text:function(e,t){var i,s,n=_.text.cloneNode(!1);if(e.content)n.innerHTML=e.content;else{if(n.textContent=e.text,e.icon){var o=_.whitespace.cloneNode(!1);(s=(!0===t?_.i:_.span).cloneNode(!1)).className=this.options.iconBase+\" \"+e.icon,_.fragment.appendChild(s),_.fragment.appendChild(o)}e.subtext&&((i=_.subtext.cloneNode(!1)).textContent=e.subtext,n.appendChild(i))}if(!0===t)for(;n.childNodes.length>0;)_.fragment.appendChild(n.childNodes[0]);else _.fragment.appendChild(n);return _.fragment},label:function(e){var t,i,s=_.text.cloneNode(!1);if(s.innerHTML=e.display,e.icon){var n=_.whitespace.cloneNode(!1);(i=_.span.cloneNode(!1)).className=this.options.iconBase+\" \"+e.icon,_.fragment.appendChild(i),_.fragment.appendChild(n)}return e.subtext&&((t=_.subtext.cloneNode(!1)).textContent=e.subtext,s.appendChild(t)),_.fragment.appendChild(s),_.fragment}},K={fromOption:function(e,t){var i;switch(t){case\"divider\":i=\"true\"===e.getAttribute(\"data-divider\");break;case\"text\":i=e.textContent;break;case\"label\":i=e.label;break;case\"style\":i=e.style.cssText;break;case\"content\":case\"tokens\":case\"subtext\":case\"icon\":i=e.getAttribute(\"data-\"+t)}return i},fromDataSource:function(e,t){var i;switch(t){case\"text\":case\"label\":i=e.text||e.value||\"\";break;case\"divider\":case\"style\":case\"content\":case\"tokens\":case\"subtext\":case\"icon\":i=e[t]}return i}};function Q(e,t){e.length||(_.noResults.innerHTML=this.options.noneResultsText.replace(\"{0}\",'\"'+L(t)+'\"'),this.\$menuInner[0].firstChild.appendChild(_.noResults))}function Y(e){return!(e.hidden||this.options.hideDisabled&&e.disabled)}var Z=function(t,i){var s=this;w.useDefault||(e.valHooks.select.set=w._set,w.useDefault=!0),this.\$element=e(t),this.\$newElement=null,this.\$button=null,this.\$menu=null,this.options=i,this.selectpicker={main:{optionQueue:_.fragment.cloneNode(!1)},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:\"\",resetKeyHistory:{start:function(){return setTimeout((function(){s.selectpicker.keydown.keyHistory=\"\"}),800)}}}},this.sizeInfo={};var n=this.options.windowPadding;\"number\"==typeof n&&(this.options.windowPadding=[n,n,n,n]),this.val=Z.prototype.val,this.render=Z.prototype.render,this.refresh=Z.prototype.refresh,this.setStyle=Z.prototype.setStyle,this.selectAll=Z.prototype.selectAll,this.deselectAll=Z.prototype.deselectAll,this.destroy=Z.prototype.destroy,this.remove=Z.prototype.remove,this.show=Z.prototype.show,this.hide=Z.prototype.hide,this.init()};function J(i){var s,n=arguments,o=i;if([].shift.apply(n),!B.success){try{B.full=(R()||\"\").split(\" \")[0].split(\".\")}catch(e){Z.BootstrapVersion?B.full=Z.BootstrapVersion.split(\" \")[0].split(\".\"):(B.full=[B.major,\"0\",\"0\"],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.\",e))}B.major=B.full[0],B.success=!0}if(B.major>=\"4\"){var l=[];Z.DEFAULTS.style===V.BUTTONCLASS&&l.push({name:\"style\",className:\"BUTTONCLASS\"}),Z.DEFAULTS.iconBase===V.ICONBASE&&l.push({name:\"iconBase\",className:\"ICONBASE\"}),Z.DEFAULTS.tickIcon===V.TICKICON&&l.push({name:\"tickIcon\",className:\"TICKICON\"}),V.DIVIDER=\"dropdown-divider\",V.SHOW=\"show\",V.BUTTONCLASS=\"btn-light\",V.POPOVERHEADER=\"popover-header\",V.ICONBASE=\"\",V.TICKICON=\"bs-ok-default\";for(var r=0;r<l.length;r++)i=l[r],Z.DEFAULTS[i.name]=V[i.className]}B.major>\"4\"&&(j.DATA_TOGGLE='data-bs-toggle=\"dropdown\"');var a=this.each((function(){var i=e(this);if(i.is(\"select\")){var l=i.data(\"selectpicker\"),r=\"object\"==typeof o&&o;if(r.title&&(r.placeholder=r.title),l){if(r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(l.options[a]=r[a])}else{var d=i.data();for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&-1!==e.inArray(h,t)&&delete d[h];var p=e.extend({},Z.DEFAULTS,e.fn.selectpicker.defaults||{},c(i),d,r);p.template=e.extend({},Z.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},d.template,r.template),i.data(\"selectpicker\",l=new Z(this,p))}\"string\"==typeof o&&(s=l[o]instanceof Function?l[o].apply(l,n):l.options[o])}}));return void 0!==s?s:a}Z.VERSION=\"1.14.0-beta2\",Z.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\",source:{},chunkSize:40,doneButton:!1,doneButtonText:\"Close\",multipleSeparator:\", \",styleBase:\"btn\",style:V.BUTTONCLASS,size:\"auto\",title:null,placeholder:null,allowClear:!1,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:V.ICONBASE,tickIcon:V.TICKICON,showTick:!1,template:{caret:'<span class=\"caret\"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:s},Z.prototype={constructor:Z,init:function(){var t=this,i=this.\$element.attr(\"id\"),s=this.\$element[0],n=s.form;M++,this.selectId=\"bs-select-\"+M,s.classList.add(\"bs-select-hidden\"),this.multiple=this.\$element.prop(\"multiple\"),this.autofocus=this.\$element.prop(\"autofocus\"),s.classList.contains(\"show-tick\")&&(this.options.showTick=!0),this.\$newElement=this.createDropdown(),this.\$element.after(this.\$newElement).prependTo(this.\$newElement),n&&null===s.form&&(n.id||(n.id=\"form-\"+this.selectId),s.setAttribute(\"form\",n.id)),this.\$button=this.\$newElement.children(\"button\"),this.options.allowClear&&(this.\$clearButton=this.\$button.children(\".bs-select-clear-selected\")),this.\$menu=this.\$newElement.children(j.MENU),this.\$menuInner=this.\$menu.children(\".inner\"),this.\$searchbox=this.\$menu.find(\"input\"),s.classList.remove(\"bs-select-hidden\"),this.fetchData((function(){t.render(!0),t.buildList(),requestAnimationFrame((function(){t.\$element.trigger(\"loaded\"+U)}))})),this.fetchData((function(){t.render(!0),t.buildList(),requestAnimationFrame((function(){t.\$element.trigger(\"loaded\"+U)}))})),!0===this.options.dropdownAlignRight&&this.\$menu[0].classList.add(V.MENURIGHT),void 0!==i&&this.\$button.attr(\"data-id\",i),this.checkDisabled(),this.clickListener(),B.major>4&&(this.dropdown=new P(this.\$button[0])),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.\$searchbox[0]):this.focusedParent=this.\$menuInner[0],this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.\$element.on(\"hide\"+U,(function(){if(t.isVirtual()){var e=t.\$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}})),this.\$menu.data(\"this\",this),this.\$newElement.data(\"this\",this),this.options.mobile&&this.mobile(),this.\$newElement.on({\"hide.bs.dropdown\":function(e){t.\$element.trigger(\"hide\"+U,e)},\"hidden.bs.dropdown\":function(e){t.\$element.trigger(\"hidden\"+U,e)},\"show.bs.dropdown\":function(e){t.\$element.trigger(\"show\"+U,e)},\"shown.bs.dropdown\":function(e){t.\$element.trigger(\"shown\"+U,e)}}),s.hasAttribute(\"required\")&&this.\$element.on(\"invalid\"+U,(function(){t.\$button[0].classList.add(\"bs-invalid\"),t.\$element.on(\"shown\"+U+\".invalid\",(function(){t.\$element.val(t.\$element.val()).off(\"shown\"+U+\".invalid\")})).on(\"rendered\"+U,(function(){this.validity.valid&&t.\$button[0].classList.remove(\"bs-invalid\"),t.\$element.off(\"rendered\"+U)})),t.\$button.on(\"blur\"+U,(function(){t.\$element.trigger(\"focus\").trigger(\"blur\"),t.\$button.off(\"blur\"+U)}))})),n&&e(n).on(\"reset\"+U,(function(){requestAnimationFrame((function(){t.render()}))}))},createDropdown:function(){var t=this.multiple||this.options.showTick?\" show-tick\":\"\",i=this.multiple?' aria-multiselectable=\"true\"':\"\",s=\"\",n=this.autofocus?\" autofocus\":\"\";B.major<4&&this.\$element.parent().hasClass(\"input-group\")&&(s=\" input-group-btn\");var o,l=\"\",r=\"\",a=\"\",c=\"\",d=\"\";return this.options.header&&(l='<div class=\"'+V.POPOVERHEADER+'\"><button type=\"button\" class=\"close\" aria-hidden=\"true\">&times;</button>'+this.options.header+\"</div>\"),this.options.liveSearch&&(r='<div class=\"bs-searchbox\"><input type=\"search\" class=\"form-control\" autocomplete=\"off\"'+(null===this.options.liveSearchPlaceholder?\"\":' placeholder=\"'+L(this.options.liveSearchPlaceholder)+'\"')+' role=\"combobox\" aria-label=\"Search\" aria-controls=\"'+this.selectId+'\" aria-autocomplete=\"list\"></div>'),this.multiple&&this.options.actionsBox&&(a='<div class=\"bs-actionsbox\"><div class=\"btn-group btn-group-sm\"><button type=\"button\" class=\"actions-btn bs-select-all btn '+V.BUTTONCLASS+'\">'+this.options.selectAllText+'</button><button type=\"button\" class=\"actions-btn bs-deselect-all btn '+V.BUTTONCLASS+'\">'+this.options.deselectAllText+\"</button></div></div>\"),this.multiple&&this.options.doneButton&&(c='<div class=\"bs-donebutton\"><div class=\"btn-group\"><button type=\"button\" class=\"btn btn-sm '+V.BUTTONCLASS+'\">'+this.options.doneButtonText+\"</button></div></div>\"),this.options.allowClear&&(d='<span class=\"close bs-select-clear-selected\" title=\"'+this.options.deselectAllText+'\"><span>&times;</span>'),o='<div class=\"dropdown bootstrap-select'+t+s+'\"><button type=\"button\" tabindex=\"-1\" class=\"'+this.options.styleBase+' dropdown-toggle\" '+(\"static\"===this.options.display?'data-display=\"static\"':\"\")+j.DATA_TOGGLE+n+' role=\"combobox\" aria-owns=\"'+this.selectId+'\" aria-haspopup=\"listbox\" aria-expanded=\"false\"><div class=\"filter-option\"><div class=\"filter-option-inner\"><div class=\"filter-option-inner-inner\">&nbsp;</div></div> </div>'+d+\"</span>\"+(B.major>=\"4\"?\"\":'<span class=\"bs-caret\">'+this.options.template.caret+\"</span>\")+'</button><div class=\"'+V.MENU+\" \"+(B.major>=\"4\"?\"\":V.SHOW)+'\">'+l+r+a+'<div class=\"inner '+V.SHOW+'\" role=\"listbox\" id=\"'+this.selectId+'\" tabindex=\"-1\" '+i+'><ul class=\"'+V.MENU+\" inner \"+(B.major>=\"4\"?V.SHOW:\"\")+'\" role=\"presentation\"></ul></div>'+c+\"</div></div>\",e(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;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),i&&(this.selectpicker.view.size++,t.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=e)),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.data.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,i,s){var n,o,l=this,r=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(s)r=this.\$menuInner[0].scrollTop;else if(!l.multiple){var d=l.\$element[0],h=(d.options[d.selectedIndex]||{}).liIndex;if(\"number\"==typeof h&&!1!==l.options.size){var p=l.selectpicker.main.data[h],u=p&&p.position;u&&(r=u-(l.sizeInfo.menuInnerHeight+l.sizeInfo.liHeight)/2)}}function f(e,i){var s,r,d,h,p,u,m,g,b=l.selectpicker.current.data.length,w=[],I=!0,k=l.isVirtual();l.selectpicker.view.scrollTop=e,s=l.options.chunkSize,r=Math.ceil(b/s)||1;for(var x=0;x<r;x++){var y=(x+1)*s;if(x===r-1&&(y=b),w[x]=[x*s+(x?1:0),y],!b)break;void 0===p&&e-1<=l.selectpicker.current.data[y-1].position-l.sizeInfo.menuInnerHeight&&(p=x)}if(void 0===p&&(p=0),u=[l.selectpicker.view.position0,l.selectpicker.view.position1],d=Math.max(0,p-1),h=Math.min(r-1,p+1),l.selectpicker.view.position0=!1===k?0:Math.max(0,w[d][0])||0,l.selectpicker.view.position1=!1===k?b:Math.min(b,w[h][1])||0,m=u[0]!==l.selectpicker.view.position0||u[1]!==l.selectpicker.view.position1,void 0!==l.activeIndex&&(o=(l.selectpicker.main.data[l.prevActiveIndex]||{}).element,c=(l.selectpicker.main.data[l.activeIndex]||{}).element,n=(l.selectpicker.main.data[l.selectedIndex]||{}).element,i&&(l.activeIndex!==l.selectedIndex&&l.defocusItem(c),l.activeIndex=void 0),l.activeIndex&&l.activeIndex!==l.selectedIndex&&l.defocusItem(n)),void 0!==l.prevActiveIndex&&l.prevActiveIndex!==l.activeIndex&&l.prevActiveIndex!==l.selectedIndex&&l.defocusItem(o),i||m){if(g=l.selectpicker.view.visibleElements?l.selectpicker.view.visibleElements.slice():[],l.selectpicker.view.visibleElements=!1===k?l.selectpicker.current.elements:l.selectpicker.current.elements.slice(l.selectpicker.view.position0,l.selectpicker.view.position1),l.setOptionStatus(),(t||!1===k&&i)&&(I=!v(g,l.selectpicker.view.visibleElements)),(i||!0===k)&&I){var \$,S,E=l.\$menuInner[0],C=document.createDocumentFragment(),O=E.firstChild.cloneNode(!1),A=l.selectpicker.view.visibleElements,T=[];E.replaceChild(O,E.firstChild),x=0;for(var z=A.length;x<z;x++){var D,N,L=A[x];l.options.sanitize&&(D=L.lastChild)&&(N=l.selectpicker.current.data[x+l.selectpicker.view.position0])&&N.content&&!N.sanitized&&(T.push(D),N.sanitized=!0),C.appendChild(L)}if(l.options.sanitize&&T.length&&a(T,l.options.whiteList,l.options.sanitizeFn),!0===k?(\$=0===l.selectpicker.view.position0?0:l.selectpicker.current.data[l.selectpicker.view.position0-1].position,S=l.selectpicker.view.position1>b-1?0:l.selectpicker.current.data[b-1].position-l.selectpicker.current.data[l.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=\$+\"px\",E.firstChild.style.marginBottom=S+\"px\"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(C),!0===k&&l.sizeInfo.hasScrollBar){var H=E.firstChild.offsetWidth;if(i&&H<l.sizeInfo.menuInnerInnerWidth&&l.sizeInfo.totalMenuWidth>l.sizeInfo.selectWidth)E.firstChild.style.minWidth=l.sizeInfo.menuInnerInnerWidth+\"px\";else if(H>l.sizeInfo.menuInnerInnerWidth){l.\$menu[0].style.minWidth=0;var W=E.firstChild.offsetWidth;W>l.sizeInfo.menuInnerInnerWidth&&(l.sizeInfo.menuInnerInnerWidth=W,E.firstChild.style.minWidth=l.sizeInfo.menuInnerInnerWidth+\"px\"),l.\$menu[0].style.minWidth=\"\"}}}(!t&&l.options.source.load||t&&l.options.source.search)&&p===r-1&&l.fetchData((function(){l.render(),l.buildList(b,t),l.setPositionData(),f(e)}),t?\"search\":\"load\",p+1,t?l.selectpicker.search.previousValue:void 0)}if(l.prevActiveIndex=l.activeIndex,l.options.liveSearch){if(t&&i){var P,R=0;l.selectpicker.view.canHighlight[R]||(R=1+l.selectpicker.view.canHighlight.slice(1).indexOf(!0)),P=l.selectpicker.view.visibleElements[R],l.defocusItem(l.selectpicker.view.currentActive),l.activeIndex=(l.selectpicker.current.data[R]||{}).index,l.focusItem(P)}}else l.\$menuInner.trigger(\"focus\")}f(r,!0),this.\$menuInner.off(\"scroll.createView\").on(\"scroll.createView\",(function(e,t){l.noScroll||f(this.scrollTop,t),l.noScroll=!1})),e(window).off(\"resize\"+U+\".\"+this.selectId+\".createView\").on(\"resize\"+U+\".\"+this.selectId+\".createView\",(function(){l.\$newElement.hasClass(V.SHOW)&&f(l.\$menuInner[0].scrollTop)}))},focusItem:function(e,t,i){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var s=e.firstChild;s&&(s.setAttribute(\"aria-setsize\",this.selectpicker.view.size),s.setAttribute(\"aria-posinset\",t.posinset),!0!==i&&(this.focusedParent.setAttribute(\"aria-activedescendant\",s.id),e.classList.add(\"active\"),s.classList.add(\"active\")))}},defocusItem:function(e){e&&(e.classList.remove(\"active\"),e.firstChild&&e.firstChild.classList.remove(\"active\"))},setPlaceholder:function(){var e=this,t=!1;if((this.options.placeholder||this.options.allowClear)&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement(\"option\")),t=!0;var i=this.\$element[0],s=!1,n=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,l=i.options[o],r=i.querySelector(\"select > *:not(:disabled)\"),a=r?r.index:0,c=window.performance&&window.performance.getEntriesByType(\"navigation\"),d=c&&c.length?\"back_forward\"!==c[0].type:2!==window.performance.navigation.type;n&&(this.selectpicker.view.titleOption.className=\"bs-title-option\",this.selectpicker.view.titleOption.value=\"\",s=!l||o===a&&!1===l.defaultSelected&&void 0===this.\$element.data(\"selected\")),(n||0!==this.selectpicker.view.titleOption.index)&&i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),s&&d?i.selectedIndex=0:\"complete\"!==document.readyState&&window.addEventListener(\"pageshow\",(function(){e.selectpicker.view.displayedValue!==i.value&&e.render()}))}return t},fetchData:function(e,t,i,s){t=t||\"data\";var n,o=this,l=this.options.source[t];l?(this.options.virtualScroll=!0,\"function\"==typeof l?l.call(this,(function(i){n=o.buildData(i,t),e.call(o,n)}),i,s):Array.isArray(l)&&(n=o.buildData(l,t),e.call(o,n))):(n=this.buildData(!1,t),e.call(o,n))},buildData:function(e,t){var i=!1===e?K.fromOption:K.fromDataSource,s=':not([hidden]):not([data-hidden=\"true\"])',n=[],o=0,l=0,r=this.setPlaceholder()&&!e?1:0;\"load\"===t?o=this.selectpicker.main.data.length:\"search\"===t&&(o=this.selectpicker.search.data.length),this.options.hideDisabled&&(s+=\":not(:disabled)\");var a=e?e.filter(Y,this):this.\$element[0].querySelectorAll(\"select > *\"+s);function c(e){var t=n[n.length-1];t&&\"divider\"===t.type&&(t.optID||e.optID)||((e=e||{}).type=\"divider\",n.push(e))}function d(e,t){if((t=t||{}).divider=i(e,\"divider\"),!0===t.divider)c({optID:t.optID});else{var s=n.length+o,l=i(e,\"style\"),r=l?L(l):\"\",a=(e.className||\"\")+(t.optgroupClass||\"\");t.optID&&(a=\"opt \"+a),t.optionClass=a.trim(),t.inlineStyle=r,t.text=i(e,\"text\"),t.content=i(e,\"content\"),t.tokens=i(e,\"tokens\"),t.subtext=i(e,\"subtext\"),t.icon=i(e,\"icon\"),t.display=t.content||t.text,t.value=void 0===e.value?e.text:e.value,t.type=\"option\",t.index=s,t.option=e.option?e.option:e,t.option.liIndex=s,t.selected=!!e.selected,t.disabled=t.disabled||!!e.disabled,n.push(t)}}function h(t,o){var a=o[t],h=!(t-1<r)&&o[t-1],p=o[t+1],u=e?a.children.filter(Y,this):a.querySelectorAll(\"option\"+s);if(u.length){var m,v,g={display:L(i(f,\"label\")),subtext:i(a,\"subtext\"),icon:i(a,\"icon\"),type:\"optgroup-label\",optgroupClass:\" \"+(a.className||\"\")};l++,h&&c({optID:l}),g.optID=l,n.push(g);for(var b=0,w=u.length;b<w;b++){var I=u[b];0===b&&(v=(m=n.length-1)+w),d(I,{headerIndex:m,lastIndex:v,optID:g.optID,optgroupClass:g.optgroupClass,disabled:a.disabled})}p&&c({optID:l})}}for(var p=a.length,u=r;u<p;u++){var f=a[u],m=f.children;m&&m.length?h.call(this,r,a):d.call(this,f,{})}switch(t){case\"data\":this.selectpicker.main.data=this.selectpicker.current.data=n;break;case\"load\":Array.prototype.push.apply(this.selectpicker.main.data,n),this.selectpicker.current.data=this.selectpicker.main.data;break;case\"search\":Array.prototype.push.apply(this.selectpicker.search.data,n)}return n},buildList:function(e,t){var i=this,s=t?this.selectpicker.search.data:this.selectpicker.main.data,n=[],o=0;function l(e,t){var s,n=0;switch(t.type){case\"divider\":s=q.li(!1,V.DIVIDER,t.optID?t.optID+\"div\":void 0);break;case\"option\":(s=q.li(q.a(q.text.call(i,t),t.optionClass,t.inlineStyle),\"\",t.optID)).firstChild&&(s.firstChild.id=i.selectId+\"-\"+t.index);break;case\"optgroup-label\":s=q.li(q.label.call(i,t),\"dropdown-header\"+t.optgroupClass,t.optID)}t.element=s,e.push(s),t.display&&(n+=t.display.length),t.subtext&&(n+=t.subtext.length),t.icon&&(n+=1),n>o&&(o=n,i.selectpicker.view.widestOption=e[e.length-1])}!i.options.showTick&&!i.multiple||_.checkMark.parentNode||(_.checkMark.className=this.options.iconBase+\" \"+i.options.tickIcon+\" check-mark\",_.a.appendChild(_.checkMark));for(var r=e||0,a=s.length,c=r;c<a;c++)l(n,s[c]);e?t?Array.prototype.push.apply(this.selectpicker.search.elements,n):(Array.prototype.push.apply(this.selectpicker.main.elements,n),this.selectpicker.current.elements=this.selectpicker.main.elements):t?this.selectpicker.search.elements=n:this.selectpicker.main.elements=this.selectpicker.current.elements=n},findLis:function(){return this.\$menuInner.find(\".inner > li\")},render:function(e){var t,i,s=this,n=this.\$element[0],o=this.setPlaceholder()&&0===n.selectedIndex,l=g.call(this),r=l.length,c=b.call(this,l),d=this.\$button[0],h=d.querySelector(\".filter-option-inner-inner\"),p=document.createTextNode(this.options.multipleSeparator),u=_.fragment.cloneNode(!1),f=!1;function m(e){e.selected?s.createOption(e,!0):e.children&&e.children.length&&e.children.map(m)}if(this.options.source.data&&e&&(l.map(m),n.appendChild(this.selectpicker.main.optionQueue),o&&(o=0===n.selectedIndex)),d.classList.toggle(\"bs-placeholder\",s.multiple?!r:!c&&0!==c),s.multiple||1!==l.length||(s.selectpicker.view.displayedValue=c),\"static\"===this.options.selectedTextFormat)u=q.text.call(this,{text:this.options.placeholder},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf(\"count\")&&r>1)&&(t=(i=this.options.selectedTextFormat.split(\">\")).length>1&&r>i[1]||1===i.length&&r>=2),!1===t){if(!o){for(var v=0;v<r&&v<50;v++){var w=l[v],I={};w&&(this.multiple&&v>0&&u.appendChild(p.cloneNode(!1)),w.title?I.text=w.title:w.content&&s.options.showContent?(I.content=w.content.toString(),f=!0):(s.options.showIcon&&(I.icon=w.icon),s.options.showSubtext&&!s.multiple&&w.subtext&&(I.subtext=\" \"+w.subtext),I.text=w.text.trim()),u.appendChild(q.text.call(this,I,!0)))}r>49&&u.appendChild(document.createTextNode(\"...\"))}}else{var k=':not([hidden]):not([data-hidden=\"true\"]):not([data-divider=\"true\"])';this.options.hideDisabled&&(k+=\":not(:disabled)\");var x=this.\$element[0].querySelectorAll(\"select > option\"+k+\", optgroup\"+k+\" option\"+k).length,y=\"function\"==typeof this.options.countSelectedText?this.options.countSelectedText(r,x):this.options.countSelectedText;u=q.text.call(this,{text:y.replace(\"{0}\",r.toString()).replace(\"{1}\",x.toString())},!0)}if(u.childNodes.length||(u=q.text.call(this,{text:this.options.placeholder?this.options.placeholder:this.options.noneSelectedText},!0)),d.title=u.textContent.replace(/<[^>]*>?/g,\"\").trim(),this.options.sanitize&&f&&a([u],s.options.whiteList,s.options.sanitizeFn),h.innerHTML=\"\",h.appendChild(u),B.major<4&&this.\$newElement[0].classList.contains(\"bs3-has-addon\")){var \$=d.querySelector(\".filter-expand\"),S=h.cloneNode(!0);S.className=\"filter-expand\",\$?d.replaceChild(S,\$):d.appendChild(S)}this.\$element.trigger(\"rendered\"+U)},setStyle:function(e,t){var i,s=this.\$button[0],n=this.\$newElement[0],o=this.options.style.trim();this.\$element.attr(\"class\")&&this.\$newElement.addClass(this.\$element.attr(\"class\").replace(/selectpicker|mobile-device|bs-select-hidden|validate\\[.*\\]/gi,\"\")),B.major<4&&(n.classList.add(\"bs3\"),n.parentNode.classList&&n.parentNode.classList.contains(\"input-group\")&&(n.previousElementSibling||n.nextElementSibling)&&(n.previousElementSibling||n.nextElementSibling).classList.contains(\"input-group-addon\")&&n.classList.add(\"bs3-has-addon\")),i=e?e.trim():o,\"add\"==t?i&&s.classList.add.apply(s.classList,i.split(\" \")):\"remove\"==t?i&&s.classList.remove.apply(s.classList,i.split(\" \")):(o&&s.classList.remove.apply(s.classList,o.split(\" \")),i&&s.classList.add.apply(s.classList,i.split(\" \")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i,s=_.div.cloneNode(!1),n=_.div.cloneNode(!1),o=_.div.cloneNode(!1),l=document.createElement(\"ul\"),r=_.li.cloneNode(!1),a=_.li.cloneNode(!1),c=_.a.cloneNode(!1),d=_.span.cloneNode(!1),h=this.options.header&&this.\$menu.find(\".\"+V.POPOVERHEADER).length>0?this.\$menu.find(\".\"+V.POPOVERHEADER)[0].cloneNode(!0):null,p=this.options.liveSearch?_.div.cloneNode(!1):null,u=this.options.actionsBox&&this.multiple&&this.\$menu.find(\".bs-actionsbox\").length>0?this.\$menu.find(\".bs-actionsbox\")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&this.\$menu.find(\".bs-donebutton\").length>0?this.\$menu.find(\".bs-donebutton\")[0].cloneNode(!0):null,m=this.\$element[0].options[0];if(this.sizeInfo.selectWidth=this.\$newElement[0].offsetWidth,d.className=\"text\",c.className=\"dropdown-item \"+(m?m.className:\"\"),s.className=this.\$menu[0].parentNode.className+\" \"+V.SHOW,s.style.width=0,\"auto\"===this.options.width&&(n.style.minWidth=0),n.className=V.MENU+\" \"+V.SHOW,o.className=\"inner \"+V.SHOW,l.className=V.MENU+\" inner \"+(B.major>=\"4\"?V.SHOW:\"\"),r.className=V.DIVIDER,a.className=\"dropdown-header\",d.appendChild(document.createTextNode(\"​\")),this.selectpicker.current.data.length)for(var v=0;v<this.selectpicker.current.data.length;v++){var g=this.selectpicker.current.data[v];if(\"option\"===g.type){i=g.element;break}}else i=_.li.cloneNode(!1),c.appendChild(d),i.appendChild(c);if(a.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&l.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),l.appendChild(i),l.appendChild(r),l.appendChild(a),h&&n.appendChild(h),p){var b=document.createElement(\"input\");p.className=\"bs-searchbox\",b.className=\"form-control\",p.appendChild(b),n.appendChild(p)}u&&n.appendChild(u),o.appendChild(l),n.appendChild(o),f&&n.appendChild(f),s.appendChild(n),document.body.appendChild(s);var w,I=i.offsetHeight,k=a?a.offsetHeight:0,x=h?h.offsetHeight:0,\$=p?p.offsetHeight:0,S=u?u.offsetHeight:0,E=f?f.offsetHeight:0,C=e(r).outerHeight(!0),O=window.getComputedStyle(n),A=n.offsetWidth,T={vert:y(O.paddingTop)+y(O.paddingBottom)+y(O.borderTopWidth)+y(O.borderBottomWidth),horiz:y(O.paddingLeft)+y(O.paddingRight)+y(O.borderLeftWidth)+y(O.borderRightWidth)},z={vert:T.vert+y(O.marginTop)+y(O.marginBottom)+2,horiz:T.horiz+y(O.marginLeft)+y(O.marginRight)+2};o.style.overflowY=\"scroll\",w=n.offsetWidth-A,document.body.removeChild(s),this.sizeInfo.liHeight=I,this.sizeInfo.dropdownHeaderHeight=k,this.sizeInfo.headerHeight=x,this.sizeInfo.searchHeight=\$,this.sizeInfo.actionsHeight=S,this.sizeInfo.doneButtonHeight=E,this.sizeInfo.dividerHeight=C,this.sizeInfo.menuPadding=T,this.sizeInfo.menuExtras=z,this.sizeInfo.menuWidth=A,this.sizeInfo.menuInnerInnerWidth=A-T.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=w,this.sizeInfo.selectHeight=this.\$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,i=this,s=e(window),n=i.\$newElement.offset(),o=e(i.options.container);i.options.container&&o.length&&!o.is(\"body\")?((t=o.offset()).top+=parseInt(o.css(\"borderTopWidth\")),t.left+=parseInt(o.css(\"borderLeftWidth\"))):t={top:0,left:0};var l=i.options.windowPadding;this.sizeInfo.selectOffsetTop=n.top-t.top-s.scrollTop(),this.sizeInfo.selectOffsetBot=s.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-l[2],this.sizeInfo.selectOffsetLeft=n.left-t.left-s.scrollLeft(),this.sizeInfo.selectOffsetRight=s.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-l[1],this.sizeInfo.selectOffsetTop-=l[0],this.sizeInfo.selectOffsetLeft-=l[3]},setMenuSize:function(e){this.getSelectPosition();var t,i,s,n,o,l,r,a,c=this.sizeInfo.selectWidth,d=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,p=this.sizeInfo.searchHeight,u=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,v=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(r=d*this.selectpicker.current.data.length+v.vert,a=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(a=this.selectpicker.dropup),this.\$newElement.toggleClass(V.DROPUP,a),this.selectpicker.dropup=a),\"auto\"===this.options.size)n=this.selectpicker.current.data.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,s=n+h+p+u+f,l=Math.max(n-v.vert,0),this.\$newElement.hasClass(V.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=i,t=i-h-p-u-f-v.vert;else if(this.options.size&&\"auto\"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var b=0;b<this.options.size;b++)\"divider\"===this.selectpicker.current.data[b].type&&g++;t=(i=d*this.options.size+g*m+v.vert)-v.vert,o=i+h+p+u+f,s=l=\"\"}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=Math.max(t,1),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),\"auto\"===this.options.dropdownAlignRight&&this.\$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),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=this,s=e(window);this.setMenuSize(),this.options.liveSearch&&this.\$searchbox.off(\"input.setMenuSize propertychange.setMenuSize\").on(\"input.setMenuSize propertychange.setMenuSize\",(function(){return i.setMenuSize()})),\"auto\"===this.options.size?s.off(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\").on(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\",(function(){return i.setMenuSize()})):this.options.size&&\"auto\"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&s.off(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\")}this.createView(!1,!0,t)},setWidth:function(){var e=this;\"auto\"===this.options.width?requestAnimationFrame((function(){e.\$menu.css(\"min-width\",\"0\"),e.\$element.on(\"loaded\"+U,(function(){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[0].classList.remove(\"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={},a=n.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;n.\$bsContainer.addClass(l.attr(\"class\").replace(/form-control|fit-width/gi,\"\")).toggleClass(V.DROPUP,l.hasClass(V.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(V.DROPUP)?0:l[0].offsetHeight,(B.major<4||\"static\"===a)&&(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(V.SHOW,!n.\$button.hasClass(V.SHOW)).append(n.\$menu))})),e(window).off(\"resize\"+U+\".\"+this.selectId+\" scroll\"+U+\".\"+this.selectId).on(\"resize\"+U+\".\"+this.selectId+\" scroll\"+U+\".\"+this.selectId,(function(){n.\$newElement.hasClass(V.SHOW)&&l(n.\$newElement)})),this.\$element.on(\"hide\"+U,(function(){n.\$menu.data(\"height\",n.\$menu.height()),n.\$bsContainer.detach()}))},createOption:function(e,t){var i=e.option?e.option:e;if(i&&1!==i.nodeType){var s=(t?_.selectedOption:_.option).cloneNode(!0);void 0!==i.value&&(s.value=i.value),s.textContent=i.text,s.selected=!0,void 0!==i.liIndex?s.liIndex=i.liIndex:t||(s.liIndex=e.index),e.option=s,this.selectpicker.main.optionQueue.appendChild(s)}},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length){for(var i=0;i<t.selectpicker.view.visibleElements.length;i++){var s=t.selectpicker.current.data[i+t.selectpicker.view.position0];s.option&&(!0!==e&&t.setDisabled(s),t.setSelected(s))}this.options.source.data&&this.\$element[0].appendChild(this.selectpicker.main.optionQueue)}},setSelected:function(e,t){t=void 0===t?e.selected:t;var i,s,n=e.index,o=e.element,l=void 0!==this.activeIndex,r=this.activeIndex===n||t&&!this.multiple&&!l;o&&(void 0!==t&&(e.selected=t,e.option&&(e.option.selected=t)),t&&this.options.source.data&&this.createOption(e,!1),s=o.firstChild,t&&(this.selectedIndex=n),o.classList.toggle(\"selected\",t),r?(this.focusItem(o,e),this.selectpicker.view.currentActive=o,this.activeIndex=n):this.defocusItem(o),s&&(s.classList.toggle(\"selected\",t),t?s.setAttribute(\"aria-selected\",!0):this.multiple?s.setAttribute(\"aria-selected\",!1):s.removeAttribute(\"aria-selected\")),r||l||!t||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i)))},setDisabled:function(e){var t,i=e.disabled,s=e.element;s&&(t=s.firstChild,s.classList.toggle(V.DISABLED,i),t&&(B.major>=\"4\"&&t.classList.toggle(V.DISABLED,i),i?(t.setAttribute(\"aria-disabled\",i),t.setAttribute(\"tabindex\",-1)):(t.removeAttribute(\"aria-disabled\"),t.setAttribute(\"tabindex\",0))))},isDisabled:function(){return this.\$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.\$newElement[0].classList.add(V.DISABLED),this.\$button.addClass(V.DISABLED).attr(\"aria-disabled\",!0)):this.\$button[0].classList.contains(V.DISABLED)&&(this.\$newElement[0].classList.remove(V.DISABLED),this.\$button.removeClass(V.DISABLED).attr(\"aria-disabled\",!1))},clickListener:function(){var t=this,i=e(document);function s(e){if(t.multiple)t.deselectAll();else{var i=t.\$element[0],s=i.value,n=i.selectedIndex,o=i.options[n],l=!!o&&t.selectpicker.main.data[o.liIndex];l&&t.setSelected(l,!1),i.selectedIndex=0,I=[n,!1,s],t.\$element.triggerNative(\"change\")}t.\$newElement.hasClass(V.SHOW)&&(t.options.liveSearch&&t.\$searchbox.trigger(\"focus\"),t.createView(!1))}function n(){t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$menuInner.trigger(\"focus\")}function o(){t.dropdown&&t.dropdown._popper&&t.dropdown._popper.state?n():requestAnimationFrame(o)}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(){t.dropdown||\"4\"!==B.major||(t.dropdown=t.\$button.data(\"bs.dropdown\"),t.dropdown._menu=t.\$menu[0])})),this.\$button.on(\"click.bs.dropdown.data-api\",(function(e){if(t.options.allowClear){var i=e.target,n=t.\$clearButton[0];/MSIE|Trident/.test(window.navigator.userAgent)&&(i=document.elementFromPoint(e.clientX,e.clientY)),i!==n&&i.parentElement!==n||(e.stopImmediatePropagation(),s(e))}t.\$newElement.hasClass(V.SHOW)||t.setSize()})),this.\$element.on(\"shown\"+U,(function(){t.\$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.\$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),B.major>3?requestAnimationFrame(o):n()})),this.\$menuInner.on(\"mouseenter\",\"li a\",(function(e){var i=this.parentElement,s=t.isVirtual()?t.selectpicker.view.position0:0,n=Array.prototype.indexOf.call(i.parentElement.children,i),o=t.selectpicker.current.data[n+s];t.focusItem(i,o,!0)})),this.\$menuInner.on(\"click\",\"li a\",(function(i,s){var n=e(this),o=t.\$element[0],l=t.isVirtual()?t.selectpicker.view.position0:0,r=t.selectpicker.current.data[n.parent().index()+l],a=r.index,c=b.call(t),d=o.selectedIndex,h=o.options[d],p=!!h&&t.selectpicker.main.data[h.liIndex],u=!0;if(t.multiple&&1!==t.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!n.parent().hasClass(V.DISABLED)){var f=r.option,m=e(f),v=f.selected,w=m.parent(\"optgroup\"),k=w.find(\"option\"),x=t.options.maxOptions,y=w.data(\"maxOptions\")||!1;if(a===t.activeIndex&&(s=!0),s||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(t.setSelected(r,!v),t.focusedParent.focus(),!1!==x||!1!==y){var \$=x<g.call(t).length,S=y<w.find(\"option:selected\").length;if(x&&\$||y&&S)if(x&&1==x)o.selectedIndex=-1,f.selected=!0,t.setOptionStatus(!0);else if(y&&1==y){for(var E=0;E<k.length;E++){var C=k[E];C.selected=!1,t.setSelected(C.liIndex,!1)}f.selected=!0,t.setSelected(a,!0)}else{var O=\"string\"==typeof t.options.maxOptionsText?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,A=\"function\"==typeof O?O(x,y):O,T=A[0].replace(\"{n}\",x),z=A[1].replace(\"{n}\",y),D=e('<div class=\"notify\"></div>');A[2]&&(T=T.replace(\"{var}\",A[2][x>1?0:1]),z=z.replace(\"{var}\",A[2][y>1?0:1])),f.selected=!1,t.\$menu.append(D),x&&\$&&(D.append(e(\"<div>\"+T+\"</div>\")),u=!1,t.\$element.trigger(\"maxReached\"+U)),y&&S&&(D.append(e(\"<div>\"+z+\"</div>\")),u=!1,t.\$element.trigger(\"maxReachedGrp\"+U)),setTimeout((function(){t.setSelected(a,!1)}),10),D[0].classList.add(\"fadeOut\"),setTimeout((function(){D.remove()}),1050)}}}else p&&t.setSelected(p,!1),t.setSelected(r,!0);t.options.source.data&&t.\$element[0].appendChild(t.selectpicker.main.optionQueue),!t.multiple||t.multiple&&1===t.options.maxOptions?t.\$button.trigger(\"focus\"):t.options.liveSearch&&t.\$searchbox.trigger(\"focus\"),u&&(t.multiple||d!==o.selectedIndex)&&(I=[f.index,m.prop(\"selected\"),c],t.\$element.triggerNative(\"change\"))}})),this.\$menu.on(\"click\",\"li.\"+V.DISABLED+\" a, .\"+V.POPOVERHEADER+\", .\"+V.POPOVERHEADER+\" :not(.close)\",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!e(i.target).hasClass(\"close\")?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\"))})),this.\$menuInner.on(\"click\",\".divider, .dropdown-header\",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\")})),this.\$menu.on(\"click\",\".\"+V.POPOVERHEADER+\" .close\",(function(){t.\$button.trigger(\"click\")})),this.\$searchbox.on(\"click\",(function(e){e.stopPropagation()})),this.\$menu.on(\"click\",\".actions-btn\",(function(i){t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\"),i.preventDefault(),i.stopPropagation(),e(this).hasClass(\"bs-select-all\")?t.selectAll():t.deselectAll()})),this.\$button.on(\"focus\"+U,(function(e){var i=t.\$element[0].getAttribute(\"tabindex\");void 0!==i&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute(\"tabindex\",i),t.\$element[0].setAttribute(\"tabindex\",-1),t.selectpicker.view.tabindex=i)})).on(\"blur\"+U,(function(e){void 0!==t.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(t.\$element[0].setAttribute(\"tabindex\",t.selectpicker.view.tabindex),this.setAttribute(\"tabindex\",-1),t.selectpicker.view.tabindex=void 0)})),this.\$element.on(\"change\"+U,(function(){t.render(),t.\$element.trigger(\"changed\"+U,I),I=null})).on(\"focus\"+U,(function(){t.options.mobile||t.\$button[0].focus()}))},liveSearchListener:function(){var e=this;this.\$button.on(\"click.bs.dropdown.data-api\",(function(){e.\$searchbox.val()&&(e.\$searchbox.val(\"\"),e.selectpicker.search.previousValue=void 0)})),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 t=e.\$searchbox[0].value;if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],t)if(e.options.source.search)e.fetchData((function(i){e.render(),e.buildList(void 0,!0),e.createView(!0),Q.call(e,i,t)}),\"search\",0,t);else{var i=[],s=t.toUpperCase(),n={},o=[],l=e._searchStyle(),r=e.options.liveSearchNormalize;r&&(s=O(s));for(var a=0;a<e.selectpicker.main.data.length;a++){var c=e.selectpicker.main.data[a];n[a]||(n[a]=x(c,s,l,r)),n[a]&&void 0!==c.headerIndex&&-1===o.indexOf(c.headerIndex)&&(c.headerIndex>0&&(n[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),n[c.headerIndex]=!0,o.push(c.headerIndex),n[c.lastIndex+1]=!0),n[a]&&\"optgroup-label\"!==c.type&&o.push(a)}a=0;for(var d=o.length;a<d;a++){var h=o[a],p=o[a-1],u=(c=e.selectpicker.main.data[h],e.selectpicker.main.data[p]);(\"divider\"!==c.type||\"divider\"===c.type&&u&&\"divider\"!==u.type&&d-1!==a)&&(e.selectpicker.search.data.push(c),i.push(e.selectpicker.main.elements[h]))}e.activeIndex=void 0,e.noScroll=!0,e.\$menuInner.scrollTop(0),e.selectpicker.search.elements=i,e.createView(!0),Q.call(e,i,t)}else e.selectpicker.search.previousValue&&(e.\$menuInner.scrollTop(0),e.createView(!1));e.selectpicker.search.previousValue=t}))},_searchStyle:function(){return this.options.liveSearchStyle||\"contains\"},val:function(e){var t=this.\$element[0];if(void 0!==e){var i=g.call(this),s=b.call(this,i);I=[null,null,s],Array.isArray(e)||(e=[e]),e.map(String);for(var n=0;n<i.length;n++){var o=i[n];o&&-1===e.indexOf(String(o.value))&&this.setSelected(o,!1)}if(this.selectpicker.main.data.filter((function(t){return-1!==e.indexOf(String(t.value))&&(this.setSelected(t,!0),!0)}),this),this.options.source.data&&t.appendChild(this.selectpicker.main.optionQueue),this.\$element.trigger(\"changed\"+U,I),this.\$newElement.hasClass(V.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var l=(t.options[t.selectedIndex]||{}).liIndex;\"number\"==typeof l&&(this.setSelected(this.selectedIndex,!1),this.setSelected(l,!0))}return this.render(),I=null,this.\$element}return this.\$element.val()},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.\$element[0],i=0,s=0,n=b.call(this);t.classList.add(\"bs-select-hidden\");for(var o=0,l=this.selectpicker.current.data,r=l.length;o<r;o++){var a=l[o],c=a.option;c&&!a.disabled&&\"divider\"!==a.type&&(a.selected&&i++,c.selected=e,a.selected=e,!0===e&&s++)}t.classList.remove(\"bs-select-hidden\"),i!==s&&(this.setOptionStatus(),I=[null,null,n],this.\$element.triggerNative(\"change\"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e,t){var i,s=void 0===t;(e=e||window.event)&&e.stopPropagation(),!1===s&&(i=this.\$newElement[0].classList.contains(V.SHOW),s=!0===t&&!1===i||!1===t&&!0===i),s&&this.\$button.trigger(\"click.bs.dropdown.data-api\")},open:function(e){this.toggle(e,!0)},close:function(e){this.toggle(e,!1)},keydown:function(t){var i,s,n,o,l,r=e(this),a=r.hasClass(\"dropdown-toggle\"),c=(a?r.closest(\".dropdown\"):r.closest(j.MENU)).data(\"this\"),d=c.findLis(),h=!1,p=t.which===W.TAB&&!a&&!c.options.selectOnTab,u=F.test(t.which)||p,f=c.\$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(t.which>=112&&t.which<=123))if(!(s=c.\$menu.hasClass(V.SHOW))&&(u||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105||t.which>=65&&t.which<=90)&&(c.\$button.trigger(\"click.bs.dropdown.data-api\"),c.options.liveSearch))c.\$searchbox.trigger(\"focus\");else{if(t.which===W.ESCAPE&&s&&(t.preventDefault(),c.\$button.trigger(\"click.bs.dropdown.data-api\").trigger(\"focus\")),u){if(!d.length)return;-1!==(i=(n=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(n.parentElement.children,n):-1)&&c.defocusItem(n),t.which===W.ARROW_UP?(-1!==i&&i--,i+m<0&&(i+=d.length),c.selectpicker.view.canHighlight[i+m]||-1==(i=c.selectpicker.view.canHighlight.slice(0,i+m).lastIndexOf(!0)-m)&&(i=d.length-1)):(t.which===W.ARROW_DOWN||p)&&(++i+m>=c.selectpicker.view.canHighlight.length&&(i=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),t.preventDefault();var v=m+i;t.which===W.ARROW_UP?0===m&&i===d.length-1?(c.\$menuInner[0].scrollTop=c.\$menuInner[0].scrollHeight,v=c.selectpicker.current.elements.length-1):h=(l=(o=c.selectpicker.current.data[v]).position-o.height)<f:(t.which===W.ARROW_DOWN||p)&&(i===c.selectpicker.view.firstHighlightIndex?(c.\$menuInner[0].scrollTop=0,v=c.selectpicker.view.firstHighlightIndex):h=(l=(o=c.selectpicker.current.data[v]).position-c.sizeInfo.menuInnerHeight)>f),n=c.selectpicker.current.elements[v],c.activeIndex=c.selectpicker.current.data[v].index,c.focusItem(n),c.selectpicker.view.currentActive=n,h&&(c.\$menuInner[0].scrollTop=l),c.options.liveSearch?c.\$searchbox.trigger(\"focus\"):r.trigger(\"focus\")}else if(!r.is(\"input\")&&!G.test(t.which)||t.which===W.SPACE&&c.selectpicker.keydown.keyHistory){var g,b,w=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=H[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),b=c.selectpicker.keydown.keyHistory,/^(.)\\1+\$/.test(b)&&(b=b.charAt(0));for(var I=0;I<c.selectpicker.current.data.length;I++){var k=c.selectpicker.current.data[I];x(k,b,\"startsWith\",!0)&&c.selectpicker.view.canHighlight[I]&&w.push(k.index)}if(w.length){var y=0;d.removeClass(\"active\").find(\"a\").removeClass(\"active\"),1===b.length&&(-1===(y=w.indexOf(c.activeIndex))||y===w.length-1?y=0:y++),g=w[y],f-(o=c.selectpicker.main.data[g]).position>0?(l=o.position-o.height,h=!0):(l=o.position-c.sizeInfo.menuInnerHeight,h=o.position>f+c.sizeInfo.menuInnerHeight),n=c.selectpicker.main.elements[g],c.activeIndex=w[y],c.focusItem(n),n&&n.firstChild.focus(),h&&(c.\$menuInner[0].scrollTop=l),r.trigger(\"focus\")}}s&&(t.which===W.SPACE&&!c.selectpicker.keydown.keyHistory||t.which===W.ENTER||t.which===W.TAB&&c.options.selectOnTab)&&(t.which!==W.SPACE&&t.preventDefault(),c.options.liveSearch&&t.which===W.SPACE||(c.\$menuInner.find(\".active a\").trigger(\"click\",!0),r.trigger(\"focus\"),c.options.liveSearch||(t.preventDefault(),e(document).data(\"spaceSelect\",!0))))}},mobile:function(){this.options.mobile=!0,this.\$element[0].classList.add(\"mobile-device\")},refresh:function(){var t=this,i=e.extend({},this.options,c(this.\$element),this.\$element.data());this.options=i,this.options.source.data?(this.render(),this.buildList()):this.fetchData((function(){t.render(),t.buildList()})),this.checkDisabled(),this.setStyle(),this.setWidth(),this.setSize(!0),this.\$element.trigger(\"refreshed\"+U)},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.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.\$element.off(U).removeData(\"selectpicker\").removeClass(\"bs-select-hidden selectpicker\"),e(window).off(U+\".\"+this.selectId)}};var X=e.fn.selectpicker;function ee(){return B.major<5?e.fn.dropdown?(e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments):void 0:P.dataApiKeydownHandler}e.fn.selectpicker=J,e.fn.selectpicker.Constructor=Z,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=X,this},e(document).off(\"keydown.bs.dropdown.data-api\").on(\"keydown.bs.dropdown.data-api\",\":not(.bootstrap-select) > [\"+j.DATA_TOGGLE+\"]\",ee).on(\"keydown.bs.dropdown.data-api\",\":not(.bootstrap-select) > .dropdown-menu\",ee).on(\"keydown\"+U,\".bootstrap-select [\"+j.DATA_TOGGLE+'], .bootstrap-select [role=\"listbox\"], .bootstrap-select .bs-searchbox input',Z.prototype.keydown).on(\"focusin.modal\",\".bootstrap-select [\"+j.DATA_TOGGLE+'], .bootstrap-select [role=\"listbox\"], .bootstrap-select .bs-searchbox input',(function(e){e.stopPropagation()})),document.addEventListener(\"DOMContentLoaded\",(function(){e(\".selectpicker\").each((function(){var t=e(this);J.call(t,t.data())}))}))}(e)}.apply(t,s))||(e.exports=n)}}]);";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@public_path/build/300.1c6475cd.js";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array ();
    }

    public function getSourceContext()
    {
        return new Source("/*! For license information please see 300.1c6475cd.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[300],{70300:function(e,t,i){var s,n;void 0===this&&void 0!==window&&window,s=[i(19755)],void 0===(n=function(e){!function(e){\"use strict\";var t=[\"sanitize\",\"whiteList\",\"sanitizeFn\"],i=[\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"],s={\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",\"tabindex\",\"style\",/^aria-[\\w-]*\$/i],a:[\"target\",\"href\",\"title\",\"rel\"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|\$))/gi,o=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*\$/i,l=[\"title\",\"placeholder\"];function r(t,s){var l=t.nodeName.toLowerCase();if(-1!==e.inArray(l,s))return-1===e.inArray(l,i)||Boolean(t.nodeValue.match(n)||t.nodeValue.match(o));for(var r=e(s).filter((function(e,t){return t instanceof RegExp})),a=0,c=r.length;a<c;a++)if(l.match(r[a]))return!0;return!1}function a(e,t,i){if(i&&\"function\"==typeof i)return i(e);for(var s=Object.keys(t),n=0,o=e.length;n<o;n++)for(var l=e[n].querySelectorAll(\"*\"),a=0,c=l.length;a<c;a++){var d=l[a],h=d.nodeName.toLowerCase();if(-1!==s.indexOf(h))for(var p=[].slice.call(d.attributes),u=[].concat(t[\"*\"]||[],t[h]||[]),f=0,m=p.length;f<m;f++){var v=p[f];r(v,u)||d.removeAttribute(v.nodeName)}else d.parentNode.removeChild(d)}}function c(e){var t,i={};return l.forEach((function(s){(t=e.attr(s))&&(i[s]=t)})),!i.placeholder&&i.title&&(i.placeholder=i.title),i}\"classList\"in document.createElement(\"_\")||function(t){if(\"Element\"in t){var i=\"classList\",s=\"prototype\",n=t.Element[s],o=Object,l=function(){var t=e(this);return{add:function(e){return e=Array.prototype.slice.call(arguments).join(\" \"),t.addClass(e)},remove:function(e){return e=Array.prototype.slice.call(arguments).join(\" \"),t.removeClass(e)},toggle:function(e,i){return t.toggleClass(e,i)},contains:function(e){return t.hasClass(e)}}};if(o.defineProperty){var r={get:l,enumerable:!0,configurable:!0};try{o.defineProperty(n,i,r)}catch(e){void 0!==e.number&&-2146823252!==e.number||(r.enumerable=!1,o.defineProperty(n,i,r))}}else o[s].__defineGetter__&&n.__defineGetter__(i,l)}}(window);var d,h,p=document.createElement(\"_\");if(p.classList.add(\"c1\",\"c2\"),!p.classList.contains(\"c2\")){var u=DOMTokenList.prototype.add,f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,u.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,f.bind(this))}}if(p.classList.toggle(\"c3\",!1),p.classList.contains(\"c3\")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:m.call(this,e)}}function v(e,t){return e.length===t.length&&e.every((function(e,i){return e===t[i]}))}function g(){var e=this.selectpicker.main.data.filter((function(e){return!(!e.selected||this.options.hideDisabled&&e.disabled)}),this);if(this.options.source.data&&!this.multiple&&e.length>1){for(var t=0;t<e.length-1;t++)e[t].selected=!1;e=[e[e.length-1]]}return e}function b(e){for(var t,i=[],s=e||g.call(this),n=0,o=s.length;n<o;n++)(t=s[n]).disabled||i.push(void 0===t.value?t.text:t.value);return this.multiple?i:i.length?i[0]:null}p=null,String.prototype.startsWith||(d={}.toString,h=function(e){if(null==this)throw new TypeError;var t=String(this);if(e&&\"[object RegExp]\"==d.call(e))throw new TypeError;var i=t.length,s=String(e),n=s.length,o=arguments.length>1?arguments[1]:void 0,l=o?Number(o):0;l!=l&&(l=0);var r=Math.min(Math.max(l,0),i);if(n+r>i)return!1;for(var a=-1;++a<n;)if(t.charCodeAt(r+a)!=s.charCodeAt(a))return!1;return!0},Object.defineProperty?Object.defineProperty(String.prototype,\"startsWith\",{value:h,configurable:!0,writable:!0}):String.prototype.startsWith=h);var w={useDefault:!1,_set:e.valHooks.select.set};e.valHooks.select.set=function(t,i){return i&&!w.useDefault&&e(t).data(\"selected\",!0),w._set.apply(this,arguments)};var I=null,k=function(){try{return new Event(\"change\"),!0}catch(e){return!1}}();function x(e,t,i,s){for(var n=[\"display\",\"subtext\",\"tokens\"],o=!1,l=0;l<n.length;l++){var r=n[l],a=e[r];if(a&&(a=a.toString(),\"display\"===r&&(a=a.replace(/<[^>]+>/g,\"\")),s&&(a=O(a)),a=a.toUpperCase(),o=\"function\"==typeof i?i(a,t):\"contains\"===i?a.indexOf(t)>=0:a.startsWith(t)))break}return o}function y(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent&&(k?t=new Event(e,{bubbles:!0}):(t=document.createEvent(\"Event\")).initEvent(e,!0,!1),i.dispatchEvent(t))};var \$={À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"},S=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,E=RegExp(\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\u1ab0-\\\\u1aff\\\\u1dc0-\\\\u1dff]\",\"g\");function C(e){return \$[e]}function O(e){return(e=e.toString())&&e.replace(S,C).replace(E,\"\")}var A,T,z,D,N,L=(A={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\",\"`\":\"&#x60;\"},T=function(e){return A[e]},z=\"(?:\"+Object.keys(A).join(\"|\")+\")\",D=RegExp(z),N=RegExp(z,\"g\"),function(e){return e=null==e?\"\":\"\"+e,D.test(e)?e.replace(N,T):e}),H={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\"},W={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40},P=window.Dropdown||bootstrap.Dropdown;function R(){var t;try{t=e.fn.dropdown.Constructor.VERSION}catch(e){t=P.VERSION}return t}var B={success:!1,major:\"3\"};try{B.full=(R()||\"\").split(\" \")[0].split(\".\"),B.major=B.full[0],B.success=!0}catch(e){}var M=0,U=\".bs.select\",V={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\",ICONBASE:\"glyphicon\",TICKICON:\"glyphicon-ok\"},j={MENU:\".\"+V.MENU,DATA_TOGGLE:'data-toggle=\"dropdown\"'},_={div:document.createElement(\"div\"),span:document.createElement(\"span\"),i:document.createElement(\"i\"),subtext:document.createElement(\"small\"),a:document.createElement(\"a\"),li:document.createElement(\"li\"),whitespace:document.createTextNode(\" \"),fragment:document.createDocumentFragment(),option:document.createElement(\"option\")};_.selectedOption=_.option.cloneNode(!1),_.selectedOption.setAttribute(\"selected\",!0),_.noResults=_.li.cloneNode(!1),_.noResults.className=\"no-results\",_.a.setAttribute(\"role\",\"option\"),_.a.className=\"dropdown-item\",_.subtext.className=\"text-muted\",_.text=_.span.cloneNode(!1),_.text.className=\"text\",_.checkMark=_.span.cloneNode(!1);var F=new RegExp(W.ARROW_UP+\"|\"+W.ARROW_DOWN),G=new RegExp(\"^\"+W.TAB+\"\$|\"+W.ESCAPE),q={li:function(e,t,i){var s=_.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?s.appendChild(e):s.innerHTML=e),void 0!==t&&\"\"!==t&&(s.className=t),null!=i&&s.classList.add(\"optgroup-\"+i),s},a:function(e,t,i){var s=_.a.cloneNode(!0);return e&&(11===e.nodeType?s.appendChild(e):s.insertAdjacentHTML(\"beforeend\",e)),void 0!==t&&\"\"!==t&&s.classList.add.apply(s.classList,t.split(/\\s+/)),i&&s.setAttribute(\"style\",i),s},text:function(e,t){var i,s,n=_.text.cloneNode(!1);if(e.content)n.innerHTML=e.content;else{if(n.textContent=e.text,e.icon){var o=_.whitespace.cloneNode(!1);(s=(!0===t?_.i:_.span).cloneNode(!1)).className=this.options.iconBase+\" \"+e.icon,_.fragment.appendChild(s),_.fragment.appendChild(o)}e.subtext&&((i=_.subtext.cloneNode(!1)).textContent=e.subtext,n.appendChild(i))}if(!0===t)for(;n.childNodes.length>0;)_.fragment.appendChild(n.childNodes[0]);else _.fragment.appendChild(n);return _.fragment},label:function(e){var t,i,s=_.text.cloneNode(!1);if(s.innerHTML=e.display,e.icon){var n=_.whitespace.cloneNode(!1);(i=_.span.cloneNode(!1)).className=this.options.iconBase+\" \"+e.icon,_.fragment.appendChild(i),_.fragment.appendChild(n)}return e.subtext&&((t=_.subtext.cloneNode(!1)).textContent=e.subtext,s.appendChild(t)),_.fragment.appendChild(s),_.fragment}},K={fromOption:function(e,t){var i;switch(t){case\"divider\":i=\"true\"===e.getAttribute(\"data-divider\");break;case\"text\":i=e.textContent;break;case\"label\":i=e.label;break;case\"style\":i=e.style.cssText;break;case\"content\":case\"tokens\":case\"subtext\":case\"icon\":i=e.getAttribute(\"data-\"+t)}return i},fromDataSource:function(e,t){var i;switch(t){case\"text\":case\"label\":i=e.text||e.value||\"\";break;case\"divider\":case\"style\":case\"content\":case\"tokens\":case\"subtext\":case\"icon\":i=e[t]}return i}};function Q(e,t){e.length||(_.noResults.innerHTML=this.options.noneResultsText.replace(\"{0}\",'\"'+L(t)+'\"'),this.\$menuInner[0].firstChild.appendChild(_.noResults))}function Y(e){return!(e.hidden||this.options.hideDisabled&&e.disabled)}var Z=function(t,i){var s=this;w.useDefault||(e.valHooks.select.set=w._set,w.useDefault=!0),this.\$element=e(t),this.\$newElement=null,this.\$button=null,this.\$menu=null,this.options=i,this.selectpicker={main:{optionQueue:_.fragment.cloneNode(!1)},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:\"\",resetKeyHistory:{start:function(){return setTimeout((function(){s.selectpicker.keydown.keyHistory=\"\"}),800)}}}},this.sizeInfo={};var n=this.options.windowPadding;\"number\"==typeof n&&(this.options.windowPadding=[n,n,n,n]),this.val=Z.prototype.val,this.render=Z.prototype.render,this.refresh=Z.prototype.refresh,this.setStyle=Z.prototype.setStyle,this.selectAll=Z.prototype.selectAll,this.deselectAll=Z.prototype.deselectAll,this.destroy=Z.prototype.destroy,this.remove=Z.prototype.remove,this.show=Z.prototype.show,this.hide=Z.prototype.hide,this.init()};function J(i){var s,n=arguments,o=i;if([].shift.apply(n),!B.success){try{B.full=(R()||\"\").split(\" \")[0].split(\".\")}catch(e){Z.BootstrapVersion?B.full=Z.BootstrapVersion.split(\" \")[0].split(\".\"):(B.full=[B.major,\"0\",\"0\"],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.\",e))}B.major=B.full[0],B.success=!0}if(B.major>=\"4\"){var l=[];Z.DEFAULTS.style===V.BUTTONCLASS&&l.push({name:\"style\",className:\"BUTTONCLASS\"}),Z.DEFAULTS.iconBase===V.ICONBASE&&l.push({name:\"iconBase\",className:\"ICONBASE\"}),Z.DEFAULTS.tickIcon===V.TICKICON&&l.push({name:\"tickIcon\",className:\"TICKICON\"}),V.DIVIDER=\"dropdown-divider\",V.SHOW=\"show\",V.BUTTONCLASS=\"btn-light\",V.POPOVERHEADER=\"popover-header\",V.ICONBASE=\"\",V.TICKICON=\"bs-ok-default\";for(var r=0;r<l.length;r++)i=l[r],Z.DEFAULTS[i.name]=V[i.className]}B.major>\"4\"&&(j.DATA_TOGGLE='data-bs-toggle=\"dropdown\"');var a=this.each((function(){var i=e(this);if(i.is(\"select\")){var l=i.data(\"selectpicker\"),r=\"object\"==typeof o&&o;if(r.title&&(r.placeholder=r.title),l){if(r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(l.options[a]=r[a])}else{var d=i.data();for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&-1!==e.inArray(h,t)&&delete d[h];var p=e.extend({},Z.DEFAULTS,e.fn.selectpicker.defaults||{},c(i),d,r);p.template=e.extend({},Z.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},d.template,r.template),i.data(\"selectpicker\",l=new Z(this,p))}\"string\"==typeof o&&(s=l[o]instanceof Function?l[o].apply(l,n):l.options[o])}}));return void 0!==s?s:a}Z.VERSION=\"1.14.0-beta2\",Z.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\",source:{},chunkSize:40,doneButton:!1,doneButtonText:\"Close\",multipleSeparator:\", \",styleBase:\"btn\",style:V.BUTTONCLASS,size:\"auto\",title:null,placeholder:null,allowClear:!1,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:V.ICONBASE,tickIcon:V.TICKICON,showTick:!1,template:{caret:'<span class=\"caret\"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:s},Z.prototype={constructor:Z,init:function(){var t=this,i=this.\$element.attr(\"id\"),s=this.\$element[0],n=s.form;M++,this.selectId=\"bs-select-\"+M,s.classList.add(\"bs-select-hidden\"),this.multiple=this.\$element.prop(\"multiple\"),this.autofocus=this.\$element.prop(\"autofocus\"),s.classList.contains(\"show-tick\")&&(this.options.showTick=!0),this.\$newElement=this.createDropdown(),this.\$element.after(this.\$newElement).prependTo(this.\$newElement),n&&null===s.form&&(n.id||(n.id=\"form-\"+this.selectId),s.setAttribute(\"form\",n.id)),this.\$button=this.\$newElement.children(\"button\"),this.options.allowClear&&(this.\$clearButton=this.\$button.children(\".bs-select-clear-selected\")),this.\$menu=this.\$newElement.children(j.MENU),this.\$menuInner=this.\$menu.children(\".inner\"),this.\$searchbox=this.\$menu.find(\"input\"),s.classList.remove(\"bs-select-hidden\"),this.fetchData((function(){t.render(!0),t.buildList(),requestAnimationFrame((function(){t.\$element.trigger(\"loaded\"+U)}))})),this.fetchData((function(){t.render(!0),t.buildList(),requestAnimationFrame((function(){t.\$element.trigger(\"loaded\"+U)}))})),!0===this.options.dropdownAlignRight&&this.\$menu[0].classList.add(V.MENURIGHT),void 0!==i&&this.\$button.attr(\"data-id\",i),this.checkDisabled(),this.clickListener(),B.major>4&&(this.dropdown=new P(this.\$button[0])),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.\$searchbox[0]):this.focusedParent=this.\$menuInner[0],this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.\$element.on(\"hide\"+U,(function(){if(t.isVirtual()){var e=t.\$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}})),this.\$menu.data(\"this\",this),this.\$newElement.data(\"this\",this),this.options.mobile&&this.mobile(),this.\$newElement.on({\"hide.bs.dropdown\":function(e){t.\$element.trigger(\"hide\"+U,e)},\"hidden.bs.dropdown\":function(e){t.\$element.trigger(\"hidden\"+U,e)},\"show.bs.dropdown\":function(e){t.\$element.trigger(\"show\"+U,e)},\"shown.bs.dropdown\":function(e){t.\$element.trigger(\"shown\"+U,e)}}),s.hasAttribute(\"required\")&&this.\$element.on(\"invalid\"+U,(function(){t.\$button[0].classList.add(\"bs-invalid\"),t.\$element.on(\"shown\"+U+\".invalid\",(function(){t.\$element.val(t.\$element.val()).off(\"shown\"+U+\".invalid\")})).on(\"rendered\"+U,(function(){this.validity.valid&&t.\$button[0].classList.remove(\"bs-invalid\"),t.\$element.off(\"rendered\"+U)})),t.\$button.on(\"blur\"+U,(function(){t.\$element.trigger(\"focus\").trigger(\"blur\"),t.\$button.off(\"blur\"+U)}))})),n&&e(n).on(\"reset\"+U,(function(){requestAnimationFrame((function(){t.render()}))}))},createDropdown:function(){var t=this.multiple||this.options.showTick?\" show-tick\":\"\",i=this.multiple?' aria-multiselectable=\"true\"':\"\",s=\"\",n=this.autofocus?\" autofocus\":\"\";B.major<4&&this.\$element.parent().hasClass(\"input-group\")&&(s=\" input-group-btn\");var o,l=\"\",r=\"\",a=\"\",c=\"\",d=\"\";return this.options.header&&(l='<div class=\"'+V.POPOVERHEADER+'\"><button type=\"button\" class=\"close\" aria-hidden=\"true\">&times;</button>'+this.options.header+\"</div>\"),this.options.liveSearch&&(r='<div class=\"bs-searchbox\"><input type=\"search\" class=\"form-control\" autocomplete=\"off\"'+(null===this.options.liveSearchPlaceholder?\"\":' placeholder=\"'+L(this.options.liveSearchPlaceholder)+'\"')+' role=\"combobox\" aria-label=\"Search\" aria-controls=\"'+this.selectId+'\" aria-autocomplete=\"list\"></div>'),this.multiple&&this.options.actionsBox&&(a='<div class=\"bs-actionsbox\"><div class=\"btn-group btn-group-sm\"><button type=\"button\" class=\"actions-btn bs-select-all btn '+V.BUTTONCLASS+'\">'+this.options.selectAllText+'</button><button type=\"button\" class=\"actions-btn bs-deselect-all btn '+V.BUTTONCLASS+'\">'+this.options.deselectAllText+\"</button></div></div>\"),this.multiple&&this.options.doneButton&&(c='<div class=\"bs-donebutton\"><div class=\"btn-group\"><button type=\"button\" class=\"btn btn-sm '+V.BUTTONCLASS+'\">'+this.options.doneButtonText+\"</button></div></div>\"),this.options.allowClear&&(d='<span class=\"close bs-select-clear-selected\" title=\"'+this.options.deselectAllText+'\"><span>&times;</span>'),o='<div class=\"dropdown bootstrap-select'+t+s+'\"><button type=\"button\" tabindex=\"-1\" class=\"'+this.options.styleBase+' dropdown-toggle\" '+(\"static\"===this.options.display?'data-display=\"static\"':\"\")+j.DATA_TOGGLE+n+' role=\"combobox\" aria-owns=\"'+this.selectId+'\" aria-haspopup=\"listbox\" aria-expanded=\"false\"><div class=\"filter-option\"><div class=\"filter-option-inner\"><div class=\"filter-option-inner-inner\">&nbsp;</div></div> </div>'+d+\"</span>\"+(B.major>=\"4\"?\"\":'<span class=\"bs-caret\">'+this.options.template.caret+\"</span>\")+'</button><div class=\"'+V.MENU+\" \"+(B.major>=\"4\"?\"\":V.SHOW)+'\">'+l+r+a+'<div class=\"inner '+V.SHOW+'\" role=\"listbox\" id=\"'+this.selectId+'\" tabindex=\"-1\" '+i+'><ul class=\"'+V.MENU+\" inner \"+(B.major>=\"4\"?V.SHOW:\"\")+'\" role=\"presentation\"></ul></div>'+c+\"</div></div>\",e(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;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),i&&(this.selectpicker.view.size++,t.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=e)),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.data.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,i,s){var n,o,l=this,r=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(s)r=this.\$menuInner[0].scrollTop;else if(!l.multiple){var d=l.\$element[0],h=(d.options[d.selectedIndex]||{}).liIndex;if(\"number\"==typeof h&&!1!==l.options.size){var p=l.selectpicker.main.data[h],u=p&&p.position;u&&(r=u-(l.sizeInfo.menuInnerHeight+l.sizeInfo.liHeight)/2)}}function f(e,i){var s,r,d,h,p,u,m,g,b=l.selectpicker.current.data.length,w=[],I=!0,k=l.isVirtual();l.selectpicker.view.scrollTop=e,s=l.options.chunkSize,r=Math.ceil(b/s)||1;for(var x=0;x<r;x++){var y=(x+1)*s;if(x===r-1&&(y=b),w[x]=[x*s+(x?1:0),y],!b)break;void 0===p&&e-1<=l.selectpicker.current.data[y-1].position-l.sizeInfo.menuInnerHeight&&(p=x)}if(void 0===p&&(p=0),u=[l.selectpicker.view.position0,l.selectpicker.view.position1],d=Math.max(0,p-1),h=Math.min(r-1,p+1),l.selectpicker.view.position0=!1===k?0:Math.max(0,w[d][0])||0,l.selectpicker.view.position1=!1===k?b:Math.min(b,w[h][1])||0,m=u[0]!==l.selectpicker.view.position0||u[1]!==l.selectpicker.view.position1,void 0!==l.activeIndex&&(o=(l.selectpicker.main.data[l.prevActiveIndex]||{}).element,c=(l.selectpicker.main.data[l.activeIndex]||{}).element,n=(l.selectpicker.main.data[l.selectedIndex]||{}).element,i&&(l.activeIndex!==l.selectedIndex&&l.defocusItem(c),l.activeIndex=void 0),l.activeIndex&&l.activeIndex!==l.selectedIndex&&l.defocusItem(n)),void 0!==l.prevActiveIndex&&l.prevActiveIndex!==l.activeIndex&&l.prevActiveIndex!==l.selectedIndex&&l.defocusItem(o),i||m){if(g=l.selectpicker.view.visibleElements?l.selectpicker.view.visibleElements.slice():[],l.selectpicker.view.visibleElements=!1===k?l.selectpicker.current.elements:l.selectpicker.current.elements.slice(l.selectpicker.view.position0,l.selectpicker.view.position1),l.setOptionStatus(),(t||!1===k&&i)&&(I=!v(g,l.selectpicker.view.visibleElements)),(i||!0===k)&&I){var \$,S,E=l.\$menuInner[0],C=document.createDocumentFragment(),O=E.firstChild.cloneNode(!1),A=l.selectpicker.view.visibleElements,T=[];E.replaceChild(O,E.firstChild),x=0;for(var z=A.length;x<z;x++){var D,N,L=A[x];l.options.sanitize&&(D=L.lastChild)&&(N=l.selectpicker.current.data[x+l.selectpicker.view.position0])&&N.content&&!N.sanitized&&(T.push(D),N.sanitized=!0),C.appendChild(L)}if(l.options.sanitize&&T.length&&a(T,l.options.whiteList,l.options.sanitizeFn),!0===k?(\$=0===l.selectpicker.view.position0?0:l.selectpicker.current.data[l.selectpicker.view.position0-1].position,S=l.selectpicker.view.position1>b-1?0:l.selectpicker.current.data[b-1].position-l.selectpicker.current.data[l.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=\$+\"px\",E.firstChild.style.marginBottom=S+\"px\"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(C),!0===k&&l.sizeInfo.hasScrollBar){var H=E.firstChild.offsetWidth;if(i&&H<l.sizeInfo.menuInnerInnerWidth&&l.sizeInfo.totalMenuWidth>l.sizeInfo.selectWidth)E.firstChild.style.minWidth=l.sizeInfo.menuInnerInnerWidth+\"px\";else if(H>l.sizeInfo.menuInnerInnerWidth){l.\$menu[0].style.minWidth=0;var W=E.firstChild.offsetWidth;W>l.sizeInfo.menuInnerInnerWidth&&(l.sizeInfo.menuInnerInnerWidth=W,E.firstChild.style.minWidth=l.sizeInfo.menuInnerInnerWidth+\"px\"),l.\$menu[0].style.minWidth=\"\"}}}(!t&&l.options.source.load||t&&l.options.source.search)&&p===r-1&&l.fetchData((function(){l.render(),l.buildList(b,t),l.setPositionData(),f(e)}),t?\"search\":\"load\",p+1,t?l.selectpicker.search.previousValue:void 0)}if(l.prevActiveIndex=l.activeIndex,l.options.liveSearch){if(t&&i){var P,R=0;l.selectpicker.view.canHighlight[R]||(R=1+l.selectpicker.view.canHighlight.slice(1).indexOf(!0)),P=l.selectpicker.view.visibleElements[R],l.defocusItem(l.selectpicker.view.currentActive),l.activeIndex=(l.selectpicker.current.data[R]||{}).index,l.focusItem(P)}}else l.\$menuInner.trigger(\"focus\")}f(r,!0),this.\$menuInner.off(\"scroll.createView\").on(\"scroll.createView\",(function(e,t){l.noScroll||f(this.scrollTop,t),l.noScroll=!1})),e(window).off(\"resize\"+U+\".\"+this.selectId+\".createView\").on(\"resize\"+U+\".\"+this.selectId+\".createView\",(function(){l.\$newElement.hasClass(V.SHOW)&&f(l.\$menuInner[0].scrollTop)}))},focusItem:function(e,t,i){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var s=e.firstChild;s&&(s.setAttribute(\"aria-setsize\",this.selectpicker.view.size),s.setAttribute(\"aria-posinset\",t.posinset),!0!==i&&(this.focusedParent.setAttribute(\"aria-activedescendant\",s.id),e.classList.add(\"active\"),s.classList.add(\"active\")))}},defocusItem:function(e){e&&(e.classList.remove(\"active\"),e.firstChild&&e.firstChild.classList.remove(\"active\"))},setPlaceholder:function(){var e=this,t=!1;if((this.options.placeholder||this.options.allowClear)&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement(\"option\")),t=!0;var i=this.\$element[0],s=!1,n=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,l=i.options[o],r=i.querySelector(\"select > *:not(:disabled)\"),a=r?r.index:0,c=window.performance&&window.performance.getEntriesByType(\"navigation\"),d=c&&c.length?\"back_forward\"!==c[0].type:2!==window.performance.navigation.type;n&&(this.selectpicker.view.titleOption.className=\"bs-title-option\",this.selectpicker.view.titleOption.value=\"\",s=!l||o===a&&!1===l.defaultSelected&&void 0===this.\$element.data(\"selected\")),(n||0!==this.selectpicker.view.titleOption.index)&&i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),s&&d?i.selectedIndex=0:\"complete\"!==document.readyState&&window.addEventListener(\"pageshow\",(function(){e.selectpicker.view.displayedValue!==i.value&&e.render()}))}return t},fetchData:function(e,t,i,s){t=t||\"data\";var n,o=this,l=this.options.source[t];l?(this.options.virtualScroll=!0,\"function\"==typeof l?l.call(this,(function(i){n=o.buildData(i,t),e.call(o,n)}),i,s):Array.isArray(l)&&(n=o.buildData(l,t),e.call(o,n))):(n=this.buildData(!1,t),e.call(o,n))},buildData:function(e,t){var i=!1===e?K.fromOption:K.fromDataSource,s=':not([hidden]):not([data-hidden=\"true\"])',n=[],o=0,l=0,r=this.setPlaceholder()&&!e?1:0;\"load\"===t?o=this.selectpicker.main.data.length:\"search\"===t&&(o=this.selectpicker.search.data.length),this.options.hideDisabled&&(s+=\":not(:disabled)\");var a=e?e.filter(Y,this):this.\$element[0].querySelectorAll(\"select > *\"+s);function c(e){var t=n[n.length-1];t&&\"divider\"===t.type&&(t.optID||e.optID)||((e=e||{}).type=\"divider\",n.push(e))}function d(e,t){if((t=t||{}).divider=i(e,\"divider\"),!0===t.divider)c({optID:t.optID});else{var s=n.length+o,l=i(e,\"style\"),r=l?L(l):\"\",a=(e.className||\"\")+(t.optgroupClass||\"\");t.optID&&(a=\"opt \"+a),t.optionClass=a.trim(),t.inlineStyle=r,t.text=i(e,\"text\"),t.content=i(e,\"content\"),t.tokens=i(e,\"tokens\"),t.subtext=i(e,\"subtext\"),t.icon=i(e,\"icon\"),t.display=t.content||t.text,t.value=void 0===e.value?e.text:e.value,t.type=\"option\",t.index=s,t.option=e.option?e.option:e,t.option.liIndex=s,t.selected=!!e.selected,t.disabled=t.disabled||!!e.disabled,n.push(t)}}function h(t,o){var a=o[t],h=!(t-1<r)&&o[t-1],p=o[t+1],u=e?a.children.filter(Y,this):a.querySelectorAll(\"option\"+s);if(u.length){var m,v,g={display:L(i(f,\"label\")),subtext:i(a,\"subtext\"),icon:i(a,\"icon\"),type:\"optgroup-label\",optgroupClass:\" \"+(a.className||\"\")};l++,h&&c({optID:l}),g.optID=l,n.push(g);for(var b=0,w=u.length;b<w;b++){var I=u[b];0===b&&(v=(m=n.length-1)+w),d(I,{headerIndex:m,lastIndex:v,optID:g.optID,optgroupClass:g.optgroupClass,disabled:a.disabled})}p&&c({optID:l})}}for(var p=a.length,u=r;u<p;u++){var f=a[u],m=f.children;m&&m.length?h.call(this,r,a):d.call(this,f,{})}switch(t){case\"data\":this.selectpicker.main.data=this.selectpicker.current.data=n;break;case\"load\":Array.prototype.push.apply(this.selectpicker.main.data,n),this.selectpicker.current.data=this.selectpicker.main.data;break;case\"search\":Array.prototype.push.apply(this.selectpicker.search.data,n)}return n},buildList:function(e,t){var i=this,s=t?this.selectpicker.search.data:this.selectpicker.main.data,n=[],o=0;function l(e,t){var s,n=0;switch(t.type){case\"divider\":s=q.li(!1,V.DIVIDER,t.optID?t.optID+\"div\":void 0);break;case\"option\":(s=q.li(q.a(q.text.call(i,t),t.optionClass,t.inlineStyle),\"\",t.optID)).firstChild&&(s.firstChild.id=i.selectId+\"-\"+t.index);break;case\"optgroup-label\":s=q.li(q.label.call(i,t),\"dropdown-header\"+t.optgroupClass,t.optID)}t.element=s,e.push(s),t.display&&(n+=t.display.length),t.subtext&&(n+=t.subtext.length),t.icon&&(n+=1),n>o&&(o=n,i.selectpicker.view.widestOption=e[e.length-1])}!i.options.showTick&&!i.multiple||_.checkMark.parentNode||(_.checkMark.className=this.options.iconBase+\" \"+i.options.tickIcon+\" check-mark\",_.a.appendChild(_.checkMark));for(var r=e||0,a=s.length,c=r;c<a;c++)l(n,s[c]);e?t?Array.prototype.push.apply(this.selectpicker.search.elements,n):(Array.prototype.push.apply(this.selectpicker.main.elements,n),this.selectpicker.current.elements=this.selectpicker.main.elements):t?this.selectpicker.search.elements=n:this.selectpicker.main.elements=this.selectpicker.current.elements=n},findLis:function(){return this.\$menuInner.find(\".inner > li\")},render:function(e){var t,i,s=this,n=this.\$element[0],o=this.setPlaceholder()&&0===n.selectedIndex,l=g.call(this),r=l.length,c=b.call(this,l),d=this.\$button[0],h=d.querySelector(\".filter-option-inner-inner\"),p=document.createTextNode(this.options.multipleSeparator),u=_.fragment.cloneNode(!1),f=!1;function m(e){e.selected?s.createOption(e,!0):e.children&&e.children.length&&e.children.map(m)}if(this.options.source.data&&e&&(l.map(m),n.appendChild(this.selectpicker.main.optionQueue),o&&(o=0===n.selectedIndex)),d.classList.toggle(\"bs-placeholder\",s.multiple?!r:!c&&0!==c),s.multiple||1!==l.length||(s.selectpicker.view.displayedValue=c),\"static\"===this.options.selectedTextFormat)u=q.text.call(this,{text:this.options.placeholder},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf(\"count\")&&r>1)&&(t=(i=this.options.selectedTextFormat.split(\">\")).length>1&&r>i[1]||1===i.length&&r>=2),!1===t){if(!o){for(var v=0;v<r&&v<50;v++){var w=l[v],I={};w&&(this.multiple&&v>0&&u.appendChild(p.cloneNode(!1)),w.title?I.text=w.title:w.content&&s.options.showContent?(I.content=w.content.toString(),f=!0):(s.options.showIcon&&(I.icon=w.icon),s.options.showSubtext&&!s.multiple&&w.subtext&&(I.subtext=\" \"+w.subtext),I.text=w.text.trim()),u.appendChild(q.text.call(this,I,!0)))}r>49&&u.appendChild(document.createTextNode(\"...\"))}}else{var k=':not([hidden]):not([data-hidden=\"true\"]):not([data-divider=\"true\"])';this.options.hideDisabled&&(k+=\":not(:disabled)\");var x=this.\$element[0].querySelectorAll(\"select > option\"+k+\", optgroup\"+k+\" option\"+k).length,y=\"function\"==typeof this.options.countSelectedText?this.options.countSelectedText(r,x):this.options.countSelectedText;u=q.text.call(this,{text:y.replace(\"{0}\",r.toString()).replace(\"{1}\",x.toString())},!0)}if(u.childNodes.length||(u=q.text.call(this,{text:this.options.placeholder?this.options.placeholder:this.options.noneSelectedText},!0)),d.title=u.textContent.replace(/<[^>]*>?/g,\"\").trim(),this.options.sanitize&&f&&a([u],s.options.whiteList,s.options.sanitizeFn),h.innerHTML=\"\",h.appendChild(u),B.major<4&&this.\$newElement[0].classList.contains(\"bs3-has-addon\")){var \$=d.querySelector(\".filter-expand\"),S=h.cloneNode(!0);S.className=\"filter-expand\",\$?d.replaceChild(S,\$):d.appendChild(S)}this.\$element.trigger(\"rendered\"+U)},setStyle:function(e,t){var i,s=this.\$button[0],n=this.\$newElement[0],o=this.options.style.trim();this.\$element.attr(\"class\")&&this.\$newElement.addClass(this.\$element.attr(\"class\").replace(/selectpicker|mobile-device|bs-select-hidden|validate\\[.*\\]/gi,\"\")),B.major<4&&(n.classList.add(\"bs3\"),n.parentNode.classList&&n.parentNode.classList.contains(\"input-group\")&&(n.previousElementSibling||n.nextElementSibling)&&(n.previousElementSibling||n.nextElementSibling).classList.contains(\"input-group-addon\")&&n.classList.add(\"bs3-has-addon\")),i=e?e.trim():o,\"add\"==t?i&&s.classList.add.apply(s.classList,i.split(\" \")):\"remove\"==t?i&&s.classList.remove.apply(s.classList,i.split(\" \")):(o&&s.classList.remove.apply(s.classList,o.split(\" \")),i&&s.classList.add.apply(s.classList,i.split(\" \")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i,s=_.div.cloneNode(!1),n=_.div.cloneNode(!1),o=_.div.cloneNode(!1),l=document.createElement(\"ul\"),r=_.li.cloneNode(!1),a=_.li.cloneNode(!1),c=_.a.cloneNode(!1),d=_.span.cloneNode(!1),h=this.options.header&&this.\$menu.find(\".\"+V.POPOVERHEADER).length>0?this.\$menu.find(\".\"+V.POPOVERHEADER)[0].cloneNode(!0):null,p=this.options.liveSearch?_.div.cloneNode(!1):null,u=this.options.actionsBox&&this.multiple&&this.\$menu.find(\".bs-actionsbox\").length>0?this.\$menu.find(\".bs-actionsbox\")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&this.\$menu.find(\".bs-donebutton\").length>0?this.\$menu.find(\".bs-donebutton\")[0].cloneNode(!0):null,m=this.\$element[0].options[0];if(this.sizeInfo.selectWidth=this.\$newElement[0].offsetWidth,d.className=\"text\",c.className=\"dropdown-item \"+(m?m.className:\"\"),s.className=this.\$menu[0].parentNode.className+\" \"+V.SHOW,s.style.width=0,\"auto\"===this.options.width&&(n.style.minWidth=0),n.className=V.MENU+\" \"+V.SHOW,o.className=\"inner \"+V.SHOW,l.className=V.MENU+\" inner \"+(B.major>=\"4\"?V.SHOW:\"\"),r.className=V.DIVIDER,a.className=\"dropdown-header\",d.appendChild(document.createTextNode(\"​\")),this.selectpicker.current.data.length)for(var v=0;v<this.selectpicker.current.data.length;v++){var g=this.selectpicker.current.data[v];if(\"option\"===g.type){i=g.element;break}}else i=_.li.cloneNode(!1),c.appendChild(d),i.appendChild(c);if(a.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&l.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),l.appendChild(i),l.appendChild(r),l.appendChild(a),h&&n.appendChild(h),p){var b=document.createElement(\"input\");p.className=\"bs-searchbox\",b.className=\"form-control\",p.appendChild(b),n.appendChild(p)}u&&n.appendChild(u),o.appendChild(l),n.appendChild(o),f&&n.appendChild(f),s.appendChild(n),document.body.appendChild(s);var w,I=i.offsetHeight,k=a?a.offsetHeight:0,x=h?h.offsetHeight:0,\$=p?p.offsetHeight:0,S=u?u.offsetHeight:0,E=f?f.offsetHeight:0,C=e(r).outerHeight(!0),O=window.getComputedStyle(n),A=n.offsetWidth,T={vert:y(O.paddingTop)+y(O.paddingBottom)+y(O.borderTopWidth)+y(O.borderBottomWidth),horiz:y(O.paddingLeft)+y(O.paddingRight)+y(O.borderLeftWidth)+y(O.borderRightWidth)},z={vert:T.vert+y(O.marginTop)+y(O.marginBottom)+2,horiz:T.horiz+y(O.marginLeft)+y(O.marginRight)+2};o.style.overflowY=\"scroll\",w=n.offsetWidth-A,document.body.removeChild(s),this.sizeInfo.liHeight=I,this.sizeInfo.dropdownHeaderHeight=k,this.sizeInfo.headerHeight=x,this.sizeInfo.searchHeight=\$,this.sizeInfo.actionsHeight=S,this.sizeInfo.doneButtonHeight=E,this.sizeInfo.dividerHeight=C,this.sizeInfo.menuPadding=T,this.sizeInfo.menuExtras=z,this.sizeInfo.menuWidth=A,this.sizeInfo.menuInnerInnerWidth=A-T.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=w,this.sizeInfo.selectHeight=this.\$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,i=this,s=e(window),n=i.\$newElement.offset(),o=e(i.options.container);i.options.container&&o.length&&!o.is(\"body\")?((t=o.offset()).top+=parseInt(o.css(\"borderTopWidth\")),t.left+=parseInt(o.css(\"borderLeftWidth\"))):t={top:0,left:0};var l=i.options.windowPadding;this.sizeInfo.selectOffsetTop=n.top-t.top-s.scrollTop(),this.sizeInfo.selectOffsetBot=s.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-l[2],this.sizeInfo.selectOffsetLeft=n.left-t.left-s.scrollLeft(),this.sizeInfo.selectOffsetRight=s.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-l[1],this.sizeInfo.selectOffsetTop-=l[0],this.sizeInfo.selectOffsetLeft-=l[3]},setMenuSize:function(e){this.getSelectPosition();var t,i,s,n,o,l,r,a,c=this.sizeInfo.selectWidth,d=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,p=this.sizeInfo.searchHeight,u=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,v=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(r=d*this.selectpicker.current.data.length+v.vert,a=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(a=this.selectpicker.dropup),this.\$newElement.toggleClass(V.DROPUP,a),this.selectpicker.dropup=a),\"auto\"===this.options.size)n=this.selectpicker.current.data.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,s=n+h+p+u+f,l=Math.max(n-v.vert,0),this.\$newElement.hasClass(V.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=i,t=i-h-p-u-f-v.vert;else if(this.options.size&&\"auto\"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var b=0;b<this.options.size;b++)\"divider\"===this.selectpicker.current.data[b].type&&g++;t=(i=d*this.options.size+g*m+v.vert)-v.vert,o=i+h+p+u+f,s=l=\"\"}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=Math.max(t,1),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),\"auto\"===this.options.dropdownAlignRight&&this.\$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),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=this,s=e(window);this.setMenuSize(),this.options.liveSearch&&this.\$searchbox.off(\"input.setMenuSize propertychange.setMenuSize\").on(\"input.setMenuSize propertychange.setMenuSize\",(function(){return i.setMenuSize()})),\"auto\"===this.options.size?s.off(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\").on(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\",(function(){return i.setMenuSize()})):this.options.size&&\"auto\"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&s.off(\"resize\"+U+\".\"+this.selectId+\".setMenuSize scroll\"+U+\".\"+this.selectId+\".setMenuSize\")}this.createView(!1,!0,t)},setWidth:function(){var e=this;\"auto\"===this.options.width?requestAnimationFrame((function(){e.\$menu.css(\"min-width\",\"0\"),e.\$element.on(\"loaded\"+U,(function(){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[0].classList.remove(\"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={},a=n.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;n.\$bsContainer.addClass(l.attr(\"class\").replace(/form-control|fit-width/gi,\"\")).toggleClass(V.DROPUP,l.hasClass(V.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(V.DROPUP)?0:l[0].offsetHeight,(B.major<4||\"static\"===a)&&(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(V.SHOW,!n.\$button.hasClass(V.SHOW)).append(n.\$menu))})),e(window).off(\"resize\"+U+\".\"+this.selectId+\" scroll\"+U+\".\"+this.selectId).on(\"resize\"+U+\".\"+this.selectId+\" scroll\"+U+\".\"+this.selectId,(function(){n.\$newElement.hasClass(V.SHOW)&&l(n.\$newElement)})),this.\$element.on(\"hide\"+U,(function(){n.\$menu.data(\"height\",n.\$menu.height()),n.\$bsContainer.detach()}))},createOption:function(e,t){var i=e.option?e.option:e;if(i&&1!==i.nodeType){var s=(t?_.selectedOption:_.option).cloneNode(!0);void 0!==i.value&&(s.value=i.value),s.textContent=i.text,s.selected=!0,void 0!==i.liIndex?s.liIndex=i.liIndex:t||(s.liIndex=e.index),e.option=s,this.selectpicker.main.optionQueue.appendChild(s)}},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length){for(var i=0;i<t.selectpicker.view.visibleElements.length;i++){var s=t.selectpicker.current.data[i+t.selectpicker.view.position0];s.option&&(!0!==e&&t.setDisabled(s),t.setSelected(s))}this.options.source.data&&this.\$element[0].appendChild(this.selectpicker.main.optionQueue)}},setSelected:function(e,t){t=void 0===t?e.selected:t;var i,s,n=e.index,o=e.element,l=void 0!==this.activeIndex,r=this.activeIndex===n||t&&!this.multiple&&!l;o&&(void 0!==t&&(e.selected=t,e.option&&(e.option.selected=t)),t&&this.options.source.data&&this.createOption(e,!1),s=o.firstChild,t&&(this.selectedIndex=n),o.classList.toggle(\"selected\",t),r?(this.focusItem(o,e),this.selectpicker.view.currentActive=o,this.activeIndex=n):this.defocusItem(o),s&&(s.classList.toggle(\"selected\",t),t?s.setAttribute(\"aria-selected\",!0):this.multiple?s.setAttribute(\"aria-selected\",!1):s.removeAttribute(\"aria-selected\")),r||l||!t||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i)))},setDisabled:function(e){var t,i=e.disabled,s=e.element;s&&(t=s.firstChild,s.classList.toggle(V.DISABLED,i),t&&(B.major>=\"4\"&&t.classList.toggle(V.DISABLED,i),i?(t.setAttribute(\"aria-disabled\",i),t.setAttribute(\"tabindex\",-1)):(t.removeAttribute(\"aria-disabled\"),t.setAttribute(\"tabindex\",0))))},isDisabled:function(){return this.\$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.\$newElement[0].classList.add(V.DISABLED),this.\$button.addClass(V.DISABLED).attr(\"aria-disabled\",!0)):this.\$button[0].classList.contains(V.DISABLED)&&(this.\$newElement[0].classList.remove(V.DISABLED),this.\$button.removeClass(V.DISABLED).attr(\"aria-disabled\",!1))},clickListener:function(){var t=this,i=e(document);function s(e){if(t.multiple)t.deselectAll();else{var i=t.\$element[0],s=i.value,n=i.selectedIndex,o=i.options[n],l=!!o&&t.selectpicker.main.data[o.liIndex];l&&t.setSelected(l,!1),i.selectedIndex=0,I=[n,!1,s],t.\$element.triggerNative(\"change\")}t.\$newElement.hasClass(V.SHOW)&&(t.options.liveSearch&&t.\$searchbox.trigger(\"focus\"),t.createView(!1))}function n(){t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$menuInner.trigger(\"focus\")}function o(){t.dropdown&&t.dropdown._popper&&t.dropdown._popper.state?n():requestAnimationFrame(o)}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(){t.dropdown||\"4\"!==B.major||(t.dropdown=t.\$button.data(\"bs.dropdown\"),t.dropdown._menu=t.\$menu[0])})),this.\$button.on(\"click.bs.dropdown.data-api\",(function(e){if(t.options.allowClear){var i=e.target,n=t.\$clearButton[0];/MSIE|Trident/.test(window.navigator.userAgent)&&(i=document.elementFromPoint(e.clientX,e.clientY)),i!==n&&i.parentElement!==n||(e.stopImmediatePropagation(),s(e))}t.\$newElement.hasClass(V.SHOW)||t.setSize()})),this.\$element.on(\"shown\"+U,(function(){t.\$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.\$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),B.major>3?requestAnimationFrame(o):n()})),this.\$menuInner.on(\"mouseenter\",\"li a\",(function(e){var i=this.parentElement,s=t.isVirtual()?t.selectpicker.view.position0:0,n=Array.prototype.indexOf.call(i.parentElement.children,i),o=t.selectpicker.current.data[n+s];t.focusItem(i,o,!0)})),this.\$menuInner.on(\"click\",\"li a\",(function(i,s){var n=e(this),o=t.\$element[0],l=t.isVirtual()?t.selectpicker.view.position0:0,r=t.selectpicker.current.data[n.parent().index()+l],a=r.index,c=b.call(t),d=o.selectedIndex,h=o.options[d],p=!!h&&t.selectpicker.main.data[h.liIndex],u=!0;if(t.multiple&&1!==t.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!n.parent().hasClass(V.DISABLED)){var f=r.option,m=e(f),v=f.selected,w=m.parent(\"optgroup\"),k=w.find(\"option\"),x=t.options.maxOptions,y=w.data(\"maxOptions\")||!1;if(a===t.activeIndex&&(s=!0),s||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(t.setSelected(r,!v),t.focusedParent.focus(),!1!==x||!1!==y){var \$=x<g.call(t).length,S=y<w.find(\"option:selected\").length;if(x&&\$||y&&S)if(x&&1==x)o.selectedIndex=-1,f.selected=!0,t.setOptionStatus(!0);else if(y&&1==y){for(var E=0;E<k.length;E++){var C=k[E];C.selected=!1,t.setSelected(C.liIndex,!1)}f.selected=!0,t.setSelected(a,!0)}else{var O=\"string\"==typeof t.options.maxOptionsText?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,A=\"function\"==typeof O?O(x,y):O,T=A[0].replace(\"{n}\",x),z=A[1].replace(\"{n}\",y),D=e('<div class=\"notify\"></div>');A[2]&&(T=T.replace(\"{var}\",A[2][x>1?0:1]),z=z.replace(\"{var}\",A[2][y>1?0:1])),f.selected=!1,t.\$menu.append(D),x&&\$&&(D.append(e(\"<div>\"+T+\"</div>\")),u=!1,t.\$element.trigger(\"maxReached\"+U)),y&&S&&(D.append(e(\"<div>\"+z+\"</div>\")),u=!1,t.\$element.trigger(\"maxReachedGrp\"+U)),setTimeout((function(){t.setSelected(a,!1)}),10),D[0].classList.add(\"fadeOut\"),setTimeout((function(){D.remove()}),1050)}}}else p&&t.setSelected(p,!1),t.setSelected(r,!0);t.options.source.data&&t.\$element[0].appendChild(t.selectpicker.main.optionQueue),!t.multiple||t.multiple&&1===t.options.maxOptions?t.\$button.trigger(\"focus\"):t.options.liveSearch&&t.\$searchbox.trigger(\"focus\"),u&&(t.multiple||d!==o.selectedIndex)&&(I=[f.index,m.prop(\"selected\"),c],t.\$element.triggerNative(\"change\"))}})),this.\$menu.on(\"click\",\"li.\"+V.DISABLED+\" a, .\"+V.POPOVERHEADER+\", .\"+V.POPOVERHEADER+\" :not(.close)\",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!e(i.target).hasClass(\"close\")?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\"))})),this.\$menuInner.on(\"click\",\".divider, .dropdown-header\",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\")})),this.\$menu.on(\"click\",\".\"+V.POPOVERHEADER+\" .close\",(function(){t.\$button.trigger(\"click\")})),this.\$searchbox.on(\"click\",(function(e){e.stopPropagation()})),this.\$menu.on(\"click\",\".actions-btn\",(function(i){t.options.liveSearch?t.\$searchbox.trigger(\"focus\"):t.\$button.trigger(\"focus\"),i.preventDefault(),i.stopPropagation(),e(this).hasClass(\"bs-select-all\")?t.selectAll():t.deselectAll()})),this.\$button.on(\"focus\"+U,(function(e){var i=t.\$element[0].getAttribute(\"tabindex\");void 0!==i&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute(\"tabindex\",i),t.\$element[0].setAttribute(\"tabindex\",-1),t.selectpicker.view.tabindex=i)})).on(\"blur\"+U,(function(e){void 0!==t.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(t.\$element[0].setAttribute(\"tabindex\",t.selectpicker.view.tabindex),this.setAttribute(\"tabindex\",-1),t.selectpicker.view.tabindex=void 0)})),this.\$element.on(\"change\"+U,(function(){t.render(),t.\$element.trigger(\"changed\"+U,I),I=null})).on(\"focus\"+U,(function(){t.options.mobile||t.\$button[0].focus()}))},liveSearchListener:function(){var e=this;this.\$button.on(\"click.bs.dropdown.data-api\",(function(){e.\$searchbox.val()&&(e.\$searchbox.val(\"\"),e.selectpicker.search.previousValue=void 0)})),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 t=e.\$searchbox[0].value;if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],t)if(e.options.source.search)e.fetchData((function(i){e.render(),e.buildList(void 0,!0),e.createView(!0),Q.call(e,i,t)}),\"search\",0,t);else{var i=[],s=t.toUpperCase(),n={},o=[],l=e._searchStyle(),r=e.options.liveSearchNormalize;r&&(s=O(s));for(var a=0;a<e.selectpicker.main.data.length;a++){var c=e.selectpicker.main.data[a];n[a]||(n[a]=x(c,s,l,r)),n[a]&&void 0!==c.headerIndex&&-1===o.indexOf(c.headerIndex)&&(c.headerIndex>0&&(n[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),n[c.headerIndex]=!0,o.push(c.headerIndex),n[c.lastIndex+1]=!0),n[a]&&\"optgroup-label\"!==c.type&&o.push(a)}a=0;for(var d=o.length;a<d;a++){var h=o[a],p=o[a-1],u=(c=e.selectpicker.main.data[h],e.selectpicker.main.data[p]);(\"divider\"!==c.type||\"divider\"===c.type&&u&&\"divider\"!==u.type&&d-1!==a)&&(e.selectpicker.search.data.push(c),i.push(e.selectpicker.main.elements[h]))}e.activeIndex=void 0,e.noScroll=!0,e.\$menuInner.scrollTop(0),e.selectpicker.search.elements=i,e.createView(!0),Q.call(e,i,t)}else e.selectpicker.search.previousValue&&(e.\$menuInner.scrollTop(0),e.createView(!1));e.selectpicker.search.previousValue=t}))},_searchStyle:function(){return this.options.liveSearchStyle||\"contains\"},val:function(e){var t=this.\$element[0];if(void 0!==e){var i=g.call(this),s=b.call(this,i);I=[null,null,s],Array.isArray(e)||(e=[e]),e.map(String);for(var n=0;n<i.length;n++){var o=i[n];o&&-1===e.indexOf(String(o.value))&&this.setSelected(o,!1)}if(this.selectpicker.main.data.filter((function(t){return-1!==e.indexOf(String(t.value))&&(this.setSelected(t,!0),!0)}),this),this.options.source.data&&t.appendChild(this.selectpicker.main.optionQueue),this.\$element.trigger(\"changed\"+U,I),this.\$newElement.hasClass(V.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var l=(t.options[t.selectedIndex]||{}).liIndex;\"number\"==typeof l&&(this.setSelected(this.selectedIndex,!1),this.setSelected(l,!0))}return this.render(),I=null,this.\$element}return this.\$element.val()},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.\$element[0],i=0,s=0,n=b.call(this);t.classList.add(\"bs-select-hidden\");for(var o=0,l=this.selectpicker.current.data,r=l.length;o<r;o++){var a=l[o],c=a.option;c&&!a.disabled&&\"divider\"!==a.type&&(a.selected&&i++,c.selected=e,a.selected=e,!0===e&&s++)}t.classList.remove(\"bs-select-hidden\"),i!==s&&(this.setOptionStatus(),I=[null,null,n],this.\$element.triggerNative(\"change\"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e,t){var i,s=void 0===t;(e=e||window.event)&&e.stopPropagation(),!1===s&&(i=this.\$newElement[0].classList.contains(V.SHOW),s=!0===t&&!1===i||!1===t&&!0===i),s&&this.\$button.trigger(\"click.bs.dropdown.data-api\")},open:function(e){this.toggle(e,!0)},close:function(e){this.toggle(e,!1)},keydown:function(t){var i,s,n,o,l,r=e(this),a=r.hasClass(\"dropdown-toggle\"),c=(a?r.closest(\".dropdown\"):r.closest(j.MENU)).data(\"this\"),d=c.findLis(),h=!1,p=t.which===W.TAB&&!a&&!c.options.selectOnTab,u=F.test(t.which)||p,f=c.\$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(t.which>=112&&t.which<=123))if(!(s=c.\$menu.hasClass(V.SHOW))&&(u||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105||t.which>=65&&t.which<=90)&&(c.\$button.trigger(\"click.bs.dropdown.data-api\"),c.options.liveSearch))c.\$searchbox.trigger(\"focus\");else{if(t.which===W.ESCAPE&&s&&(t.preventDefault(),c.\$button.trigger(\"click.bs.dropdown.data-api\").trigger(\"focus\")),u){if(!d.length)return;-1!==(i=(n=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(n.parentElement.children,n):-1)&&c.defocusItem(n),t.which===W.ARROW_UP?(-1!==i&&i--,i+m<0&&(i+=d.length),c.selectpicker.view.canHighlight[i+m]||-1==(i=c.selectpicker.view.canHighlight.slice(0,i+m).lastIndexOf(!0)-m)&&(i=d.length-1)):(t.which===W.ARROW_DOWN||p)&&(++i+m>=c.selectpicker.view.canHighlight.length&&(i=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),t.preventDefault();var v=m+i;t.which===W.ARROW_UP?0===m&&i===d.length-1?(c.\$menuInner[0].scrollTop=c.\$menuInner[0].scrollHeight,v=c.selectpicker.current.elements.length-1):h=(l=(o=c.selectpicker.current.data[v]).position-o.height)<f:(t.which===W.ARROW_DOWN||p)&&(i===c.selectpicker.view.firstHighlightIndex?(c.\$menuInner[0].scrollTop=0,v=c.selectpicker.view.firstHighlightIndex):h=(l=(o=c.selectpicker.current.data[v]).position-c.sizeInfo.menuInnerHeight)>f),n=c.selectpicker.current.elements[v],c.activeIndex=c.selectpicker.current.data[v].index,c.focusItem(n),c.selectpicker.view.currentActive=n,h&&(c.\$menuInner[0].scrollTop=l),c.options.liveSearch?c.\$searchbox.trigger(\"focus\"):r.trigger(\"focus\")}else if(!r.is(\"input\")&&!G.test(t.which)||t.which===W.SPACE&&c.selectpicker.keydown.keyHistory){var g,b,w=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=H[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),b=c.selectpicker.keydown.keyHistory,/^(.)\\1+\$/.test(b)&&(b=b.charAt(0));for(var I=0;I<c.selectpicker.current.data.length;I++){var k=c.selectpicker.current.data[I];x(k,b,\"startsWith\",!0)&&c.selectpicker.view.canHighlight[I]&&w.push(k.index)}if(w.length){var y=0;d.removeClass(\"active\").find(\"a\").removeClass(\"active\"),1===b.length&&(-1===(y=w.indexOf(c.activeIndex))||y===w.length-1?y=0:y++),g=w[y],f-(o=c.selectpicker.main.data[g]).position>0?(l=o.position-o.height,h=!0):(l=o.position-c.sizeInfo.menuInnerHeight,h=o.position>f+c.sizeInfo.menuInnerHeight),n=c.selectpicker.main.elements[g],c.activeIndex=w[y],c.focusItem(n),n&&n.firstChild.focus(),h&&(c.\$menuInner[0].scrollTop=l),r.trigger(\"focus\")}}s&&(t.which===W.SPACE&&!c.selectpicker.keydown.keyHistory||t.which===W.ENTER||t.which===W.TAB&&c.options.selectOnTab)&&(t.which!==W.SPACE&&t.preventDefault(),c.options.liveSearch&&t.which===W.SPACE||(c.\$menuInner.find(\".active a\").trigger(\"click\",!0),r.trigger(\"focus\"),c.options.liveSearch||(t.preventDefault(),e(document).data(\"spaceSelect\",!0))))}},mobile:function(){this.options.mobile=!0,this.\$element[0].classList.add(\"mobile-device\")},refresh:function(){var t=this,i=e.extend({},this.options,c(this.\$element),this.\$element.data());this.options=i,this.options.source.data?(this.render(),this.buildList()):this.fetchData((function(){t.render(),t.buildList()})),this.checkDisabled(),this.setStyle(),this.setWidth(),this.setSize(!0),this.\$element.trigger(\"refreshed\"+U)},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.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.\$element.off(U).removeData(\"selectpicker\").removeClass(\"bs-select-hidden selectpicker\"),e(window).off(U+\".\"+this.selectId)}};var X=e.fn.selectpicker;function ee(){return B.major<5?e.fn.dropdown?(e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments):void 0:P.dataApiKeydownHandler}e.fn.selectpicker=J,e.fn.selectpicker.Constructor=Z,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=X,this},e(document).off(\"keydown.bs.dropdown.data-api\").on(\"keydown.bs.dropdown.data-api\",\":not(.bootstrap-select) > [\"+j.DATA_TOGGLE+\"]\",ee).on(\"keydown.bs.dropdown.data-api\",\":not(.bootstrap-select) > .dropdown-menu\",ee).on(\"keydown\"+U,\".bootstrap-select [\"+j.DATA_TOGGLE+'], .bootstrap-select [role=\"listbox\"], .bootstrap-select .bs-searchbox input',Z.prototype.keydown).on(\"focusin.modal\",\".bootstrap-select [\"+j.DATA_TOGGLE+'], .bootstrap-select [role=\"listbox\"], .bootstrap-select .bs-searchbox input',(function(e){e.stopPropagation()})),document.addEventListener(\"DOMContentLoaded\",(function(){e(\".selectpicker\").each((function(){var t=e(this);J.call(t,t.data())}))}))}(e)}.apply(t,s))||(e.exports=n)}}]);", "@public_path/build/300.1c6475cd.js", "/builds/dev/refonte_sav/public/build/300.1c6475cd.js");
    }
}
