window.jQuery=window.jQuery||{},function(){jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd&&(c=jQuery.fn.select2.amd.define,b=jQuery.fn.select2.amd.require);vara,b,c;!function(d){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,b){returnfunction(){returnn.apply(d,v.call(arguments,0).concat([a,b]))}}functionh(a){returnfunction(b){returnf(b,a)}}functioni(a){returnfunction(b){q[a]=b}}functionj(a){if(e(r,a)){varb=r[a];deleter[a],t[a]=!0,m.apply(d,b)}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,b,c,f){varh,k,l,m,n,s,u=[],v=typeofc;if(f=f||a,"undefined"===v||"function"===v){for(b=!b.length&&c.length?["require","exports","module"]:b,n=0;n<b.length;n+=1)if(m=o(b[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=c?c.apply(q[a],u):void0,a&&(h&&h.exports!==d&&h.exports!==q[a]?q[a]=h.exports:l===d&&s||(q[a]=l))}elsea&&(q[a]=c)},a=b=n=function(a,b,c,e,f){if("string"==typeofa)returnp[a]?p[a](b):j(o(a,b).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!b)return;b.splice?(a=b,b=c,c=null):a=d}returnb=b||function(){},"function"==typeofc&&(c=e,e=f),e?m(d,a,b,c):setTimeout(function(){m(d,a,b,c)},4),n},n.config=function(a){returnn(a)},a._defined=q,c=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},c.amd={jQuery:!0}}(),c("almond",function(){}),function(a,b){"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)thrownewError("jQuery requires a window with a document");returnb(a)}:b(a)}("undefined"!=typeofwindow?window:this,function(a,b){functiond(a){varb=a.length,c=bb.type(a);return"function"===c||bb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeofb&&b>0&&b-1ina}functione(a,b,c){if(bb.isFunction(b))returnbb.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)returnbb.grep(a,function(a){returna===b!==c});if("string"==typeofb){if(ib.test(b))returnbb.filter(b,a,c);b=bb.filter(b,a)}returnbb.grep(a,function(a){returnV.call(b,a)>=0!==c})}functionf(a,b){for(;(a=a[b])&&1!==a.nodeType;);returna}functiong(a){varb=pb[a]={};returnbb.each(a.match(ob)||[],function(a,c){b[c]=!0}),b}functionh(){_.removeEventListener("DOMContentLoaded",h,!1),a.removeEventListener("load",h,!1),bb.ready()}functioni(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=bb.expando+Math.random()}functionj(a,b,c){vard;if(void0===c&&1===a.nodeType)if(d="data-"+b.replace(vb,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeofc){try{
}),a.on("enable",function(){b.$selection.attr("tabindex","0")}),a.on("disable",function(){b.$selection.attr("tabindex","-1")})},d.prototype._attachCloseHandler=function(b){varc=this;a(document.body).on("mousedown.select2."+b.id,function(b){varc=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){varb=a(this);if(this!=d[0]){varc=b.data("element");c.select2("close")}})}),a(window).on("scroll.select2."+b.id,function(){c.trigger("close")})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id),a(window).off("scroll.select2."+b.id)},d.prototype.position=function(a,b){varc=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(){thrownewError("The `update` method must be defined in child classes.")},d}),c("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c){functiond(){d.__super__.constructor.apply(this,arguments)}returnc.Extend(d,b),d.prototype.render=function(){vara=d.__super__.render.call(this);returna.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},d.prototype.bind=function(a){varb=this;d.__super__.bind.apply(this,arguments);varc=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",c),this.$selection.attr("aria-labelledby",c),this.$selection.on("mousedown",function(a){1===a.which&&b.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),a.on("selection:update",function(a){b.update(a.data)})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){varb=this.options.get("templateSelection");returnb(a)},d.prototype.selectionContainer=function(){returna("<span></span>")},d.prototype.update=function(a){if(0===a.length)returnvoidthis.clear();varb=a[0],c=this.display(b);this.$selection.find(".select2-selection__rendered").html(c)},d}),c("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){functiond(){d.__super__.constructor.apply(this,arguments)}returnc.Extend(d,b),d.prototype.render=function(){vara=d.__super__.render.call(this);returna.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(){varb=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){b.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(c){vard=a(this),e=d.parent(),f=e.data("data");b.trigger("unselect",{originalEvent:c,data:f})})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){varb=this.options.get("templateSelection");returnb(a)},d.prototype.selectionContainer=function(){varb=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');returnb},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(varb=[],c=0;c<a.length;c++){vard=a[c],e=this.display(d),f=this.selectionContainer();f.append(e),f.data("data",d),b.push(f)}this.$selection.find(".select2-selection__rendered").append(b)}},d}),c("select2/selection/placeholder",["../utils"],function(){functiona(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}returna.prototype.normalizePlaceholder=function(a,b){return"string"==typeofb&&(b={id:"",text:b}),b},a.prototype.createPlaceholder=function(a,b){varc=this.selectionContainer();returnc.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},a.prototype.update=function(a,b){varc=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)returna.call(this,b);this.clear();vare=this.createPlaceholder(this.placeholder)
}catch(M){console&&console.warn&&console.warn('Select2: The lanugage file for "'+J+'" could not be automatically loaded. A fallback will be used instead.');continue}}G.extend(K)}l.translations=G}elsel.translations=newk(l.language);returnl},C.prototype.reset=function(){functionb(a){functionb(a){returnl[a]||a}returna.replace(/[^\u0000-\u007E]/g,b)}functionc(d,e){if(""===a.trim(d.term))returne;if(e.children&&e.children.length>0){for(varf=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){varh=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}returnf.children.length>0?f:c(d,f)}varj=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();returnj.indexOf(k)>-1?e:null}this.defaults={amdBase:"select2/",amdLanguageBase:"select2/i18n/",language:B,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){returna},templateResult:function(a){returna.text},templateSelection:function(a){returna.text},theme:"default",width:"resolve"}},C.prototype.set=function(b,c){vard=a.camelCase(b),e={};e[d]=c;varf=j._convertData(e);a.extend(this.defaults,f)};varD=newC;returnD}),c("select2/options",["jquery","./defaults","./utils"],function(a,b,c){functiond(a,c){this.options=a,null!=c&&this.fromElement(c),this.options=b.apply(this.options)}returnd.prototype.fromElement=function(b){vard=["select2"];null==this.options.multiple&&(this.options.multiple=b.prop("multiple")),null==this.options.disabled&&(this.options.disabled=b.prop("disabled")),null==this.options.language&&(b.prop("lang")?this.options.language=b.prop("lang").toLowerCase():b.closest("[lang]").prop("lang")&&(this.options.language=b.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=b.prop("dir")?b.prop("dir"):b.closest("[dir]").prop("dir")?b.closest("[dir]").prop("dir"):"ltr"),b.prop("disabled",this.options.disabled),b.prop("multiple",this.options.multiple),b.data("select2-tags")&&(console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),b.data("data",b.data("select2-tags")),b.data("tags",!0)),b.data("ajax-url")&&(console&&console.warn&&console.warn("Select2: The `data-ajax-attribute` has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),b.data("ajax--url",b.data("ajax-url")));vare=b.data();e=c._convertData(e);for(varfine)d.indexOf(f)>-1||(a.isPlainObject(this.options[f])?a.extend(this.options[f],e[f]):this.options[f]=e[f]);returnthis},d.prototype.get=function(a){returnthis.options[a]},d.prototype.set=function(a,b){this.options[a]=b},d}),c("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){vare=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=newb(c,a),e.__super__.constructor.call(this);vard=this.options.get("dataAdapter");this.data=newd(a,this.options);varf=this.render();this._placeContainer(f);varg=this.options.get("selectionAdapter");this.selection=newg(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,f);varh=this.options.get("dropdownAdapter");this.dropdown=newh(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,f);vari=this.options.get("resultsAdapter");this.results=newi(a,this.options,this.data),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);varj=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.data.current(function(a){j.trigger("selection:update",{data:a})}),a.hide(),this._syncAttributes(),this._tabindex=a.attr("tabindex")||0,a.attr("tabindex","-1"),a.data("select2",this)};returnc.Extend(e,c.Observable),e.prototype._generateId=function(a){varb="";r