var mod_pagespeed_OZjrjjSRL_ = "jQuery(function(t){if(\"undefined\"==typeof wc_cart_params)return!1;var e=function(t){return wc_cart_params.wc_ajax_url.toString().replace(\"%%endpoint%%\",t)},o=function(t){return t.is(\".processing\")||t.parents(\".processing\").length},c=function(t){o(t)||t.addClass(\"processing\").block({message:null,overlayCSS:{background:\"#fff\",opacity:.6}})},i=function(t){t.removeClass(\"processing\").unblock()},r=function(e,o){var c,i,r,s=t.parseHTML(e),p=t(\".woocommerce-cart-form\",s),u=t(\".cart_totals\",s),m=(c=t(\".woocommerce-error, .woocommerce-message, .woocommerce-info\",s),i=[],r=c,c.each(function(e){var o=t(this).text();\"undefined\"==typeof i[o]?i[o]=!0:r.splice(e,1)}),r);if(0!==t(\".woocommerce-cart-form\").length){if(o||t(\".woocommerce-error, .woocommerce-message, .woocommerce-info\").remove(),0===p.length){if(t(\".woocommerce-checkout\").length)return void window.location.reload();var d=t(\".wc-empty-cart-message\",s).closest(\".woocommerce\");t(\".woocommerce-cart-form__contents\").closest(\".woocommerce\").replaceWith(d),m.length>0&&n(m),t(document.body).trigger(\"wc_cart_emptied\")}else t(\".woocommerce-checkout\").length&&t(document.body).trigger(\"update_checkout\"),t(\".woocommerce-cart-form\").replaceWith(p),t(\".woocommerce-cart-form\").find(':input[name=\"update_cart\"]').prop(\"disabled\",!0),m.length>0&&n(m),a(u);t(document.body).trigger(\"updated_wc_div\")}else window.location.reload()},a=function(e){t(\".cart_totals\").replaceWith(e),t(document.body).trigger(\"updated_cart_totals\")},n=function(e,o){o||(o=t(\".woocommerce-notices-wrapper:first\")||t(\".wc-empty-cart-message\").closest(\".woocommerce\")||t(\".woocommerce-cart-form\")),o.prepend(e)},s={init:function(e){this.cart=e,this.toggle_shipping=this.toggle_shipping.bind(this),this.shipping_method_selected=this.shipping_method_selected.bind(this),this.shipping_calculator_submit=this.shipping_calculator_submit.bind(this),t(document).on(\"click\",\".shipping-calculator-button\",this.toggle_shipping),t(document).on(\"change\",\"select.shipping_method, :input[name^=shipping_method]\",this.shipping_method_selected),t(document).on(\"submit\",\"form.woocommerce-shipping-calculator\",this.shipping_calculator_submit),t(\".shipping-calculator-form\").hide()},toggle_shipping:function(){return t(\".shipping-calculator-form\").slideToggle(\"slow\"),t(\"select.country_to_state, input.country_to_state\").trigger(\"change\"),t(document.body).trigger(\"country_to_state_changed\"),!1},shipping_method_selected:function(){var o={};t(\"select.shipping_method, :input[name^=shipping_method][type=radio]:checked, :input[name^=shipping_method][type=hidden]\").each(function(){o[t(this).data(\"index\")]=t(this).val()}),c(t(\"div.cart_totals\"));var r={security:wc_cart_params.update_shipping_method_nonce,shipping_method:o};t.ajax({type:\"post\",url:e(\"update_shipping_method\"),data:r,dataType:\"html\",success:function(t){a(t)},complete:function(){i(t(\"div.cart_totals\")),t(document.body).trigger(\"updated_shipping_method\")}})},shipping_calculator_submit:function(e){e.preventDefault();var o=t(e.currentTarget);c(t(\"div.cart_totals\")),c(o),t(\"<input />\").attr(\"type\",\"hidden\").attr(\"name\",\"calc_shipping\").attr(\"value\",\"x\").appendTo(o),t.ajax({type:o.attr(\"method\"),url:o.attr(\"action\"),data:o.serialize(),dataType:\"html\",success:function(t){r(t)},complete:function(){i(o),i(t(\"div.cart_totals\"))}})}},p={init:function(){this.update_cart_totals=this.update_cart_totals.bind(this),this.input_keypress=this.input_keypress.bind(this),this.cart_submit=this.cart_submit.bind(this),this.submit_click=this.submit_click.bind(this),this.apply_coupon=this.apply_coupon.bind(this),this.remove_coupon_clicked=this.remove_coupon_clicked.bind(this),this.quantity_update=this.quantity_update.bind(this),this.item_remove_clicked=this.item_remove_clicked.bind(this),this.item_restore_clicked=this.item_restore_clicked.bind(this),this.update_cart=this.update_cart.bind(this),t(document).on(\"wc_update_cart added_to_cart\",function(){p.update_cart.apply(p,[].slice.call(arguments,1))}),t(document).on(\"click\",\".woocommerce-cart-form :input[type=submit]\",this.submit_click),t(document).on(\"keypress\",\".woocommerce-cart-form :input[type=number]\",this.input_keypress),t(document).on(\"submit\",\".woocommerce-cart-form\",this.cart_submit),t(document).on(\"click\",\"a.woocommerce-remove-coupon\",this.remove_coupon_clicked),t(document).on(\"click\",\".woocommerce-cart-form .product-remove > a\",this.item_remove_clicked),t(document).on(\"click\",\".woocommerce-cart .restore-item\",this.item_restore_clicked),t(document).on(\"change input\",\".woocommerce-cart-form .cart_item :input\",this.input_changed),t('.woocommerce-cart-form :input[name=\"update_cart\"]').prop(\"disabled\",!0)},input_changed:function(){t('.woocommerce-cart-form :input[name=\"update_cart\"]').prop(\"disabled\",!1)},update_cart:function(e){var o=t(\".woocommerce-cart-form\");c(o),c(t(\"div.cart_totals\")),t.ajax({type:o.attr(\"method\"),url:o.attr(\"action\"),data:o.serialize(),dataType:\"html\",success:function(t){r(t,e)},complete:function(){i(o),i(t(\"div.cart_totals\")),t.scroll_to_notices(t('[role=\"alert\"]'))}})},update_cart_totals:function(){c(t(\"div.cart_totals\")),t.ajax({url:e(\"get_cart_totals\"),dataType:\"html\",success:function(t){a(t)},complete:function(){i(t(\"div.cart_totals\"))}})},input_keypress:function(e){if(13===e.keyCode){var o=t(e.currentTarget).parents(\"form\");try{o[0].checkValidity()&&(e.preventDefault(),this.cart_submit(e))}catch(c){e.preventDefault(),this.cart_submit(e)}}},cart_submit:function(e){var c=t(document.activeElement),i=t(\":input[type=submit][clicked=true]\"),r=t(e.currentTarget);if(r.is(\"form\")||(r=t(e.currentTarget).parents(\"form\")),0!==r.find(\".woocommerce-cart-form__contents\").length)return!o(r)&&void(i.is(':input[name=\"update_cart\"]')||c.is(\"input.qty\")?(e.preventDefault(),this.quantity_update(r)):(i.is(':input[name=\"apply_coupon\"]')||c.is(\"#coupon_code\"))&&(e.preventDefault(),this.apply_coupon(r)))},submit_click:function(e){t(\":input[type=submit]\",t(e.target).parents(\"form\")).removeAttr(\"clicked\"),t(e.target).attr(\"clicked\",\"true\")},apply_coupon:function(o){c(o);var r=this,a=t(\"#coupon_code\"),s=a.val(),p={security:wc_cart_params.apply_coupon_nonce,coupon_code:s};t.ajax({type:\"POST\",url:e(\"apply_coupon\"),data:p,dataType:\"html\",success:function(e){t(\".woocommerce-error, .woocommerce-message, .woocommerce-info\").remove(),n(e),t(document.body).trigger(\"applied_coupon\",[s])},complete:function(){i(o),a.val(\"\"),r.update_cart(!0)}})},remove_coupon_clicked:function(o){o.preventDefault();var r=this,a=t(o.currentTarget).closest(\".cart_totals\"),s=t(o.currentTarget).attr(\"data-coupon\");c(a);var p={security:wc_cart_params.remove_coupon_nonce,coupon:s};t.ajax({type:\"POST\",url:e(\"remove_coupon\"),data:p,dataType:\"html\",success:function(e){t(\".woocommerce-error, .woocommerce-message, .woocommerce-info\").remove(),n(e),t(document.body).trigger(\"removed_coupon\",[s]),i(a)},complete:function(){r.update_cart(!0)}})},quantity_update:function(e){c(e),c(t(\"div.cart_totals\")),t(\"<input />\").attr(\"type\",\"hidden\").attr(\"name\",\"update_cart\").attr(\"value\",\"Update Cart\").appendTo(e),t.ajax({type:e.attr(\"method\"),url:e.attr(\"action\"),data:e.serialize(),dataType:\"html\",success:function(t){r(t)},complete:function(){i(e),i(t(\"div.cart_totals\")),t.scroll_to_notices(t('[role=\"alert\"]'))}})},item_remove_clicked:function(e){e.preventDefault();var o=t(e.currentTarget),a=o.parents(\"form\");c(a),c(t(\"div.cart_totals\")),t.ajax({type:\"GET\",url:o.attr(\"href\"),dataType:\"html\",success:function(t){r(t)},complete:function(){i(a),i(t(\"div.cart_totals\")),t.scroll_to_notices(t('[role=\"alert\"]'))}})},item_restore_clicked:function(e){e.preventDefault();var o=t(e.currentTarget),a=t(\"form.woocommerce-cart-form\");c(a),c(t(\"div.cart_totals\")),t.ajax({type:\"GET\",url:o.attr(\"href\"),dataType:\"html\",success:function(t){r(t)},complete:function(){i(a),i(t(\"div.cart_totals\"))}})}};s.init(p),p.init()});";
var mod_pagespeed_0ffJ9b0iPF = "!function(e){\"function\"==typeof define&&define.amd?define([\"jquery\"],e):\"object\"==typeof module&&module.exports?module.exports=function(t,n){return n===undefined&&(n=\"undefined\"!=typeof window?require(\"jquery\"):require(\"jquery\")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o,r;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,s,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,i,o,r,s,a,l,c,d,p,h,g=t&&t.split(\"/\"),m=u.map,v=m&&m[\"*\"]||{};if(e){for(s=(e=e.split(\"/\")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,\"\")),\".\"===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if(\".\"===(h=e[d]))e.splice(d,1),d-=1;else if(\"..\"===h){if(0===d||1===d&&\"..\"===e[2]||\"..\"===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join(\"/\")}if((g||v)&&m){for(d=(n=e.split(\"/\")).length;d>0;d-=1){if(i=n.slice(0,d).join(\"/\"),g)for(p=g.length;p>0;p-=1)if((o=m[g.slice(0,p).join(\"/\")])&&(o=o[i])){r=o,a=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join(\"/\"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return\"string\"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function w(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error(\"No \"+n);return l[n]}function _(e){var t,n=e?e.indexOf(\"!\"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function $(e){return e?_(e):[]}s=function(e,t){var n,i,o=_(e),r=o[0],s=t[1];return e=o[1],r&&(n=w(r=m(r,s))),r?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(r=(o=_(e=m(e,s)))[0],e=o[1],r&&(n=w(r))),{f:r?r+\"!\"+e:e,n:e,pr:r,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:\"\",exports:l[e],config:function(e){return function(){return u&&u.config&&u.config[e]||{}}}(e)}}},t=function(t,n,i,o){var r,u,p,h,f,m,_,b=[],x=typeof i;if(m=$(o=o||t),\"undefined\"===x||\"function\"===x){for(n=!n.length&&i.length?[\"require\",\"exports\",\"module\"]:n,f=0;f<n.length;f+=1)if(\"require\"===(u=(h=s(n[f],m)).f))b[f]=a.require(t);else if(\"exports\"===u)b[f]=a.exports(t),_=!0;else if(\"module\"===u)r=b[f]=a.module(t);else if(g(l,u)||g(c,u)||g(d,u))b[f]=w(u);else{if(!h.p)throw new Error(t+\" missing \"+u);h.p.load(h.n,v(o,!0),y(u),{}),b[f]=l[u]}p=i?i.apply(l[t],b):undefined,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&_||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,c){if(\"string\"==typeof n)return a[n]?a[n](i):w(s(n,$(i)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},\"function\"==typeof o&&(o=l,l=c),l?t(e,n,i,o):setTimeout(function(){t(e,n,i,o)},4),r},r.config=function(e){return r(e)},n._defined=l,(o=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=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define(\"almond\",function(){}),t.define(\"jquery\",[],function(){var t=e||$;return null==t&&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.\"),t}),t.define(\"select2/utils\",[\"jquery\"],function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){\"function\"==typeof t[i]&&(\"constructor\"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<o.length;s++){var a=o[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];r.prototype[u]=l(u)}return r};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),\"*\"in this.listeners&&this.invoke(this.listeners[\"*\"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t=\"\",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._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},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||\"hidden\"!==r&&\"visible\"!==r)&&(\"scroll\"===o||\"scroll\"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={\"\\\\\":\"&#92;\",\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#47;\"};return\"string\"!=typeof e?e:String(e).replace(/[&<>\"'\\/\\\\]/g,function(e){return t[e]})},t.entityDecode=function(e){var t=document.createElement(\"textarea\");return t.innerHTML=e,t.value},t.appendMany=function(t,n){if(\"1.7\"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t.isTouchscreen=function(){return\"undefined\"==typeof t._isTouchscreenCache&&(t._isTouchscreenCache=\"ontouchstart\"in document.documentElement),t._isTouchscreenCache},t}),t.define(\"select2/results\",[\"jquery\",\"./utils\"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class=\"select2-results__options\" role=\"listbox\" tabindex=\"-1\"></ul>');return this.options.get(\"multiple\")&&t.attr(\"aria-multiselectable\",\"true\"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get(\"escapeMarkup\");this.clear(),this.hideLoading();var i=e('<li role=\"alert\" aria-live=\"assertive\" class=\"select2-results__option\"></li>'),o=this.options.get(\"translations\").get(t.message);i.append(n(o(t.args))),i[0].className+=\" select2-results__message\",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(\".select2-results__message\").remove()},n.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],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger(\"results:message\",{message:\"noResults\"})},n.prototype.position=function(e,t){t.find(\".select2-results\").append(e)},n.prototype.sort=function(e){return this.options.get(\"sorter\")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(\".select2-results__option[data-selected]\"),t=e.filter(\"[data-selected=true]\");t.length>0?t.first().trigger(\"mouseenter\"):e.first().trigger(\"mouseenter\"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(\".select2-results__option[data-selected]\").each(function(){var t=e(this),n=e.data(this,\"data\"),o=\"\"+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr(\"data-selected\",\"true\"):t.attr(\"data-selected\",\"false\")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get(\"translations\").get(\"searching\")(e)},n=this.option(t);n.className+=\" loading-results\",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(\".loading-results\").remove()},n.prototype.option=function(t){var n=document.createElement(\"li\");n.className=\"select2-results__option\";var i={role:\"option\",\"data-selected\":\"false\",tabindex:-1};for(var o in t.disabled&&(delete i[\"data-selected\"],i[\"aria-disabled\"]=\"true\"),null==t.id&&delete i[\"data-selected\"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i[\"aria-label\"]=t.text,delete i[\"data-selected\"]),i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement(\"strong\");a.className=\"select2-results__group\";var l=e(a);this.template(t,a),l.attr(\"role\",\"presentation\");for(var c=[],u=0;u<t.children.length;u++){var d=t.children[u],p=this.option(d);c.push(p)}var h=e(\"<ul></ul>\",{\"class\":\"select2-results__options select2-results__options--nested\",role:\"listbox\"});h.append(c),s.attr(\"role\",\"list\"),s.append(a),s.append(h)}else this.template(t,n);return e.data(n,\"data\",t),n},n.prototype.bind=function(t,n){var i=this,o=t.id+\"-results\";this.$results.attr(\"id\",o),t.on(\"results:all\",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on(\"results:append\",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on(\"query\",function(e){i.hideMessages(),i.showLoading(e)}),t.on(\"select\",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on(\"unselect\",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on(\"open\",function(){i.$results.attr(\"aria-expanded\",\"true\"),i.$results.attr(\"aria-hidden\",\"false\"),i.setClasses(),i.ensureHighlightVisible();var e=i.$results.parents(\".select2-container\").find(\"input.select2-search__field\")[0];void 0!==e&&e.focus()}),t.on(\"close\",function(){i.$results.attr(\"aria-expanded\",\"false\"),i.$results.attr(\"aria-hidden\",\"true\"),i.$results.removeAttr(\"aria-activedescendant\")}),t.on(\"results:toggle\",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger(\"mouseup\")}),t.on(\"results:select\",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data(\"data\");\"true\"==e.attr(\"data-selected\")?i.trigger(\"close\",{}):i.trigger(\"select\",{data:t})}}),t.on(\"results:previous\",function(){var e=i.getHighlightedResults(),t=i.$results.find(\"[data-selected]\"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger(\"mouseenter\");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}}),t.on(\"results:next\",function(){var e=i.getHighlightedResults(),t=i.$results.find(\"[data-selected]\"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger(\"mouseenter\");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===n?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}}),t.on(\"results:focus\",function(e){e.element.addClass(\"select2-results__option--highlighted\").attr(\"aria-selected\",\"true\"),i.$results.attr(\"aria-activedescendant\",e.element.attr(\"id\"))}),t.on(\"results:message\",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on(\"mousewheel\",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on(\"mouseup\",\".select2-results__option[data-selected]\",function(t){var n=e(this),o=n.data(\"data\");\"true\"!==n.attr(\"data-selected\")?i.trigger(\"select\",{originalEvent:t,data:o}):i.options.get(\"multiple\")?i.trigger(\"unselect\",{originalEvent:t,data:o}):i.trigger(\"close\",{})}),this.$results.on(\"mouseenter\",\".select2-results__option[data-selected]\",function(t){var n=e(this).data(\"data\");i.getHighlightedResults().removeClass(\"select2-results__option--highlighted\").attr(\"aria-selected\",\"false\"),i.trigger(\"results:focus\",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(\".select2-results__option--highlighted\")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(\"[data-selected]\").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get(\"templateResult\"),o=this.options.get(\"escapeMarkup\"),r=i(t,n);null==r?n.style.display=\"none\":\"string\"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.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}}),t.define(\"select2/selection/base\",[\"jquery\",\"../utils\",\"../keys\"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class=\"select2-selection\"  aria-haspopup=\"true\" aria-expanded=\"false\"></span>');return this._tabindex=0,null!=this.$element.data(\"old-tabindex\")?this._tabindex=this.$element.data(\"old-tabindex\"):null!=this.$element.attr(\"tabindex\")&&(this._tabindex=this.$element.attr(\"tabindex\")),t.attr(\"title\",this.$element.attr(\"title\")),t.attr(\"tabindex\",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+\"-results\");this.options.get(\"minimumResultsForSearch\"),Infinity;this.container=e,this.$selection.on(\"focus\",function(e){i.trigger(\"focus\",e)}),this.$selection.on(\"blur\",function(e){i._handleBlur(e)}),this.$selection.on(\"keydown\",function(e){i.trigger(\"keypress\",e),e.which===n.SPACE&&e.preventDefault()}),e.on(\"results:focus\",function(e){i.$selection.attr(\"aria-activedescendant\",e.data._resultId)}),e.on(\"selection:update\",function(e){i.update(e.data)}),e.on(\"open\",function(){i.$selection.attr(\"aria-expanded\",\"true\"),i.$selection.attr(\"aria-owns\",o),i._attachCloseHandler(e)}),e.on(\"close\",function(){i.$selection.attr(\"aria-expanded\",\"false\"),i.$selection.removeAttr(\"aria-activedescendant\"),i.$selection.removeAttr(\"aria-owns\"),window.setTimeout(function(){i.$selection.trigger(\"focus\")},1),i._detachCloseHandler(e)}),e.on(\"enable\",function(){i.$selection.attr(\"tabindex\",i._tabindex)}),e.on(\"disable\",function(){i.$selection.attr(\"tabindex\",\"-1\")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger(\"blur\",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on(\"mousedown.select2.\"+t.id,function(t){var n=e(t.target),i=n.closest(\".select2\");e(\".select2.select2-container--open\").each(function(){var t=e(this);this!=i[0]&&(t.data(\"element\").select2(\"close\"),setTimeout(function(){t.find(\"*:focus\").trigger(\"blur\"),n.trigger(\"focus\")},1))})})},i.prototype._detachCloseHandler=function(t){e(document.body).off(\"mousedown.select2.\"+t.id)},i.prototype.position=function(e,t){t.find(\".selection\").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error(\"The `update` method must be defined in child classes.\")},i}),t.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('<span class=\"select2-selection__rendered\"></span><span class=\"select2-selection__arrow\" role=\"presentation\"><b role=\"presentation\"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+\"-container\";this.$selection.find(\".select2-selection__rendered\").attr(\"id\",i).attr(\"role\",\"textbox\").attr(\"aria-readonly\",\"true\");var r=this.options.get(\"label\");\"string\"==typeof r?this.$selection.attr(\"aria-label\",r):this.$selection.attr(\"aria-labelledby\",i),this.$selection.attr(\"role\",\"combobox\"),this.$selection.on(\"mousedown\",function(e){1===e.which&&n.trigger(\"toggle\",{originalEvent:e})}),this.$selection.on(\"focus\",function(e){}),this.$selection.on(\"keydown\",function(t){!e.isOpen()&&t.which>=48&&t.which<=90&&e.open()}),this.$selection.on(\"blur\",function(e){}),e.on(\"focus\",function(t){e.isOpen()||n.$selection.trigger(\"focus\")}),e.on(\"selection:update\",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(\".select2-selection__rendered\").empty()},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(\"<span></span>\")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],i=this.$selection.find(\".select2-selection__rendered\"),o=n.entityDecode(this.display(t,i));i.empty().text(o),i.prop(\"title\",t.title||t.text)}else this.clear()},o}),t.define(\"select2/selection/multiple\",[\"jquery\",\"./base\",\"../utils\"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass(\"select2-selection--multiple\"),e.html('<ul class=\"select2-selection__rendered\" aria-live=\"polite\" aria-relevant=\"additions removals\" aria-atomic=\"true\"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on(\"click\",function(e){o.trigger(\"toggle\",{originalEvent:e})}),this.$selection.on(\"click\",\".select2-selection__choice__remove\",function(t){if(!o.options.get(\"disabled\")){var n=e(this).parent().data(\"data\");o.trigger(\"unselect\",{originalEvent:t,data:n})}}),this.$selection.on(\"keydown\",function(e){!t.isOpen()&&e.which>=48&&e.which<=90&&t.open()}),t.on(\"focus\",function(){o.focusOnSearch()})},i.prototype.clear=function(){this.$selection.find(\".select2-selection__rendered\").empty()},i.prototype.display=function(e,t){var n=this.options.get(\"templateSelection\");return this.options.get(\"escapeMarkup\")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class=\"select2-selection__choice\"><span class=\"select2-selection__choice__remove\" role=\"presentation\" aria-hidden=\"true\">&times;</span></li>')},i.prototype.focusOnSearch=function(){var e=this;\"undefined\"!=typeof e.$search&&setTimeout(function(){e._keyUpPrevented=!0,e.$search.trigger(\"focus\")},1)},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=r.html(),a=this.display(o,r);\"string\"==typeof a&&(a=n.entityDecode(a.trim())),r.text(a),r.prepend(s),r.prop(\"title\",o.title||o.text),r.data(\"data\",o),t.push(r)}var l=this.$selection.find(\".select2-selection__rendered\");n.appendMany(l,t)}},i}),t.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\"string\"==typeof t&&(t={id:\"\",text:t}),t},t.prototype.createPlaceholder=function(t,n){var i=this.selectionContainer();return i.text(e.entityDecode(this.display(n))),i.addClass(\"select2-selection__placeholder\").removeClass(\"select2-selection__choice\"),i},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(\".select2-selection__rendered\").append(i)},t}),t.define(\"select2/selection/allowClear\",[\"jquery\",\"../keys\"],function(e,t){function n(){}return n.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)})},n.prototype._handleClear=function(e,t){if(!this.options.get(\"disabled\")){var n=this.$selection.find(\".select2-selection__clear\");if(0!==n.length){t.stopPropagation();for(var i=n.data(\"data\"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger(\"unselect\",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger(\"change\"),this.trigger(\"toggle\",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(\".select2-selection__placeholder\").length>0||0===n.length)){var i=e('<span class=\"select2-selection__clear\">&times;</span>');i.data(\"data\",n),this.$selection.find(\".select2-selection__rendered\").prepend(i)}},n}),t.define(\"select2/selection/search\",[\"jquery\",\"../utils\",\"../keys\"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class=\"select2-search select2-search--inline\"><input class=\"select2-search__field\" type=\"text\" tabindex=\"-1\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"none\" spellcheck=\"false\" role=\"textbox\" aria-autocomplete=\"list\" /></li>');this.$searchContainer=n,this.$search=n.find(\"input\");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this,r=t.id+\"-results\";e.call(this,t,i),t.on(\"open\",function(){o.$search.attr(\"aria-owns\",r),o.$search.trigger(\"focus\")}),t.on(\"close\",function(){o.$search.val(\"\"),o.$search.removeAttr(\"aria-activedescendant\"),o.$search.removeAttr(\"aria-owns\"),o.$search.trigger(\"focus\")}),t.on(\"enable\",function(){o.$search.prop(\"disabled\",!1),o._transferTabIndex()}),t.on(\"disable\",function(){o.$search.prop(\"disabled\",!0)}),t.on(\"focus\",function(e){o.$search.trigger(\"focus\")}),t.on(\"results:focus\",function(e){o.$search.attr(\"aria-activedescendant\",e.data._resultId)}),this.$selection.on(\"focusin\",\".select2-search--inline\",function(e){o.trigger(\"focus\",e)}),this.$selection.on(\"focusout\",\".select2-search--inline\",function(e){o._handleBlur(e)}),this.$selection.on(\"keydown\",\".select2-search--inline\",function(e){if(e.stopPropagation(),o.trigger(\"keypress\",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&\"\"===o.$search.val()){var i=o.$searchContainer.prev(\".select2-selection__choice\");if(i.length>0){var r=i.data(\"data\");o.searchRemoveChoice(r),e.preventDefault()}}else e.which===n.ENTER&&(t.open(),e.preventDefault())});var s=document.documentMode,a=s&&s<=11;this.$selection.on(\"input.searchcheck\",\".select2-search--inline\",function(e){a?o.$selection.off(\"input.search input.searchcheck\"):o.$selection.off(\"keyup.search\")}),this.$selection.on(\"keyup.search input.search\",\".select2-search--inline\",function(e){if(a&&\"input\"===e.type)o.$selection.off(\"input.search input.searchcheck\");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr(\"tabindex\",this.$selection.attr(\"tabindex\")),this.$selection.attr(\"tabindex\",\"-1\")},i.prototype.createPlaceholder=function(e,t){this.$search.attr(\"placeholder\",t.text)},i.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\")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger(\"query\",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger(\"unselect\",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css(\"width\",\"25px\");var e=\"\";\"\"!==this.$search.attr(\"placeholder\")?e=this.$selection.find(\".select2-selection__rendered\").innerWidth():e=.75*(this.$search.val().length+1)+\"em\";this.$search.css(\"width\",e)},i}),t.define(\"select2/selection/eventRelay\",[\"jquery\"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=[\"open\",\"opening\",\"close\",\"closing\",\"select\",\"selecting\",\"unselect\",\"unselecting\"],s=[\"opening\",\"closing\",\"selecting\",\"unselecting\"];t.call(this,n,i),n.on(\"*\",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event(\"select2:\"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define(\"select2/translation\",[\"jquery\",\"require\"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n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ʉ\":\"u\",\"ⓥ\":\"v\",\"ｖ\":\"v\",\"ṽ\":\"v\",\"ṿ\":\"v\",\"ʋ\":\"v\",\"ꝟ\":\"v\",\"ʌ\":\"v\",\"ꝡ\":\"vy\",\"ⓦ\":\"w\",\"ｗ\":\"w\",\"ẁ\":\"w\",\"ẃ\":\"w\",\"ŵ\":\"w\",\"ẇ\":\"w\",\"ẅ\":\"w\",\"ẘ\":\"w\",\"ẉ\":\"w\",\"ⱳ\":\"w\",\"ⓧ\":\"x\",\"ｘ\":\"x\",\"ẋ\":\"x\",\"ẍ\":\"x\",\"ⓨ\":\"y\",\"ｙ\":\"y\",\"ỳ\":\"y\",\"ý\":\"y\",\"ŷ\":\"y\",\"ỹ\":\"y\",\"ȳ\":\"y\",\"ẏ\":\"y\",\"ÿ\":\"y\",\"ỷ\":\"y\",\"ẙ\":\"y\",\"ỵ\":\"y\",\"ƴ\":\"y\",\"ɏ\":\"y\",\"ỿ\":\"y\",\"ⓩ\":\"z\",\"ｚ\":\"z\",\"ź\":\"z\",\"ẑ\":\"z\",\"ż\":\"z\",\"ž\":\"z\",\"ẓ\":\"z\",\"ẕ\":\"z\",\"ƶ\":\"z\",\"ȥ\":\"z\",\"ɀ\":\"z\",\"ⱬ\":\"z\",\"ꝣ\":\"z\",\"Ά\":\"Α\",\"Έ\":\"Ε\",\"Ή\":\"Η\",\"Ί\":\"Ι\",\"Ϊ\":\"Ι\",\"Ό\":\"Ο\",\"Ύ\":\"Υ\",\"Ϋ\":\"Υ\",\"Ώ\":\"Ω\",\"ά\":\"α\",\"έ\":\"ε\",\"ή\":\"η\",\"ί\":\"ι\",\"ϊ\":\"ι\",\"ΐ\":\"ι\",\"ό\":\"ο\",\"ύ\":\"υ\",\"ϋ\":\"υ\",\"ΰ\":\"υ\",\"ω\":\"ω\",\"ς\":\"σ\"}}),t.define(\"select2/data/base\",[\"../utils\"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error(\"The `current` method must be defined in child classes.\")},t.prototype.query=function(e,t){throw new Error(\"The `query` method must be defined in child classes.\")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=\"\";return i+=null!=t?t.id:e.generateChars(4),i+=\"-result-\",i+=e.generateChars(4),null!=n.id?i+=\"-\"+n.id.toString():i+=\"-\"+e.generateChars(4),i},t}),t.define(\"select2/data/select\",[\"./base\",\"../utils\",\"jquery\"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(\":selected\").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is(\"option\"))return e.element.selected=!0,void this.$element.trigger(\"change\");if(this.$element.prop(\"multiple\"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger(\"change\")});else{var i=e.id;this.$element.val(i),this.$element.trigger(\"change\")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop(\"multiple\")){if(e.selected=!1,n(e.element).is(\"option\"))return e.element.selected=!1,void this.$element.trigger(\"change\");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger(\"change\")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on(\"select\",function(e){n.select(e.data)}),e.on(\"unselect\",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find(\"*\").each(function(){n.removeData(this,\"data\")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is(\"option\")||t.is(\"optgroup\")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement(\"optgroup\")).label=e.text:(t=document.createElement(\"option\")).textContent!==undefined?t.textContent=e.text:t.innerText=e.text,e.id!==undefined&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,\"data\",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(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\")){t={text:e.prop(\"label\"),children:[],title:e.prop(\"title\")};for(var i=e.children(\"option\"),o=[],r=0;r<i.length;r++){var s=n(i[r]),a=this.item(s);o.push(a)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],n.data(e[0],\"data\",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});return null!=(e=n.extend({},{text:\"\"},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get(\"matcher\")(e,t)},i}),t.define(\"select2/data/array\",[\"./select\",\"../utils\",\"jquery\"],function(e,t,n){function i(e,t){var n=t.get(\"data\")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find(\"option\").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,o=this.$element.find(\"option\"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=o.filter(a(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}s.push(f)}}return s},i}),t.define(\"select2/data/ajax\",[\"./array\",\"../utils\",\"jquery\"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get(\"ajax\")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(\"function\"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=n.extend({type:\"GET\"},this.ajaxOptions);function r(){var n=o.transport(o,function(n){var o=i.processResults(n,e);i.options.get(\"debug\")&&window.console&&console.error&&(o&&o.results&&Array.isArray(o.results)||console.error(\"Select2: The AJAX results did not return an array in the `results` key of the response.\")),t(o),i.container.focusOnActiveElement()},function(){n.status&&\"0\"===n.status||i.trigger(\"results:message\",{message:\"errorLoading\"})});i._request=n}\"function\"==typeof o.url&&(o.url=o.url.call(this.$element,e)),\"function\"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i}),t.define(\"select2/data/tags\",[\"jquery\"],function(e){function t(e,t,n){var i=n.get(\"tags\"),o=n.get(\"createTag\");o!==undefined&&(this.createTag=o);var r=n.get(\"insertTag\");if(r!==undefined&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function o(e,r){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!o({results:l.children},!0);if((l.text||\"\").toUpperCase()===(t.term||\"\").toUpperCase()||c)return!r&&(e.data=s,void n(e))}if(r)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr(\"data-select2-tag\",!0),i.addOptions([d]),i.insertTag(s,u)}e.results=s,n(e)}):e.call(this,t,n)},t.prototype.createTag=function(e,t){var n=t.term||0==t.term?t.term.toString().trim():\"\";return\"\"===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find(\"option[data-select2-tag]\").each(function(){this.selected||e(this).remove()})},t}),t.define(\"select2/data/tokenizer\",[\"jquery\"],function(e){function t(e,t,n){var i=n.get(\"tokenizer\");i!==undefined&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(\".select2-search__field\")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||\"\";var r=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find(\"option\").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr(\"data-select2-tag\",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger(\"select\",{data:e})}(n)});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger(\"focus\")),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get(\"tokenSeparators\")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(o(d),s=s.substr(a+1)||\"\",a=0):a++}else a++}return{term:s}},t}),t.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}),t.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||\"\",this.maximumInputLength>0&&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}),t.define(\"select2/data/maximumSelectionLength\",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get(\"maximumSelectionLength\"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger(\"results:message\",{message:\"maximumSelected\",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define(\"select2/dropdown\",[\"jquery\",\"./utils\"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class=\"select2-dropdown\"><span class=\"select2-results\"></span></span>');return t.attr(\"dir\",this.options.get(\"dir\")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define(\"select2/dropdown/search\",[\"jquery\",\"../utils\"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class=\"select2-search select2-search--dropdown\"><input class=\"select2-search__field\" type=\"text\" tabindex=\"-1\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"none\" spellcheck=\"false\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" /></span>');return this.$searchContainer=i,this.$search=i.find(\"input\"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this,r=n.id+\"-results\";t.call(this,n,i),this.$search.on(\"keydown\",function(e){o.trigger(\"keypress\",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on(\"input\",function(t){e(this).off(\"keyup\")}),this.$search.on(\"keyup input\",function(e){o.handleSearch(e)}),n.on(\"open\",function(){o.$search.attr(\"tabindex\",0),o.$search.attr(\"aria-owns\",r),o.$search.trigger(\"focus\"),window.setTimeout(function(){o.$search.trigger(\"focus\")},0)}),n.on(\"close\",function(){o.$search.attr(\"tabindex\",-1),o.$search.removeAttr(\"aria-activedescendant\"),o.$search.removeAttr(\"aria-owns\"),o.$search.val(\"\")}),n.on(\"focus\",function(){n.isOpen()||o.$search.trigger(\"focus\")}),n.on(\"results:all\",function(e){null!=e.query.term&&\"\"!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass(\"select2-search--hide\"):o.$searchContainer.addClass(\"select2-search--hide\"))}),n.on(\"results:focus\",function(e){o.$search.attr(\"aria-activedescendant\",e.data._resultId)})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger(\"query\",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.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\"string\"==typeof t&&(t={id:\"\",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define(\"select2/dropdown/infiniteScroll\",[\"jquery\"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on(\"query\",function(e){o.lastParams=e,o.loading=!0}),n.on(\"query:append\",function(e){o.lastParams=e,o.loading=!0}),this.$results.on(\"scroll\",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&(o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger(\"query:append\",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class=\"select2-results__option select2-results__option--load-more\"role=\"option\" aria-disabled=\"true\"></li>'),n=this.options.get(\"translations\").get(\"loadingMore\");return t.html(n(this.lastParams)),t},t}),t.define(\"select2/dropdown/attachBody\",[\"jquery\",\"../utils\"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get(\"dropdownParent\")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on(\"open\",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on(\"results:all\",function(){i._positionDropdown(),i._resizeDropdown()}),t.on(\"results:append\",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on(\"close\",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on(\"mousedown\",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.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},n.prototype.render=function(t){var n=e(\"<span></span>\"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,r=\"scroll.select2.\"+i.id,s=\"resize.select2.\"+i.id,a=\"orientationchange.select2.\"+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data(\"select2-scroll-position\",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(t){var n=e(this).data(\"select2-scroll-position\");e(this).scrollTop(n.y)}),e(window).on(r+\" \"+s+\" \"+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o=\"scroll.select2.\"+i.id,r=\"resize.select2.\"+i.id,s=\"orientationchange.select2.\"+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+\" \"+r+\" \"+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass(\"select2-dropdown--above\"),i=this.$dropdown.hasClass(\"select2-dropdown--below\"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-a,d=c>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;\"static\"===h.css(\"position\")&&(h=h.offsetParent());var f=h.offset();p.left-=f.left,n||i||(o=\"below\"),d||!u||n?!u&&d&&n&&(o=\"below\"):o=\"above\",(\"above\"==o||n&&\"below\"!==o)&&(p.top=s.top-a),null!=o&&(this.$dropdown.removeClass(\"select2-dropdown--below select2-dropdown--above\").addClass(\"select2-dropdown--\"+o),this.$container.removeClass(\"select2-container--below select2-container--above\").addClass(\"select2-container--\"+o)),this.$dropdownContainer.css(p)},n.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)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define(\"select2/dropdown/minimumResultsForSearch\",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get(\"minimumResultsForSearch\"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function n(e){for(var t=0,i=0;i<e.length;i++){var o=e[i];o.children?t+=n(o.children):t++}return t}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define(\"select2/dropdown/selectOnClose\",[],function(){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}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data(\"data\");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger(\"select\",{data:o})}},e}),t.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||this.trigger(\"close\",{originalEvent:n,originalSelect2Event:t})},e}),t.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,n=\"Please delete \"+t+\" character\";return 1!=t&&(n+=\"s\"),n},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…\"}}}),t.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(e,t,n,i,o,r,s,a,l,c,u,d,p,h,f,g,m,v,y,w,_,$,b,x,A,C,S,O,E){function D(){this.reset()}return D.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,w)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+\"compat/query\");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var D=t(d.amdBase+\"compat/initSelection\");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var T=c.Decorate(_,$);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var q=t(d.amdBase+\"compat/dropdownCss\");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,q)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var j=t(d.amdBase+\"compat/containerCss\");d.selectionAdapter=c.Decorate(d.selectionAdapter,j)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if(\"string\"==typeof d.language)if(d.language.indexOf(\"-\")>0){var L=d.language.split(\"-\")[0];d.language=[d.language,L]}else d.language=[d.language];if(Array.isArray(d.language)){var k=new u;d.language.push(\"en\");for(var P=d.language,I=0;I<P.length;I++){var M=P[I],R={};try{R=u.loadPath(M)}catch(U){try{M=this.defaults.amdLanguageBase+M,R=u.loadPath(M)}catch(N){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for \"'+M+'\" could not be automatically loaded. A fallback will be used instead.');continue}}k.extend(R)}d.translations=k}else{var z=u.loadPath(this.defaults.amdLanguageBase+\"en\"),H=new u(d.language);H.extend(z),d.translations=H}return d},D.prototype.reset=function(){function t(e){return e.replace(/[^\\u0000-\\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:\"./\",amdLanguageBase:\"./i18n/\",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:E,matcher:function n(i,o){if(null==i.term||\"\"===i.term.toString().trim())return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--)null==n(i,o.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:\"default\",width:\"resolve\"}},D.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(this.defaults,o)},new D}),t.define(\"select2/options\",[\"require\",\"jquery\",\"./defaults\",\"./utils\"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is(\"input\")){var r=e(this.get(\"amdBase\")+\"compat/inputData\");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=[\"select2\"];null==this.options.multiple&&(this.options.multiple=e.prop(\"multiple\")),null==this.options.disabled&&(this.options.disabled=e.prop(\"disabled\")),null==this.options.language&&(e.prop(\"lang\")?this.options.language=e.prop(\"lang\").toLowerCase():e.closest(\"[lang]\").prop(\"lang\")&&(this.options.language=e.closest(\"[lang]\").prop(\"lang\"))),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),e.data(\"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.'),e.data(\"data\",e.data(\"select2Tags\")),e.data(\"tags\",!0)),e.data(\"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\",e.data(\"ajaxUrl\")),e.data(\"ajax--url\",e.data(\"ajaxUrl\")));var o={};o=t.fn.jquery&&\"1.\"==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);for(var s in r=i._convertData(r))t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define(\"select2/core\",[\"jquery\",\"./options\",\"./utils\",\"./keys\"],function(e,t,n,i){var o=function(e,n){null!=e.data(\"select2\")&&e.data(\"select2\").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr(\"tabindex\")||0;e.data(\"old-tabindex\",i),e.attr(\"tabindex\",\"-1\");var r=this.options.get(\"dataAdapter\");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get(\"selectionAdapter\");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get(\"dropdownAdapter\");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get(\"resultsAdapter\");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger(\"selection:update\",{data:e})}),e.addClass(\"select2-hidden-accessible\"),e.attr(\"aria-hidden\",\"true\"),this._syncAttributes(),e.data(\"select2\",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return\"select2-\"+(null!=e.attr(\"id\")?e.attr(\"id\"):null!=e.attr(\"name\")?e.attr(\"name\")+\"-\"+n.generateChars(2):n.generateChars(4)).replace(/(:|\\.|\\[|\\]|,)/g,\"\")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get(\"width\"));null!=t&&e.css(\"width\",t)},o.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){var o=e.outerWidth(!1);return o<=0?\"auto\":o+\"px\"}if(\"style\"==t){var r=e.attr(\"style\");if(\"string\"!=typeof r)return null;for(var s=r.split(\";\"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\\s/g,\"\").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.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)},o.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=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent(\"onpropertychange\",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),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))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=[\"toggle\",\"focus\"];this.selection.on(\"toggle\",function(){t.toggleDropdown()}),this.selection.on(\"focus\",function(e){t.focus(e)}),this.selection.on(\"*\",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var t=this;this.on(\"open\",function(){t.$container.addClass(\"select2-container--open\")}),this.on(\"close\",function(){t.$container.removeClass(\"select2-container--open\")}),this.on(\"enable\",function(){t.$container.removeClass(\"select2-container--disabled\")}),this.on(\"disable\",function(){t.$container.addClass(\"select2-container--disabled\")}),this.on(\"blur\",function(){t.$container.removeClass(\"select2-container--focus\")}),this.on(\"query\",function(e){t.isOpen()||t.trigger(\"open\",{}),this.dataAdapter.query(e,function(n){t.trigger(\"results:all\",{data:n,query:e})})}),this.on(\"query:append\",function(e){this.dataAdapter.query(e,function(n){t.trigger(\"results:append\",{data:n,query:e})})}),this.on(\"open\",function(){setTimeout(function(){t.focusOnActiveElement()},1)}),e(document).on(\"keydown\",function(e){var n=e.which;if(t.isOpen()){n===i.ESC||n===i.UP&&e.altKey?(t.close(),e.preventDefault()):n===i.ENTER||n===i.TAB?(t.trigger(\"results:select\",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger(\"results:toggle\",{}),e.preventDefault()):n===i.UP?(t.trigger(\"results:previous\",{}),e.preventDefault()):n===i.DOWN&&(t.trigger(\"results:next\",{}),e.preventDefault());var o=t.$dropdown.find(\".select2-search__field\");o.length||(o=t.$container.find(\".select2-search__field\")),n===i.DOWN||n===i.UP?t.focusOnActiveElement():(o.trigger(\"focus\"),setTimeout(function(){t.focusOnActiveElement()},1e3))}else t.hasFocus()&&(n!==i.ENTER&&n!==i.SPACE&&n!==i.DOWN||(t.open(),e.preventDefault()))})},o.prototype.focusOnActiveElement=function(){this.isOpen()&&!n.isTouchscreen()&&this.$results.find(\"li.select2-results__option--highlighted\").trigger(\"focus\")},o.prototype._syncAttributes=function(){this.options.set(\"disabled\",this.$element.prop(\"disabled\")),this.options.get(\"disabled\")?(this.isOpen()&&this.close(),this.trigger(\"disable\",{})):this.trigger(\"enable\",{})},o.prototype._syncSubtree=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&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger(\"selection:update\",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:\"opening\",close:\"closing\",select:\"selecting\",unselect:\"unselecting\"};if(t===undefined&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get(\"disabled\")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger(\"query\",{})},o.prototype.close=function(){this.isOpen()&&this.trigger(\"close\",{})},o.prototype.isOpen=function(){return this.$container.hasClass(\"select2-container--open\")},o.prototype.hasFocus=function(){return this.$container.hasClass(\"select2-container--focus\")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass(\"select2-container--focus\"),this.trigger(\"focus\",{}))},o.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.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop(\"disabled\",t)},o.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(t){e=t}),e},o.prototype.val=function(t){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==t||0===t.length)return this.$element.val();var n=t[0];Array.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger(\"change\")},o.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\",this.$element.data(\"old-tabindex\")),this.$element.removeClass(\"select2-hidden-accessible\"),this.$element.attr(\"aria-hidden\",\"false\"),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},o.prototype.render=function(){var t=e('<span class=\"select2 select2-container\"><span class=\"selection\"></span><span class=\"dropdown-wrapper\" aria-hidden=\"true\"></span></span>');return t.attr(\"dir\",this.options.get(\"dir\")),this.$container=t,this.$container.addClass(\"select2-container--\"+this.options.get(\"theme\")),t.data(\"element\",this.$element),t},o}),t.define(\"select2/compat/utils\",[\"jquery\"],function(e){return{syncCssClasses:function(t,n,i){var o,r,s=[];(o=t.attr(\"class\")||0==t.attr(\"class\")?t.attr(\"class\").toString().trim():\"\")&&e((o=\"\"+o).split(/\\s+/)).each(function(){0===this.indexOf(\"select2-\")&&s.push(this)}),(o=n.attr(\"class\")||0==n.attr(\"class\")?n.attr(\"class\").toString().trim():\"\")&&e((o=\"\"+o).split(/\\s+/)).each(function(){0!==this.indexOf(\"select2-\")&&null!=(r=i(this))&&s.push(r)}),t.attr(\"class\",s.join(\" \"))}}}),t.define(\"select2/compat/containerCss\",[\"jquery\",\"./utils\"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(e){var i=e.call(this),o=this.options.get(\"containerCssClass\")||\"\";\"function\"==typeof o&&(o=o(this.$element));var r=this.options.get(\"adaptContainerCssClass\");if(r=r||n,-1!==o.indexOf(\":all:\")){o=o.replace(\":all:\",\"\");var s=r;r=function(e){var t=s(e);return null!=t?t+\" \"+e:e}}var a=this.options.get(\"containerCss\")||{};return\"function\"==typeof a&&(a=a(this.$element)),t.syncCssClasses(i,this.$element,r),i.css(a),i.addClass(o),i},i}),t.define(\"select2/compat/dropdownCss\",[\"jquery\",\"./utils\"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(e){var i=e.call(this),o=this.options.get(\"dropdownCssClass\")||\"\";\"function\"==typeof o&&(o=o(this.$element));var r=this.options.get(\"adaptDropdownCssClass\");if(r=r||n,-1!==o.indexOf(\":all:\")){o=o.replace(\":all:\",\"\");var s=r;r=function(e){var t=s(e);return null!=t?t+\" \"+e:e}}var a=this.options.get(\"dropdownCss\")||{};return\"function\"==typeof a&&(a=a(this.$element)),t.syncCssClasses(i,this.$element,r),i.css(a),i.addClass(o),i},i}),t.define(\"select2/compat/initSelection\",[\"jquery\"],function(e){function t(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 t.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,Array.isArray(e)||(e=[e]),t(e)})},t}),t.define(\"select2/compat/inputData\",[\"jquery\"],function(e){function t(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 `<select>` element instead.\"),e.call(this,t,n)}return t.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},t.prototype.select=function(t,n){if(this.options.get(\"multiple\")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger(\"change\")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger(\"change\")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger(\"change\")})},t.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},t.prototype.addOptions=function(t,n){var i=e.map(n,function(t){return e.data(t[0],\"data\")});this._currentData.push.apply(this._currentData,i)},t}),t.define(\"select2/compat/matcher\",[\"jquery\"],function(e){return function(t){return function(n,i){var o=e.extend(!0,{},i);if(null==n.term||\"\"===n.term.trim())return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}}}),t.define(\"select2/compat/query\",[],function(){function e(e,t,n){n.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.\"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get(\"query\").call(null,t)},e}),t.define(\"select2/dropdown/attachContainer\",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(\".dropdown-wrapper\").append(t),t.addClass(\"select2-dropdown--below\"),n.addClass(\"select2-container--below\")},e}),t.define(\"select2/dropdown/stopPropagation\",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on([\"blur\",\"change\",\"click\",\"dblclick\",\"focus\",\"focusin\",\"focusout\",\"input\",\"keydown\",\"keyup\",\"keypress\",\"mousedown\",\"mouseenter\",\"mouseleave\",\"mousemove\",\"mouseover\",\"mouseup\",\"search\",\"touchend\",\"touchstart\"].join(\" \"),function(e){e.stopPropagation()})},e}),t.define(\"select2/selection/stopPropagation\",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on([\"blur\",\"change\",\"click\",\"dblclick\",\"focus\",\"focusin\",\"focusout\",\"input\",\"keydown\",\"keyup\",\"keypress\",\"mousedown\",\"mouseenter\",\"mouseleave\",\"mousemove\",\"mouseover\",\"mouseup\",\"search\",\"touchend\",\"touchstart\"].join(\" \"),function(e){e.stopPropagation()})},e}),r=function(e){var t,n,i=[\"wheel\",\"mousewheel\",\"DOMMouseScroll\",\"MozMousePixelScroll\"],o=\"onwheel\"in document||document.documentMode>=9?[\"wheel\"]:[\"mousewheel\",\"DomMouseScroll\",\"MozMousePixelScroll\"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=i.length;s;)e.event.fixHooks[i[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:\"3.1.12\",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],l,!1);else this.onmousewheel=l;e.data(this,\"mousewheel-line-height\",a.getLineHeight(this)),e.data(this,\"mousewheel-page-height\",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],l,!1);else this.onmousewheel=null;e.removeData(this,\"mousewheel-line-height\"),e.removeData(this,\"mousewheel-page-height\")},getLineHeight:function(t){var n=e(t),i=n[\"offsetParent\"in e.fn?\"offsetParent\":\"parent\"]();return i.length||(i=e(\"body\")),parseInt(i.css(\"fontSize\"),10)||parseInt(n.css(\"fontSize\"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,s=i||window.event,l=r.call(arguments,1),d=0,p=0,h=0,f=0,g=0;if((i=e.event.fix(s)).type=\"mousewheel\",\"detail\"in s&&(h=-1*s.detail),\"wheelDelta\"in s&&(h=s.wheelDelta),\"wheelDeltaY\"in s&&(h=s.wheelDeltaY),\"wheelDeltaX\"in s&&(p=-1*s.wheelDeltaX),\"axis\"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*h,h=0),d=0===h?p:h,\"deltaY\"in s&&(d=h=-1*s.deltaY),\"deltaX\"in s&&(p=s.deltaX,0===h&&(d=-1*p)),0!==h||0!==p){if(1===s.deltaMode){var m=e.data(this,\"mousewheel-line-height\");d*=m,h*=m,p*=m}else if(2===s.deltaMode){var v=e.data(this,\"mousewheel-page-height\");d*=v,h*=v,p*=v}if(o=Math.max(Math.abs(h),Math.abs(p)),(!n||o<n)&&(n=o,u(s,o)&&(n/=40)),u(s,o)&&(d/=40,p/=40,h/=40),d=Math[d>=1?\"floor\":\"ceil\"](d/n),p=Math[p>=1?\"floor\":\"ceil\"](p/n),h=Math[h>=1?\"floor\":\"ceil\"](h/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,g=i.clientY-y.top}return i.deltaX=p,i.deltaY=h,i.deltaFactor=n,i.offsetX=f,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,p,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){n=null}function u(e,t){return a.settings.adjustOldDeltas&&\"mousewheel\"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.on(\"mousewheel\",e):this.trigger(\"mousewheel\")},unmousewheel:function(e){return this.off(\"mousewheel\",e)}})},\"function\"==typeof t.define&&t.define.amd?t.define(\"jquery-mousewheel\",[\"jquery\"],r):\"object\"==typeof exports?module.exports=r:r(e),t.define(\"jquery.select2\",[\"jquery\",\"jquery-mousewheel\",\"./select2/core\",\"./select2/defaults\"],function(e,t,n,i){if(null==e.fn.selectWoo){var o=[\"open\",\"close\",\"destroy\"];e.fn.selectWoo=function(t){if(\"object\"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if(\"string\"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data(\"select2\");null==n&&window.console&&console.error&&console.error(\"The select2('\"+t+\"') method was called on an element that is not using Select2.\"),i=n[t].apply(n,r)}),e.inArray(t,o)>-1?this:i}throw new Error(\"Invalid arguments for Select2: \"+t)}}return null!=e.fn.select2&&null!=e.fn.select2.defaults&&(e.fn.selectWoo.defaults=e.fn.select2.defaults),null==e.fn.selectWoo.defaults&&(e.fn.selectWoo.defaults=i),e.fn.select2=e.fn.select2||e.fn.selectWoo,n}),{define:t.define,require:t.require}}(),n=t.require(\"jquery.select2\");return e.fn.select2.amd=t,e.fn.selectWoo.amd=t,n});";
