window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(c=$.fn.select2.amd.define,b=$.fn.select2.amd.require);var a,b,c;!function(d){function e(a,b){return u.call(a,b)}function f(a,b){var c,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;k0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===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("/"))}return a}function g(a,b){return function(){return n.apply(d,v.call(arguments,0).concat([a,b]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var b=r[a];delete r[a],t[a]=!0,m.apply(d,b)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=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){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,b,c,f){var h,k,l,m,n,s,u=[],v=typeof c;if(f=f||a,"undefined"===v||"function"===v){for(b=!b.length&&c.length?["require","exports","module"]:b,n=0;n0&&(a.call(arguments,b.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=a(c),g=a(b);c.displayName=b.displayName,d.prototype=new e;for(var h=0;hc;c++)a[c].apply(this,b)},b.Observable=c,b.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},b}),c("select2/results",["./utils"],function(a){function b(a,c,d){this.$element=a,this.data=d,this.options=c,b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.render=function(){var a=$('
    ');return this.options.get("multiple")&&a.attr("aria-multiselectable","true"),this.$results=a,a},b.prototype.clear=function(){this.$results.empty()},b.prototype.displayMessage=function(a){this.clear(),this.hideLoading();var b=$('
  • '),c=this.options.get("translations").get(a.message);b.text(c(a.args)),this.$results.append(b)},b.prototype.append=function(a){this.hideLoading();var b=[];if(0===a.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a=this.sort(a);for(var c=0;c-1?a.attr("aria-selected","true"):a.attr("aria-selected","false")});var e=d.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):d.first().trigger("mouseenter")})},b.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},b.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},b.prototype.option=function(a){var b=document.createElement("li");b.className="select2-results__option";var c={role:"treeitem","aria-selected":"false"};a.disabled&&(delete c["aria-selected"],c["aria-disabled"]="true"),null==a.id&&delete c["aria-selected"],null!=a._resultId&&(b.id=a._resultId),a.children&&(c.role="group",c["aria-label"]=a.text,delete c["aria-selected"]);for(var d in c){var e=c[d];b.setAttribute(d,e)}if(a.children){var f=$(b),g=document.createElement("strong");g.className="select2-results__group";{$(g)}this.template(a,g);for(var h=[],i=0;i",{"class":"select2-results__options select2-results__options--nested"});l.append(h),f.append(g),f.append(l)}else this.template(a,b);return $.data(b,"data",a),b},b.prototype.bind=function(a){var b=this,c=a.id+"-results";this.$results.attr("id",c),a.on("results:all",function(c){b.clear(),b.append(c.data),a.isOpen()&&b.setClasses()}),a.on("results:append",function(c){b.append(c.data),a.isOpen()&&b.setClasses()}),a.on("query",function(a){b.showLoading(a)}),a.on("select",function(){a.isOpen()&&b.setClasses()}),a.on("unselect",function(){a.isOpen()&&b.setClasses()}),a.on("open",function(){b.$results.attr("aria-expanded","true"),b.$results.attr("aria-hidden","false"),b.setClasses(),b.ensureHighlightVisible()}),a.on("close",function(){b.$results.attr("aria-expanded","false"),b.$results.attr("aria-hidden","true"),b.$results.removeAttr("aria-activedescendant")}),a.on("results:select",function(){var a=b.getHighlightedResults();if(0!==a.length){var c=a.data("data");"true"==a.attr("aria-selected")?b.trigger("unselected",{data:c}):b.trigger("selected",{data:c})}}),a.on("results:previous",function(){var a=b.getHighlightedResults(),c=b.$results.find("[aria-selected]"),d=c.index(a);if(0!==d){var e=d-1;0===a.length&&(e=0);var f=c.eq(e);f.trigger("mouseenter");var g=b.$results.offset().top,h=f.offset().top,i=b.$results.scrollTop()+(h-g);0===e?b.$results.scrollTop(0):0>h-g&&b.$results.scrollTop(i)}}),a.on("results:next",function(){var a=b.getHighlightedResults(),c=b.$results.find("[aria-selected]"),d=c.index(a),e=d+1;if(!(e>=c.length)){var f=c.eq(e);f.trigger("mouseenter");var g=b.$results.offset().top+b.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=b.$results.scrollTop()+h-g;0===e?b.$results.scrollTop(0):h>g&&b.$results.scrollTop(i)}}),a.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),a.on("results:message",function(a){b.trigger("results:message",a)}),this.on("results:message",function(a){b.displayMessage(a)}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(a){var c=$(this),d=c.data("data");return"true"===c.attr("aria-selected")?void b.trigger("unselected",{originalEvent:a,data:d}):void b.trigger("selected",{originalEvent:a,data:d})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var a=$(this).data("data");b.getHighlightedResults().removeClass("select2-results__option--highlighted"),b.trigger("results:focus",{data:a,element:$(this)})})},b.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},b.prototype.destroy=function(){this.$results.remove()},b.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},b.prototype.template=function(a,b){var c=this.options.get("templateResult");b.innerHTML=c(a)},b}),c("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case KEY.LEFT:case KEY.RIGHT:case KEY.UP:case KEY.DOWN:return!0}return!1}};return a}),c("select2/selection/base",["../utils","../keys"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return a.Extend(c,a.Observable),c.prototype.render=function(){throw new Error("The `render` method must be defined in child classes.")},c.prototype.bind=function(a){var c=this,d=(a.id+"-container",a.id+"-results");this.$selection.attr("aria-owns",d),this.$selection.on("keydown",function(a){c.trigger("keypress",a),a.which===b.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){c.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){c.update(a.data)}),a.on("open",function(){c.$selection.attr("aria-expanded","true"),$(document.body).on("mousedown.select2."+a.id,function(a){var b=$(a.target),c=b.closest(".select2"),d=$(".select2.select2-container--open");d.each(function(){var a=$(this);if(this!=c[0]){var b=a.data("element");b.select2("close")}})})}),a.on("close",function(){c.$selection.attr("aria-expanded","false"),c.$selection.removeAttr("aria-activedescendant"),c.$selection.focus(),$(document.body).off("mousedown.select2."+a.id)})},c.prototype.destroy=function(){$(document.body).off(".select2."+container.id)},c.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},c}),c("select2/selection/single",["./base","../utils","../keys"],function(a,b){function c(){c.__super__.constructor.apply(this,arguments)}return b.Extend(c,a),c.prototype.render=function(){var a=$('');return a.attr("title",this.$element.attr("title")),this.$selection=a,a},c.prototype.bind=function(a){var b=this;c.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),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)})},c.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},c.prototype.display=function(a){var b=this.options.get("templateSelection");return b(a)},c.prototype.selectionContainer=function(){return $("")},c.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.display(b);this.$selection.find(".select2-selection__rendered").html(c)},c}),c("select2/selection/multiple",["./base","../utils"],function(a,b){function c(){c.__super__.constructor.apply(this,arguments)}return b.Extend(c,a),c.prototype.render=function(){var a=$('');return a.attr("title",this.$element.attr("title")),this.$selection=a,a},c.prototype.bind=function(){var a=this;c.__super__.bind.apply(this,arguments),this.$selection.on("click",function(b){a.trigger("toggle",{originalEvent:b})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){var c=$(this),d=c.parent(),e=d.data("data");a.trigger("unselected",{originalEvent:b,data:e})})},c.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},c.prototype.display=function(a){var b=this.options.get("templateSelection");return b(a)},c.prototype.selectionContainer=function(){var a=$('
  • ×
  • ');return a},c.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],c=0;c1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},a}),c("select2/selection/allowClear",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),this.$selection.on("mousedown",".select2-selection__clear",function(a){a.stopPropagation(),d.$element.val(d.placeholder.id).trigger("change"),d.trigger("toggle")})},a.prototype.update=function(a,b){if(a.call(this,b),!(this.$selection.find(".select2-selection__placeholder").length>0)){var c=$('×');this.$selection.find(".select2-selection__rendered").append(c)}},a}),c("select2/selection/search",["../utils"],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.render=function(a){var b=$('');this.$searchContainer=b,this.$search=b.find("input");var c=a.call(this);return c},a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("open",function(){d.$search.attr("tabindex",0),d.$search.focus()}),b.on("close",function(){d.$search.attr("tabindex",-1),d.$search.val("")}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),d.trigger("keypress",a),d._keyUpPrevented=a.isDefaultPrevented()}),this.$selection.on("keyup",".select2-search--inline",function(a){d.handleSearch(a)})},a.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},a.prototype.update=function(a,b){this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch()},a.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},a.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.innerWidth(),a-=this.$selection.find(".select2-selection__rendered").innerWidth(),a+="px";else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},a.prototype.showSearch=function(){return!0},a}),c("select2/translation",[],function(){function a(a){this.dict=a||{}}return a.prototype.all=function(){return this.dict},a.prototype.get=function(a){return this.dict[a]},a.prototype.extend=function(a){this.dict=$.extend({},a.all(),this.dict)},a._cache={},a.loadPath=function(c){if(!(c in a._cache)){var d=b(c);a._cache[c]=d}return new a(a._cache[c])},a}),c("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),c("select2/data/base",["../utils"],function(a){function b(){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),c("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(this.$element.prop("multiple"))this.current(function(c){var d=[];a=[a],a.push.apply(a,c);for(var e=0;e=0){var i=e.filter(b(h)),j=this.item(i),k=(c.extend(!0,{},j,h),this.option(j));i.replaceWith(k)}else{var l=this.option(h);this.$element.append(l)}}},d}),c("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(b,c){this.ajaxOptions=c.get("ajax"),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,b,c)}return b.Extend(d,a),d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var a=c.ajax(f);a.success(function(a){var c=e.processResults(a);b(c)}),e._request=a}var e=this;this._request&&(this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url(a)),"function"==typeof f.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}),c("select2/data/tags",[],function(){function a(a,b,c){var d=c.get("tags");if(a.call(this,b,c),$.isArray(d))for(var e=0;e');return this.$dropdown=a,a},b.prototype.destroy=function(){this.$dropdown.remove()},b.prototype.bind=function(){},b}),c("select2/dropdown/search",["../utils"],function(){function a(){}return a.prototype.render=function(a){var b=a.call(this),c=$('');return this.$searchContainer=c,this.$search=c.find("input"),b.prepend(c),b},a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),this.$search.on("keydown",function(a){d.trigger("keypress",a),d._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("keyup",function(a){d.handleSearch(a)}),b.on("open",function(){d.$search.attr("tabindex",0),d.$search.focus()}),b.on("close",function(){d.$search.attr("tabindex",-1),d.$search.val("")}),b.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=d.showSearch(a);b?d.$searchContainer.show():d.$searchContainer.hide()}})},a.prototype.handleSearch=function(){if(!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},a.prototype.showSearch=function(){return!0},a}),c("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b=this.removePlaceholder(b),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b },a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),c("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),a.call(this,b),b.length>0&&this.$results.append(this.$loadingMore),this.loading=!1},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.createLoadingMore=function(){var b=a('
  • '),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),c("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more character";return 1!=b&&(c+="s"),c},searching:function(){return"Searching…"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select"+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"}}}),c("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/minimumInputLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){function t(){this.reset()}t.prototype.apply=function(j){if(j=a.extend({},this.defaults,j),null==j.dataAdapter&&(j.dataAdapter=null!=j.ajax?m:null!=j.data?l:k),j.minimumInputLength>0&&(j.dataAdapter=h.Decorate(j.dataAdapter,o)),null!=j.tags&&(j.dataAdapter=h.Decorate(j.dataAdapter,n)),null==j.resultsAdapter&&(j.resultsAdapter=b,null!=j.ajax&&(j.resultsAdapter=h.Decorate(j.resultsAdapter,s)),null!=j.placeholder&&(j.resultsAdapter=h.Decorate(j.resultsAdapter,r))),null==j.dropdownAdapter)if(j.multiple)j.dropdownAdapter=p;else{var t=h.Decorate(p,q);j.dropdownAdapter=t}if(null==j.selectionAdapter&&(j.selectionAdapter=j.multiple?d:c,null!=j.placeholder&&(j.selectionAdapter=h.Decorate(j.selectionAdapter,e),j.allowClear&&(j.selectionAdapter=h.Decorate(j.selectionAdapter,f))),j.multiple&&(j.selectionAdapter=h.Decorate(j.selectionAdapter,g))),"string"==typeof j.language&&(j.language=[j.language]),a.isArray(j.language)){for(var u=new i,v=j.language.concat(this.defaults.language),w=0;w0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={language:["select2/i18n/en"],matcher:c,minimumInputLength:0,theme:"default",templateResult:function(a){return a.text},templateSelection:function(a){return a.text}}};var u=new t;return u}),c("select2/options",["./defaults"],function(a){function b(b,c){this.options=b,null!=c&&this.fromElement(c),this.options=a.apply(this.options)}return b.prototype.fromElement=function(a){return null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),this},b.prototype.get=function(a){return this.options[a]},b.prototype.set=function(a,b){this.options[a]=b},b}),c("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){if(null==a.data("select2")){this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=this.options.get("dataAdapter");this.data=new d(a,this.options);var f=this.render();this._placeContainer(f);var g=this.options.get("selectionAdapter");this.selection=new g(a,this.options);var h=this.selection.render();this._placeSelection(h);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options);var j=this.dropdown.render();this._placeDropdown(j);var k=this.options.get("resultsAdapter");this.results=new k(a,this.options,this.data);var l=this.results.render();this._placeResults(l);var m=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.data.current(function(a){m.trigger("selection:update",{data:a})}),a.hide(),this._tabindex=a.attr("tabindex")||0,a.attr("tabindex","-1"),a.data("select2",this)}};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element),a.width(this.$element.outerWidth(!1))},e.prototype._placeSelection=function(a){var b=this.$container.find(".selection");b.append(a)},e.prototype._placeDropdown=function(a){this.$dropdown=a;var b=this.$container.find(".dropdown-wrapper");b.append(a)},e.prototype._placeResults=function(a){var b=this.$dropdown.find(".select2-results");b.append(a)},e.prototype._bindAdapters=function(){this.data.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var a=this;this.$element.on("change.select2",function(){a.data.current(function(b){a.trigger("selection:update",{data:b})})})},e.prototype._registerDataEvents=function(){var a=this;this.data.on("results:message",function(b){a.trigger("results:message",b)})},e.prototype._registerSelectionEvents=function(){var a=this;this.selection.on("open",function(){a.open()}),this.selection.on("close",function(){a.close()}),this.selection.on("toggle",function(){a.toggleDropdown()}),this.selection.on("results:select",function(){a.trigger("results:select")}),this.selection.on("results:previous",function(){a.trigger("results:previous")}),this.selection.on("results:next",function(){a.trigger("results:next")}),this.selection.on("unselected",function(b){a.trigger("unselect",b),a.close()}),this.selection.on("query",function(b){a.trigger("query",b)}),this.selection.on("keypress",function(b){a.trigger("keypress",b)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("query",function(b){a.trigger("query",b)}),this.dropdown.on("keypress",function(b){a.trigger("keypress",b)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("query:append",function(b){a.trigger("query:append",b)}),this.results.on("selected",function(b){a.trigger("select",b),a.close()}),this.results.on("unselected",function(b){a.trigger("unselect",b),a.close()}),this.results.on("results:focus",function(b){a.trigger("results:focus",b)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("query",function(b){this.data.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.data.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN?(a.trigger("results:next"),b.preventDefault()):(c===d.ESC||c===d.TAB)&&(a.close(),b.preventDefault()):(c===d.ENTER||c===d.SPACE)&&(a.open(),b.preventDefault())})},e.prototype.toggleDropdown=function(){this.isOpen()?this.close():this.open()},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.destroy=function(){this.$container.remove(),this.$element.off(".select2"),this.$element.attr("tabindex",this._tabindex),this.$element.show(),this.$element.removeData("select2"),this.data.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.data=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('');return this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),c("jquery.select2",["jquery","select2/core"],function(a,b){return null==a.fn.select2&&(a.fn.select2=function(c){if(c=c||{},"object"==typeof c)this.each(function(){new b(a(this),c)});else{if("string"!=typeof c)throw new Error("Invalid arguments for Select2: "+c);var d=this.data("select2"),e=Array.prototype.slice.call(arguments,1);d[c](e)}}),b}),b("jquery.select2"),$.fn.select2.amd={define:c,require:b}}();