PageSourceSearch

https://www.roma.de/build/theme/assets/FormChoiceCollapsed-B35mXkUP.js

js roma.de collected 2026-09-26 04:34:19 UTC 81,074 bytes, 16 lines download raw bytes

1import{d as ie,q as se,P as oe,D as ue,c as X,w as ae,J as le,u as P,j as ce,i as K,F as Q,t as U,x as de,n as he,o as W,g as ee,h as te}from"./component-form-sUITKImD.js";import{g as fe,_ as pe}from"./form-CLq1KR93.js";import"./controller-D-MKMvwz.js";import{j as re}from"./component-Dpt6ccCG.js";import"./stimulus-D-GvPeVs.js";import"./manager-BzUXg26R.js";var ne={exports:{}};/*!
2 * Select2 4.0.13
3 * https://select2.github.io
4 *
5 * Released under the MIT license
6 * https://github.com/select2/select2/blob/master/LICENSE.md
7 */(function(V,J){(function(L){V.exports?V.exports=function(D,I){return I===void 0&&(typeof window<"u"?I=re:I=re(D)),L(I),I}:L(jQuery)})(function(L){var D=function(){if(L&&L.fn&&L.fn.select2&&L.fn.select2.amd)var g=L.fn.select2.amd;var g;(function(){if(!g||!g.requirejs){g?l=g:g={};/**
8 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
9 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
10 */var u,l,s;(function(r){var t,e,n,i,o={},a={},h={},c={},p=Object.prototype.hasOwnProperty,A=[].slice,y=/\.js$/;function m(f,_){return p.call(f,_)}function E(f,_){var w,T,S,b,k,d,C,F,v,x,O,j,q=_&&_.split("/"),H=h.map,Y=H&&H["*"]||{};if(f){for(f=f.split("/"),k=f.length-1,h.nodeIdCompat&&y.test(f[k])&&(f[k]=f[k].replace(y,"")),f[0].charAt(0)==="."&&q&&(j=q.slice(0,q.length-1),f=j.concat(f)),v=0;v<f.length;v++)if(O=f[v],O===".")f.splice(v,1),v-=1;else if(O===".."){if(v===0||v===1&&f[2]===".."||f[v-1]==="..")continue;v>0&&(f.splice(v-1,2),v-=2)}f=f.join("/")}if((q||Y)&&H){for(w=f.split("/"),v=w.length;v>0;v-=1){if(T=w.slice(0,v).join("/"),q){for(x=q.length;x>0;x-=1)if(S=H[q.slice(0,x).join("/")],S&&(S=S[T],S)){b=S,d=v;break}}if(b)break;!C&&Y&&Y[T]&&(C=Y[T],F=v)}!b&&C&&(b=C,d=F),b&&(w.splice(0,d,b),f=w.join("/"))}return f}function B(f,_){return function(){var w=A.call(arguments,0);return typeof w[0]!="string"&&w.length===1&&w.push(null),e.apply(r,w.concat([f,_]))}}function M(f){return function(_){return E(_,f)}}function G(f){return function(_){o[f]=_}}function R(f){if(m(a,f)){var _=a[f];delete a[f],c[f]=!0,t.apply(r,_)}if(!m(o,f)&&!m(c,f))throw new Error("No "+f);return o[f]}function z(f){var _,w=f?f.indexOf("!"):-1;return w>-1&&(_=f.substring(0,w),f=f.substring(w+1,f.length)),[_,f]}function N(f){return f?z(f):[]}n=function(f,_){var w,T=z(f),S=T[0],b=_[1];return f=T[1],S&&(S=E(S,b),w=R(S)),S?w&&w.normalize?f=w.normalize(f,M(b)):f=E(f,b):(f=E(f,b),T=z(f),S=T[0],f=T[1],S&&(w=R(S))),{f:S?S+"!"+f:f,n:f,pr:S,p:w}};function Z(f){return function(){return h&&h.config&&h.config[f]||{}}}i={require:function(f){return B(f)},exports:function(f){var _=o[f];return typeof _<"u"?_:o[f]={}},module:function(f){return{id:f,uri:"",exports:o[f],config:Z(f)}}},t=function(f,_,w,T){var S,b,k,d,C,F,v=[],x=typeof w,O;if(T=T||f,F=N(T),x==="undefined"||x==="function"){for(_=!_.length&&w.length?["require","exports","module"]:_,C=0;C<_.length;C+=1)if(d=n(_[C],F),b=d.f,b==="require")v[C]=i.require(f);else if(b==="exports")v[C]=i.exports(f),O=!0;else if(b==="module")S=v[C]=i.module(f);else if(m(o,b)||m(a,b)||m(c,b))v[C]=R(b);else if(d.p)d.p.load(d.n,B(T,!0),G(b),{}),v[C]=o[b];else throw new Error(f+" missing "+b);k=w?w.apply(o[f],v):void 0,f&&(S&&S.exports!==r&&S.exports!==o[f]?o[f]=S.exports:(k!==r||!O)&&(o[f]=k))}else f&&(o[f]=w)},u=l=e=function(f,_,w,T,S){if(typeof f=="string")return i[f]?i[f](_):R(n(f,N(_)).f);if(!f.splice){if(h=f,h.deps&&e(h.deps,h.callback),!_)return;_.splice?(f=_,_=w,w=null):f=r}return _=_||function(){},typeof w=="function"&&(w=T,T=S),T?t(r,f,_,w):setTimeout(function(){t(r,f,_,w)},4),e},e.config=function(f){return e(f)},u._defined=o,s=function(f,_,w){if(typeof f!="string")throw new Error("See almond README: incorrect module build, no module name");_.splice||(w=_,_=[]),!m(o,f)&&!m(a,f)&&(a[f]=[f,_,w])},s.amd={jQuery:!0}})(),g.requirejs=u,g.require=l,g.define=s}})(),g.define("almond",function(){}),g.define("jquery",[],function(){var u=L||$;return u==null&&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."),u}),g.define("select2/utils",["jquery"],function(u){var l={};l.Extend=function(e,n){var i={}.hasOwnProperty;function o(){this.constructor=e}for(var a in n)i.call(n,a)&&(e[a]=n[a]);return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e};function s(e){var n=e.prototype,i=[];for(var o in n){var a=n[o];typeof a=="function"&&o!=="constructor"&&i.push(o)}return i}l.Decorate=function(e,n){var i=s(n),o=s(e);function a(){var E=Array.prototype.unshift,B=n.prototype.constructor.length,M=e.prototype.constructor;B>0&&(E.call(arguments,e.prototype.constructor),M=n.prototype.constructor),M.apply(this,arguments)}n.displayName=e.displayName;function h(){this.constructor=a}a.prototype=new h;for(var c=0;c<o.length;c++){var p=o[c];a.prototype[p]=e.prototype[p]}for(var A=function(E){var B=function(){};E in a.prototype&&(B=a.prototype[E]);var M=n.prototype[E];return function(){var G=Array.prototype.unshift;return G.call(arguments,B),M.apply(this,arguments)}},y=0;y<i.length;y++){var m=i[y];a.prototype[m]=A(m)}return a};var r=function(){this.listeners={}};r.prototype.on=function(e,n){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n]},r.prototype.trigger=function(e){var n=Array.prototype.slice,i=n.call(arguments,1
10);this.listeners=this.listeners||{},i==null&&(i=[]),i.length===0&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],n.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,n){for(var i=0,o=e.length;i<o;i++)e[i].apply(this,n)},l.Observable=r,l.generateChars=function(e){for(var n="",i=0;i<e;i++){var o=Math.floor(Math.random()*36);n+=o.toString(36)}return n},l.bind=function(e,n){return function(){e.apply(n,arguments)}},l._convertData=function(e){for(var n in e){var i=n.split("-"),o=e;if(i.length!==1){for(var a=0;a<i.length;a++){var h=i[a];h=h.substring(0,1).toLowerCase()+h.substring(1),h in o||(o[h]={}),a==i.length-1&&(o[h]=e[n]),o=o[h]}delete e[n]}}return e},l.hasScroll=function(e,n){var i=u(n),o=n.style.overflowX,a=n.style.overflowY;return o===a&&(a==="hidden"||a==="visible")?!1:o==="scroll"||a==="scroll"?!0:i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth},l.escapeMarkup=function(e){var n={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof e!="string"?e:String(e).replace(/[&<>"'\/\\]/g,function(i){return n[i]})},l.appendMany=function(e,n){if(u.fn.jquery.substr(0,3)==="1.7"){var i=u();u.map(n,function(o){i=i.add(o)}),n=i}e.append(n)},l.__cache={};var t=0;return l.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return n==null&&(e.id?(n=e.id,e.setAttribute("data-select2-id",n)):(e.setAttribute("data-select2-id",++t),n=t.toString())),n},l.StoreData=function(e,n,i){var o=l.GetUniqueElementId(e);l.__cache[o]||(l.__cache[o]={}),l.__cache[o][n]=i},l.GetData=function(e,n){var i=l.GetUniqueElementId(e);return n?l.__cache[i]&&l.__cache[i][n]!=null?l.__cache[i][n]:u(e).data(n):l.__cache[i]},l.RemoveData=function(e){var n=l.GetUniqueElementId(e);l.__cache[n]!=null&&delete l.__cache[n],e.removeAttribute("data-select2-id")},l}),g.define("select2/results",["jquery","./utils"],function(u,l){function s(r,t,e){this.$element=r,this.data=e,this.options=t,s.__super__.constructor.call(this)}return l.Extend(s,l.Observable),s.prototype.render=function(){var r=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&r.attr("aria-multiselectable","true"),this.$results=r,r},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(r){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var e=u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(r.message);e.append(t(n(r.args))),e[0].className+=" select2-results__message",this.$results.append(e)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(r){this.hideLoading();var t=[];if(r.results==null||r.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}r.results=this.sort(r.results);for(var e=0;e<r.results.length;e++){var n=r.results[e],i=this.option(n);t.push(i)}this.$results.append(t)},s.prototype.position=function(r,t){var e=t.find(".select2-results");e.append(r)},s.prototype.sort=function(r){var t=this.options.get("sorter");return t(r)},s.prototype.highlightFirstItem=function(){var r=this.$results.find(".select2-results__option[aria-selected]"),t=r.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):r.first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var r=this;this.data.current(function(t){var e=u.map(t,function(i){return i.id.toString()}),n=r.$results.find(".select2-results__option[aria-selected]");n.each(function(){var i=u(this),o=l.GetData(this,"data"),a=""+o.id;o.element!=null&&o.element.selected||o.element==null&&u.inArray(a,e)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},s.prototype.showLoading=function(r){this.hideLoading();var t=this.options.get("translations").get("searching"),e={disabled:!0,loading:!0,text:t(r)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(r){var t=document.createElement("li");t.className="select2-results__option";var e={role:"option","aria-selected":"false"},n=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(r.element!=null&&n.call(r.element,":disabled")||r.element==null&&r.disabled)&&(delete e["aria-selected"],e["aria-disabled"]="true"),r.id==null&&delete e["aria-selected"],r._resultId!=null&&(t.id=r._resultId),r.title&&(t.title=r.title),r.children&&(e.role="group",e["aria-label"]=r.text,delete e["aria-selected"]);for(var i in e){var o=e[i];t.setAttribute(i,o)}if(r.children){var a=u(t),h=document.createElement("strong");h.className="select2-results__group",u(h),this.template(r,h);for(var c=[],p=0;p<r.children.length;p++){var A=r.children[p],y=this.option(A);c.push(y)}var m=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});m.append(c),a.append(h),a.append(m)}else this.template(r,t);return l.StoreData(t,"data",r),t},s.prototype.bind=function(r,t){var e=this,n=r.id+"-results";this.$results.attr("id",n),r.on("results:all",function(i){e.clear(),e.append(i.data),r.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),r.on("results:append",function(i){e.append(i.data),r.isOpen()&&e.setClasses()}),r.on("query",function(i){e.hideMessages(),e.showLoading(i)}),r.on("select",function(){r.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),r.on("unselect",function(){r.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),r.on("open",function(){e.$results.attr("aria-expanded","true"),e.$results.attr("aria-hidden","false"),e.setClasses(),e.ensureHighlightVisible()}
10),r.on("close",function(){e.$results.attr("aria-expanded","false"),e.$results.attr("aria-hidden","true"),e.$results.removeAttr("aria-activedescendant")}),r.on("results:toggle",function(){var i=e.getHighlightedResults();i.length!==0&&i.trigger("mouseup")}),r.on("results:select",function(){var i=e.getHighlightedResults();if(i.length!==0){var o=l.GetData(i[0],"data");i.attr("aria-selected")=="true"?e.trigger("close",{}):e.trigger("select",{data:o})}}),r.on("results:previous",function(){var i=e.getHighlightedResults(),o=e.$results.find("[aria-selected]"),a=o.index(i);if(!(a<=0)){var h=a-1;i.length===0&&(h=0);var c=o.eq(h);c.trigger("mouseenter");var p=e.$results.offset().top,A=c.offset().top,y=e.$results.scrollTop()+(A-p);h===0?e.$results.scrollTop(0):A-p<0&&e.$results.scrollTop(y)}}),r.on("results:next",function(){var i=e.getHighlightedResults(),o=e.$results.find("[aria-selected]"),a=o.index(i),h=a+1;if(!(h>=o.length)){var c=o.eq(h);c.trigger("mouseenter");var p=e.$results.offset().top+e.$results.outerHeight(!1),A=c.offset().top+c.outerHeight(!1),y=e.$results.scrollTop()+A-p;h===0?e.$results.scrollTop(0):A>p&&e.$results.scrollTop(y)}}),r.on("results:focus",function(i){i.element.addClass("select2-results__option--highlighted")}),r.on("results:message",function(i){e.displayMessage(i)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(i){var o=e.$results.scrollTop(),a=e.$results.get(0).scrollHeight-o+i.deltaY,h=i.deltaY>0&&o-i.deltaY<=0,c=i.deltaY<0&&a<=e.$results.height();h?(e.$results.scrollTop(0),i.preventDefault(),i.stopPropagation()):c&&(e.$results.scrollTop(e.$results.get(0).scrollHeight-e.$results.height()),i.preventDefault(),i.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(i){var o=u(this),a=l.GetData(this,"data");if(o.attr("aria-selected")==="true"){e.options.get("multiple")?e.trigger("unselect",{originalEvent:i,data:a}):e.trigger("close",{});return}e.trigger("select",{originalEvent:i,data:a})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(i){var o=l.GetData(this,"data");e.getHighlightedResults().removeClass("select2-results__option--highlighted"),e.trigger("results:focus",{data:o,element:u(this)})})},s.prototype.getHighlightedResults=function(){var r=this.$results.find(".select2-results__option--highlighted");return r},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var r=this.getHighlightedResults();if(r.length!==0){var t=this.$results.find("[aria-selected]"),e=t.index(r),n=this.$results.offset().top,i=r.offset().top,o=this.$results.scrollTop()+(i-n),a=i-n;o-=r.outerHeight(!1)*2,e<=2?this.$results.scrollTop(0):(a>this.$results.outerHeight()||a<0)&&this.$results.scrollTop(o)}},s.prototype.template=function(r,t){var e=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),i=e(r,t);i==null?t.style.display="none":typeof i=="string"?t.innerHTML=n(i):u(t).append(i)},s}),g.define("select2/keys",[],function(){var u={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};return u}),g.define("select2/selection/base",["jquery","../utils","../keys"],function(u,l,s){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return l.Extend(r,l.Observable),r.prototype.render=function(){var t=u('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,l.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=l.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),t.attr("aria-disabled","false"),this.$selection=t,t},r.prototype.bind=function(t,e){var n=this,i=t.id+"-results";this.container=t,this.$selection.on("focus",function(o){n.trigger("focus",o)}),this.$selection.on("blur",function(o){n._handleBlur(o)}),this.$selection.on("keydown",function(o){n.trigger("keypress",o),o.which===s.SPACE&&o.preventDefault()}),t.on("results:focus",function(o){n.$selection.attr("aria-activedescendant",o.data._resultId)}),t.on("selection:update",function(o){n.update(o.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","fal
10se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),t.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||u.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){u(document.body).on("mousedown.select2."+t.id,function(e){var n=u(e.target),i=n.closest(".select2"),o=u(".select2.select2-container--open");o.each(function(){if(this!=i[0]){var a=l.GetData(this,"element");a.select2("close")}})})},r.prototype._detachCloseHandler=function(t){u(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),g.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(u,l,s,r){function t(){t.__super__.constructor.apply(this,arguments)}return s.Extend(t,l),t.prototype.render=function(){var e=t.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},t.prototype.bind=function(e,n){var i=this;t.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",o),this.$selection.on("mousedown",function(a){a.which===1&&i.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),e.on("focus",function(a){e.isOpen()||i.$selection.trigger("focus")})},t.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},t.prototype.display=function(e,n){var i=this.options.get("templateSelection"),o=this.options.get("escapeMarkup");return o(i(e,n))},t.prototype.selectionContainer=function(){return u("<span></span>")},t.prototype.update=function(e){if(e.length===0){this.clear();return}var n=e[0],i=this.$selection.find(".select2-selection__rendered"),o=this.display(n,i);i.empty().append(o);var a=n.title||n.text;a?i.attr("title",a):i.removeAttr("title")},t}),g.define("select2/selection/multiple",["jquery","./base","../utils"],function(u,l,s){function r(t,e){r.__super__.constructor.apply(this,arguments)}return s.Extend(r,l),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(i){n.trigger("toggle",{originalEvent:i})}),this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!n.isDisabled()){var o=u(this),a=o.parent(),h=s.GetData(a[0],"data");n.trigger("unselect",{originalEvent:i,data:h})}})},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(t,e))},r.prototype.selectionContainer=function(){var t=u('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return t},r.prototype.update=function(t){if(this.clear(),t.length!==0){for(var e=[],n=0;n<t.length;n++){var i=t[n],o=this.selectionContainer(),a=this.display(i,o);o.append(a);var h=i.title||i.text;h&&o.attr("title",h),s.StoreData(o[0],"data",i),e.push(o)}var c=this.$selection.find(".select2-selection__rendered");s.appendMany(c,e)}},r}),g.define("select2/selection/placeholder",["../utils"],function(u){function l(s,r,t){this.placeholder=this.normalizePlaceholder(t.get("placeholder")),s.call(this,r,t)}return l.prototype.normalizePlaceholder=function(s,r){return typeof r=="string"&&(r={id:"",text:r}),r},l.prototype.createPlaceholder=function(s,r){var t=this.selectionContainer();return t.html(this.display(r)),t.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),t},l.prototype.update=function(s,r){var t=r.length==1&&r[0].id!=this.placeholder.id,e=r.length>1;if(e||t)return s.call(this,r);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},l}
10),g.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(u,l,s){function r(){}return r.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(o){i._handleClear(o)}),e.on("keypress",function(o){i._handleKeyboardClear(o,e)})},r.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(n.length!==0){e.stopPropagation();var i=s.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:i};if(this.trigger("clear",a),a.prevented){this.$element.val(o);return}for(var h=0;h<i.length;h++)if(a={data:i[h]},this.trigger("unselect",a),a.prevented){this.$element.val(o);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},r.prototype._handleKeyboardClear=function(t,e,n){n.isOpen()||(e.which==l.DELETE||e.which==l.BACKSPACE)&&this._handleClear(e)},r.prototype.update=function(t,e){if(t.call(this,e),!(this.$selection.find(".select2-selection__placeholder").length>0||e.length===0)){var n=this.options.get("translations").get("removeAllItems"),i=u('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');s.StoreData(i[0],"data",e),this.$selection.find(".select2-selection__rendered").prepend(i)}},r}),g.define("select2/selection/search",["jquery","../utils","../keys"],function(u,l,s){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(t){var e=u('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=e,this.$search=e.find("input");var n=t.call(this);return this._transferTabIndex(),n},r.prototype.bind=function(t,e,n){var i=this,o=e.id+"-results";t.call(this,e,n),e.on("open",function(){i.$search.attr("aria-controls",o),i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(c){i.$search.trigger("focus")}),e.on("results:focus",function(c){c.data._resultId?i.$search.attr("aria-activedescendant",c.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(c){i.trigger("focus",c)}),this.$selection.on("focusout",".select2-search--inline",function(c){i._handleBlur(c)}),this.$selection.on("keydown",".select2-search--inline",function(c){c.stopPropagation(),i.trigger("keypress",c),i._keyUpPrevented=c.isDefaultPrevented();var p=c.which;if(p===s.BACKSPACE&&i.$search.val()===""){var A=i.$searchContainer.prev(".select2-selection__choice");if(A.length>0){var y=l.GetData(A[0],"data");i.searchRemoveChoice(y),c.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(c){i.$search.val()&&c.stopPropagation()});var a=document.documentMode,h=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(c){if(h){i.$selection.off("input.search input.searchcheck");return}i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(c){if(h&&c.type==="input"){i.$selection.off("input.search input.searchcheck");return}var p=c.which;p==s.SHIFT||p==s.CTRL||p==s.ALT||p!=s.TAB&&i.handleSearch(c)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(this.$search.attr("placeholder")!=="")t=this.$selection.find(".select2-selection__rendered").width();else{var e=this.$search.val().length+1;t=e*.75+"em"}this.$search.css("width",t)},r}),g.define("select2/selection/eventRelay",["jquery"],function(u){function l(){}return l.prototype.bind=function(s,r,t){var e=this,n=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],i=["opening","closing","selecting","unselecting","clearing"];s.call(this,r,t),r.on("*",function(o,a){if(u.inArray(o,n)!==-1){a=a||{};var h=u.Event("select2:"+o,{params:a});e.$element.trigger(h),u.inArray(o,i)!==-1&&(a.prevented=h.isDefaultPrevented())}})},l}),g.define("select2/translation",["jquery","require"],function(u,l){function s(r){this.dict=r||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(r){return this.dict[r]},s.prototype.extend=function(r){this.dict=u.extend({},r.all(),this.dict)},s._cache={}
10,s.loadPath=function(r){if(!(r in s._cache)){var t=l(r);s._cache[r]=t}return new s(s._cache[r])},s}),g.define("select2/diacritics",[],function(){var u={"Ⓐ":"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","Ⓒ":"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","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F","Ꝼ":"F","Ⓖ":"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","Ⓝ":"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",Œ:"OE",Æ¢:"OI","Ꝏ":"OO",È¢:"OU","Ⓟ":"P",ï¼°:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P","â±£":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q",ï¼±:"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"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","Ⓣ":"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","Ⓥ":"V",ï¼¶:"V",á¹¼:"V",á¹¾:"V",Ʋ:"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"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","Ⓩ":"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",á
10º¿:"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",œ:"oe",Æ£:"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 u}),g.define("select2/data/base",["../utils"],function(u){function l(s,r){l.__super__.constructor.call(this)}return u.Extend(l,u.Observable),l.prototype.current=function(s){throw new Error("The `current` method must be defined in child classes.")},l.prototype.query=function(s,r){throw new Error("The `query` method must be defined in child classes.")},l.prototype.bind=function(s,r){},l.prototype.destroy=function(){},l.prototype.generateResultId=function(s,r){var t=s.id+"-result-";return t+=u.generateChars(4),r.id!=null?t+="-"+r.id.toString():t+="-"+u.generateChars(4),t},l}),g.define("select2/data/select",["./base","../utils","jquery"],function(u,l,s){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return l.Extend(r,u),r.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each(function(){var i=s(this),o=n.item(i);e.push(o)}),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,s(t.element).is("option")){t.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(i){var o=[];t=[t],t.push.apply(t,i);for(var a=0;a<t.length;a++){var h=t[a].id;s.inArray(h,o)===-1&&o.push(h)}e.$element.val(o),e.$element.trigger("input").trigger("change")});else{var n=t.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,s(t.element).is("option")){t.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(n){for(var i=[],o=0;o<n.length;o++){var a=n[o].id;a!==t.id&&s.inArray(a,i)===-1&&i.push(a)}e.$element.val(i),e.$element.trigger("input").trigger("change")})}},r.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",function(i){n.select(i.data)}),t.on("unselect",function(i){n.unselect(i.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},r.prototype.query=function(t,e){var n=[],i=this,o=this.$element.children();o.each(function(){var a=s(this);if(!(!a.is("option")&&!a.is("optgroup"))){var h=i.item(a),c=i.matches(t,h);c!==null&&n.push(c)}}),e({results:n})},r.prototype.addOptions=function(t){l.appendMany(this.$element,t)},r.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup"),e.label=t.text):(e=document.createElement("option"),e.textContent!==void 0?e.textContent=t.text:e.innerText=t.text),t.id!==void 0&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=s(e),i=this._normalizeItem(t);return i.element=e,l.StoreData(e,"data",i),n},r.prototype.item=function(t){var e={};if(e=l.GetData(t[0],"data"),e!=null)return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),i=[],o=0;o<n.length;o++){var a=s(n[o]),h=this.item(a);i.push(h)}e.children=i}return e=this._normalizeItem(e),e.element=t[0],l.StoreData(t[0],"data",e),e},r.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t}),t=s.extend({},{text:""},t);var e={selected:!1,disabled:!1};return t.id!=null&&(t.id=t.id.toString()),t.text!=null&&(t.text=t.text.toString()),t._resultId==null&&t.id&&this.container!=null&&(t._resultId=this.generateResultId(this.container,t)),s.extend({},e,t)},r.prototype.matches=function(t,e){var n=this.options.get("matcher");return n(t,e)},r}),g.define("select2/data/array",["./select","../utils","jquery"],function(u,l,s){function r(t,e){this._dataToConvert=e.get("data")||[],r.__super__.constructor.call(this,t,e)}return l.Extend(r,u),r.prototype.bind=function(t,e){r.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(t){var e=this.$element.find("option").filter(function(n,i){return i.value==t.id.toString()});e.length===0&&(e=this.option(t),this.addOptions(e)),r.__super__.select.call(this,t)},r.prototype.convertToOptions=function(t){var e=this,n=this.$element.find("option"),i=n.map(function(){return e.item(s(this)).id}).get(),o=[];function a(M){return function(){return s(this).val()==M.id}}for(var h=0;h<t.length;h++){var c=this._normalizeItem(t[h]);if(s.inArray(c.id,i)>=0){var p=n.filter(a(c)),A=this.item(p),y=s.extend(!0,{},c,A),m=this.option(y);p.replaceWith(m);continue}var E=this.option(c);if(c.children){var B=this.convertToOptions(c.children);l.appendMany(E,B)}o.push(E)}return o},r}),g.define("select2/data/ajax",["./array","../utils","jquery"],function(u,l,s){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return l.Extend(r,u),r.prototype._applyDefaults=function(t){var e={data:function(n){return s.extend({},n,{q:n.term})},transport:function(n,i,o){var a=s.ajax(n);return a.then(i),a.fail(o),a}};return s.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){var n=this;this._request!=null&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=s.extend({type:"GET"},this.ajaxOptions);typeof i.url=="function"&&(i.url=i.url.call(this.$element,t)),typeof i.data=="function"&&(i.data=i.data.call(this.$element,t));function o(){var a=i.transport(i,function(h){var c=n.processResults(h,t);n.options.get("debug")&&window.console&&console.error&&(!c||!c.results||!s.isArray(c.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),e(c)},function(){"status"in a&&(a.status===0||a.status==="0")||n.trigger("results:message",{message:"errorLoading"})});n._request=a}this.ajaxOptions.delay&&t.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},r}),g.define("select2/data/tags",["jquery"],function(u){function l(s,r,t){var e=t.get("tags"),n=t.get("createTag");n!==void 0&&(this.createTag=n);var i=t.get("insertTag");if(i!==void 0&&(this.insertTag=i),s.call(this,r,t),u.isArray(e))for(var o=0;o<e.length;
10o++){var a=e[o],h=this._normalizeItem(a),c=this.option(h);this.$element.append(c)}}return l.prototype.query=function(s,r,t){var e=this;if(this._removeOldTags(),r.term==null||r.page!=null){s.call(this,r,t);return}function n(i,o){for(var a=i.results,h=0;h<a.length;h++){var c=a[h],p=c.children!=null&&!n({results:c.children},!0),A=(c.text||"").toUpperCase(),y=(r.term||"").toUpperCase(),m=A===y;if(m||p){if(o)return!1;i.data=a,t(i);return}}if(o)return!0;var E=e.createTag(r);if(E!=null){var B=e.option(E);B.attr("data-select2-tag",!0),e.addOptions([B]),e.insertTag(a,E)}i.results=a,t(i)}s.call(this,r,n)},l.prototype.createTag=function(s,r){var t=u.trim(r.term);return t===""?null:{id:t,text:t}},l.prototype.insertTag=function(s,r,t){r.unshift(t)},l.prototype._removeOldTags=function(s){var r=this.$element.find("option[data-select2-tag]");r.each(function(){this.selected||u(this).remove()})},l}),g.define("select2/data/tokenizer",["jquery"],function(u){function l(s,r,t){var e=t.get("tokenizer");e!==void 0&&(this.tokenizer=e),s.call(this,r,t)}return l.prototype.bind=function(s,r,t){s.call(this,r,t),this.$search=r.dropdown.$search||r.selection.$search||t.find(".select2-search__field")},l.prototype.query=function(s,r,t){var e=this;function n(a){var h=e._normalizeItem(a),c=e.$element.find("option").filter(function(){return u(this).val()===h.id});if(!c.length){var p=e.option(h);p.attr("data-select2-tag",!0),e._removeOldTags(),e.addOptions([p])}i(h)}function i(a){e.trigger("select",{data:a})}r.term=r.term||"";var o=this.tokenizer(r,this.options,n);o.term!==r.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),r.term=o.term),s.call(this,r,t)},l.prototype.tokenizer=function(s,r,t,e){for(var n=t.get("tokenSeparators")||[],i=r.term,o=0,a=this.createTag||function(y){return{id:y.term,text:y.term}};o<i.length;){var h=i[o];if(u.inArray(h,n)===-1){o++;continue}var c=i.substr(0,o),p=u.extend({},r,{term:c}),A=a(p);if(A==null){o++;continue}e(A),i=i.substr(o+1)||"",o=0}return{term:i}},l}),g.define("select2/data/minimumInputLength",[],function(){function u(l,s,r){this.minimumInputLength=r.get("minimumInputLength"),l.call(this,s,r)}return u.prototype.query=function(l,s,r){if(s.term=s.term||"",s.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:s.term,params:s}});return}l.call(this,s,r)},u}),g.define("select2/data/maximumInputLength",[],function(){function u(l,s,r){this.maximumInputLength=r.get("maximumInputLength"),l.call(this,s,r)}return u.prototype.query=function(l,s,r){if(s.term=s.term||"",this.maximumInputLength>0&&s.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:s.term,params:s}});return}l.call(this,s,r)},u}),g.define("select2/data/maximumSelectionLength",[],function(){function u(l,s,r){this.maximumSelectionLength=r.get("maximumSelectionLength"),l.call(this,s,r)}return u.prototype.bind=function(l,s,r){var t=this;l.call(this,s,r),s.on("select",function(){t._checkIfMaximumSelected()})},u.prototype.query=function(l,s,r){var t=this;this._checkIfMaximumSelected(function(){l.call(t,s,r)})},u.prototype._checkIfMaximumSelected=function(l,s){var r=this;this.current(function(t){var e=t!=null?t.length:0;if(r.maximumSelectionLength>0&&e>=r.maximumSelectionLength){r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}});return}s&&s()})},u}),g.define("select2/dropdown",["jquery","./utils"],function(u,l){function s(r,t){this.$element=r,this.options=t,s.__super__.constructor.call(this)}return l.Extend(s,l.Observable),s.prototype.render=function(){var r=u('<span class="select2-dropdown"><span class="select2-results"></span></span>');return r.attr("dir",this.options.get("dir")),this.$dropdown=r,r},s.prototype.bind=function(){},s.prototype.position=function(r,t){},s.prototype.destroy=function(){this.$dropdown.remove()},s}),g.define("select2/dropdown/search",["jquery","../utils"],function(u,l){function s(){}return s.prototype.render=function(r){var t=r.call(this),e=u('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),t.prepend(e),t},s.prototype.bind=function(r,t,e){var n=this,i=t.id+"-results";r.call(this,t,e),this.$search.on("keydown",function(o){n.trigger("keypress",o),n._keyUpPrevented=o.isDefaultPrevented()}),this.$search.on("input",function(o){u(this).off("keyup")}),this.$search.on("keyup input",function(o){n.handleSearch(o)}),t.on("open",function(){n.$search.attr("tabindex",0),n.$search.attr("aria-controls",i),n.$search.trigger("focus"),window.setTimeout(function(){n.$search.trigger("focus")},0)}),t.on("close",function(){n.$search.attr("tabindex",-1),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||n.$search.trigger("focus")}
vendor: 4,470 bytes, line 10
10),t.on("results:all",function(o){if(o.query.term==null||o.query.term===""){var a=n.showSearch(o);a?n.$searchContainer.removeClass("select2-search--hide"):n.$searchContainer.addClass("select2-search--hide")}}),t.on("results:focus",function(o){o.data._resultId?n.$search.attr("aria-activedescendant",o.data._resultId):n.$search.removeAttr("aria-activedescendant")})},s.prototype.handleSearch=function(r){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},s.prototype.showSearch=function(r,t){return!0},s}),g.define("select2/dropdown/hidePlaceholder",[],function(){function u(l,s,r,t){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),l.call(this,s,r,t)}return u.prototype.append=function(l,s){s.results=this.removePlaceholder(s.results),l.call(this,s)},u.prototype.normalizePlaceholder=function(l,s){return typeof s=="string"&&(s={id:"",text:s}),s},u.prototype.removePlaceholder=function(l,s){for(var r=s.slice(0),t=s.length-1;t>=0;t--){var e=s[t];this.placeholder.id===e.id&&r.splice(t,1)}return r},u}),g.define("select2/dropdown/infiniteScroll",["jquery"],function(u){function l(s,r,t,e){this.lastParams={},s.call(this,r,t,e),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return l.prototype.append=function(s,r){this.$loadingMore.remove(),this.loading=!1,s.call(this,r),this.showLoadingMore(r)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},l.prototype.bind=function(s,r,t){var e=this;s.call(this,r,t),r.on("query",function(n){e.lastParams=n,e.loading=!0}),r.on("query:append",function(n){e.lastParams=n,e.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},l.prototype.loadMoreIfNeeded=function(){var s=u.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!s)){var r=this.$results.offset().top+this.$results.outerHeight(!1),t=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);r+50>=t&&this.loadMore()}},l.prototype.loadMore=function(){this.loading=!0;var s=u.extend({},{page:1},this.lastParams);s.page++,this.trigger("query:append",s)},l.prototype.showLoadingMore=function(s,r){return r.pagination&&r.pagination.more},l.prototype.createLoadingMore=function(){var s=u('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),r=this.options.get("translations").get("loadingMore");return s.html(r(this.lastParams)),s},l}),g.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,l){function s(r,t,e){this.$dropdownParent=u(e.get("dropdownParent")||document.body),r.call(this,t,e)}return s.prototype.bind=function(r,t,e){var n=this;r.call(this,t,e),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),n._bindContainerResultHandlers(t)}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(i){i.stopPropagation()})},s.prototype.destroy=function(r){r.call(this),this.$dropdownContainer.remove()},s.prototype.position=function(r,t,e){t.attr("class",e.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=e},s.prototype.render=function(r){var t=u("<span></span>"),e=r.call(this);return t.append(e),this.$dropdownContainer=t,t},s.prototype._hideDropdown=function(r){this.$dropdownContainer.detach()},s.prototype._bindContainerResultHandlers=function(r,t){if(!this._containerResultsHandlersBound){var e=this;t.on("results:all",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("results:append",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("results:message",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("select",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("unselect",function(){e._positionDropdown(),e._resizeDropdown()}),this._containerResultsHandlersBound=!0}},s.prototype._attachPositioningHandler=function(r,t){var e=this,n="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,a=this.$container.parents().filter(l.hasScroll);a.each(function(){l.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),a.on(n,function(h){var c=l.GetData(this,"select2-scroll-position");u(this).scrollTop(c.y)}),u(window).on(n+" "+i+" "+o,function(h){e._positionDropdown(),e._resizeDropdown()})},s.prototype._detachPositioningHandler=function(r,t){var e="scroll.
10select2."+t.id,n="resize.select2."+t.id,i="orientationchange.select2."+t.id,o=this.$container.parents().filter(l.hasScroll);o.off(e),u(window).off(e+" "+n+" "+i)},s.prototype._positionDropdown=function(){var r=u(window),t=this.$dropdown.hasClass("select2-dropdown--above"),e=this.$dropdown.hasClass("select2-dropdown--below"),n=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},h={top:r.scrollTop(),bottom:r.scrollTop()+r.height()},c=h.top<i.top-a.height,p=h.bottom>i.bottom+a.height,A={left:i.left,top:o.bottom},y=this.$dropdownParent;y.css("position")==="static"&&(y=y.offsetParent());var m={top:0,left:0};(u.contains(document.body,y[0])||y[0].isConnected)&&(m=y.offset()),A.top-=m.top,A.left-=m.left,!t&&!e&&(n="below"),!p&&c&&!t?n="above":!c&&p&&t&&(n="below"),(n=="above"||t&&n!=="below")&&(A.top=o.top-m.top-a.height),n!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(A)},s.prototype._resizeDropdown=function(){var r={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(r.minWidth=r.width,r.position="relative",r.width="auto"),this.$dropdown.css(r)},s.prototype._showDropdown=function(r){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},s}),g.define("select2/dropdown/minimumResultsForSearch",[],function(){function u(s){for(var r=0,t=0;t<s.length;t++){var e=s[t];e.children?r+=u(e.children):r++}return r}function l(s,r,t,e){this.minimumResultsForSearch=t.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),s.call(this,r,t,e)}return l.prototype.showSearch=function(s,r){return u(r.data.results)<this.minimumResultsForSearch?!1:s.call(this,r)},l}),g.define("select2/dropdown/selectOnClose",["../utils"],function(u){function l(){}return l.prototype.bind=function(s,r,t){var e=this;s.call(this,r,t),r.on("close",function(n){e._handleSelectOnClose(n)})},l.prototype._handleSelectOnClose=function(s,r){if(r&&r.originalSelect2Event!=null){var t=r.originalSelect2Event;if(t._type==="select"||t._type==="unselect")return}var e=this.getHighlightedResults();if(!(e.length<1)){var n=u.GetData(e[0],"data");n.element!=null&&n.element.selected||n.element==null&&n.selected||this.trigger("select",{data:n})}},l}),g.define("select2/dropdown/closeOnSelect",[],function(){function u(){}return u.prototype.bind=function(l,s,r){var t=this;l.call(this,s,r),s.on("select",function(e){t._selectTriggered(e)}),s.on("unselect",function(e){t._selectTriggered(e)})},u.prototype._selectTriggered=function(l,s){var r=s.originalEvent;r&&(r.ctrlKey||r.metaKey)||this.trigger("close",{originalEvent:r,originalSelect2Event:s})},u}),g.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(u){var l=u.input.length-u.maximum,s="Please delete "+l+" character";return l!=1&&(s+="s"),s},inputTooShort:function(u){var l=u.minimum-u.input.length,s="Please enter "+l+" or more characters";return s},loadingMore:function(){return"Loading more results…"},maximumSelected:function(u){var l="You can only select "+u.maximum+" item";return u.maximum!=1&&(l+="s"),l},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),g.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(u,l,s,r,t,e,n,i,o,a,h,c,p,A,y,m,E,B,M,G,R,z,N,Z,f,_,w,T,S){function b(){this.reset()}b.prototype.apply=function(d){if(d=u.extend(!0,{},this.defaults,d),d.dataAdapter==null){if(d.ajax!=null?d.dataAdapter=y:d.data!=null?d.dataAdapter=A:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,B)),d.maximumInputLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,M)),d.maximumSelectionLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,G)),d.tags&&(d.dataAdapter=a.Decorate(d.dataAdapter,m)),(d.tokenSeparators!=null||d.tokenizer!=null)&&(d.dataAdapter=a.Decorate(d.dataAdapter,E)),d.query!=null){var C=l(d.amdBase+"compat/query");d.dataAdapter=a.Decorate(d.dataAdapter,C)}if(d.initSelection!=null){var F=l(d.amdBase+"compat/initSelection");d.dataAdapter=a.Decorate(d.dataAdapter,F)}}if(d.resultsAdapter==null&&(d.resultsAdapter=s,d.ajax!=null&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,Z)),d.placeholder!=null&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,N)),d.selectOnClose&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,w))),d.dropdownAdapter==null){if(d.multiple)d.dropdownAdapter=R;else{var v=a.Decorate(R,z);d.dropdownAdapter=v}
10if(d.minimumResultsForSearch!==0&&(d.dropdownAdapter=a.Decorate(d.dropdownAdapter,_)),d.closeOnSelect&&(d.dropdownAdapter=a.Decorate(d.dropdownAdapter,T)),d.dropdownCssClass!=null||d.dropdownCss!=null||d.adaptDropdownCssClass!=null){var x=l(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=a.Decorate(d.dropdownAdapter,x)}d.dropdownAdapter=a.Decorate(d.dropdownAdapter,f)}if(d.selectionAdapter==null){if(d.multiple?d.selectionAdapter=t:d.selectionAdapter=r,d.placeholder!=null&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,e)),d.allowClear&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,n)),d.multiple&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,i)),d.containerCssClass!=null||d.containerCss!=null||d.adaptContainerCssClass!=null){var O=l(d.amdBase+"compat/containerCss");d.selectionAdapter=a.Decorate(d.selectionAdapter,O)}d.selectionAdapter=a.Decorate(d.selectionAdapter,o)}d.language=this._resolveLanguage(d.language),d.language.push("en");for(var j=[],q=0;q<d.language.length;q++){var H=d.language[q];j.indexOf(H)===-1&&j.push(H)}return d.language=j,d.translations=this._processTranslations(d.language,d.debug),d},b.prototype.reset=function(){function d(F){function v(x){return c[x]||x}
10return F.replace(/[^\u0000-\u007E]/g,v)}function C(F,v){if(u.trim(F.term)==="")return v;if(v.children&&v.children.length>0){for(var x=u.extend(!0,{},v),O=v.children.length-1;O>=0;O--){var j=v.children[O],q=C(F,j);q==null&&x.children.splice(O,1)}return x.children.length>0?x:C(F,x)}var H=d(v.text).toUpperCase(),Y=d(F.term).toUpperCase();return H.indexOf(Y)>-1?v:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:a.escapeMarkup,language:{},matcher:C,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(F){return F},templateResult:function(F){return F.text},templateSelection:function(F){return F.text},theme:"default",width:"resolve"}},b.prototype.applyFromElement=function(d,C){var F=d.language,v=this.defaults.language,x=C.prop("lang"),O=C.closest("[lang]").prop("lang"),j=Array.prototype.concat.call(this._resolveLanguage(x),this._resolveLanguage(F),this._resolveLanguage(v),this._resolveLanguage(O));return d.language=j,d},b.prototype._resolveLanguage=function(d){if(!d)return[];if(u.isEmptyObject(d))return[];if(u.isPlainObject(d))return[d];var C;u.isArray(d)?C=d:C=[d];for(var F=[],v=0;v<C.length;v++)if(F.push(C[v]),typeof C[v]=="string"&&C[v].indexOf("-")>0){var x=C[v].split("-"),O=x[0];F.push(O)}return F},b.prototype._processTranslations=function(d,C){for(var F=new h,v=0;v<d.length;v++){var x=new h,O=d[v];if(typeof O=="string")try{x=h.loadPath(O)}catch{try{O=this.defaults.amdLanguageBase+O,x=h.loadPath(O)}catch{C&&window.console&&console.warn&&console.warn('Select2: The language file for "'+O+'" could not be automatically loaded. A fallback will be used instead.')}}else u.isPlainObject(O)?x=new h(O):x=O;F.extend(x)}return F},b.prototype.set=function(d,C){var F=u.camelCase(d),v={};v[F]=C;var x=a._convertData(v);u.extend(!0,this.defaults,x)};var k=new b;return k}),g.define("select2/options",["require","jquery","./defaults","./utils"],function(u,l,s,r){function t(e,n){if(this.options=e,n!=null&&this.fromElement(n),n!=null&&(this.options=s.applyFromElement(this.options,n)),this.options=s.apply(this.options),n&&n.is("input")){var i=u(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,i)}}return t.prototype.fromElement=function(e){var n=["select2"];this.options.multiple==null&&(this.options.multiple=e.prop("multiple")),this.options.disabled==null&&(this.options.disabled=e.prop("disabled")),this.options.dir==null&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),r.GetData(e[0],"select2Tags")&&(this.options.debug&&window.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.'),r.StoreData(e[0],"data",r.GetData(e[0],"select2Tags")),r.StoreData(e[0],"tags",!0)),r.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",r.GetData(e[0],"ajaxUrl")),r.StoreData(e[0],"ajax-Url",r.GetData(e[0],"ajaxUrl")));var i={};function o(B,M){return M.toUpperCase()}for(var a=0;a<e[0].attributes.length;a++){var h=e[0].attributes[a].name,c="data-";if(h.substr(0,c.length)==c){var p=h.substring(c.length),A=r.GetData(e[0],p),y=p.replace(/-([a-z])/g,o);i[y]=A}}l.fn.jquery&&l.fn.jquery.substr(0,2)=="1."&&e[0].dataset&&(i=l.extend(!0,{},e[0].dataset,i));var m=l.extend(!0,{},r.GetData(e[0]),i);m=r._convertData(m);for(var E in m)l.inArray(E,n)>-1||(l.isPlainObject(this.options[E])?l.extend(this.options[E],m[E]):this.options[E]=m[E]);return this},t.prototype.get=function(e){return this.options[e]},t.prototype.set=function(e,n){this.options[e]=n},t}),g.define("select2/core",["jquery","./options","./utils","./keys"],function(u,l,s,r){var t=function(e,n){s.GetData(e[0],"select2")!=null&&s.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new l(n,e),t.__super__.constructor.call(this);var i=e.attr("tabindex")||0;s.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var a=this.render();this._placeContainer(a);var h=this.options.get("selectionAdapter");this.selection=new h(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var p=this.options.get("resultsAdapter");this.results=new p(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var A=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(y){A.trigger("selection:update",{data:y})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),s.StoreData(e[0],"select2",this),e.data("select2",this)};return s.Extend(t,s.Observable),t.prototype._generateId=function(e){var n="";return e.attr("id")!=null?n=e.attr("id"):e.attr("name")!=null?n=e.attr("name")+"-"+s.generateChars(2):n=s.generateChars(4),n=n.replace(/(:|\.|\[|\]|,)/g,""),n="select2-"+n,n},t.prototype._placeContainer=function(e){e.insertAfter(this.$element);var n=this._resolveWidth(this.$element,this.options.get("width"));n!=null&&e.css("width",n)},t.prototype._resolveWidth=function(e,n){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(n=="resolve"){var o=this._resolveWidth(e,"style");return o??this._resolveWidth(e,"element")}if(n=="element"){var a=e.outerWidth(!1);return a<=0?"auto":a+"px"}if(n=="style"){var h=e.attr("style");if(typeof h!="string")return null;for(var c=h.split(";"),p=0,A=c.length;p<A;p=p+1){var y=c[p].replace(/\s/g,""),m=y.match(i);if(m!==null&&m.length>=1)return m[1]}return null}if(n=="computedstyle"){var E=window.getComputedStyle(e[0]);return E.width}return n},t.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},t.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(i){e.trigger("selection:update",{data:i})})}),this.$element.on("focus.select2",function(i){e.trigger("focus",i)}),this._syncA=s.bind(this._syncAttributes,this),this._syncS=s.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;n!=null?(this._observer=new n(function(i){e._syncA(),e._syncS(null,i)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},t.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(i){e.focus(i)}),this.selection.on("*",function(i,o){u.inArray(i,n)===-1&&e.trigger(i,o)})},t.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(n){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(n,function(i){e.trigger("results:all",{data:i,query:n})})}),this.on("query:append",function(n){this.dataAdapter.query(n,function(i){e.trigger("results:append",{data:i,query:n})})}),this.on("keypress",function(n){var i=n.which;e.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&n.altKey?(e.close(n),n.preventDefault()):i===r.ENTER?(e.trigger("results:select",{}),n.preventDefault()):i===r.SPACE&&n.ctrlKey?(e.trigger("results:toggle",{}),n.preventDefault()):i===r.UP?(e.trigger("results:previous",{}),n.preventDefault()):i===r.DOWN&&(e.trigger("results:next",{}),n.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&n.altKey)&&(e.open(),n.preventDefault())})},t.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},t.prototype._isChangeMutation=function(e,n){var i=!1,o=this;if(!(e&&e.target&&e.target.nodeName!=="OPTION"&&e.target.nodeName!=="OPTGROUP")){if(!n)i=!0;else if(n.addedNodes&&n.addedNodes.length>0)for(var a=0;a<n.addedNodes.length;a++){var h=n.addedNodes[a];h.selected&&(i=!0)}else n.removedNodes&&n.removedNodes.length>0?i=!0:u.isArray(n)&&u.each(n,function(c,p){if(o._isChangeMutation(c,p))return i=!0,!1});return i}},t.prototype._syncSubtree=function(e,n){var i=this._isChangeMutation(e,n),o=this;i&&this.dataAdapter.current(function(a){o.trigger("selection:update",{data:a})})},t.prototype.trigger=function(e,n){var i=t.__super__.trigger,o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(n===void 0&&(n={}),e in o){var a=o[e],h={prevented:!1,name:e,args:n};if(i.call(this,a,h),h.prevented){n.prevented=!0;return}}i.call(this,e,n)},t.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},t.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},t.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},t.prototype.isEnabled=function(){return!this.isDisabled()},t.prototype.isDisabled=function(){return this.options.get("disabled")},t.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},t.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
10,t.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},t.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(e==null||e.length===0)&&(e=[!0]);var n=!e[0];this.$element.prop("disabled",n)},t.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(n){e=n}),e},t.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),e==null||e.length===0)return this.$element.val();var n=e[0];u.isArray(n)&&(n=u.map(n,function(i){return i.toString()})),this.$element.val(n).trigger("input").trigger("change")},t.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),this._observer!=null?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",s.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),s.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},t.prototype.render=function(){var e=u('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),s.StoreData(e[0],"element",this.$element),e},t}),g.define("select2/compat/utils",["jquery"],function(u){function l(s,r,t){var e,n=[],i;e=u.trim(s.attr("class")),e&&(e=""+e,u(e.split(/\s+/)).each(function(){this.indexOf("select2-")===0&&n.push(this)})),e=u.trim(r.attr("class")),e&&(e=""+e,u(e.split(/\s+/)).each(function(){this.indexOf("select2-")!==0&&(i=t(this),i!=null&&n.push(i))})),s.attr("class",n.join(" "))}return{syncCssClasses:l}}),g.define("select2/compat/containerCss",["jquery","./utils"],function(u,l){function s(t){return null}function r(){}return r.prototype.render=function(t){var e=t.call(this),n=this.options.get("containerCssClass")||"";u.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||s,n.indexOf(":all:")!==-1){n=n.replace(":all:","");var o=i;i=function(h){var c=o(h);return c!=null?c+" "+h:h}}var a=this.options.get("containerCss")||{};return u.isFunction(a)&&(a=a(this.$element)),l.syncCssClasses(e,this.$element,i),e.css(a),e.addClass(n),e},r}),g.define("select2/compat/dropdownCss",["jquery","./utils"],function(u,l){function s(t){return null}function r(){}return r.prototype.render=function(t){var e=t.call(this),n=this.options.get("dropdownCssClass")||"";u.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||s,n.indexOf(":all:")!==-1){n=n.replace(":all:","");var o=i;i=function(h){var c=o(h);return c!=null?c+" "+h:h}}var a=this.options.get("dropdownCss")||{};return u.isFunction(a)&&(a=a(this.$element)),l.syncCssClasses(e,this.$element,i),e.css(a),e.addClass(n),e},r}),g.define("select2/compat/initSelection",["jquery"],function(u){function l(s,r,t){t.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated 
10in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=t.get("initSelection"),this._isInitialized=!1,s.call(this,r,t)}return l.prototype.current=function(s,r){var t=this;if(this._isInitialized){s.call(this,r);return}this.initSelection.call(null,this.$element,function(e){t._isInitialized=!0,u.isArray(e)||(e=[e]),r(e)})},l}),g.define("select2/compat/inputData",["jquery","../utils"],function(u,l){function s(r,t,e){this._currentData=[],this._valueSeparator=e.get("valueSeparator")||",",t.prop("type")==="hidden"&&e.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),r.call(this,t,e)}return s.prototype.current=function(r,t){function e(a,h){var c=[];return a.selected||u.inArray(a.id,h)!==-1?(a.selected=!0,c.push(a)):a.selected=!1,a.children&&c.push.apply(c,e(a.children,h)),c}for(var n=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i];n.push.apply(n,e(o,this.$element.val().split(this._valueSeparator)))}t(n)},s.prototype.select=function(r,t){if(!this.options.get("multiple"))this.current(function(n){u.map(n,function(i){i.selected=!1})}),this.$element.val(t.id),this.$element.trigger("input").trigger("change");else{var e=this.$element.val();e+=this._valueSeparator+t.id,this.$element.val(e),this.$element.trigger("input").trigger("change")}},s.prototype.unselect=function(r,t){var e=this;t.selected=!1,this.current(function(n){for(var i=[],o=0;o<n.length;o++){var a=n[o];t.id!=a.id&&i.push(a.id)}e.$element.val(i.join(e._valueSeparator)),e.$element.trigger("input").trigger("change")})},s.prototype.query=function(r,t,e){for(var n=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i],a=this.matches(t,o);a!==null&&n.push(a)}e({results:n})},s.prototype.addOptions=function(r,t){var e=u.map(t,function(n){return l.GetData(n[0],"data")});this._currentData.push.apply(this._currentData,e)},s}),g.define("select2/compat/matcher",["jquery"],function(u){function l(s){function r(t,e){var n=u.extend(!0,{},e);if(t.term==null||u.trim(t.term)==="")return n;if(e.children){for(var i=e.children.length-1;i>=0;i--){var o=e.children[i],a=s(t.term,o.text,o);a||n.children.splice(i,1)}if(n.children.length>0)return n}return s(t.term,e.text,e)?n:null}return r}return l}),g.define("select2/compat/query",[],function(){function u(l,s,r){r.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),l.call(this,s,r)}return u.prototype.query=function(l,s,r){s.callback=r;var t=this.options.get("query");t.call(null,s)},u}),g.define("select2/dropdown/attachContainer",[],function(){function u(l,s,r){l.call(this,s,r)}return u.prototype.position=function(l,s,r){var t=r.find(".dropdown-wrapper");t.append(s),s.addClass("select2-dropdown--below"),r.addClass("select2-container--below")},u}),g.define("select2/dropdown/stopPropagation",[],function(){function u(){}return u.prototype.bind=function(l,s,r){l.call(this,s,r);var t=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(t.join(" "),function(e){e.stopPropagation()})},u}),g.define("select2/selection/stopPropagation",[],function(){function u(){}return u.prototype.bind=function(l,s,r){l.call(this,s,r);var t=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(t.join(" "),function(e){e.stopPropagation()})},u});/*!
11 * jQuery Mousewheel 3.1.13
12 *
13 * Copyright jQuery Foundation and other contributors
14 * Released under the MIT license
15 * http://jquery.org/license
16 */return function(u){typeof g.define=="function"&&g.define.amd?g.define("jquery-mousewheel",["jquery"],u):V.exports=u}(function(u){var l=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>
16=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice,t,e;if(u.event.fixHooks)for(var n=l.length;n;)u.event.fixHooks[l[--n]]=u.event.mouseHooks;var i=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=s.length;c;)this.addEventListener(s[--c],o,!1);else this.onmousewheel=o;u.data(this,"mousewheel-line-height",i.getLineHeight(this)),u.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=s.length;c;)this.removeEventListener(s[--c],o,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(c){var p=u(c),A=p["offsetParent"in u.fn?"offsetParent":"parent"]();return A.length||(A=u("body")),parseInt(A.css("fontSize"),10)||parseInt(p.css("fontSize"),10)||16},getPageHeight:function(c){return u(c).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};u.fn.extend({mousewheel:function(c){return c?this.bind("mousewheel",c):this.trigger("mousewheel")},unmousewheel:function(c){return this.unbind("mousewheel",c)}});function o(c){var p=c||window.event,A=r.call(arguments,1),y=0,m=0,E=0,B=0,M=0,G=0;if(c=u.event.fix(p),c.type="mousewheel","detail"in p&&(E=p.detail*-1),"wheelDelta"in p&&(E=p.wheelDelta),"wheelDeltaY"in p&&(E=p.wheelDeltaY),"wheelDeltaX"in p&&(m=p.wheelDeltaX*-1),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(m=E*-1,E=0),y=E===0?m:E,"deltaY"in p&&(E=p.deltaY*-1,y=E),"deltaX"in p&&(m=p.deltaX,E===0&&(y=m*-1)),!(E===0&&m===0)){if(p.deltaMode===1){var R=u.data(this,"mousewheel-line-height");y*=R,E*=R,m*=R}else if(p.deltaMode===2){var z=u.data(this,"mousewheel-page-height");y*=z,E*=z,m*=z}if(B=Math.max(Math.abs(E),Math.abs(m)),(!e||B<e)&&(e=B,h(p,B)&&(e/=40)),h(p,B)&&(y/=40,m/=40,E/=40),y=Math[y>=1?"floor":"ceil"](y/e),m=Math[m>=1?"floor":"ceil"](m/e),E=Math[E>=1?"floor":"ceil"](E/e),i.settings.normalizeOffset&&this.getBoundingClientRect){var N=this.getBoundingClientRect();M=c.clientX-N.left,G=c.clientY-N.top}return c.deltaX=m,c.deltaY=E,c.deltaFactor=e,c.offsetX=M,c.offsetY=G,c.deltaMode=0,A.unshift(c,y,m,E),t&&clearTimeout(t),t=setTimeout(a,200),(u.event.dispatch||u.event.handle).apply(this,A)}}function a(){e=null}function h(c,p){return i.settings.adjustOldDeltas&&c.type==="mousewheel"&&p%120===0}}),g.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(u,l,s,r,t){if(u.fn.select2==null){var e=["open","close","destroy"];u.fn.select2=function(n){if(n=n||{},typeof n=="object")return this.each(function(){var a=u.extend(!0,{},n);new s(u(this),a)}),this;if(typeof n=="string"){var i,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=t.GetData(this,"select2");a==null&&window.console&&console.error&&console.error("The select2('"+n+"') method was called on an element that is not using Select2."),i=a[n].apply(a,o)}),u.inArray(n,e)>-1?this:i}else throw new Error("Invalid arguments for Select2: "+n)}}return u.fn.select2.defaults==null&&(u.fn.select2.defaults=r),s}),{define:g.define,require:g.require}}(),I=D.require("jquery.select2");return L.fn.select2.amd=D,I})})(ne);var ge=ne.exports;const ve=fe(ge),me=["data-error-for"],Ee=["multiple","name"],ye={key:0},_e={key:2,disabled:"disabled"},xe=ie({__name:"FormChoiceCollapsed",props:["form"],emits:["change"],setup(V,{emit:J}){ve($);const L=V,D=L.form,I=se(),g=J;function u(r){return pe.size(r)}function l(){return L.form.multiple?"multiple":!1}function s(r){return r.hasOwnProperty("choices")&&r.choices.length>0?"form-choice-optgroup":"form-choice-option"}return oe(()=>{D.element=I.value}),ue(()=>{D.element=I.value,$(I.value).on("change",t=>{D.dispatchChange(),D.value=I.value.value,g("change",t,D.value)});let r={containerCssClass:"theme-select2",dropdownCssClass:"theme-select2-dropdown"};if(D.placeholder){let t=D.placeholder;D.required&&(t+="*"),r.placeholder=t}else if(D.attr.placeholder){let t=D.attr.placeholder;D.required&&(t+="*"),r.placeholder=t}D.required?r.allowClear=!1:r.allowClear=!0,D.search?r.minimumResultsForSearch=10:r.minimumResultsForSearch=1/0,$(I.value).on("select2:unselecting",function(t){$(this).one("select2:opening",function(e){e.preventDefault()})}),$(I.value).select2(r)}),(r,t)=>(W(),X("div",{class:he(["theme-select-wrapper",{error:P(D).errors.length>0}]),"data-error-for":P(D).fullName},[ae(ce("select",{multiple:l(),"onUpdate:modelValue":t[0]||(t[0]=e=>P(D).value=e),name:P(D).fullName,ref_key:"element",ref:I,onChange:t[1]||(t[1]=e=>P(D).dispatchChange())}
16,[P(D).placeholder||P(D).attr.placeholder?(W(),X("option",ye)):K("",!0),u(P(D).preferredChoices)>0?(W(!0),X(Q,{key:1},U(P(D).preferredChoices,e=>(W(),ee(te(s(e)),{choice:e,key:e.label+"_preferred",preferredChoices:!0},null,8,["choice"]))),128)):K("",!0),u(P(D).preferredChoices)>0?(W(),X("option",_e,de(P(D).separator),1)):K("",!0),(W(!0),X(Q,null,U(P(D).choices,e=>(W(),ee(te(s(e)),{choice:e,key:e.label,preferredChoices:!1},null,8,["choice"]))),128))],40,Ee),[[le,P(D).value]])],10,me))}});export{xe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.