/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):a("object"==typeofexports?require("jquery"):jQuery)}(function(a){varb=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)varb=a.fn.select2.amd;varb;returnfunction(){if(!b||!b.requirejs){b?c=b:b={};vara,c,d;!function(b){functione(a,b){returnu.call(a,b)}functionf(a,b){varc,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;elseif(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}returna}functiong(a,c){returnfunction(){returnn.apply(b,v.call(arguments,0).concat([a,c]))}}functionh(a){returnfunction(b){returnf(b,a)}}functioni(a){returnfunction(b){q[a]=b}}functionj(a){if(e(r,a)){varc=r[a];deleter[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))thrownewError("No "+a);returnq[a]}functionk(a){varb,c=a?a.indexOf("!"):-1;returnc>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}functionl(a){returnfunction(){returns&&s.config&&s.config[a]||{}}}varm,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){varc,d=k(a),e=d[0];returna=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){returng(a)},exports:function(a){varb=q[a];return"undefined"!=typeofb?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){varh,k,l,m,n,s,u=[],v=typeofd;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);elseif("exports"===k)u[n]=p.exports(a),s=!0;elseif("module"===k)h=u[n]=p.module(a);elseif(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)thrownewError(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}elsea&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeofa)returnp[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}returnc=c||function(){},"function"==typeofd&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){returnn(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){varb=a||$;returnnull==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){functionb(a){varb=a.prototype,c=[];for(vardinb){vare=b[d];"function"==typeofe&&"constructor"!==d&&c.push(d)}returnc}varc={};c.Extend=function(a,b){functionc(){this.constructor=a}vard={}.hasOwnProperty;for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a},c.Decorate=function(a,c){functiond(){varb=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}functione(){this.constructor=d}varf=b(c),g=b(a);c.displayName=a.displayName,d.prototype=newe;for(varh=0;h<g.length;h++){vari=g[h]
c.removeData(this,"data")})},d.prototype.query=function(a,b){vard=[],e=this,f=this.$element.children();f.each(function(){varb=c(this);if(b.is("option")||b.is("optgroup")){varf=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){varb;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);vard=c(b),e=this._normalizeItem(a);returne.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){varb={};if(b=c.data(a[0],"data"),null!=b)returnb;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};elseif(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(vard=a.children("option"),e=[],f=0;f<d.length;f++){varg=c(d[f]),h=this.item(g);e.push(h)}b.children=e}returnb=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);varb={selected:!1,disabled:!1};returnnull!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){varc=this.options.get("matcher");returnc(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){functiond(a,b){varc=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}returnb.Extend(d,a),d.prototype.select=function(a){varb=this.$element.find("option").filter(function(b,c){returnc.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){functiond(a){returnfunction(){returnc(this).val()==a.id}}for(vare=this,f=this.$element.find("option"),g=f.map(function(){returne.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){varj=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){vark=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},l,j),n=this.option(m);k.replaceWith(n)}else{varo=this.option(j);if(j.children){varp=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}returnh},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){functiond(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}returnb.Extend(d,a),d.prototype._applyDefaults=function(a){varb={data:function(a){return{q:a.term}},transport:function(a,b,d){vare=c.ajax(a);returne.then(b),e.fail(d),e}};returnc.extend({},b,a,!0)},d.prototype.processResults=function(a){returna},d.prototype.query=function(a,b){functiond(){vard=f.transport(f,function(d){varf=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}vare=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);varf=c.extend({type:"GET"},this.ajaxOptions);"function"==typeoff.url&&(f.url=f.url(a)),"function"==typeoff.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){functionb(b,c,d){vare=d.get("tags"),f=d.get("createTag");if(void0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(varg=0;g<e.length;g++){varh=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}returnb.prototype.q