! ( function ( n ) { 'function' == typeof define && define.amd ? define( [ 'jquery' ], n ) : 'object' == typeof module && module.exports ? ( module.exports = function ( e, t ) { return ( void 0 === t && ( t = 'undefined' != typeof window ? require( 'jquery' ) : require( 'jquery' )( e ) ), n( t ), t ); } ) : n( jQuery ); } )( function ( t ) { var e, n, p, r, s, h, f, g, m, v, y, i, o, _, a, a = ( ( ( u = t && t.fn && t.fn.select2 && t.fn.select2.amd ? t.fn.select2.amd : u ) && u.requirejs ) || ( u ? ( n = u ) : ( u = {} ), ( g = {} ), ( m = {} ), ( v = {} ), ( y = {} ), ( i = Object.prototype.hasOwnProperty ), ( o = [].slice ), ( _ = /\.js$/ ), ( h = function ( e, t ) { var n, i, o = c( e ), r = o[ 0 ], t = t[ 1 ]; return ( ( e = o[ 1 ] ), r && ( n = A( ( r = l( r, t ) ) ) ), r ? ( e = n && n.normalize ? n.normalize( e, ( ( i = t ), function ( e ) { return l( e, i ); } ) ) : l( e, t ) ) : ( ( r = ( o = c( ( e = l( e, t ) ) ) )[ 0 ] ), ( e = o[ 1 ] ), r && ( n = A( r ) ) ), { f: r ? r + '!' + e : e, n: e, pr: r, p: n } ); } ), ( f = { require: function ( e ) { return b( e ); }, exports: function ( e ) { var t = g[ e ]; return void 0 !== t ? t : ( g[ e ] = {} ); }, module: function ( e ) { return { id: e, uri: '', exports: g[ e ], config: ( ( t = e ), function () { return ( ( v && v.config && v.config[ t ] ) || {} ); } ), }; var t; }, } ), ( r = function ( e, t, n, i ) { var o, r, s, a, l, c = [], u = typeof n, d = x( ( i = i || e ) ); if ( 'undefined' == u || 'function' == u ) { for ( t = ! t.length && n.length ? [ 'require', 'exports', 'module' ] : t, a = 0; a < t.length; a += 1 ) if ( 'require' === ( r = ( s = h( t[ a ], d ) ).f ) ) c[ a ] = f.require( e ); else if ( 'exports' === r ) ( c[ a ] = f.exports( e ) ), ( l = ! 0 ); else if ( 'module' === r ) o = c[ a ] = f.module( e ); else if ( w( g, r ) || w( m, r ) || w( y, r ) ) c[ a ] = A( r ); else { if ( ! s.p ) throw new Error( e + ' missing ' + r ); s.p.load( s.n, b( i, ! 0 ), ( function ( t ) { return function ( e ) { g[ t ] = e; }; } )( r ), {} ), ( c[ a ] = g[ r ] ); } ( u = n ? n.apply( g[ e ], c ) : void 0 ), e && ( o && o.exports !== p && o.exports !== g[ e ] ? ( g[ e ] = o.exports ) : ( u === p && l ) || ( g[ e ] = u ) ); } else e && ( g[ e ] = n ); } ), ( e = n = s = function ( e, t, n, i, o ) { if ( 'string' == typeof e ) return f[ e ] ? f[ e ]( t ) : A( h( e, x( t ) ).f ); if ( ! e.splice ) { if ( ( ( v = e ).deps && s( v.deps, v.callback ), ! t ) ) return; t.splice ? ( ( e = t ), ( t = n ), ( n = null ) ) : ( e = p ); } return ( ( t = t || function () {} ), 'function' == typeof n && ( ( n = i ), ( i = o ) ), i ? r( p, e, t, n ) : setTimeout( function () { r( p, e, t, n ); }, 4 ), s ); } ), ( s.config = function ( e ) { return s( e ); } ), ( e._defined = g ), ( ( a = function ( e, t, n ) { if ( 'string' != typeof e ) throw new Error( 'See almond README: incorrect module build, no module name' ); t.splice || ( ( n = t ), ( t = [] ) ), w( g, e ) || w( m, e ) || ( m[ e ] = [ e, t, n ] ); } ).amd = { jQuery: ! 0 } ), ( u.requirejs = e ), ( u.require = n ), ( u.define = a ) ), u.define( 'almond', function () {} ), u.define( 'jquery', [], function () { var e = t || $; return ( null == e && 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.' ), e ); } ), u.define( 'select2/utils', [ 'jquery' ], function ( r ) { var i = {}; function c( e ) { var t, n = e.prototype, i = []; for ( t in n ) 'function' == typeof n[ t ] && 'constructor' !== t && i.push( t ); return i; } ( i.Extend = function ( e, t ) { var n, i = {}.hasOwnProperty; function o() { this.constructor = e; } for ( n in t ) i.call( t, n ) && ( e[ n ] = t[ n ] ); return ( ( o.prototype = t.prototype ), ( e.prototype = new o() ), ( e.__super__ = t.prototype ), e ); } ), ( i.Decorate = function ( i, o ) { var e = c( o ), t = c( i ); function r() { var e = Array.prototype.unshift, t = o.prototype.constructor.length, n = i.prototype.constructor; 0 < t && ( e.call( arguments, i.prototype.constructor ), ( n = o.prototype.constructor ) ), n.apply( this, arguments ); } ( o.displayName = i.displayName ), ( r.prototype = new ( function () { this.constructor = r; } )() ); for ( var n = 0; n < t.length; n++ ) { var s = t[ n ]; r.prototype[ s ] = i.prototype[ s ]; } for ( var a = 0; a < e.length; a++ ) { var l = e[ a ]; r.prototype[ l ] = ( function ( e ) { var t = function () {}; e in r.prototype && ( t = r.prototype[ e ] ); var n = o.prototype[ e ]; return function () { return ( Array.prototype.unshift.call( arguments, t ), n.apply( this, arguments ) ); }; } )( l ); } return r; } ); function e() { this.listeners = {}; } ( e.prototype.on = function ( e, t ) { ( this.listeners = this.listeners || {} ), e in this.listeners ? this.listeners[ e ].push( t ) : ( this.listeners[ e ] = [ t ] ); } ), ( e.prototype.trigger = function ( e ) { var t = Array.prototype.slice, n = t.call( arguments, 1 ); ( this.listeners = this.listeners || {} ), 0 === ( n = null == n ? [] : n ).length && n.push( {} ), ( n[ 0 ]._type = e ) in this.listeners && this.invoke( this.listeners[ e ], t.call( arguments, 1 ) ), '*' in this.listeners && this.invoke( this.listeners[ '*' ], arguments ); } ), ( e.prototype.invoke = function ( e, t ) { for ( var n = 0, i = e.length; n < i; n++ ) e[ n ].apply( this, t ); } ), ( i.Observable = e ), ( i.generateChars = function ( e ) { for ( var t = '', n = 0; n < e; n++ ) t += Math.floor( 36 * Math.random() ).toString( 36 ); return t; } ), ( i.bind = function ( e, t ) { return function () { e.apply( t, arguments ); }; } ), ( i._convertData = function ( e ) { for ( var t in e ) { var n = t.split( '-' ), i = e; if ( 1 !== n.length ) { for ( var o = 0; o < n.length; o++ ) { var r = n[ o ]; ( r = r.substring( 0, 1 ).toLowerCase() + r.substring( 1 ) ) in i || ( i[ r ] = {} ), o == n.length - 1 && ( i[ r ] = e[ t ] ), ( i = i[ r ] ); } delete e[ t ]; } } return e; } ), ( i.hasScroll = function ( e, t ) { var n = r( t ), i = t.style.overflowX, o = t.style.overflowY; return ( ( i !== o || ( 'hidden' !== o && 'visible' !== o ) ) && ( 'scroll' === i || 'scroll' === o || n.innerHeight() < t.scrollHeight || n.innerWidth() < t.scrollWidth ) ); } ), ( i.escapeMarkup = function ( e ) { var t = { '\\': '\', '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '/': '/', }; return 'string' != typeof e ? e : String( e ).replace( /[&<>"'\/\\]/g, function ( e ) { return t[ e ]; } ); } ), ( i.appendMany = function ( e, t ) { var n; '1.7' === r.fn.jquery.substr( 0, 3 ) && ( ( n = r() ), r.map( t, function ( e ) { n = n.add( e ); } ), ( t = n ) ), e.append( t ); } ), ( i.__cache = {} ); var n = 0; return ( ( i.GetUniqueElementId = function ( e ) { var t = e.getAttribute( 'data-select2-id' ); return ( null == t && ( e.id ? ( ( t = e.id ), e.setAttribute( 'data-select2-id', t ) ) : ( e.setAttribute( 'data-select2-id', ++n ), ( t = n.toString() ) ) ), t ); } ), ( i.StoreData = function ( e, t, n ) { e = i.GetUniqueElementId( e ); i.__cache[ e ] || ( i.__cache[ e ] = {} ), ( i.__cache[ e ][ t ] = n ); } ), ( i.GetData = function ( e, t ) { var n = i.GetUniqueElementId( e ); return t ? i.__cache[ n ] && null != i.__cache[ n ][ t ] ? i.__cache[ n ][ t ] : r( e ).data( t ) : i.__cache[ n ]; } ), ( i.RemoveData = function ( e ) { var t = i.GetUniqueElementId( e ); null != i.__cache[ t ] && delete i.__cache[ t ], e.removeAttribute( 'data-select2-id' ); } ), i ); } ), u.define( 'select2/results', [ 'jquery', './utils' ], function ( d, p ) { function i( e, t, n ) { ( this.$element = e ), ( this.data = n ), ( this.options = t ), i.__super__.constructor.call( this ); } return ( p.Extend( i, p.Observable ), ( i.prototype.render = function () { var e = d( '' ); return ( this.options.get( 'multiple' ) && e.attr( 'aria-multiselectable', 'true' ), ( this.$results = e ) ); } ), ( i.prototype.clear = function () { this.$results.empty(); } ), ( i.prototype.displayMessage = function ( e ) { var t = this.options.get( 'escapeMarkup' ); this.clear(), this.hideLoading(); var n = d( '' ), i = this.options .get( 'translations' ) .get( e.message ); n.append( t( i( e.args ) ) ), ( n[ 0 ].className += ' select2-results__message' ), this.$results.append( n ); } ), ( i.prototype.hideMessages = function () { this.$results .find( '.select2-results__message' ) .remove(); } ), ( i.prototype.append = function ( e ) { this.hideLoading(); var t = []; if ( null != e.results && 0 !== e.results.length ) { e.results = this.sort( e.results ); for ( var n = 0; n < e.results.length; n++ ) { var i = e.results[ n ], i = this.option( i ); t.push( i ); } this.$results.append( t ); } else 0 === this.$results.children().length && this.trigger( 'results:message', { message: 'noResults', } ); } ), ( i.prototype.position = function ( e, t ) { t.find( '.select2-results' ).append( e ); } ), ( i.prototype.sort = function ( e ) { return this.options.get( 'sorter' )( e ); } ), ( i.prototype.highlightFirstItem = function () { var e = this.$results.find( '.select2-results__option[aria-selected]' ), t = e.filter( '[aria-selected=true]' ); ( 0 < t.length ? t : e ) .first() .trigger( 'mouseenter' ), this.ensureHighlightVisible(); } ), ( i.prototype.setClasses = function () { var t = this; this.data.current( function ( e ) { var i = d.map( e, function ( e ) { return e.id.toString(); } ); t.$results .find( '.select2-results__option[aria-selected]' ) .each( function () { var e = d( this ), t = p.GetData( this, 'data' ), n = '' + t.id; ( null != t.element && t.element.selected ) || ( null == t.element && -1 < d.inArray( n, i ) ) ? e.attr( 'aria-selected', 'true' ) : e.attr( 'aria-selected', 'false' ); } ); } ); } ), ( i.prototype.showLoading = function ( e ) { this.hideLoading(); ( e = { disabled: ! 0, loading: ! 0, text: this.options .get( 'translations' ) .get( 'searching' )( e ), } ), ( e = this.option( e ) ); ( e.className += ' loading-results' ), this.$results.prepend( e ); } ), ( i.prototype.hideLoading = function () { this.$results.find( '.loading-results' ).remove(); } ), ( i.prototype.option = function ( e ) { var t = document.createElement( 'li' ); t.className = 'select2-results__option'; var n, i = { role: 'option', 'aria-selected': 'false', }, o = window.Element.prototype.matches || window.Element.prototype .msMatchesSelector || window.Element.prototype .webkitMatchesSelector; for ( n in ( ( ( null != e.element && o.call( e.element, ':disabled' ) ) || ( null == e.element && e.disabled ) ) && ( delete i[ 'aria-selected' ], ( i[ 'aria-disabled' ] = 'true' ) ), null == e.id && delete i[ 'aria-selected' ], null != e._resultId && ( t.id = e._resultId ), e.title && ( t.title = e.title ), e.children && ( ( i.role = 'group' ), ( i[ 'aria-label' ] = e.text ), delete i[ 'aria-selected' ] ), i ) ) { var r = i[ n ]; t.setAttribute( n, r ); } if ( e.children ) { var s = d( t ), a = document.createElement( 'strong' ); a.className = 'select2-results__group'; d( a ); this.template( e, a ); for ( var l = [], c = 0; c < e.children.length; c++ ) { var u = e.children[ c ], u = this.option( u ); l.push( u ); } o = d( '', { class: 'select2-results__options select2-results__options--nested', } ); o.append( l ), s.append( a ), s.append( o ); } else this.template( e, t ); return p.StoreData( t, 'data', e ), t; } ), ( i.prototype.bind = function ( t, e ) { var o = this, n = t.id + '-results'; this.$results.attr( 'id', n ), t.on( 'results:all', function ( e ) { o.clear(), o.append( e.data ), t.isOpen() && ( o.setClasses(), o.highlightFirstItem() ); } ), t.on( 'results:append', function ( e ) { o.append( e.data ), t.isOpen() && o.setClasses(); } ), t.on( 'query', function ( e ) { o.hideMessages(), o.showLoading( e ); } ), t.on( 'select', function () { t.isOpen() && ( o.setClasses(), o.options.get( 'scrollAfterSelect' ) && o.highlightFirstItem() ); } ), t.on( 'unselect', function () { t.isOpen() && ( o.setClasses(), o.options.get( 'scrollAfterSelect' ) && o.highlightFirstItem() ); } ), t.on( 'open', function () { o.$results.attr( 'aria-expanded', 'true' ), o.$results.attr( 'aria-hidden', 'false' ), o.setClasses(), o.ensureHighlightVisible(); } ), t.on( 'close', function () { o.$results.attr( 'aria-expanded', 'false' ), o.$results.attr( 'aria-hidden', 'true' ), o.$results.removeAttr( 'aria-activedescendant' ); } ), t.on( 'results:toggle', function () { var e = o.getHighlightedResults(); 0 !== e.length && e.trigger( 'mouseup' ); } ), t.on( 'results:select', function () { var e, t = o.getHighlightedResults(); 0 !== t.length && ( ( e = p.GetData( t[ 0 ], 'data' ) ), 'true' == t.attr( 'aria-selected' ) ? o.trigger( 'close', {} ) : o.trigger( 'select', { data: e, } ) ); } ), t.on( 'results:previous', function () { var e, t = o.getHighlightedResults(), n = o.$results.find( '[aria-selected]' ), i = n.index( t ); i <= 0 || ( ( e = i - 1 ), 0 === t.length && ( e = 0 ), ( i = n.eq( e ) ).trigger( 'mouseenter' ), ( t = o.$results.offset().top ), ( n = i.offset().top ), ( i = o.$results.scrollTop() + ( n - t ) ), 0 === e ? o.$results.scrollTop( 0 ) : n - t < 0 && o.$results.scrollTop( i ) ); } ), t.on( 'results:next', function () { var e, t = o.getHighlightedResults(), n = o.$results.find( '[aria-selected]' ), i = n.index( t ) + 1; i >= n.length || ( ( e = n.eq( i ) ).trigger( 'mouseenter' ), ( t = o.$results.offset().top + o.$results.outerHeight( ! 1 ) ), ( n = e.offset().top + e.outerHeight( ! 1 ) ), ( e = o.$results.scrollTop() + n - t ), 0 === i ? o.$results.scrollTop( 0 ) : t < n && o.$results.scrollTop( e ) ); } ), t.on( 'results:focus', function ( e ) { e.element.addClass( 'select2-results__option--highlighted' ); } ), t.on( 'results:message', function ( e ) { o.displayMessage( e ); } ), d.fn.mousewheel && this.$results.on( 'mousewheel', function ( e ) { var t = o.$results.scrollTop(), n = o.$results.get( 0 ) .scrollHeight - t + e.deltaY, t = 0 < e.deltaY && t - e.deltaY <= 0, n = e.deltaY < 0 && n <= o.$results.height(); t ? ( o.$results.scrollTop( 0 ), e.preventDefault(), e.stopPropagation() ) : n && ( o.$results.scrollTop( o.$results.get( 0 ) .scrollHeight - o.$results.height() ), e.preventDefault(), e.stopPropagation() ); } ), this.$results.on( 'mouseup', '.select2-results__option[aria-selected]', function ( e ) { var t = d( this ), n = p.GetData( this, 'data' ); 'true' !== t.attr( 'aria-selected' ) ? o.trigger( 'select', { originalEvent: e, data: n, } ) : o.options.get( 'multiple' ) ? o.trigger( 'unselect', { originalEvent: e, data: n, } ) : o.trigger( 'close', {} ); } ), this.$results.on( 'mouseenter', '.select2-results__option[aria-selected]', function ( e ) { var t = p.GetData( this, 'data' ); o .getHighlightedResults() .removeClass( 'select2-results__option--highlighted' ), o.trigger( 'results:focus', { data: t, element: d( this ), } ); } ); } ), ( i.prototype.getHighlightedResults = function () { return this.$results.find( '.select2-results__option--highlighted' ); } ), ( i.prototype.destroy = function () { this.$results.remove(); } ), ( i.prototype.ensureHighlightVisible = function () { var e, t, n, i, o = this.getHighlightedResults(); 0 !== o.length && ( ( e = this.$results .find( '[aria-selected]' ) .index( o ) ), ( i = this.$results.offset().top ), ( t = o.offset().top ), ( n = this.$results.scrollTop() + ( t - i ) ), ( i = t - i ), ( n -= 2 * o.outerHeight( ! 1 ) ), e <= 2 ? this.$results.scrollTop( 0 ) : ( i > this.$results.outerHeight() || i < 0 ) && this.$results.scrollTop( n ) ); } ), ( i.prototype.template = function ( e, t ) { var n = this.options.get( 'templateResult' ), i = this.options.get( 'escapeMarkup' ), e = n( e, t ); null == e ? ( t.style.display = 'none' ) : 'string' == typeof e ? ( t.innerHTML = i( e ) ) : d( t ).append( e ); } ), i ); } ), u.define( 'select2/keys', [], function () { return { 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, }; } ), u.define( 'select2/selection/base', [ 'jquery', '../utils', '../keys' ], function ( n, i, o ) { function r( e, t ) { ( this.$element = e ), ( this.options = t ), r.__super__.constructor.call( this ); } return ( i.Extend( r, i.Observable ), ( r.prototype.render = function () { var e = n( '' ); return ( ( this._tabindex = 0 ), null != i.GetData( this.$element[ 0 ], 'old-tabindex' ) ? ( this._tabindex = i.GetData( this.$element[ 0 ], 'old-tabindex' ) ) : null != this.$element.attr( 'tabindex' ) && ( this._tabindex = this.$element.attr( 'tabindex' ) ), e.attr( 'title', this.$element.attr( 'title' ) ), e.attr( 'tabindex', this._tabindex ), e.attr( 'aria-disabled', 'false' ), ( this.$selection = e ) ); } ), ( r.prototype.bind = function ( e, t ) { var n = this, i = e.id + '-results'; ( this.container = e ), this.$selection.on( 'focus', function ( e ) { n.trigger( 'focus', e ); } ), this.$selection.on( 'blur', function ( e ) { n._handleBlur( e ); } ), this.$selection.on( 'keydown', function ( e ) { n.trigger( 'keypress', e ), e.which === o.SPACE && e.preventDefault(); } ), e.on( 'results:focus', function ( e ) { n.$selection.attr( 'aria-activedescendant', e.data._resultId ); } ), e.on( 'selection:update', function ( e ) { n.update( e.data ); } ), e.on( 'open', function () { n.$selection.attr( 'aria-expanded', 'true' ), n.$selection.attr( 'aria-owns', i ), n._attachCloseHandler( e ); } ), e.on( 'close', function () { n.$selection.attr( 'aria-expanded', 'false' ), n.$selection.removeAttr( 'aria-activedescendant' ), n.$selection.removeAttr( 'aria-owns' ), n.$selection.trigger( 'focus' ), n._detachCloseHandler( e ); } ), e.on( 'enable', function () { n.$selection.attr( 'tabindex', n._tabindex ), n.$selection.attr( 'aria-disabled', 'false' ); } ), e.on( 'disable', function () { n.$selection.attr( 'tabindex', '-1' ), n.$selection.attr( 'aria-disabled', 'true' ); } ); } ), ( r.prototype._handleBlur = function ( e ) { var t = this; window.setTimeout( function () { document.activeElement == t.$selection[ 0 ] || n.contains( t.$selection[ 0 ], document.activeElement ) || t.trigger( 'blur', e ); }, 1 ); } ), ( r.prototype._attachCloseHandler = function ( e ) { n( document.body ).on( 'mousedown.select2.' + e.id, function ( e ) { var t = n( e.target ).closest( '.select2' ); n( '.select2.select2-container--open' ).each( function () { this != t[ 0 ] && i .GetData( this, 'element' ) .select2( 'close' ); } ); } ); } ), ( r.prototype._detachCloseHandler = function ( e ) { n( document.body ).off( 'mousedown.select2.' + e.id ); } ), ( r.prototype.position = function ( e, t ) { t.find( '.selection' ).append( e ); } ), ( r.prototype.destroy = function () { this._detachCloseHandler( this.container ); } ), ( r.prototype.update = function ( e ) { 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 ); } ), u.define( 'select2/selection/single', [ 'jquery', './base', '../utils', '../keys' ], function ( e, t, n, i ) { function o() { o.__super__.constructor.apply( this, arguments ); } return ( n.Extend( o, t ), ( o.prototype.render = function () { var e = o.__super__.render.call( this ); return ( e.addClass( 'select2-selection--single' ), e.html( '' ), e ); } ), ( o.prototype.bind = function ( t, e ) { var n = this; o.__super__.bind.apply( this, arguments ); var i = t.id + '-container'; this.$selection .find( '.select2-selection__rendered' ) .attr( 'id', i ) .attr( 'role', 'textbox' ) .attr( 'aria-readonly', 'true' ), this.$selection.attr( 'aria-labelledby', i ), this.$selection.on( 'mousedown', function ( e ) { 1 === e.which && n.trigger( 'toggle', { originalEvent: e, } ); } ), this.$selection.on( 'focus', function ( e ) {} ), this.$selection.on( 'blur', function ( e ) {} ), t.on( 'focus', function ( e ) { t.isOpen() || n.$selection.trigger( 'focus' ); } ); } ), ( o.prototype.clear = function () { var e = this.$selection.find( '.select2-selection__rendered' ); e.empty(), e.removeAttr( 'title' ); } ), ( o.prototype.display = function ( e, t ) { var n = this.options.get( 'templateSelection' ); return this.options.get( 'escapeMarkup' )( n( e, t ) ); } ), ( o.prototype.selectionContainer = function () { return e( '' ); } ), ( o.prototype.update = function ( e ) { var t, n; 0 !== e.length ? ( ( n = e[ 0 ] ), ( t = this.$selection.find( '.select2-selection__rendered' ) ), ( e = this.display( n, t ) ), t.empty().append( e ), ( n = n.title || n.text ) ? t.attr( 'title', n ) : t.removeAttr( 'title' ) ) : this.clear(); } ), o ); } ), u.define( 'select2/selection/multiple', [ 'jquery', './base', '../utils' ], function ( i, e, a ) { function o( e, t ) { o.__super__.constructor.apply( this, arguments ); } return ( a.Extend( o, e ), ( o.prototype.render = function () { var e = o.__super__.render.call( this ); return ( e.addClass( 'select2-selection--multiple' ), e.html( '' ), e ); } ), ( o.prototype.bind = function ( e, t ) { var n = this; o.__super__.bind.apply( this, arguments ), this.$selection.on( 'click', function ( e ) { n.trigger( 'toggle', { originalEvent: e } ); } ), this.$selection.on( 'click', '.select2-selection__choice__remove', function ( e ) { var t; n.isDisabled() || ( ( t = i( this ).parent() ), ( t = a.GetData( t[ 0 ], 'data' ) ), n.trigger( 'unselect', { originalEvent: e, data: t, } ) ); } ); } ), ( o.prototype.clear = function () { var e = this.$selection.find( '.select2-selection__rendered' ); e.empty(), e.removeAttr( 'title' ); } ), ( o.prototype.display = function ( e, t ) { var n = this.options.get( 'templateSelection' ); return this.options.get( 'escapeMarkup' )( n( e, t ) ); } ), ( o.prototype.selectionContainer = function () { return i( '
  • ×
  • ' ); } ), ( o.prototype.update = function ( e ) { if ( ( this.clear(), 0 !== e.length ) ) { for ( var t = [], n = 0; n < e.length; n++ ) { var i = e[ n ], o = this.selectionContainer(), r = this.display( i, o ); o.append( r ); r = i.title || i.text; r && o.attr( 'title', r ), a.StoreData( o[ 0 ], 'data', i ), t.push( o ); } var s = this.$selection.find( '.select2-selection__rendered' ); a.appendMany( s, t ); } } ), o ); } ), u.define( 'select2/selection/placeholder', [ '../utils' ], function ( e ) { function t( e, t, n ) { ( this.placeholder = this.normalizePlaceholder( n.get( 'placeholder' ) ) ), e.call( this, t, n ); } return ( ( t.prototype.normalizePlaceholder = function ( e, t ) { return ( t = 'string' == typeof t ? { id: '', text: t } : t ); } ), ( t.prototype.createPlaceholder = function ( e, t ) { var n = this.selectionContainer(); return ( n.html( this.display( t ) ), n .addClass( 'select2-selection__placeholder' ) .removeClass( 'select2-selection__choice' ), n ); } ), ( t.prototype.update = function ( e, t ) { var n = 1 == t.length && t[ 0 ].id != this.placeholder.id; if ( 1 < t.length || n ) return e.call( this, t ); this.clear(); t = this.createPlaceholder( this.placeholder ); this.$selection .find( '.select2-selection__rendered' ) .append( t ); } ), t ); } ), u.define( 'select2/selection/allowClear', [ 'jquery', '../keys', '../utils' ], function ( n, i, a ) { function e() {} return ( ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), null == this.placeholder && 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 ( e ) { i._handleClear( e ); } ), t.on( 'keypress', function ( e ) { i._handleKeyboardClear( e, t ); } ); } ), ( e.prototype._handleClear = function ( e, t ) { if ( ! this.isDisabled() ) { var n = this.$selection.find( '.select2-selection__clear' ); if ( 0 !== n.length ) { t.stopPropagation(); var i = a.GetData( n[ 0 ], 'data' ), o = this.$element.val(); this.$element.val( this.placeholder.id ); var r = { data: i }; if ( ( this.trigger( 'clear', r ), r.prevented ) ) this.$element.val( o ); else { for ( var s = 0; s < i.length; s++ ) if ( ( ( r = { data: i[ s ] } ), this.trigger( 'unselect', r ), r.prevented ) ) return void this.$element.val( o ); this.$element .trigger( 'input' ) .trigger( 'change' ), this.trigger( 'toggle', {} ); } } } } ), ( e.prototype._handleKeyboardClear = function ( e, t, n ) { n.isOpen() || ( t.which != i.DELETE && t.which != i.BACKSPACE ) || this._handleClear( t ); } ), ( e.prototype.update = function ( e, t ) { e.call( this, t ), 0 < this.$selection.find( '.select2-selection__placeholder' ).length || 0 === t.length || ( ( e = this.options .get( 'translations' ) .get( 'removeAllItems' ) ), ( e = n( '×' ) ), a.StoreData( e[ 0 ], 'data', t ), this.$selection .find( '.select2-selection__rendered' ) .prepend( e ) ); } ), e ); } ), u.define( 'select2/selection/search', [ 'jquery', '../utils', '../keys' ], function ( n, s, a ) { function e( e, t, n ) { e.call( this, t, n ); } return ( ( e.prototype.render = function ( e ) { var t = n( '' ); ( this.$searchContainer = t ), ( this.$search = t.find( 'input' ) ); e = e.call( this ); return this._transferTabIndex(), e; } ), ( e.prototype.bind = function ( e, t, n ) { var i = this, o = t.id + '-results'; e.call( this, t, n ), t.on( 'open', function () { i.$search.attr( 'aria-controls', o ), i.$search.trigger( 'focus' ); } ), t.on( 'close', function () { i.$search.val( '' ), i.$search.removeAttr( 'aria-controls' ), i.$search.removeAttr( 'aria-activedescendant' ), i.$search.trigger( 'focus' ); } ), t.on( 'enable', function () { i.$search.prop( 'disabled', ! 1 ), i._transferTabIndex(); } ), t.on( 'disable', function () { i.$search.prop( 'disabled', ! 0 ); } ), t.on( 'focus', function ( e ) { i.$search.trigger( 'focus' ); } ), t.on( 'results:focus', function ( e ) { e.data._resultId ? i.$search.attr( 'aria-activedescendant', e.data._resultId ) : i.$search.removeAttr( 'aria-activedescendant' ); } ), this.$selection.on( 'focusin', '.select2-search--inline', function ( e ) { i.trigger( 'focus', e ); } ), this.$selection.on( 'focusout', '.select2-search--inline', function ( e ) { i._handleBlur( e ); } ), this.$selection.on( 'keydown', '.select2-search--inline', function ( e ) { var t; e.stopPropagation(), i.trigger( 'keypress', e ), ( i._keyUpPrevented = e.isDefaultPrevented() ), e.which !== a.BACKSPACE || '' !== i.$search.val() || ( 0 < ( t = i.$searchContainer.prev( '.select2-selection__choice' ) ).length && ( ( t = s.GetData( t[ 0 ], 'data' ) ), i.searchRemoveChoice( t ), e.preventDefault() ) ); } ), this.$selection.on( 'click', '.select2-search--inline', function ( e ) { i.$search.val() && e.stopPropagation(); } ); var t = document.documentMode, r = t && t <= 11; this.$selection.on( 'input.searchcheck', '.select2-search--inline', function ( e ) { r ? i.$selection.off( 'input.search input.searchcheck' ) : i.$selection.off( 'keyup.search' ); } ), this.$selection.on( 'keyup.search input.search', '.select2-search--inline', function ( e ) { var t; r && 'input' === e.type ? i.$selection.off( 'input.search input.searchcheck' ) : ( t = e.which ) != a.SHIFT && t != a.CTRL && t != a.ALT && t != a.TAB && i.handleSearch( e ); } ); } ), ( e.prototype._transferTabIndex = function ( e ) { this.$search.attr( 'tabindex', this.$selection.attr( 'tabindex' ) ), this.$selection.attr( 'tabindex', '-1' ); } ), ( e.prototype.createPlaceholder = function ( e, t ) { this.$search.attr( 'placeholder', t.text ); } ), ( e.prototype.update = function ( e, t ) { var n = this.$search[ 0 ] == document.activeElement; this.$search.attr( 'placeholder', '' ), e.call( this, t ), this.$selection .find( '.select2-selection__rendered' ) .append( this.$searchContainer ), this.resizeSearch(), n && this.$search.trigger( 'focus' ); } ), ( e.prototype.handleSearch = function () { var e; this.resizeSearch(), this._keyUpPrevented || ( ( e = this.$search.val() ), this.trigger( 'query', { term: e } ) ), ( this._keyUpPrevented = ! 1 ); } ), ( e.prototype.searchRemoveChoice = function ( e, t ) { this.trigger( 'unselect', { data: t } ), this.$search.val( t.text ), this.handleSearch(); } ), ( e.prototype.resizeSearch = function () { this.$search.css( 'width', '25px' ); var e = ''; ( e = '' !== this.$search.attr( 'placeholder' ) ? this.$selection .find( '.select2-selection__rendered' ) .width() : 0.75 * ( this.$search.val().length + 1 ) + 'em' ), this.$search.css( 'width', e ); } ), e ); } ), u.define( 'select2/selection/eventRelay', [ 'jquery' ], function ( s ) { function e() {} return ( ( e.prototype.bind = function ( e, t, n ) { var i = this, o = [ 'open', 'opening', 'close', 'closing', 'select', 'selecting', 'unselect', 'unselecting', 'clear', 'clearing', ], r = [ 'opening', 'closing', 'selecting', 'unselecting', 'clearing', ]; e.call( this, t, n ), t.on( '*', function ( e, t ) { var n; -1 !== s.inArray( e, o ) && ( ( n = s.Event( 'select2:' + e, { params: ( t = t || {} ), } ) ), i.$element.trigger( n ), -1 !== s.inArray( e, r ) && ( t.prevented = n.isDefaultPrevented() ) ); } ); } ), e ); } ), u.define( 'select2/translation', [ 'jquery', 'require' ], function ( t, n ) { function i( e ) { this.dict = e || {}; } return ( ( i.prototype.all = function () { return this.dict; } ), ( i.prototype.get = function ( e ) { return this.dict[ e ]; } ), ( i.prototype.extend = function ( e ) { this.dict = t.extend( {}, e.all(), this.dict ); } ), ( i._cache = {} ), ( i.loadPath = function ( e ) { var t; return ( e in i._c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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: 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'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', Ά: 'Α', Έ: 'Ε', Ή: 'Η', Ί: 'Ι', Ϊ: 'Ι', Ό: 'Ο', Ύ: 'Υ', Ϋ: 'Υ', Ώ: 'Ω', ά: 'α', έ: 'ε', ή: 'η', ί: 'ι', ϊ: 'ι', ΐ: 'ι', ό: 'ο', ύ: 'υ', ϋ: 'υ', ΰ: 'υ', ώ: 'ω', ς: 'σ', '’': "'", }; } ), u.define( 'select2/data/base', [ '../utils' ], function ( n ) { function i( e, t ) { i.__super__.constructor.call( this ); } return ( n.Extend( i, n.Observable ), ( i.prototype.current = function ( e ) { throw new Error( 'The `current` method must be defined in child classes.' ); } ), ( i.prototype.query = function ( e, t ) { throw new Error( 'The `query` method must be defined in child classes.' ); } ), ( i.prototype.bind = function ( e, t ) {} ), ( i.prototype.destroy = function () {} ), ( i.prototype.generateResultId = function ( e, t ) { e = e.id + '-result-'; return ( ( e += n.generateChars( 4 ) ), null != t.id ? ( e += '-' + t.id.toString() ) : ( e += '-' + n.generateChars( 4 ) ), e ); } ), i ); } ), u.define( 'select2/data/select', [ './base', '../utils', 'jquery' ], function ( e, s, a ) { function n( e, t ) { ( this.$element = e ), ( this.options = t ), n.__super__.constructor.call( this ); } return ( s.Extend( n, e ), ( n.prototype.current = function ( e ) { var t = [], n = this; this.$element .find( ':selected' ) .each( function () { var e = a( this ), e = n.item( e ); t.push( e ); } ), e( t ); } ), ( n.prototype.select = function ( o ) { var e, r = this; if ( ( ( o.selected = ! 0 ), a( o.element ).is( 'option' ) ) ) return ( ( o.element.selected = ! 0 ), void this.$element .trigger( 'input' ) .trigger( 'change' ) ); this.$element.prop( 'multiple' ) ? this.current( function ( e ) { var t = []; ( o = [ o ] ).push.apply( o, e ); for ( var n = 0; n < o.length; n++ ) { var i = o[ n ].id; -1 === a.inArray( i, t ) && t.push( i ); } r.$element.val( t ), r.$element .trigger( 'input' ) .trigger( 'change' ); } ) : ( ( e = o.id ), this.$element.val( e ), this.$element .trigger( 'input' ) .trigger( 'change' ) ); } ), ( n.prototype.unselect = function ( o ) { var r = this; if ( this.$element.prop( 'multiple' ) ) { if ( ( ( o.selected = ! 1 ), a( o.element ).is( 'option' ) ) ) return ( ( o.element.selected = ! 1 ), void this.$element .trigger( 'input' ) .trigger( 'change' ) ); this.current( function ( e ) { for ( var t = [], n = 0; n < e.length; n++ ) { var i = e[ n ].id; i !== o.id && -1 === a.inArray( i, t ) && t.push( i ); } r.$element.val( t ), r.$element .trigger( 'input' ) .trigger( 'change' ); } ); } } ), ( n.prototype.bind = function ( e, t ) { var n = this; ( this.container = e ).on( 'select', function ( e ) { n.select( e.data ); } ), e.on( 'unselect', function ( e ) { n.unselect( e.data ); } ); } ), ( n.prototype.destroy = function () { this.$element.find( '*' ).each( function () { s.RemoveData( this ); } ); } ), ( n.prototype.query = function ( t, e ) { var n = [], i = this; this.$element.children().each( function () { var e = a( this ); ( e.is( 'option' ) || e.is( 'optgroup' ) ) && ( ( e = i.item( e ) ), null !== ( e = i.matches( t, e ) ) && n.push( e ) ); } ), e( { results: n } ); } ), ( n.prototype.addOptions = function ( e ) { s.appendMany( this.$element, e ); } ), ( n.prototype.option = function ( e ) { var t; e.children ? ( ( t = document.createElement( 'optgroup' ) ).label = e.text ) : void 0 !== ( t = document.createElement( 'option' ) ) .textContent ? ( t.textContent = e.text ) : ( t.innerText = e.text ), void 0 !== e.id && ( t.value = e.id ), e.disabled && ( t.disabled = ! 0 ), e.selected && ( t.selected = ! 0 ), e.title && ( t.title = e.title ); var n = a( t ), e = this._normalizeItem( e ); return ( ( e.element = t ), s.StoreData( t, 'data', e ), n ); } ), ( n.prototype.item = function ( e ) { var t = {}; if ( null != ( t = s.GetData( e[ 0 ], 'data' ) ) ) return t; if ( e.is( 'option' ) ) t = { id: e.val(), text: e.text(), disabled: e.prop( 'disabled' ), selected: e.prop( 'selected' ), title: e.prop( 'title' ), }; else if ( e.is( 'optgroup' ) ) { for ( var t = { text: e.prop( 'label' ), children: [], title: e.prop( 'title' ), }, n = e.children( 'option' ), i = [], o = 0; o < n.length; o++ ) { var r = a( n[ o ] ), r = this.item( r ); i.push( r ); } t.children = i; } return ( ( ( t = this._normalizeItem( t ) ).element = e[ 0 ] ), s.StoreData( e[ 0 ], 'data', t ), t ); } ), ( n.prototype._normalizeItem = function ( e ) { e !== Object( e ) && ( e = { id: e, text: e } ); return ( null != ( e = a.extend( {}, { text: '' }, e ) ) .id && ( e.id = e.id.toString() ), null != e.text && ( e.text = e.text.toString() ), null == e._resultId && e.id && null != this.container && ( e._resultId = this.generateResultId( this.container, e ) ), a.extend( {}, { selected: ! 1, disabled: ! 1 }, e ) ); } ), ( n.prototype.matches = function ( e, t ) { return this.options.get( 'matcher' )( e, t ); } ), n ); } ), u.define( 'select2/data/array', [ './select', '../utils', 'jquery' ], function ( e, c, u ) { function i( e, t ) { ( this._dataToConvert = t.get( 'data' ) || [] ), i.__super__.constructor.call( this, e, t ); } return ( c.Extend( i, e ), ( i.prototype.bind = function ( e, t ) { i.__super__.bind.call( this, e, t ), this.addOptions( this.convertToOptions( this._dataToConvert ) ); } ), ( i.prototype.select = function ( n ) { var e; 0 === ( e = this.$element .find( 'option' ) .filter( function ( e, t ) { return t.value == n.id.toString(); } ) ).length && ( ( e = this.option( n ) ), this.addOptions( e ) ), i.__super__.select.call( this, n ); } ), ( i.prototype.convertToOptions = function ( e ) { var t = this, n = this.$element.find( 'option' ), i = n .map( function () { return t.item( u( this ) ).id; } ) .get(), o = []; for ( var r = 0; r < e.length; r++ ) { var s, a, l = this._normalizeItem( e[ r ] ); 0 <= u.inArray( l.id, i ) ? ( ( s = n.filter( ( function ( e ) { return function () { return ( u( this ).val() == e.id ); }; } )( l ) ) ), ( a = this.item( s ) ), ( a = u.extend( ! 0, {}, l, a ) ), ( a = this.option( a ) ), s.replaceWith( a ) ) : ( ( a = this.option( l ) ), l.children && ( ( l = this.convertToOptions( l.children ) ), c.appendMany( a, l ) ), o.push( a ) ); } return o; } ), i ); } ), u.define( 'select2/data/ajax', [ './array', '../utils', 'jquery' ], function ( e, t, r ) { function n( e, t ) { ( this.ajaxOptions = this._applyDefaults( t.get( 'ajax' ) ) ), null != this.ajaxOptions.processResults && ( this.processResults = this.ajaxOptions.processResults ), n.__super__.constructor.call( this, e, t ); } return ( t.Extend( n, e ), ( n.prototype._applyDefaults = function ( e ) { var t = { data: function ( e ) { return r.extend( {}, e, { q: e.term } ); }, transport: function ( e, t, n ) { e = r.ajax( e ); return e.then( t ), e.fail( n ), e; }, }; return r.extend( {}, t, e, ! 0 ); } ), ( n.prototype.processResults = function ( e ) { return e; } ), ( n.prototype.query = function ( t, n ) { var i = this; null != this._request && ( r.isFunction( this._request.abort ) && this._request.abort(), ( this._request = null ) ); var o = r.extend( { type: 'GET' }, this.ajaxOptions ); function e() { var e = o.transport( o, function ( e ) { e = i.processResults( e, t ); i.options.get( 'debug' ) && window.console && console.error && ( ( e && e.results && r.isArray( e.results ) ) || console.error( 'Select2: The AJAX results did not return an array in the `results` key of the response.' ) ), n( e ); }, function () { ( 'status' in e && ( 0 === e.status || '0' === e.status ) ) || i.trigger( 'results:message', { message: 'errorLoading', } ); } ); i._request = e; } 'function' == typeof o.url && ( o.url = o.url.call( this.$element, t ) ), 'function' == typeof o.data && ( o.data = o.data.call( this.$element, t ) ), this.ajaxOptions.delay && null != t.term ? ( this._queryTimeout && window.clearTimeout( this._queryTimeout ), ( this._queryTimeout = window.setTimeout( e, this.ajaxOptions.delay ) ) ) : e(); } ), n ); } ), u.define( 'select2/data/tags', [ 'jquery' ], function ( a ) { function e( e, t, n ) { var i = n.get( 'tags' ), o = n.get( 'createTag' ); void 0 !== o && ( this.createTag = o ); o = n.get( 'insertTag' ); if ( ( void 0 !== o && ( this.insertTag = o ), e.call( this, t, n ), a.isArray( i ) ) ) for ( var r = 0; r < i.length; r++ ) { var s = i[ r ], s = this._normalizeItem( s ), s = this.option( s ); this.$element.append( s ); } } return ( ( e.prototype.query = function ( e, c, u ) { var d = this; this._removeOldTags(), null != c.term && null == c.page ? e.call( this, c, function e( t, n ) { for ( var i = t.results, o = 0; o < i.length; o++ ) { var r = i[ o ], s = null != r.children && ! e( { results: r.children }, ! 0 ); if ( ( r.text || '' ).toUpperCase() === ( c.term || '' ).toUpperCase() || s ) return ( ! n && ( ( t.data = i ), void u( t ) ) ); } if ( n ) return ! 0; var a, l = d.createTag( c ); null != l && ( ( a = d.option( l ) ).attr( 'data-select2-tag', ! 0 ), d.addOptions( [ a ] ), d.insertTag( i, l ) ), ( t.results = i ), u( t ); } ) : e.call( this, c, u ); } ), ( e.prototype.createTag = function ( e, t ) { t = a.trim( t.term ); return '' === t ? null : { id: t, text: t }; } ), ( e.prototype.insertTag = function ( e, t, n ) { t.unshift( n ); } ), ( e.prototype._removeOldTags = function ( e ) { this.$element .find( 'option[data-select2-tag]' ) .each( function () { this.selected || a( this ).remove(); } ); } ), e ); } ), u.define( 'select2/data/tokenizer', [ 'jquery' ], function ( c ) { function e( e, t, n ) { var i = n.get( 'tokenizer' ); void 0 !== i && ( this.tokenizer = i ), e.call( this, t, n ); } return ( ( e.prototype.bind = function ( e, t, n ) { e.call( this, t, n ), ( this.$search = t.dropdown.$search || t.selection.$search || n.find( '.select2-search__field' ) ); } ), ( e.prototype.query = function ( e, t, n ) { var i = this; t.term = t.term || ''; var o = this.tokenizer( t, this.options, function ( e ) { var t = i._normalizeItem( e ); i.$element .find( 'option' ) .filter( function () { return c( this ).val() === t.id; } ).length || ( ( e = i.option( t ) ).attr( 'data-select2-tag', ! 0 ), i._removeOldTags(), i.addOptions( [ e ] ) ), i.trigger( 'select', { data: t } ); } ); o.term !== t.term && ( this.$search.length && ( this.$search.val( o.term ), this.$search.trigger( 'focus' ) ), ( t.term = o.term ) ), e.call( this, t, n ); } ), ( e.prototype.tokenizer = function ( e, t, n, i ) { for ( var o = n.get( 'tokenSeparators' ) || [], r = t.term, s = 0, a = this.createTag || function ( e ) { return { id: e.term, text: e.term }; }; s < r.length; ) { var l = r[ s ]; -1 !== c.inArray( l, o ) ? ( ( l = r.substr( 0, s ) ), null != ( l = a( c.extend( {}, t, { term: l } ) ) ) ? ( i( l ), ( r = r.substr( s + 1 ) || '' ), ( s = 0 ) ) : s++ ) : s++; } return { term: r }; } ), e ); } ), u.define( 'select2/data/minimumInputLength', [], function () { function e( e, t, n ) { ( this.minimumInputLength = n.get( 'minimumInputLength' ) ), e.call( this, t, n ); } return ( ( e.prototype.query = function ( e, t, n ) { ( t.term = t.term || '' ), t.term.length < this.minimumInputLength ? this.trigger( 'results:message', { message: 'inputTooShort', args: { minimum: this.minimumInputLength, input: t.term, params: t, }, } ) : e.call( this, t, n ); } ), e ); } ), u.define( 'select2/data/maximumInputLength', [], function () { function e( e, t, n ) { ( this.maximumInputLength = n.get( 'maximumInputLength' ) ), e.call( this, t, n ); } return ( ( e.prototype.query = function ( e, t, n ) { ( t.term = t.term || '' ), 0 < this.maximumInputLength && t.term.length > this.maximumInputLength ? this.trigger( 'results:message', { message: 'inputTooLong', args: { maximum: this.maximumInputLength, input: t.term, params: t, }, } ) : e.call( this, t, n ); } ), e ); } ), u.define( 'select2/data/maximumSelectionLength', [], function () { function e( e, t, n ) { ( this.maximumSelectionLength = n.get( 'maximumSelectionLength' ) ), e.call( this, t, n ); } return ( ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), t.on( 'select', function () { i._checkIfMaximumSelected(); } ); } ), ( e.prototype.query = function ( e, t, n ) { var i = this; this._checkIfMaximumSelected( function () { e.call( i, t, n ); } ); } ), ( e.prototype._checkIfMaximumSelected = function ( e, t ) { var n = this; this.current( function ( e ) { e = null != e ? e.length : 0; 0 < n.maximumSelectionLength && e >= n.maximumSelectionLength ? n.trigger( 'results:message', { message: 'maximumSelected', args: { maximum: n.maximumSelectionLength, }, } ) : t && t(); } ); } ), e ); } ), u.define( 'select2/dropdown', [ 'jquery', './utils' ], function ( t, e ) { function n( e, t ) { ( this.$element = e ), ( this.options = t ), n.__super__.constructor.call( this ); } return ( e.Extend( n, e.Observable ), ( n.prototype.render = function () { var e = t( '' ); return ( e.attr( 'dir', this.options.get( 'dir' ) ), ( this.$dropdown = e ) ); } ), ( n.prototype.bind = function () {} ), ( n.prototype.position = function ( e, t ) {} ), ( n.prototype.destroy = function () { this.$dropdown.remove(); } ), n ); } ), u.define( 'select2/dropdown/search', [ 'jquery', '../utils' ], function ( r, e ) { function t() {} return ( ( t.prototype.render = function ( e ) { var t = e.call( this ), e = r( '' ); return ( ( this.$searchContainer = e ), ( this.$search = e.find( 'input' ) ), t.prepend( e ), t ); } ), ( t.prototype.bind = function ( e, t, n ) { var i = this, o = t.id + '-results'; e.call( this, t, n ), this.$search.on( 'keydown', function ( e ) { i.trigger( 'keypress', e ), ( i._keyUpPrevented = e.isDefaultPrevented() ); } ), this.$search.on( 'input', function ( e ) { r( this ).off( 'keyup' ); } ), this.$search.on( 'keyup input', function ( e ) { i.handleSearch( e ); } ), t.on( 'open', function () { i.$search.attr( 'tabindex', 0 ), i.$search.attr( 'aria-controls', o ), window.setTimeout( function () { i.$search.trigger( 'focus' ); }, 0 ); } ), t.on( 'close', function () { i.$search.attr( 'tabindex', -1 ), i.$search.removeAttr( 'aria-controls' ), i.$search.removeAttr( 'aria-activedescendant' ), i.$search.val( '' ), i.$search.trigger( 'blur' ); } ), t.on( 'results:all', function ( e ) { ( null != e.query.term && '' !== e.query.term ) || ( i.showSearch( e ) ? i.$searchContainer.removeClass( 'select2-search--hide' ) : i.$searchContainer.addClass( 'select2-search--hide' ) ); } ), t.on( 'results:focus', function ( e ) { e.data._resultId ? i.$search.attr( 'aria-activedescendant', e.data._resultId ) : i.$search.removeAttr( 'aria-activedescendant' ); } ); } ), ( t.prototype.handleSearch = function ( e ) { var t; this._keyUpPrevented || ( ( t = this.$search.val() ), this.trigger( 'query', { term: t } ) ), ( this._keyUpPrevented = ! 1 ); } ), ( t.prototype.showSearch = function ( e, t ) { return ! 0; } ), t ); } ), u.define( 'select2/dropdown/hidePlaceholder', [], function () { function e( e, t, n, i ) { ( this.placeholder = this.normalizePlaceholder( n.get( 'placeholder' ) ) ), e.call( this, t, n, i ); } return ( ( e.prototype.append = function ( e, t ) { ( t.results = this.removePlaceholder( t.results ) ), e.call( this, t ); } ), ( e.prototype.normalizePlaceholder = function ( e, t ) { return ( t = 'string' == typeof t ? { id: '', text: t } : t ); } ), ( e.prototype.removePlaceholder = function ( e, t ) { for ( var n = t.slice( 0 ), i = t.length - 1; 0 <= i; i-- ) { var o = t[ i ]; this.placeholder.id === o.id && n.splice( i, 1 ); } return n; } ), e ); } ), u.define( 'select2/dropdown/infiniteScroll', [ 'jquery' ], function ( n ) { function e( e, t, n, i ) { ( this.lastParams = {} ), e.call( this, t, n, i ), ( this.$loadingMore = this.createLoadingMore() ), ( this.loading = ! 1 ); } return ( ( e.prototype.append = function ( e, t ) { this.$loadingMore.remove(), ( this.loading = ! 1 ), e.call( this, t ), this.showLoadingMore( t ) && ( this.$results.append( this.$loadingMore ), this.loadMoreIfNeeded() ); } ), ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), t.on( 'query', function ( e ) { ( i.lastParams = e ), ( i.loading = ! 0 ); } ), t.on( 'query:append', function ( e ) { ( i.lastParams = e ), ( i.loading = ! 0 ); } ), this.$results.on( 'scroll', this.loadMoreIfNeeded.bind( this ) ); } ), ( e.prototype.loadMoreIfNeeded = function () { var e = n.contains( document.documentElement, this.$loadingMore[ 0 ] ); ! this.loading && e && ( ( e = this.$results.offset().top + this.$results.outerHeight( ! 1 ) ), this.$loadingMore.offset().top + this.$loadingMore.outerHeight( ! 1 ) <= e + 50 && this.loadMore() ); } ), ( e.prototype.loadMore = function () { this.loading = ! 0; var e = n.extend( {}, { page: 1 }, this.lastParams ); e.page++, this.trigger( 'query:append', e ); } ), ( e.prototype.showLoadingMore = function ( e, t ) { return t.pagination && t.pagination.more; } ), ( e.prototype.createLoadingMore = function () { var e = n( '
  • ' ), t = this.options .get( 'translations' ) .get( 'loadingMore' ); return e.html( t( this.lastParams ) ), e; } ), e ); } ), u.define( 'select2/dropdown/attachBody', [ 'jquery', '../utils' ], function ( u, s ) { function e( e, t, n ) { ( this.$dropdownParent = u( n.get( 'dropdownParent' ) || document.body ) ), e.call( this, t, n ); } return ( ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), t.on( 'open', function () { i._showDropdown(), i._attachPositioningHandler( t ), i._bindContainerResultHandlers( t ); } ), t.on( 'close', function () { i._hideDropdown(), i._detachPositioningHandler( t ); } ), this.$dropdownContainer.on( 'mousedown', function ( e ) { e.stopPropagation(); } ); } ), ( e.prototype.destroy = function ( e ) { e.call( this ), this.$dropdownContainer.remove(); } ), ( e.prototype.position = function ( e, t, n ) { t.attr( 'class', n.attr( 'class' ) ), t.removeClass( 'select2' ), t.addClass( 'select2-container--open' ), t.css( { position: 'absolute', top: -999999 } ), ( this.$container = n ); } ), ( e.prototype.render = function ( e ) { var t = u( '' ), e = e.call( this ); return ( t.append( e ), ( this.$dropdownContainer = t ) ); } ), ( e.prototype._hideDropdown = function ( e ) { this.$dropdownContainer.detach(); } ), ( e.prototype._bindContainerResultHandlers = function ( e, t ) { var n; this._containerResultsHandlersBound || ( ( n = this ), t.on( 'results:all', function () { n._positionDropdown(), n._resizeDropdown(); } ), t.on( 'results:append', function () { n._positionDropdown(), n._resizeDropdown(); } ), t.on( 'results:message', function () { n._positionDropdown(), n._resizeDropdown(); } ), t.on( 'select', function () { n._positionDropdown(), n._resizeDropdown(); } ), t.on( 'unselect', function () { n._positionDropdown(), n._resizeDropdown(); } ), ( this._containerResultsHandlersBound = ! 0 ) ); } ), ( e.prototype._attachPositioningHandler = function ( e, t ) { var n = this, i = 'scroll.select2.' + t.id, o = 'resize.select2.' + t.id, r = 'orientationchange.select2.' + t.id, t = this.$container .parents() .filter( s.hasScroll ); t.each( function () { s.StoreData( this, 'select2-scroll-position', { x: u( this ).scrollLeft(), y: u( this ).scrollTop(), } ); } ), t.on( i, function ( e ) { var t = s.GetData( this, 'select2-scroll-position' ); u( this ).scrollTop( t.y ); } ), u( window ).on( i + ' ' + o + ' ' + r, function ( e ) { n._positionDropdown(), n._resizeDropdown(); } ); } ), ( e.prototype._detachPositioningHandler = function ( e, t ) { var n = 'scroll.select2.' + t.id, i = 'resize.select2.' + t.id, t = 'orientationchange.select2.' + t.id; this.$container .parents() .filter( s.hasScroll ) .off( n ), u( window ).off( n + ' ' + i + ' ' + t ); } ), ( e.prototype._positionDropdown = function () { var e = u( window ), t = this.$dropdown.hasClass( 'select2-dropdown--above' ), n = this.$dropdown.hasClass( 'select2-dropdown--below' ), i = null, o = this.$container.offset(); o.bottom = o.top + this.$container.outerHeight( ! 1 ); var r = { height: this.$container.outerHeight( ! 1 ), }; ( r.top = o.top ), ( r.bottom = o.top + r.height ); var s = this.$dropdown.outerHeight( ! 1 ), a = e.scrollTop(), l = e.scrollTop() + e.height(), c = a < o.top - s, e = l > o.bottom + s, a = { left: o.left, top: r.bottom }, l = this.$dropdownParent; 'static' === l.css( 'position' ) && ( l = l.offsetParent() ); o = { top: 0, left: 0 }; ( u.contains( document.body, l[ 0 ] ) || l[ 0 ].isConnected ) && ( o = l.offset() ), ( a.top -= o.top ), ( a.left -= o.left ), t || n || ( i = 'below' ), e || ! c || t ? ! c && e && t && ( i = 'below' ) : ( i = 'above' ), ( 'above' == i || ( t && 'below' !== i ) ) && ( a.top = r.top - o.top - s ), null != i && ( this.$dropdown .removeClass( 'select2-dropdown--below select2-dropdown--above' ) .addClass( 'select2-dropdown--' + i ), this.$container .removeClass( 'select2-container--below select2-container--above' ) .addClass( 'select2-container--' + i ) ), this.$dropdownContainer.css( a ); } ), ( e.prototype._resizeDropdown = function () { var e = { width: this.$container.outerWidth( ! 1 ) + 'px', }; this.options.get( 'dropdownAutoWidth' ) && ( ( e.minWidth = e.width ), ( e.position = 'relative' ), ( e.width = 'auto' ) ), this.$dropdown.css( e ); } ), ( e.prototype._showDropdown = function ( e ) { this.$dropdownContainer.appendTo( this.$dropdownParent ), this._positionDropdown(), this._resizeDropdown(); } ), e ); } ), u.define( 'select2/dropdown/minimumResultsForSearch', [], function () { function e( e, t, n, i ) { ( this.minimumResultsForSearch = n.get( 'minimumResultsForSearch' ) ), this.minimumResultsForSearch < 0 && ( this.minimumResultsForSearch = 1 / 0 ), e.call( this, t, n, i ); } return ( ( e.prototype.showSearch = function ( e, t ) { return ( ! ( ( function e( t ) { for ( var n = 0, i = 0; i < t.length; i++ ) { var o = t[ i ]; o.children ? ( n += e( o.children ) ) : n++; } return n; } )( t.data.results ) < this.minimumResultsForSearch ) && e.call( this, t ) ); } ), e ); } ), u.define( 'select2/dropdown/selectOnClose', [ '../utils' ], function ( i ) { function e() {} return ( ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), t.on( 'close', function ( e ) { i._handleSelectOnClose( e ); } ); } ), ( e.prototype._handleSelectOnClose = function ( e, t ) { if ( t && null != t.originalSelect2Event ) { var n = t.originalSelect2Event; if ( 'select' === n._type || 'unselect' === n._type ) return; } n = this.getHighlightedResults(); n.length < 1 || ( null != ( n = i.GetData( n[ 0 ], 'data' ) ) .element && n.element.selected ) || ( null == n.element && n.selected ) || this.trigger( 'select', { data: n } ); } ), e ); } ), u.define( 'select2/dropdown/closeOnSelect', [], function () { function e() {} return ( ( e.prototype.bind = function ( e, t, n ) { var i = this; e.call( this, t, n ), t.on( 'select', function ( e ) { i._selectTriggered( e ); } ), t.on( 'unselect', function ( e ) { i._selectTriggered( e ); } ); } ), ( e.prototype._selectTriggered = function ( e, t ) { var n = t.originalEvent; ( n && ( n.ctrlKey || n.metaKey ) ) || this.trigger( 'close', { originalEvent: n, originalSelect2Event: t, } ); } ), e ); } ), u.define( 'select2/i18n/en', [], function () { return { errorLoading: function () { return 'The results could not be loaded.'; }, inputTooLong: function ( e ) { var t = e.input.length - e.maximum, e = 'Please delete ' + t + ' character'; return 1 != t && ( e += 's' ), e; }, inputTooShort: function ( e ) { return ( 'Please enter ' + ( e.minimum - e.input.length ) + ' or more characters' ); }, loadingMore: function () { return 'Loading more results…'; }, maximumSelected: function ( e ) { var t = 'You can only select ' + e.maximum + ' item'; return 1 != e.maximum && ( t += 's' ), t; }, noResults: function () { return 'No results found'; }, searching: function () { return 'Searching…'; }, removeAllItems: function () { return 'Remove all items'; }, }; } ), u.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 ( l, a, c, u, d, p, h, f, g, m, s, t, v, y, _, w, b, $, A, x, D, S, C, E, O, T, q, j, e ) { function n() { this.reset(); } return ( ( n.prototype.apply = function ( e ) { var t, n, i; null == ( e = l.extend( ! 0, {}, this.defaults, e ) ) .dataAdapter && ( null != e.ajax ? ( e.dataAdapter = _ ) : null != e.data ? ( e.dataAdapter = y ) : ( e.dataAdapter = v ), 0 < e.minimumInputLength && ( e.dataAdapter = m.Decorate( e.dataAdapter, $ ) ), 0 < e.maximumInputLength && ( e.dataAdapter = m.Decorate( e.dataAdapter, A ) ), 0 < e.maximumSelectionLength && ( e.dataAdapter = m.Decorate( e.dataAdapter, x ) ), e.tags && ( e.dataAdapter = m.Decorate( e.dataAdapter, w ) ), ( null == e.tokenSeparators && null == e.tokenizer ) || ( e.dataAdapter = m.Decorate( e.dataAdapter, b ) ), null != e.query && ( ( t = a( e.amdBase + 'compat/query' ) ), ( e.dataAdapter = m.Decorate( e.dataAdapter, t ) ) ), null != e.initSelection && ( ( n = a( e.amdBase + 'compat/initSelection' ) ), ( e.dataAdapter = m.Decorate( e.dataAdapter, n ) ) ) ), null == e.resultsAdapter && ( ( e.resultsAdapter = c ), null != e.ajax && ( e.resultsAdapter = m.Decorate( e.resultsAdapter, E ) ), null != e.placeholder && ( e.resultsAdapter = m.Decorate( e.resultsAdapter, C ) ), e.selectOnClose && ( e.resultsAdapter = m.Decorate( e.resultsAdapter, q ) ) ), null == e.dropdownAdapter && ( e.multiple ? ( e.dropdownAdapter = D ) : ( ( n = m.Decorate( D, S ) ), ( e.dropdownAdapter = n ) ), 0 !== e.minimumResultsForSearch && ( e.dropdownAdapter = m.Decorate( e.dropdownAdapter, T ) ), e.closeOnSelect && ( e.dropdownAdapter = m.Decorate( e.dropdownAdapter, j ) ), ( null == e.dropdownCssClass && null == e.dropdownCss && null == e.adaptDropdownCssClass ) || ( ( i = a( e.amdBase + 'compat/dropdownCss' ) ), ( e.dropdownAdapter = m.Decorate( e.dropdownAdapter, i ) ) ), ( e.dropdownAdapter = m.Decorate( e.dropdownAdapter, O ) ) ), null == e.selectionAdapter && ( e.multiple ? ( e.selectionAdapter = d ) : ( e.selectionAdapter = u ), null != e.placeholder && ( e.selectionAdapter = m.Decorate( e.selectionAdapter, p ) ), e.allowClear && ( e.selectionAdapter = m.Decorate( e.selectionAdapter, h ) ), e.multiple && ( e.selectionAdapter = m.Decorate( e.selectionAdapter, f ) ), ( null == e.containerCssClass && null == e.containerCss && null == e.adaptContainerCssClass ) || ( ( i = a( e.amdBase + 'compat/containerCss' ) ), ( e.selectionAdapter = m.Decorate( e.selectionAdapter, i ) ) ), ( e.selectionAdapter = m.Decorate( e.selectionAdapter, g ) ) ), ( e.language = this._resolveLanguage( e.language ) ), e.language.push( 'en' ); for ( var o = [], r = 0; r < e.language.length; r++ ) { var s = e.language[ r ]; -1 === o.indexOf( s ) && o.push( s ); } return ( ( e.language = o ), ( e.translations = this._processTranslations( e.language, e.debug ) ), e ); } ), ( n.prototype.reset = function () { function a( e ) { return e.replace( /[^\u0000-\u007E]/g, function ( e ) { return t[ e ] || e; } ); } this.defaults = { amdBase: './', amdLanguageBase: './i18n/', closeOnSelect: ! 0, debug: ! 1, dropdownAutoWidth: ! 1, escapeMarkup: m.escapeMarkup, language: {}, matcher: function e( t, n ) { if ( '' === l.trim( t.term ) ) return n; if ( n.children && 0 < n.children.length ) { for ( var i = l.extend( ! 0, {}, n ), o = n.children.length - 1; 0 <= o; o-- ) null == e( t, n.children[ o ] ) && i.children.splice( o, 1 ); return 0 < i.children.length ? i : e( t, i ); } var r = a( n.text ).toUpperCase(), s = a( t.term ).toUpperCase(); return -1 < r.indexOf( s ) ? n : null; }, minimumInputLength: 0, maximumInputLength: 0, maximumSelectionLength: 0, minimumResultsForSearch: 0, selectOnClose: ! 1, scrollAfterSelect: ! 1, sorter: function ( e ) { return e; }, templateResult: function ( e ) { return e.text; }, templateSelection: function ( e ) { return e.text; }, theme: 'default', width: 'resolve', }; } ), ( n.prototype.applyFromElement = function ( e, t ) { var n = e.language, i = this.defaults.language, o = t.prop( 'lang' ), t = t.closest( '[lang]' ).prop( 'lang' ), t = Array.prototype.concat.call( this._resolveLanguage( o ), this._resolveLanguage( n ), this._resolveLanguage( i ), this._resolveLanguage( t ) ); return ( e.language = t ), e; } ), ( n.prototype._resolveLanguage = function ( e ) { if ( ! e ) return []; if ( l.isEmptyObject( e ) ) return []; if ( l.isPlainObject( e ) ) return [ e ]; for ( var t, n = l.isArray( e ) ? e : [ e ], i = [], o = 0; o < n.length; o++ ) i.push( n[ o ] ), 'string' == typeof n[ o ] && 0 < n[ o ].indexOf( '-' ) && ( ( t = n[ o ].split( '-' )[ 0 ] ), i.push( t ) ); return i; } ), ( n.prototype._processTranslations = function ( e, t ) { for ( var n = new s(), i = 0; i < e.length; i++ ) { var o = new s(), r = e[ i ]; if ( 'string' == typeof r ) try { o = s.loadPath( r ); } catch ( e ) { try { ( r = this.defaults.amdLanguageBase + r ), ( o = s.loadPath( r ) ); } catch ( e ) { t && window.console && console.warn && console.warn( 'Select2: The language file for "' + r + '" could not be automatically loaded. A fallback will be used instead.' ); } } else o = l.isPlainObject( r ) ? new s( r ) : r; n.extend( o ); } return n; } ), ( n.prototype.set = function ( e, t ) { var n = {}; n[ l.camelCase( e ) ] = t; n = m._convertData( n ); l.extend( ! 0, this.defaults, n ); } ), new n() ); } ), u.define( 'select2/options', [ 'require', 'jquery', './defaults', './utils' ], function ( n, c, i, u ) { function e( e, t ) { ( this.options = e ), null != t && this.fromElement( t ), null != t && ( this.options = i.applyFromElement( this.options, t ) ), ( this.options = i.apply( this.options ) ), t && t.is( 'input' ) && ( ( t = n( this.get( 'amdBase' ) + 'compat/inputData' ) ), ( this.options.dataAdapter = u.Decorate( this.options.dataAdapter, t ) ) ); } return ( ( e.prototype.fromElement = function ( e ) { var t = [ 'select2' ]; null == this.options.multiple && ( this.options.multiple = e.prop( 'multiple' ) ), null == this.options.disabled && ( this.options.disabled = e.prop( 'disabled' ) ), null == this.options.dir && ( 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 ), u.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.' ), u.StoreData( e[ 0 ], 'data', u.GetData( e[ 0 ], 'select2Tags' ) ), u.StoreData( e[ 0 ], 'tags', ! 0 ) ), u.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', u.GetData( e[ 0 ], 'ajaxUrl' ) ), u.StoreData( e[ 0 ], 'ajax-Url', u.GetData( e[ 0 ], 'ajaxUrl' ) ) ); var n = {}; function i( e, t ) { return t.toUpperCase(); } for ( var o = 0; o < e[ 0 ].attributes.length; o++ ) { var r = e[ 0 ].attributes[ o ].name, s = 'data-'; r.substr( 0, s.length ) == s && ( ( r = r.substring( s.length ) ), ( s = u.GetData( e[ 0 ], r ) ), ( n[ r.replace( /-([a-z])/g, i ) ] = s ) ); } c.fn.jquery && '1.' == c.fn.jquery.substr( 0, 2 ) && e[ 0 ].dataset && ( n = c.extend( ! 0, {}, e[ 0 ].dataset, n ) ); var a, l = c.extend( ! 0, {}, u.GetData( e[ 0 ] ), n ); for ( a in ( l = u._convertData( l ) ) ) -1 < c.inArray( a, t ) || ( c.isPlainObject( this.options[ a ] ) ? c.extend( this.options[ a ], l[ a ] ) : ( this.options[ a ] = l[ a ] ) ); return this; } ), ( e.prototype.get = function ( e ) { return this.options[ e ]; } ), ( e.prototype.set = function ( e, t ) { this.options[ e ] = t; } ), e ); } ), u.define( 'select2/core', [ 'jquery', './options', './utils', './keys' ], function ( r, o, s, i ) { function a( e, t ) { null != s.GetData( e[ 0 ], 'select2' ) && s.GetData( e[ 0 ], 'select2' ).destroy(), ( this.$element = e ), ( this.id = this._generateId( e ) ), ( this.options = new o( ( t = t || {} ), e ) ), a.__super__.constructor.call( this ); var n = e.attr( 'tabindex' ) || 0; s.StoreData( e[ 0 ], 'old-tabindex', n ), e.attr( 'tabindex', '-1' ), ( t = this.options.get( 'dataAdapter' ) ), ( this.dataAdapter = new t( e, this.options ) ), ( n = this.render() ), this._placeContainer( n ), ( t = this.options.get( 'selectionAdapter' ) ), ( this.selection = new t( e, this.options ) ), ( this.$selection = this.selection.render() ), this.selection.position( this.$selection, n ), ( t = this.options.get( 'dropdownAdapter' ) ), ( this.dropdown = new t( e, this.options ) ), ( this.$dropdown = this.dropdown.render() ), this.dropdown.position( this.$dropdown, n ), ( n = this.options.get( 'resultsAdapter' ) ), ( this.results = new n( e, this.options, this.dataAdapter ) ), ( this.$results = this.results.render() ), this.results.position( this.$results, this.$dropdown ); var i = this; this._bindAdapters(), this._registerDomEvents(), this._registerDataEvents(), this._registerSelectionEvents(), this._registerDropdownEvents(), this._registerResultsEvents(), this._registerEvents(), this.dataAdapter.current( function ( e ) { i.trigger( 'selection:update', { data: e } ); } ), 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( a, s.Observable ), ( a.prototype._generateId = function ( e ) { return ( 'select2-' + ( null != e.attr( 'id' ) ? e.attr( 'id' ) : null != e.attr( 'name' ) ? e.attr( 'name' ) + '-' + s.generateChars( 2 ) : s.generateChars( 4 ) ).replace( /(:|\.|\[|\]|,)/g, '' ) ); } ), ( a.prototype._placeContainer = function ( e ) { e.insertAfter( this.$element ); var t = this._resolveWidth( this.$element, this.options.get( 'width' ) ); null != t && e.css( 'width', t ); } ), ( a.prototype._resolveWidth = function ( e, t ) { var n = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i; if ( 'resolve' == t ) { var i = this._resolveWidth( e, 'style' ); return null != i ? i : this._resolveWidth( e, 'element' ); } if ( 'element' == t ) { i = e.outerWidth( ! 1 ); return i <= 0 ? 'auto' : i + 'px'; } if ( 'style' != t ) return 'computedstyle' != t ? t : window.getComputedStyle( e[ 0 ] ).width; e = e.attr( 'style' ); if ( 'string' != typeof e ) return null; for ( var o = e.split( ';' ), r = 0, s = o.length; r < s; r += 1 ) { var a = o[ r ].replace( /\s/g, '' ).match( n ); if ( null !== a && 1 <= a.length ) return a[ 1 ]; } return null; } ), ( a.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 ); } ), ( a.prototype._registerDomEvents = function () { var t = this; this.$element.on( 'change.select2', function () { t.dataAdapter.current( function ( e ) { t.trigger( 'selection:update', { data: e, } ); } ); } ), this.$element.on( 'focus.select2', function ( e ) { t.trigger( 'focus', e ); } ), ( 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 e = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; null != e ? ( ( this._observer = new e( function ( e ) { t._syncA(), t._syncS( null, e ); } ) ), this._observer.observe( this.$element[ 0 ], { attributes: ! 0, childList: ! 0, subtree: ! 1, } ) ) : this.$element[ 0 ].addEventListener && ( this.$element[ 0 ].addEventListener( 'DOMAttrModified', t._syncA, ! 1 ), this.$element[ 0 ].addEventListener( 'DOMNodeInserted', t._syncS, ! 1 ), this.$element[ 0 ].addEventListener( 'DOMNodeRemoved', t._syncS, ! 1 ) ); } ), ( a.prototype._registerDataEvents = function () { var n = this; this.dataAdapter.on( '*', function ( e, t ) { n.trigger( e, t ); } ); } ), ( a.prototype._registerSelectionEvents = function () { var n = this, i = [ 'toggle', 'focus' ]; this.selection.on( 'toggle', function () { n.toggleDropdown(); } ), this.selection.on( 'focus', function ( e ) { n.focus( e ); } ), this.selection.on( '*', function ( e, t ) { -1 === r.inArray( e, i ) && n.trigger( e, t ); } ); } ), ( a.prototype._registerDropdownEvents = function () { var n = this; this.dropdown.on( '*', function ( e, t ) { n.trigger( e, t ); } ); } ), ( a.prototype._registerResultsEvents = function () { var n = this; this.results.on( '*', function ( e, t ) { n.trigger( e, t ); } ); } ), ( a.prototype._registerEvents = function () { var n = this; this.on( 'open', function () { n.$container.addClass( 'select2-container--open' ); } ), this.on( 'close', function () { n.$container.removeClass( 'select2-container--open' ); } ), this.on( 'enable', function () { n.$container.removeClass( 'select2-container--disabled' ); } ), this.on( 'disable', function () { n.$container.addClass( 'select2-container--disabled' ); } ), this.on( 'blur', function () { n.$container.removeClass( 'select2-container--focus' ); } ), this.on( 'query', function ( t ) { n.isOpen() || n.trigger( 'open', {} ), this.dataAdapter.query( t, function ( e ) { n.trigger( 'results:all', { data: e, query: t, } ); } ); } ), this.on( 'query:append', function ( t ) { this.dataAdapter.query( t, function ( e ) { n.trigger( 'results:append', { data: e, query: t, } ); } ); } ), this.on( 'keypress', function ( e ) { var t = e.which; n.isOpen() ? t === i.ESC || t === i.TAB || ( t === i.UP && e.altKey ) ? ( n.close( e ), e.preventDefault() ) : t === i.ENTER ? ( n.trigger( 'results:select', {} ), e.preventDefault() ) : t === i.SPACE && e.ctrlKey ? ( n.trigger( 'results:toggle', {} ), e.preventDefault() ) : t === i.UP ? ( n.trigger( 'results:previous', {} ), e.preventDefault() ) : t === i.DOWN && ( n.trigger( 'results:next', {} ), e.preventDefault() ) : ( t === i.ENTER || t === i.SPACE || ( t === i.DOWN && e.altKey ) ) && ( n.open(), e.preventDefault() ); } ); } ), ( a.prototype._syncAttributes = function () { this.options.set( 'disabled', this.$element.prop( 'disabled' ) ), this.isDisabled() ? ( this.isOpen() && this.close(), this.trigger( 'disable', {} ) ) : this.trigger( 'enable', {} ); } ), ( a.prototype._isChangeMutation = function ( e, t ) { var n = ! 1, i = this; if ( ! e || ! e.target || 'OPTION' === e.target.nodeName || 'OPTGROUP' === e.target.nodeName ) { if ( t ) if ( t.addedNodes && 0 < t.addedNodes.length ) for ( var o = 0; o < t.addedNodes.length; o++ ) t.addedNodes[ o ].selected && ( n = ! 0 ); else t.removedNodes && 0 < t.removedNodes.length ? ( n = ! 0 ) : r.isArray( t ) && r.each( t, function ( e, t ) { if ( i._isChangeMutation( e, t ) ) return ! ( n = ! 0 ); } ); else n = ! 0; return n; } } ), ( a.prototype._syncSubtree = function ( e, t ) { var t = this._isChangeMutation( e, t ), n = this; t && this.dataAdapter.current( function ( e ) { n.trigger( 'selection:update', { data: e, } ); } ); } ), ( a.prototype.trigger = function ( e, t ) { var n = a.__super__.trigger, i = { open: 'opening', close: 'closing', select: 'selecting', unselect: 'unselecting', clear: 'clearing', }; if ( ( void 0 === t && ( t = {} ), e in i ) ) { var o = { prevented: ! 1, name: e, args: t }; if ( ( n.call( this, i[ e ], o ), o.prevented ) ) return void ( t.prevented = ! 0 ); } n.call( this, e, t ); } ), ( a.prototype.toggleDropdown = function () { this.isDisabled() || ( this.isOpen() ? this.close() : this.open() ); } ), ( a.prototype.open = function () { this.isOpen() || this.isDisabled() || this.trigger( 'query', {} ); } ), ( a.prototype.close = function ( e ) { this.isOpen() && this.trigger( 'close', { originalEvent: e } ); } ), ( a.prototype.isEnabled = function () { return ! this.isDisabled(); } ), ( a.prototype.isDisabled = function () { return this.options.get( 'disabled' ); } ), ( a.prototype.isOpen = function () { return this.$container.hasClass( 'select2-container--open' ); } ), ( a.prototype.hasFocus = function () { return this.$container.hasClass( 'select2-container--focus' ); } ), ( a.prototype.focus = function ( e ) { this.hasFocus() || ( this.$container.addClass( 'select2-container--focus' ), this.trigger( 'focus', {} ) ); } ), ( a.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 = ! ( e = null == e || 0 === e.length ? [ ! 0 ] : e )[ 0 ]; this.$element.prop( 'disabled', e ); } ), ( a.prototype.data = function () { this.options.get( 'debug' ) && 0 < arguments.length && 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 t = []; return ( this.dataAdapter.current( function ( e ) { t = e; } ), t ); } ), ( a.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.' ), null == e || 0 === e.length ) ) return this.$element.val(); e = e[ 0 ]; r.isArray( e ) && ( e = r.map( e, function ( e ) { return e.toString(); } ) ), this.$element .val( e ) .trigger( 'input' ) .trigger( 'change' ); } ), ( a.prototype.destroy = function () { this.$container.remove(), this.$element[ 0 ].detachEvent && this.$element[ 0 ].detachEvent( 'onpropertychange', this._syncA ), null != this._observer ? ( 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 ); } ), ( a.prototype.render = function () { var e = r( '' ); 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 ); } ), a ); } ), u.define( 'select2/compat/utils', [ 'jquery' ], function ( s ) { return { syncCssClasses: function ( e, t, n ) { var i, o = [], r = s.trim( e.attr( 'class' ) ); r && s( ( r = '' + r ).split( /\s+/ ) ).each( function () { 0 === this.indexOf( 'select2-' ) && o.push( this ); } ), ( r = s.trim( t.attr( 'class' ) ) ) && s( ( r = '' + r ).split( /\s+/ ) ).each( function () { 0 !== this.indexOf( 'select2-' ) && null != ( i = n( this ) ) && o.push( i ); } ), e.attr( 'class', o.join( ' ' ) ); }, }; } ), u.define( 'select2/compat/containerCss', [ 'jquery', './utils' ], function ( r, s ) { function a( e ) { return null; } function e() {} return ( ( e.prototype.render = function ( e ) { var t = e.call( this ), n = this.options.get( 'containerCssClass' ) || ''; r.isFunction( n ) && ( n = n( this.$element ) ); var i, o = this.options.get( 'adaptContainerCssClass' ); ( o = o || a ), -1 !== n.indexOf( ':all:' ) && ( ( n = n.replace( ':all:', '' ) ), ( i = o ), ( o = function ( e ) { var t = i( e ); return null != t ? t + ' ' + e : e; } ) ); e = this.options.get( 'containerCss' ) || {}; return ( r.isFunction( e ) && ( e = e( this.$element ) ), s.syncCssClasses( t, this.$element, o ), t.css( e ), t.addClass( n ), t ); } ), e ); } ), u.define( 'select2/compat/dropdownCss', [ 'jquery', './utils' ], function ( r, s ) { function a( e ) { return null; } function e() {} return ( ( e.prototype.render = function ( e ) { var t = e.call( this ), n = this.options.get( 'dropdownCssClass' ) || ''; r.isFunction( n ) && ( n = n( this.$element ) ); var i, o = this.options.get( 'adaptDropdownCssClass' ); ( o = o || a ), -1 !== n.indexOf( ':all:' ) && ( ( n = n.replace( ':all:', '' ) ), ( i = o ), ( o = function ( e ) { var t = i( e ); return null != t ? t + ' ' + e : e; } ) ); e = this.options.get( 'dropdownCss' ) || {}; return ( r.isFunction( e ) && ( e = e( this.$element ) ), s.syncCssClasses( t, this.$element, o ), t.css( e ), t.addClass( n ), t ); } ), e ); } ), u.define( 'select2/compat/initSelection', [ 'jquery' ], function ( i ) { function e( e, t, n ) { n.get( 'debug' ) && window.console && console.warn && console.warn( 'Select2: The `initSelection` option has been deprecated in 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 = n.get( 'initSelection' ) ), ( this._isInitialized = ! 1 ), e.call( this, t, n ); } return ( ( e.prototype.current = function ( e, t ) { var n = this; this._isInitialized ? e.call( this, t ) : this.initSelection.call( null, this.$element, function ( e ) { ( n._isInitialized = ! 0 ), i.isArray( e ) || ( e = [ e ] ), t( e ); } ); } ), e ); } ), u.define( 'select2/compat/inputData', [ 'jquery', '../utils' ], function ( r, n ) { function e( e, t, n ) { ( this._currentData = [] ), ( this._valueSeparator = n.get( 'valueSeparator' ) || ',' ), 'hidden' === t.prop( 'type' ) && n.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 `