/*! Select2 4.0.0-rc.2 | 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
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){functionb(a){returnfunction(){returnc(this).val()==a.id}}for(vard=this,e=this.$element.find("option"),f=e.map(function(){returnd.item(c(this)).id}).get(),g=c(),h=0;h<a.length;h++){vari=this._normalizeItem(a[h]);if(c.inArray(i.id,f)>=0){varj=e.filter(b(i)),k=this.item(j),l=(c.extend(!0,{},k,i),this.option(k));j.replaceWith(l)}else{varm=this.option(i);if(i.children){varn=this.convertToOptions(i.children);m.append(n)}g=g.add(m)}}returng},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){functiond(b,c){this.ajaxOptions=this._applyDefaults(c.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,b,c)}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;this._request&&(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.query=function(a,b,c){functiond(a,f){for(varg=a.results,h=0;h<g.length;h++){vari=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)returnf?!1:(a.data=g,voidc(a))}if(f)return!0;varl=e.createTag(b);if(null!=l){varm=e.option(l);m.attr("data-select2-tag",!0),e.addOptions(m),e.insertTag(g,l)}a.results=g,c(a)}vare=this;returnthis._removeOldTags(),null==b.term||null!=b.page?voida.call(this,b,c):voida.call(this,b,d)},b.prototype.createTag=function(b,c){vard=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(){varb=(this._lastTag,this.$element.find("option[data-select2-tag]"));b.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){functionb(a,b,c){vard=c.get("tokenizer");void0!==d&&(this.tokenizer=d),a.call(this,b,c)}returnb.prototype.bind=function(a,b,c