PageSourceSearch

https://www.bush41library.gov/sites/default/files/js/js_CosrOUX294…8OoVBmmTweZZw_iok4PGQsLr32ujgyU_kt3gAJ_Jqdw

js bush41library.gov collected 2026-09-24 22:35:06 UTC 209,573 bytes, 96 lines download raw bytes

1/* @license MIT https://github.com/select2/select2/blob/master/LICENSE.md */
vendor: 74,294 bytes, lines 2-3
2/*! Select2 4.1.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
3(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){(e=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:e)&&e.requirejs||(e?n=e:e={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,s=[].slice,b=/\.js$/,h=function(e,t){var n,i,s=c(e),o=s[0],t=t[1];return e=s[1],o&&(n=A(o=a(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return a(e,i)})):a(e,t):(o=(s=c(e=a(e,t)))[0],e=s[1],o&&(n=A(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(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 y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,i){var s,o,r,l,a,c=[],u=typeof n,d=x(i=i||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(r=h(t[l],d)).f))c[l]=f.require(e);else if("exports"===o)c[l]=f.exports(e),a=!0;else if("module"===o)s=c[l]=f.module(e);else if(_(g,o)||_(m,o)||_(v,o))c[l]=A(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(i,!0),(t=>function(e){g[t]=e})(o),{}),c[l]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(s&&s.exports!==p&&s.exports!==g[e]?g[e]=s.exports:u===p&&a||(g[e]=u))}else e&&(g[e]=n)},l=n=r=function(e,t,n,i,s){if("string"==typeof e)return f[e]?f[e](t):A(h(e,x(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=s),i?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},l._defined=g,(u=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,e)||_(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=l,e.require=n,e.define=u),e.define("almond",function(){}),e.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}),e.define("select2/utils",[],function(){var s={};function c(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}s.Extend=function(e,t){var n,i={}.hasOwnProperty;function s(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,e},s.Decorate=function(i,s){var e=c(s),t=c(i);function o(){var e=Array.prototype.unshift,t=s.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=s.prototype.constructor),n.apply(this,arguments)}s.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=i.prototype[r]}for(var l=0;l<e.length;l++){var a=e[l];o.prototype[a]=(e=>{var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),s.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}})(a)}return o};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)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var s=0;s<n.length;s++){var o=n[s];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),s==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=t.style.overflowX,i=t.style.overflowY;return(n!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===n||"scroll"===i||(n=window.getComputedStyle(t),parseFloat(n.height)<t.scrollHeight)||parseFloat(n.width)<t.scrollWidth)},s.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]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n,i=s.GetUniqueElementId(e);return t?(n=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),s.__cache[i]&&null!=s.__cache[i][t]?s.__cache[i][t]:e.dataset[n]):s.__cache[i]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),e.define("select2/results",["jquery","./utils"],function(u,d){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return d.Extend(i,d.Observable),i.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e[0].setAttribute("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),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)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{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)}},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--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e[0].setAttribute("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e[0].setAttribute("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,n=document.createElement("li"),i=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&s.call(e.element,":disabled")||null==e.element&&e.disabled)&&(i["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(i.role="group",i["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),i)n.setAttribute(t,i[t]);if(e.children){for(var s=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),l=0;l<e.children.length;l++){var a=e.children[l],a=this.option(a);r.push(a)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),s.append(o),s.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},i.prototype.bind=function(t,e){var s=this,n=t.id+"-results";this.$results[0].setAttribute("id",n),t.on("results:all",function(e){s.clear(),s.append(e.data),t.isOpen()&&(s.setClasses(),s.highlightFirstItem())}),t.on("results:append",function(e){s.append(e.data),t.isOpen()&&s.setClasses()}),t.on("query",function(e){s.hideMessages(),s.showLoading(e)}),t.on("select",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("open",function(){s.$results[0].setAttribute("aria-expanded","true"),s.$results[0].setAttribute("aria-hidden","false"),s.setClasses(),s.ensureHighlightVisible()}),t.on("close",function(){s.$results[0].setAttribute("aria-expanded","false"),s.$results[0].setAttribute("aria-hidden","true"),s.$results[0].removeAttribute("aria-activedescendant")}),t.on("results:toggle",function(){var e=s.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=s.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?s.trigger("close",{}):s.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=s.getHighlightedResults(),n=s.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(i=i-1,0===t.length&&(i=0),(t=n.eq(i)).trigger("mouseenter"),n=s.$results.offset().top,t=t.offset().top,e=s.$results.scrollTop()+(t-n),0===i?s.$results.scrollTop(0):t-n<0&&s.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=s.getHighlightedResults(),i=s.$results.find(".select2-results__option--selectable"),n=i.index(n)+1;n>=i.length||((i=i.eq(n)).trigger("mouseenter"),e=s.$results.offset().top+s.$results.outerHeight(!1),i=i.offset().top+i.outerHeight(!1),t=s.$results.scrollTop()+i-e,0===n?s.$results.scrollTop(0):e<i&&s.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){s.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=s.$results.scrollTop(),n=s.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=s.$results.height();t?(s.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(s.$results.scrollTop(s.$results.get(0).scrollHeight-s.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?s.options.get("multiple")?s.trigger("unselect",{originalEvent:e,data:n}):s.trigger("close",{originalEvent:e,data:n}):s.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data"),n=s.getHighlightedResults();n.removeClass("select2-results__option--highlighted"),n.each(function(){this.setAttribute("aria-selected","false")}),s.trigger("results:focus",{data:t,element:u(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,s=this.getHighlightedResults();0!==s.length&&(e=this.$results.find(".select2-results__option--selectable").index(s),t=this.$results.offset().top,i=s.offset().top,n=this.$results.scrollTop()+(i-t),i=i-t,n-=2*s.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"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):u(t).append(n)},i}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,s){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element[0].getAttribute("tabindex")&&(this._tabindex=this.$element[0].getAttribute("tabindex")),this.$element[0].getAttribute("title")&&e[0].setAttribute("title",this.$element[0].getAttribute("title")),e[0].setAttribute("tabindex",this._tabindex),e[0].setAttribute("aria-disabled","false"),this.$selection=e},o.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===s.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection[0].setAttribute("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection[0].setAttribute("aria-expanded","true"),n.$selection[0].setAttribute("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection[0].setAttribute("aria-expanded","false"),n.$selection[0].removeAttribute("aria-activedescendant"),n.$selection[0].removeAttribute("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection[0].setAttribute("tabindex",n._tabindex),n.$selection[0].setAttribute("aria-disabled","false")}),e.on("disable",function(){n.$selection[0].setAttribute("tabindex","-1"),n.$selection[0].setAttribute("aria-disabled","true")})},o.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)},o.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")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.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[0].classList.add("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(t,e){var n=this,i=(o.__super__.bind.apply(this,arguments),t.id+"-container"),s=this.$selection.find(".select2-selection__rendered")[0];null!=s&&(s.setAttribute("id",i),s.setAttribute("role","textbox"),s.setAttribute("aria-readonly","true")),this.$selection[0].setAttribute("aria-labelledby",i),this.$selection[0].setAttribute("aria-controls",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[0].removeAttribute("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("<span></span>")},o.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t[0].setAttribute("title",n):t[0].removeAttribute("title"))},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,e=(o.__super__.bind.apply(this,arguments),e.id+"-container"),i=this.$selection.find(".select2-selection__rendered")[0];null!=i&&i.setAttribute("id",e),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=s(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("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 s('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered")[0].getAttribute("id")+"-choice-",i=0;i<e.length;i++){var s=e[i],o=this.selectionContainer(),r=this.display(s,o),l=n+c.generateChars(4)+"-",r=(s.id?l+=s.id:l+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r)[0].setAttribute("id",l),s.title||s.text),r=(r&&o[0].setAttribute("title",r),this.options.get("translations").get("removeItem")),a=o.find(".select2-selection__choice__remove")[0];a.setAttribute("title",r()),a.setAttribute("aria-label",r()),a.setAttribute("aria-describedby",l),c.StoreData(o[0],"data",s),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="object"!=typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered")[0].setAttribute("title",t),n},e.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();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,l){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=l.GetData(n[0],"data"),s=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:i});if(this.trigger("clear",o),o.prevented)this.$element.val(s);else{for(var r=0;r<i.length;r++)if(o={data:i[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);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){var n,i;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||((e=null)!=(n=this.$selection.find(".select2-selection__rendered")[0])&&(e=n.getAttribute("id")),n=this.options.get("translations").get("removeAllItems"),(i=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>'))[0].setAttribute("title",n()),i[0].setAttribute("aria-label",n()),i[0].setAttribute("aria-describedby",e),l.StoreData(i[0],"data",t),this.$selection.prepend(i),this.$selection[0].classList.add("select2-selection--clearable"))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,a){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=i('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,s=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),i.$search[0].setAttribute("aria-describedby",o),t.on("open",function(){i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search[0].disabled=!1,i._transferTabIndex()}),t.on("disable",function(){i.$search[0].disabled=!0}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("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.$selection.find(".select2-selection__choice").last()).length&&(t=l.GetData(t[0],"data"),i.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=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[0].setAttribute("tabindex",this.$selection[0].getAttribute("tabindex")),this.$selection[0].setAttribute("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search[0].setAttribute("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search[0].setAttribute("placeholder",""),e.call(this,t),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="100%";""===this.$search[0].getAttribute("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==s.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),e.define("select2/translation",["require"],function(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=Object.assign({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.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}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(a(e))}))},n.prototype.select=function(s){var e,o=this;s.selected=!0,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element[0].multiple?this.current(function(e){var t=[];(s=[s]).push.apply(s,e);for(var n=0;n<s.length;n++){var i=s[n].id;-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=s.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(s){var o=this;this.$element[0].multiple&&(s.selected=!1,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!1,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!==s.id&&-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$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(){l.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],i=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=a(this),e=i.item(e),null!==(e=i.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){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 t,e=this._normalizeItem(e);return e.element=t,l.StoreData(t,"data",e),a(t)},n.prototype.item=function(e){var t={};if(null==(t=l.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e[0].disabled,selected:e[0].selected,title:e[0].title};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e[0].label,children:[],title:e[0].title},i=e.children("option"),s=[],o=0;o<i.length;o++){var r=a(i[o]),r=this.item(r);s.push(r)}t.children=s}(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t)}return 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)),e.children&&(e.children=e.children.map(n.prototype._normalizeItem)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.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===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(c(this)).id}).get(),s=[];for(var o=0;o<e.length;o++){var r,l,a=this._normalizeItem(e[o]);0<=i.indexOf(a.id)?(r=n.filter((e=>function(){return c(this).val()==e.id})(a)),l=this.item(r),l=c.extend(!0,{},a,l),l=this.option(l),r.replaceWith(l)):(r=this.option(a),a.children&&(l=this.convertToOptions(a.children),r.append(l)),s.push(r))}return s},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(t,n){var i=this,s=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=s.transport(s,function(e){e=i.processResults(e,t);e&&e.results&&Array.isArray(e.results)?e.results=e.results.map(r.prototype._normalizeItem):i.options.get("debug")&&window.console&&console.error&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof s.url&&(s.url=s.url.call(this.$element,t)),"function"==typeof s.data&&(s.data=s.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()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),s=n.get("createTag"),s=(void 0!==s&&(this.createTag=s),n.get("insertTag"));if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var r=i[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var i=t.results,s=0;s<i.length;s++){var o=i[s],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=i,void u(t))}if(n)return!0;var l,a=d.createTag(c);null!=a&&((l=d.option(a))[0].setAttribute("data-select2-tag","true"),d.addOptions([l]),d.insertTag(i,a)),t.results=i,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?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||t(this).remove()})},e}),e.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 s=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))[0].setAttribute("data-select2-tag",!0),i._removeOldTags(),i.addOptions([e])),i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var s=n.get("tokenSeparators")||[],o=t.term,r=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var a=o[r];-1===s.indexOf(a)?r++:(a=o.substr(0,r),null==(a=l(c.extend({},t,{term:a})))?r++:(i(a),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),e.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}),e.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}),e.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}),e.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('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e[0].setAttribute("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}),e.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var i=this,s=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){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search[0].setAttribute("tabindex",0),i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search[0].setAttribute("tabindex",-1),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.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="object"!=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 s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e}),e.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('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){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[0].setAttribute("class",n[0].getAttribute("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),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,s="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(i,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(i+" "+s+" "+t,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(r.hasScroll).off(n),u(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,s=this.$container.offset(),o=(s.bottom=s.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=s.top,o.bottom=s.top+o.height;var r=this.$dropdown.outerHeight(!1),l=e.scrollTop(),e=e.scrollTop()+e.height(),l=l<s.top-r,e=e>s.bottom+r,s={left:s.left,top:o.bottom},a=this.$dropdownParent,c=("static"===a.css("position")&&(a=a.offsetParent()),{top:0,left:0});(u.contains(document.body,a[0])||a[0].isConnected)&&(c=a.offset()),s.top-=c.top,s.left-=c.left,t||n||(i="below"),e||!l||t?!l&&e&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(s.top=o.top-c.top-r),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(s)},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}),e.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 s=t[i];s.children?n+=e(s.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(n){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){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),e.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}),e.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(i){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=i.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},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"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./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","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(a,o,r,l,c,u,d,p,h,f,g,t,m,y,v,b,_,$,w,A,x,D,S,E,O,C,L,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=a.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,A)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,_))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=x:(t=f.Decorate(x,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=l:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],i=0;i<e.language.length;i++){var s=e.language[i];-1===n.indexOf(s)&&n.push(s)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function l(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=a.extend(!0,{},n),s=n.children.length-1;0<=s;s--)null==e(t,n.children[s])&&i.children.splice(s,1);return 0<i.children.length?i:e(t,i)}var o=l(n.text).toUpperCase(),r=l(t.term).toUpperCase();return-1<o.indexOf(r)?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,s=t[0].lang,t=t.closest("[lang]"),t=t[0]?t[0].lang:null,s=Array.prototype.concat.call(this._resolveLanguage(s),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(t));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(a.isEmptyObject(e))return[];if(a.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],i=[],s=0;s<n.length;s++)i.push(n[s]),"string"==typeof n[s]&&0<n[s].indexOf("-")&&(t=n[s].split("-")[0],i.push(t));return i},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var s=new g,o=e[i];if("string"==typeof o)try{s=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,s=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else s=a.isPlainObject(o)?new g(o):o;n.extend(s)}return n},n.prototype.set=function(e,t){var n={},e=(n[e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})]=t,f._convertData(n));a.extend(!0,this.defaults,e)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(u,n,d){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t,n=["select2"],i=(null==this.options.multiple&&(this.options.multiple=e[0].multiple),null==this.options.disabled&&(this.options.disabled=e[0].disabled),null==this.options.autocomplete&&e[0].autocomplete&&(this.options.autocomplete=e[0].autocomplete),null===this.options.dir&&((t=e[0].getAttribute("dir"))?this.options.dir=t:(t=e.closest("[dir]").getAttribute("dir"),this.options.dir=t||"ltr")),e[0].disabled=this.options.disabled,e[0].multiple=this.options.multiple,d.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.'),d.StoreData(e[0],"data",d.GetData(e[0],"select2Tags")),d.StoreData(e[0],"tags",!0)),d.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[0].setAttribute("ajax--url",d.GetData(e[0],"ajaxUrl")),d.StoreData(e[0],"ajax-Url",d.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var r=e[0].attributes[o].name,l="data-";r.substr(0,l.length)==l&&(r=r.substring(l.length),l=d.GetData(e[0],r),i[r.replace(/-([a-z])/g,s)]=l)}u.fn.jquery&&"1."==u.fn.jquery.substr(0,2)&&e[0].dataset&&(i=u.extend(!0,{},e[0].dataset,i));var a,c=u.extend(!0,{},d.GetData(e[0]),i);for(a in c=d._convertData(c))-1<n.indexOf(a)||(u.isPlainObject(this.options[a])?u.extend(this.options[a],c[a]):this.options[a]=c[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,s,o,i){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new s(t=t||{},e),r.__super__.constructor.call(this);var t=e[0].getAttribute("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e[0].setAttribute("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),i=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),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[0].classList.add("select2-hidden-accessible"),e[0].setAttribute("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){e=e[0];return"select2-"+(null!=e&&null!=e.getAttribute("id")?e.getAttribute("id"):null!=e&&null!=e.getAttribute("name")?e.getAttribute("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(i=this._resolveWidth(e,"style"))?i:this._resolveWidth(e,"element");if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var i=e[0].getAttribute("style");if("string"==typeof i)for(var s=i.split(";"),o=0,r=s.length;o<r;o+=1){var l=s[o].replace(/\s/g,"").match(n);if(null!==l&&1<=l.length)return l[1]}return null},r.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)},r.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=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.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===i.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("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.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER||t===i.TAB?(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())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element[0].disabled),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var s={prevented:!1,name:e,args:t};if(n.call(this,i[e],s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.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[0].disabled instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element[0].disabled=e},r.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},r.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];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element[0].setAttribute("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element[0].setAttribute("aria-hidden","false"),o.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},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e[0].setAttribute("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(s,e,o,t,r){var l;return null==s.fn.select2&&(l=["open","close","destroy"],s.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=s.extend(!0,{},t);new o(s(this),e)}),this;var n,i;if("string"==typeof t)return i=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<l.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==s.fn.select2.defaults&&(s.fn.select2.defaults=t),o});var e,n,p,o,r,h,f,g,m,y,v,i,s,b,l={define:e.define,require:e.require};function _(e,t){return i.call(e,t)}function a(e,t){var n,i,s,o,r,l,a,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[t])&&(e[t]=e[t].replace(b,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(s=(s=h[p.slice(0,u).join("/")])&&s[i]){o=s,r=c;break}if(o)break;!l&&f&&f[i]&&(l=f[i],a=c)}!o&&l&&(o=l,r=a),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(p,e.concat([t,n]))}}function A(e){var t;if(_(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(p,t)),_(g,e)||_(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function x(e){return e?c(e):[]}var u=l.require("jquery.select2");return t.fn.select2.amd=l,u});
3;
4/* @license MIT https://raw.githubusercontent.com/SortableJS/Sortable/1.15.6/LICENSE */
5/*! Sortable 1.15.6 - MIT | git://github.com/SortableJS/Sortable.git */
6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function e(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)),o}function I(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
vendor: 6,453 bytes, line 6
6t%2?e(Object(i),!0).forEach(function(t){var e,n;e=o,t=i[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})}return o}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var n,o=function(t,e){if(null==t)return{};for(var n,o={},i=Object.keys(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n]);return o}function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function t(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var y=t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=t(/Edge/i),s=t(/firefox/i),u=t(/safari/i)&&!t(/chrome/i)&&!t(/android/i),c=t(/iP(ad|od|hone)/i),n=t(/chrome/i)&&t(/android/i),d={capture:!1,passive:!1};function h(t,e,n){t.addEventListener(e,n,!y&&d)}function p(t,e,n){t.removeEventListener(e,n,!y&&d)}function f(t,e){if(e&&(">"===e[0]&&(e=e.substring(1)),t))try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return}}function g(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function P(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"!==e[0]||t.parentNode===n)&&f(t,e)||o&&t===n)return t}while(t!==n&&(t=g(t)))}return null}var m,v=/\s+/g;function k(t,e,n){var o;t&&e&&(t.classList?t.classList[n?"add":"remove"](e):(o=(" "+t.className+" ").replace(v," ").replace(" "+e+" "," "),t.className=(o+(n?" "+e:"")).replace(v," ")))}function R(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];o[e=!(e in o||-1!==e.indexOf("webkit"))?"-webkit-"+e:e]=n+("string"==typeof n?"":"px")}}function b(t,e){var n="";if("string"==typeof t)n=t;else do{var o=R(t,"transform")}while(o&&"none"!==o&&(n=o+" "+n),!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function D(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function O(){var t=document.scrollingElement;return t||document.documentElement}function X(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d=t!==window&&t.parentNode&&t!==O()?(a=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,r.width):(l=a=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,window.innerWidth);if((e||n)&&t!==window&&(i=i||t.parentNode,!y))do{if(i&&i.getBoundingClientRect&&("none"!==R(i,"transform")||n&&"static"!==R(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(R(i,"border-top-width")),l-=h.left+parseInt(R(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);return o&&t!==window&&(o=(e=b(i||t))&&e.a,t=e&&e.d,e&&(s=(a/=t)+(u/=t),c=(l/=o)+(d/=o))),{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Y(t,e,n){for(var o=M(t,!0),i=X(t)[e];o;){var r=X(o)[n];if(!("top"===n||"left"===n?r<=i:i<=r))return o;if(o===O())break;o=M(o,!1)}return!1}function B(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==jt.ghost&&(o||a[r]!==jt.dragged)&&P(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function F(t,e){for(var n=t.lastElementChild;n&&(n===jt.ghost||"none"===R(n,"display")||e&&!f(n,e));)n=n.previousElementSibling;return n||null}function j(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===jt.clone||e&&!f(t,e)||n++;return n}function E(t){var e=0,n=0,o=O();if(t)do{var i=b(t),r=i.a,i=i.d}while(e+=t.scrollLeft*r,n+=t.scrollTop*i,t!==o&&(t=t.parentNode));return[e,n]}function M(t,e){if(!t||!t.getBoundingClientRect)return O();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=R(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||e)return n;o=!0}}}while(n=n.parentNode);return O()}function S(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function _(e,n){return function(){var t;m||(1===(t=arguments).length?e.call(this,t[0]):e.apply(this,t),m=setTimeout(function(){m=void 0},n))}}function H(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function C(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function T(t,e){R(t,"position","absolute"),R(t,"top",e.top),R(t,"left",e.left),R(t,"width",e.width),R(t,"height",e.height)}function x(t){R(t,"position",""),R(t,"top",""),R(t,"left",""),R(t,"width",""),R(t,"height","")}function L(n,o,i){var r={};
vendor: 20,096 bytes, line 6
6return Array.from(n.children).forEach(function(t){var e;P(t,o.draggable,n,!1)&&!t.animated&&t!==i&&(e=X(t),r.left=Math.min(null!==(t=r.left)&&void 0!==t?t:1/0,e.left),r.top=Math.min(null!==(t=r.top)&&void 0!==t?t:1/0,e.top),r.right=Math.max(null!==(t=r.right)&&void 0!==t?t:-1/0,e.right),r.bottom=Math.max(null!==(t=r.bottom)&&void 0!==t?t:-1/0,e.bottom))}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var K="Sortable"+(new Date).getTime();function A(){var e,o=[];return{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){var e,n;"none"!==R(t,"display")&&t!==jt.ghost&&(o.push({target:t,rect:X(t)}),e=I({},o[o.length-1].rect),!t.thisAnimationDuration||(n=b(t,!0))&&(e.top-=n.f,e.left-=n.e),t.fromRect=e)})},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(o,{target:t}),1)},animateAll:function(t){var c=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof t&&t());var u=!1,d=0;o.forEach(function(t){var e=0,n=t.target,o=n.fromRect,i=X(n),r=n.prevFromRect,a=n.prevToRect,l=t.rect,s=b(n,!0);s&&(i.top-=s.f,i.left-=s.e),n.toRect=i,n.thisAnimationDuration&&S(r,i)&&!S(o,i)&&(l.top-i.top)/(l.left-i.left)==(o.top-i.top)/(o.left-i.left)&&(t=l,s=r,r=a,a=c.options,e=Math.sqrt(Math.pow(s.top-t.top,2)+Math.pow(s.left-t.left,2))/Math.sqrt(Math.pow(s.top-r.top,2)+Math.pow(s.left-r.left,2))*a.animation),S(i,o)||(n.prevFromRect=o,n.prevToRect=i,e=e||c.options.animation,c.animate(n,l,i,e)),e&&(u=!0,d=Math.max(d,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(e),u?e=setTimeout(function(){"function"==typeof t&&t()},d):"function"==typeof t&&t(),o=[]},animate:function(t,e,n,o){var i,r;o&&(R(t,"transition",""),R(t,"transform",""),i=(r=b(this.el))&&r.a,r=r&&r.d,i=(e.left-n.left)/(i||1),r=(e.top-n.top)/(r||1),t.animatingX=!!i,t.animatingY=!!r,R(t,"transform","translate3d("+i+"px,"+r+"px,0)"),this.forRepaintDummy=t.offsetWidth,R(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),R(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){R(t,"transition",""),R(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o))}}}var N=[],W={initializeByDefault:!0},z={mount:function(e){for(var t in W)!W.hasOwnProperty(t)||t in e||(e[t]=W[t]);N.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),N.push(e)},pluginEvent:function(e,n,o){var t=this;this.eventCanceled=!1,o.cancel=function(){t.eventCanceled=!0};var i=e+"Global";N.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][i]&&n[t.pluginName][i](I({sortable:n},o)),n.options[t.pluginName]&&n[t.pluginName][e]&&n[t.pluginName][e](I({sortable:n},o)))})},initializePlugins:function(n,o,i,t){for(var e in N.forEach(function(t){var e=t.pluginName;(n.options[e]||t.initializeByDefault)&&((t=new t(n,o,n.options)).sortable=n,t.options=n.options,n[e]=t,a(i,t.defaults))}),n.options){var r;n.options.hasOwnProperty(e)&&(void 0!==(r=this.modifyOption(n,e,n.options[e]))&&(n.options[e]=r))}},getEventProperties:function(e,n){var o={};return N.forEach(function(t){"function"==typeof t.eventProperties&&a(o,t.eventProperties.call(n[t.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return N.forEach(function(t){e[t.pluginName]&&t.optionListeners&&"function"==typeof t.optionListeners[n]&&(i=t.optionListeners[n].call(e[t.pluginName],o))}),i}};function G(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,f=t.extraEventProperties;if(e=e||n&&n[K]){var g,m=e.options,t="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||y||w?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=i||n,g.clone=r,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var v,b=I(I({},f),z.getEventProperties(o,e));for(v in b)g[v]=b[v];n&&n.dispatchEvent(g),m[t]&&m[t].call(e,g)}}function U(t,e){var n=(o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,o=i(o,q);z.pluginEvent.bind(jt)(t,e,I({dragEl:Z,parentEl:$,ghostEl:Q,rootEl:J,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:ot,dragStarted:mt,putSortable:ct,activeSortable:jt.active,originalEvent:n,oldIndex:it,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:lt,hideGhostForTarget:Xt,unhideGhostForTarget:Yt,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(t){V({sortable:e,name:t,originalEvent:n})}},o))}var q=["evt"];function V(t){G(I({putSortable:ct,cloneEl:nt,targetEl:Z,rootEl:J,oldIndex:it,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:lt},t))}var Z,$,Q,J,tt,et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,pt,ft,gt,mt,vt,bt,yt,wt,Dt=!1,Et=!1,St=[],_t=!1,Ct=!1,Tt=[],xt=!1,Ot=[],Mt="undefined"!=typeof document,At=c,Nt=w||y?"cssFloat":"float",It=Mt&&!n&&!c&&"draggable"in document.createElement("div"),Pt=function(){if(Mt){if(y)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),kt=function(t,e){var n=R(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=B(t,0,e),r=B(t,1,e),a=i&&R(i),l=r&&R(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+X(i).width,t=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+X(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){e="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==e?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||o<=s&&"none"===n[Nt]||r&&"none"===n[Nt]&&o<s+t)?"vertical":"horizontal"},Rt=function(t){function l(r,a){return function(t,e,n,o){var i=t.options.group.name&&e.options.group.name&&t.options.group.name===e.options.group.name;if(null==r&&(a||i))return!0;if(null==r||!1===r)return!1;if(a&&"clone"===r)return r;if("function"==typeof r)return l(r(t,e,n,o),a)(t,e,n,o);e=(a?t:e).options.group.name;return!0===r||"string"==typeof r&&r===e||r.join&&-1<r.indexOf(e)}}var e={},n=t.group;n&&"object"==o(n)||(n={name:n}),e.name=n.name,e.checkPull=l(n.pull,!0),e.checkPut=l(n.put),e.revertClone=n.revertClone,t.group=e},Xt=function(){!Pt&&Q&&R(Q,"display","none")},Yt=function(){!Pt&&Q&&R(Q,"display","")};Mt&&!n&&document.addEventListener("click",function(t){if(Et)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Et=!1},!0);function Bt(t){if(Z){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,St.some(function(t){var e=t[K].options.emptyInsertThreshold;if(e&&!F(t)){var n=X(t),o=i>=n.left-e&&i<=n.right+e,e=r>=n.top-e&&r<=n.bottom+e;return o&&e?a=t:void 0}}),a);if(e){var n,o={};for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[K]._onDragOver(o)}}var i,r,a}function Ft(t){Z&&Z.parentNode[K]._isOutsideThisEl(t.target)}function jt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[K]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==jt.supportPointer&&"PointerEvent"in window&&(!u||c),emptyInsertThreshold:5};for(n in z.initializePlugins(this,t,i),i)n in e||(e[n]=i[n]);for(o in Rt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&It,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),St.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,A())}function Ht(t,e,n,o,i,r,a,l){var s,c,u=t[K],d=u.options.onMove;return!window.CustomEvent||y||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||X(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),c=d?d.call(u,s,a):c}function Lt(t){t.draggable=!1}function Kt(){xt=!1}function Wt(t){return setTimeout(t,0)}function zt(t){return clearTimeout(t)}jt.prototype={constructor:jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,t=this.options,i=t.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=t.filter;if(!function(t){Ot.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Ot.push(o)}}(o),!Z&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||t.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!u||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=P(l,t.draggable,o,!1))&&l.animated||et===l)){if(it=j(l),at=j(l,t.draggable),"function"==typeof c){if(c.call(this,e,l,this))return V({sortable:n,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),U("filter",n,{evt:e}),void(i&&e.preventDefault())}else if(c=c&&c.split(",").some(function(t){if(t=P(s,t.trim(),o,!1))return V({sortable:n,rootEl:t,name:"filter",targetEl:l,fromEl:o,toEl:o}),U("filter",n,{evt:e}),!0}))return void(i&&e.preventDefault());t.handle&&!P(s,t.handle,o,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;n&&!Z&&n.parentNode===r&&(o=X(n),J=r,$=(Z=n).parentNode,tt=Z.nextSibling,et=n,st=a.group,ut={target:jt.dragged=Z,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-o.left,gt=ut.clientY-o.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Z.style["will-change"]="all",o=function(){U("delayEnded",i,{evt:t}),jt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!s&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(t,e),V({sortable:i,name:"choose",originalEvent:t}),k(Z,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){D(Z,t.trim(),Lt)}),h(l,"dragover",Bt),h(l,"mousemove",Bt),h(l,"touchmove",Bt),a.supportPointer?(h(l,"pointerup",i._onDrop),this.nativeDraggable||h(l,"pointercancel",i._onDrop)):(h(l,"mouseup",i._onDrop),h(l,"touchend",i._onDrop),h(l,"touchcancel",i._onDrop)),s&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),U("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||y)?o():jt.eventCanceled?this._onDrop():(a.supportPointer?(h(l,"pointerup",i._disableDelayedDrag),h(l,"pointercancel",i._disableDelayedDrag)):(h(l,"mouseup",i._disableDelayedDrag),h(l,"touchend",i._disableDelayedDrag),h(l,"touchcancel",i._disableDelayedDrag)),h(l,"mousemove",i._delayedDragTouchMoveHandler),h(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&h(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.delay)))},_delayedDragTouchMoveHandler:function(t){t=t.touches?t.touches[0]:t;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Lt(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;p(t,"mouseup",this._disableDelayedDrag),p(t,"touchend",this._disableDelayedDrag),p(t,"touchcancel",this._disableDelayedDrag),p(t,"pointerup",this._disableDelayedDrag),p(t,"pointercancel",this._disableDelayedDrag),p(t,"mousemove",this._delayedDragTouchMoveHandler),p(t,"touchmove",this._delayedDragTouchMoveHandler),p(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(Z,"dragend",this),h(J,"dragstart",this._onDragStart));try{document.selection?Wt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){var n;Dt=!1,J&&Z?(U("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",Ft),n=this.options,t||k(Z,n.dragClass,!1),k(Z,n.ghostClass,!0),jt.active=this,t&&this._appendGhost(),V({sortable:this,name:"start",originalEvent:e})):this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Xt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(Z.parentNode[K]._isOutsideThisEl(t),e)do{if(e[K])if(e[K]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}while(e=g(t=e));Yt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=Q&&b(Q,!0),a=Q&&r&&r.a,l=Q&&r&&r.d,e=At&&wt&&E(wt),a=(i.clientX-ut.clientX+o.x)/(a||1)+(e?e[0]-Tt[0]:0)/(a||1),l=(i.clientY-ut.clientY+o.y)/(l||1)+(e?e[1]-Tt[1]:0)/(l||1);if(!jt.active&&!Dt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}Q&&(r?(r.e+=a-(ht||0),r.f+=l-(pt||0)):r={a:1,b:0,c:0,d:1,e:a,f:l},r="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")"),R(Q,"webkitTransform",r),R(Q,"mozTransform",r),R(Q,"msTransform",r),R(Q,"transform",r),ht=a,pt=l,dt=i),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Q){var t=this.options.fallbackOnBody?document.body:J,e=X(Z,!0,At,!0,t),n=this.options;if(At){for(wt=t;"static"===R(wt,"position")&&"none"===R(wt,"transform")&&wt!==document;)wt=wt.parentNode;wt!==document.body&&wt!==document.documentElement?(wt===document&&(wt=O()),e.top+=wt.scrollTop,e.left+=wt.scrollLeft):wt=O(),Tt=E(wt)}k(Q=Z.cloneNode(!0),n.ghostClass,!1),k(Q,n.fallbackClass,!0),k(Q,n.dragClass,!0),R(Q,"transition",""),R(Q,"transform",""),R(Q,"box-sizing","border-box"),R(Q,"margin",0),R(Q,"top",e.top),R(Q,"left",e.left),R(Q,"width",e.width),R(Q,"height",e.height),R(Q,"opacity","0.8"),R(Q,"position",At?"absolute":"fixed"),R(Q,"zIndex","100000"),R(Q,"pointerEvents","none"),jt.ghost=Q,t.appendChild(Q),R(Q,"transform-origin",ft/parseInt(Q.style.width)*100+"% "+gt/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;U("dragStart",this,{evt:t}),jt.eventCanceled?this._onDrop():(U("setupClone",this),jt.eventCanceled||((nt=C(Z)).removeAttribute("id"),nt.draggable=!1,nt.style["will-change"]="",this._hideClone(),k(nt,this.options.chosenClass,!1),jt.clone=nt),n.cloneId=Wt(function(){U("clone",n),jt.eventCanceled||(n.options.removeCloneOnHide||J.insertBefore(nt,Z),n._hideClone(),V({sortable:n,name:"clone"}))}),e||k(Z,i.dragClass,!0),e?(Et=!0,n._loopId=setInterval(n._emulateDragOver,50)):(p(document,"mouseup",n._onDrop),p(document,"touchend",n._onDrop),p(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,Z)),h(document,"drop",n),R(Z,"transform","translateZ(0)")),Dt=!0,n._dragStartId=Wt(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),mt=!0,window.getSelection().removeAllRanges(),u&&R(document.body,"user-select","none"))},_onDragOver:function(n){var o,i,r,t,e,a=this.el,l=n.target,s=this.options,c=s.group,u=jt.active,d=st===c,h=s.sort,p=ct||u,f=this,g=!1;if(!xt){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),l=P(l,s.draggable,a,!0),O("dragOver"),jt.eventCanceled)return g;if(Z.contains(n.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return A(!1);if(Et=!1,u&&!s.disabled&&(d?h||(i=$!==J):ct===this||(this.lastPutMode=st.checkPull(this,u,Z,n))&&c.checkPut(this,u,Z,n))){if(r="vertical"===this._getDirection(n,l),o=X(Z),O("dragOverValid"),jt.eventCanceled)return g;if(i)return $=J,M(),this._hideClone(),O("revert"),jt.eventCanceled||(tt?J.insertBefore(Z,tt):J.appendChild(Z)),A(!0);var m=F(a,s.draggable);if(m&&(S=n,c=r,x=X(F((E=this).el,E.options.draggable)),E=L(E.el,E.options,Q),!(c?S.clientX>E.right+10||S.clientY>x.bottom&&S.clientX>x.left:S.clientY>E.bottom+10||S.clientX>x.right&&S.clientY>x.top)||m.animated)){if(m&&(t=n,e=r,C=X(B((_=this).el,0,_.options,!0)),_=L(_.el,_.options,Q),e?t.clientX<_.left-10||t.clientY<C.top&&t.clientX<C.right:t.clientY<_.top-10||t.clientY<C.bottom&&t.clientX<C.left)){var v=B(a,0,s,!0);if(v===Z)return A(!1);if(D=X(l=v),!1!==Ht(J,a,Z,o,l,D,n,!1))return M(),a.insertBefore(Z,v),$=a,N(),A(!0)}else if(l.parentNode===a){var b,y,w,D=X(l),E=Z.parentNode!==a,S=(S=Z.animated&&Z.toRect||o,x=l.animated&&l.toRect||D,_=(e=r)?S.left:S.top,t=e?S.right:S.bottom,C=e?S.width:S.height,v=e?x.left:x.top,S=e?x.right:x.bottom,x=e?x.width:x.height,!(_===v||t===S||_+C/2===v+x/2)),_=r?"top":"left",C=Y(l,"top","top")||Y(Z,"top","top"),v=C?C.scrollTop:void 0;if(vt!==l&&(y=D[_],_t=!1,Ct=!S&&s.invertSwap||E),0!==(b=function(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,t=o?n.top:n.left,o=o?n.bottom:n.right,n=!1;if(!a)if(l&&yt<c*i){if(_t=!_t&&(1===bt?t+c*r/2<s:s<o-c*r/2)?!0:_t)n=!0;else if(1===bt?s<t+yt:o-yt<s)return-bt}else if(t+c*(1-i)/2<s&&s<o-c*(1-i)/2)return function(t){return j(Z)<j(t)?1:-1}(e);if((n=n||a)&&(s<t+c*r/2||o-c*r/2<s))return t+c/2<s?1:-1;return 0}(n,l,D,r,S?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,vt===l)))for(var T=j(Z);(w=$.children[T-=b])&&("none"===R(w,"display")||w===Q););if(0===b||w===l)return A(!1);bt=b;var x=(vt=l).nextElementSibling,E=!1,S=Ht(J,a,Z,o,l,D,n,E=1===b);if(!1!==S)return 1!==S&&-1!==S||(E=1===S),xt=!0,setTimeout(Kt,30),M(),E&&!x?a.appendChild(Z):l.parentNode.insertBefore(Z,E?x:l),C&&H(C,0,v-C.scrollTop),$=Z.parentNode,void 0===y||Ct||(yt=Math.abs(y-X(l)[_])),N(),A(!0)}}else{if(m===Z)return A(!1);if((l=m&&a===n.target?m:l)&&(D=X(l)),!1!==Ht(J,a,Z,o,l,D,n,!!l))return M(),m&&m.nextSibling?a.insertBefore(Z,m.nextSibling):a.appendChild(Z),$=a,N(),A(!0)}if(a.contains(Z))return A(!1)}return!1}function O(t,e){U(t,f,I({evt:n,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:o,targetRect:D,canSort:h,fromSortable:p,target:l,completed:A,onMove:function(t,e){return Ht(J,a,Z,o,t,X(t),n,e)},changed:N},e))}function M(){O("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.
vendor: 4,361 bytes, line 6
6captureAnimationState()}function A(t){return O("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(f),f!==p&&(k(Z,(ct||u).options.ghostClass,!1),k(Z,s.ghostClass,!0)),ct!==f&&f!==jt.active?ct=f:f===jt.active&&ct&&(ct=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){O("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Z&&!Z.animated||l===a&&!l.animated)&&(vt=null),s.dragoverBubble||n.rootEl||l===document||(Z.parentNode[K]._isOutsideThisEl(n.target),t||Bt(n)),!s.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),g=!0}function N(){rt=j(Z),lt=j(Z,s.draggable),V({sortable:f,name:"change",toEl:a,newIndex:rt,newDraggableIndex:lt,originalEvent:n})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){p(document,"mousemove",this._onTouchMove),p(document,"touchmove",this._onTouchMove),p(document,"pointermove",this._onTouchMove),p(document,"dragover",Bt),p(document,"mousemove",Bt),p(document,"touchmove",Bt)},_offUpEvents:function(){var t=this.el.ownerDocument;p(t,"mouseup",this._onDrop),p(t,"touchend",this._onDrop),p(t,"pointerup",this._onDrop),p(t,"pointercancel",this._onDrop),p(t,"touchcancel",this._onDrop),p(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;rt=j(Z),lt=j(Z,n.draggable),U("drop",this,{evt:t}),$=Z&&Z.parentNode,rt=j(Z),lt=j(Z,n.draggable),jt.eventCanceled||(_t=Ct=Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zt(this.cloneId),zt(this._dragStartId),this.nativeDraggable&&(p(document,"drop",this),p(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&R(document.body,"user-select",""),R(Z,"transform",""),t&&(mt&&(t.cancelable&&t.preventDefault(),n.dropBubble||t.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(J===$||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),Z&&(this.nativeDraggable&&p(Z,"dragend",this),Lt(Z),Z.style["will-change"]="",mt&&!Dt&&k(Z,(ct||this).options.ghostClass,!1),k(Z,this.options.chosenClass,!1),V({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),J!==$?(0<=rt&&(V({rootEl:$,name:"add",toEl:$,fromEl:J,originalEvent:t}),V({sortable:this,name:"remove",toEl:$,originalEvent:t}),V({rootEl:$,name:"sort",toEl:$,fromEl:J,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),ct&&ct.save()):rt!==it&&0<=rt&&(V({sortable:this,name:"update",toEl:$,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),jt.active&&(null!=rt&&-1!==rt||(rt=it,lt=at),V({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),J=Z=$=Q=tt=nt=et=ot=ut=dt=mt=rt=lt=it=at=vt=bt=ct=st=jt.dragged=jt.ghost=jt.clone=jt.active=null,Ot.forEach(function(t){t.checked=!0}),Ot.length=ht=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Z&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)P(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||function(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;for(;n--;)o+=e.charCodeAt(n);return o.toString(36)}(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){e=o.children[e];P(e,this.options.draggable,o,!1)&&(n[t]=e)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return P(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=z.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Rt(n)},destroy:function(){U("destroy",this);var t=this.el;t[K]=null,p(t,"mousedown",this._onTapStart),p(t,"touchstart",this._onTapStart),p(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(p(t,"dragover",this),p(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}
vendor: 14,906 bytes, lines 6-8
6),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=t=null},_hideClone:function(){ot||(U("hideClone",this),jt.eventCanceled||(R(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),ot=!0))},_showClone:function(t){"clone"===t.lastPutMode?ot&&(U("showClone",this),jt.eventCanceled||(Z.parentNode!=J||this.options.group.revertClone?tt?J.insertBefore(nt,tt):J.appendChild(nt):J.insertBefore(nt,Z),this.options.group.revertClone&&this.animate(Z,nt),R(nt,"display",""),ot=!1)):this._hideClone()}},Mt&&h(document,"touchmove",function(t){(jt.active||Dt)&&t.cancelable&&t.preventDefault()}),jt.utils={on:h,off:p,css:R,find:D,is:function(t,e){return!!P(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:_,closest:P,toggleClass:k,clone:C,index:j,nextTick:Wt,cancelNextTick:zt,detectDirection:kt,getChild:B,expando:K},jt.get=function(t){return t[K]},jt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];(e=e[0].constructor===Array?e[0]:e).forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(jt.utils=I(I({},jt.utils),t.utils)),z.mount(t)})},jt.create=function(t,e){return new jt(t,e)};var Gt,Ut,qt,Vt,Zt,$t,Qt=[],Jt=!(jt.version="1.15.6");function te(){Qt.forEach(function(t){clearInterval(t.pid)}),Qt=[]}function ee(){clearInterval($t)}var ne,oe=_(function(n,t,e,o){if(t.scroll){var i,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=O(),u=!1;Ut!==e&&(Ut=e,te(),Gt=t.scroll,i=t.scrollFn,!0===Gt&&(Gt=M(e,!0)));var d=0,h=Gt;do{var p=h,f=X(p),g=f.top,m=f.bottom,v=f.left,b=f.right,y=f.width,w=f.height,D=void 0,E=void 0,S=p.scrollWidth,_=p.scrollHeight,C=R(p),T=p.scrollLeft,f=p.scrollTop,E=p===c?(D=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(D=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY)),T=D&&(Math.abs(b-r)<=l&&T+y<S)-(Math.abs(v-r)<=l&&!!T),f=E&&(Math.abs(m-a)<=l&&f+w<_)-(Math.abs(g-a)<=l&&!!f);if(!Qt[d])for(var x=0;x<=d;x++)Qt[x]||(Qt[x]={});Qt[d].vx==T&&Qt[d].vy==f&&Qt[d].el===p||(Qt[d].el=p,Qt[d].vx=T,Qt[d].vy=f,clearInterval(Qt[d].pid),0==T&&0==f||(u=!0,Qt[d].pid=setInterval(function(){o&&0===this.layer&&jt.active._onTouchMove(Zt);var t=Qt[this.layer].vy?Qt[this.layer].vy*s:0,e=Qt[this.layer].vx?Qt[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(jt.dragged.parentNode[K],e,t,n,Zt,Qt[this.layer].el)||H(Qt[this.layer].el,e,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=M(h,!1)));Jt=u}},30),n=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,t=t.unhideGhostForTarget;e&&(i=n||i,a(),e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e=document.elementFromPoint(e.clientX,e.clientY),t(),i&&!i.el.contains(e)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n})))};function ie(){}function re(){}ie.prototype={startIndex:null,dragStart:function(t){t=t.oldDraggableIndex;this.startIndex=t},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();t=B(this.sortable.el,this.startIndex,this.options);t?this.sortable.el.insertBefore(e,t):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:n},a(ie,{pluginName:"revertOnSpill"}),re.prototype={onSpill:function(t){var e=t.dragEl,t=t.putSortable||this.sortable;t.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),t.animateAll()},drop:n},a(re,{pluginName:"removeOnSpill"});var ae,le,se,ce,ue,de=[],he=[],pe=!1,fe=!1,ge=!1;function me(n,o){he.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)})}function ve(){de.forEach(function(t){t!==se&&t.parentNode&&t.parentNode.removeChild(t)})}return jt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){t=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):t.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){t=t.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?p(document,"dragover",this._handleAutoScroll):(p(document,"pointermove",this._handleFallbackAutoScroll),p(document,"touchmove",this._handleFallbackAutoScroll),p(document,"mousemove",this._handleFallbackAutoScroll)),ee(),te(),clearTimeout(m),m=void 0},nulling:function(){Zt=Ut=Gt=Jt=$t=qt=Vt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(e,n){var o,i=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,t=document.elementFromPoint(r,a);Zt=e,n||this.options.forceAutoScrollFallback||w||y||u?(oe(e,this.options,t,n),o=M(t,!0),!Jt||$t&&r===qt&&a===Vt||($t&&ee(),$t=setInterval(function(){var t=M(document.elementFromPoint(r,a),!0);t!==o&&(o=t,te()),oe(e,i.options,t,n)},10),qt=r,Vt=a)):this.options.bubbleScroll&&M(t,!0)!==O()?oe(e,this.options,M(t,!1),!1):te()}},a(t,{pluginName:"scroll",initializeByDefault:!0})}),jt.mount(re,ie),jt.mount(new function(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){t=t.dragEl;ne=t},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,r=t.changed,a=t.cancel;i.options.swap&&(t=this.sortable.el,i=this.options,n&&n!==t&&(t=ne,ne=!1!==o(n)?(k(n,i.swapClass,!0),n):null,t&&t!==ne&&k(t,i.swapClass,!1)),r(),e(!0),a())},drop:function(t){var e,n,o=t.activeSortable,i=t.putSortable,r=t.dragEl,a=i||this.sortable,l=this.options;ne&&k(ne,l.swapClass,!1),ne&&(l.swap||i&&i.options.swap)&&r!==ne&&(a.captureAnimationState(),a!==o&&o.captureAnimationState(),n=ne,t=(e=r).parentNode,l=n.parentNode,t&&l&&!t.isEqualNode(n)&&!l.isEqualNode(e)&&(i=j(e),r=j(n),t.isEqualNode(l)&&i<r&&r++,t.insertBefore(n,t.children[i]),l.insertBefore(e,l.children[r])),a.animateAll(),a!==o&&o.animateAll())},nulling:function(){ne=null}},a(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}),jt.mount(new function(){function t(o){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));o.options.avoidImplicitDeselect||(o.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag))),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,e){var n="";de.length&&le===o?de.forEach(function(t,e){n+=(e?", ":"")+t.textContent}):n=e.textContent,t.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){t=t.dragEl;se=t},delayEnded:function(){this.isMultiDrag=~de.indexOf(se)},setupClone:function(t){var e=t.sortable,t=t.cancel;if(this.isMultiDrag){for(var n=0;n<de.length;n++)he.push(C(de[n])),he[n].sortableIndex=de[n].sortableIndex,he[n].draggable=!1,he[n].style["will-change"]="",k(he[n],this.options.selectedClass,!1),de[n]===se&&k(he[n],this.options.chosenClass,!1);e._hideClone(),t()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,t=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||de.length&&le===e&&(me(!0,n),o("clone"),t()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,t=t.cancel;this.isMultiDrag&&(me(!1,n),he.forEach(function(t){R(t,"display","")}),e(),ue=!1,t())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),t=t.cancel;this.isMultiDrag&&(he.forEach(function(t){R(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),ue=!0,t())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&le&&le.multiDrag._deselectMultiDrag(),de.forEach(function(t){t.sortableIndex=j(t)}),de=de.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ge=!0},dragStarted:function(t){var e,n=this,t=t.sortable;this.isMultiDrag&&(this.options.sort&&(t.captureAnimationState(),this.options.animation&&(de.forEach(function(t){t!==se&&R(t,"position","absolute")}),e=X(se,!1,!0,!0),de.forEach(function(t){t!==se&&T(t,e)}),pe=fe=!0)),t.animateAll(function(){pe=fe=!1,n.options.animation&&de.forEach(function(t){x(t)}),n.options.sort&&ve()}))},dragOver:function(t){var e=t.target,n=t.completed,t=t.cancel;fe&&~de.indexOf(e)&&(n(!1),t())},revert:function(t){var n,o,e=t.fromSortable,i=t.rootEl,r=t.sortable,a=t.dragRect;1<de.length&&(de.forEach(function(t){r.addAnimationState({target:t,rect:fe?X(t):a}),x(t),t.fromRect=a,e.removeAnimationState(t)}),fe=!1,n=!this.options.removeCloneOnHide,o=i,de.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)}))},dragOverCompleted:function(t){var e,n=t.sortable,o=t.isOwner,i=t.insertion,r=t.activeSortable,a=t.parentEl,l=t.putSortable,t=this.options;i&&(o&&r._hideClone(),pe=!1,t.animation&&1<de.length&&(fe||!o&&!r.options.sort&&!l)&&(e=X(se,!1,!0,!0),de.forEach(function(t){t!==se&&(T(t,e),a.appendChild(t))}),fe=!0),o||(fe||ve(),1<de.length?(o=ue,r._showClone(n),r.options.animation&&!ue&&o&&he.forEach(function(t){r.addAnimationState({target:t,rect:ce}),t.fromRect=ce,t.thisAnimationDuration=null})):r._showClone(n)))},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,t=t.activeSortable;de.forEach(function(t){t.thisAnimationDuration=null}),t.options.animation&&!n&&t.multiDrag.isMultiDrag&&(ce=a({},e),e=b(se,!0),ce.top-=e.f,ce.left-=e.e)},dragOverAnimationComplete:function(){fe&&(fe=!1,ve())},drop:function(t){var o,i,r,a,n,e,l,s=t.originalEvent,c=t.rootEl,u=t.parentEl,d=t.sortable,h=t.dispatchSortableEvent,p=t.oldIndex,t=t.putSortable,f=t||this.sortable;s&&(o=this.options,i=u.children,ge||(o.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(se,o.selectedClass,!~de.indexOf(se)),~de.indexOf(se)?(de.splice(de.indexOf(se),1),ae=null,G({sortable:d,rootEl:c,name:"deselect",targetEl:se,originalEvent:s})):(de.push(se),G({sortable:d,rootEl:c,name:"select",targetEl:se,originalEvent:s}),s.shiftKey&&ae&&d.el.contains(ae)?(r=j(ae),a=j(se),~r&&~a&&r!==a&&function(){for(var e,t=r<a?(e=r,a):(e=a,r+1),n=o.filter;e<t;e++)~de.indexOf(i[e])||P(i[e],o.draggable,u,!1)&&(n&&("function"==typeof n?n.call(d,s,i[e],d):n.split(",").some(function(t){return P(i[e],t.trim(),u,!1)}))||(k(i[e],o.selectedClass,!0),de.push(i[e]),G({sortable:d,rootEl:c,name:"select",targetEl:i[e],originalEvent:s})))}()):ae=se,le=f)),ge&&this.isMultiDrag&&(fe=!1,(u[K].options.sort||u!==c)&&1<de.length&&(n=X(se),e=j(se,":not(."+this.options.selectedClass+")"),!pe&&o.animation&&(se.thisAnimationDuration=null),f.captureAnimationState(),pe||(o.animation&&(se.fromRect=n,de.forEach(function(t){var e;t.thisAnimationDuration=null,t!==se&&(e=fe?X(t):n,t.fromRect=e,f.addAnimationState({target:t,rect:e}))})),ve(),de.forEach(function(t){i[e]?u.insertBefore(t,i[e]):u.appendChild(t),e++}),p===j(se)&&(l=!1,de.forEach(function(t){t.sortableIndex!==j(t)&&(l=!0)}),l&&(h("update"),h("sort")))),de.forEach(function(t){x(t)}),f.animateAll()),le=f),(c===u||t&&"clone"!==t.lastPutMode)&&he.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}))},nullingGlobal:function(){this.isMultiDrag=ge=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),p(document,"pointerup",this._deselectMultiDrag),p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ge&&ge||le!==this.sortable||t&&P(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;de.length;){var e=de[0];k(e,this.options.selectedClass,!1),de.shift(),G({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[K];e&&e.options.multiDrag&&!~de.indexOf(t)&&(le&&le!==e&&(le.multiDrag._deselectMultiDrag(),le=e),k(t,e.options.selectedClass,!0),de.push(t))},deselect:function(t){var e=t.parentNode[K],n=de.indexOf(t);e&&e.options.multiDrag&&~n&&(k(t,e.options.selectedClass,!1),de.splice(n,1))}},eventProperties:function(){var n=this,o=[],i=[];return de.forEach(function(t){var e;o.push({multiDragElement:t,index:t.sortableIndex}),e=fe&&t!==se?-1:fe?j(t,":not(."+n.options.selectedClass+")"):j(t),i.push({multiDragElement:t,index:e})}),{items:r(de),clones:[].concat(he),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":1<t.length&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}),jt});;
7/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
8(function($,drupalSettings,Sortable,once){'use strict';Drupal.behaviors.select2={attach:function(context){$(once('select2-init','.select2-widget',context)).each(function(){var config=$(this).data('select2-config');config.createTag=function(params){var term=params.term.trim();if(term==='')return null;return {id:'$ID:'+term,text:term};};config.templateSelection=function(option,container){if('element' in option&&'value' in option.element)$(container).data('optionValue',option.element.value);return option.text;};if(Object.prototype.hasOwnProperty.call(config,'ajax'))config.ajax.data=function(params){var selected=[];if(Array.isArray($(this).val()))selected=$(this).val();else{if($(this).val()!=='')selected=[$(this).val()];}return $.extend({},params,{q:params.term,selected:selected.filter(function(selected){return !selected.startsWith('$ID:');})});};$(this).data('select2-config',config);$(this).trigger('select2-init');config=$(this).data('select2-config');if(Object.prototype.hasOwnProperty.call(config,'dropdownParent'))config.dropdownParent=$(config.dropdownParent);$(this).select2(config);if(config.multiple){var $select=$(this);var $list=$select.next('.select2-container').find('ul.select2-selection__rendered');
8Sortable.create($list[0],{draggable:'li:not(.select2-search)',onEnd:function(event){if(event.newIndex!=event.oldIndex)$($list.find('.select2-selection__choice').get().reverse()).each(function(){$select.prepend($select.find('option[value="'+$(this).data('optionValue')+'"]').first());});}});}});}};})(jQuery,drupalSettings,Sortable,once);;
9!function(){"use strict";var n,e="usa-js-loading";function t(){document.documentElement.classList.remove(e);}document.documentElement.classList.add(e),n=setTimeout(t,8e3),window.addEventListener("load",function e(){window.uswdsPresent&&(clearTimeout(n),t(),window.removeEventListener("load",e,!0));},!0);}();;
10!function r(a,n,i){function o(t,e){if(!n[t]){if(!a[t]){var s="function"==typeof require&&require;if(!e&&s)return s(t,!0);if(c)return c(t,!0);throw (e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e;}s=n[t]={exports:{}},a[t][0].call(s.exports,function(e){return o(a[t][1][e]||e);},s,s.exports,r,a,n,i);}return n[t].exports;}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)o(i[e]);return o;}({1:[function(e,t,s){"use strict";var r;if("document" in window.self)if("classList" in document.createElement("_")&&(!document.createElementNS||"classList" in document.createElementNS("http://www.w3.org/2000/svg","g")))(a=document.createElement("_")).classList.add("c1","c2"),a.classList.contains("c2")||((i=function(e){var r=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){for(var t=arguments.length,s=0;s<t;s++)r.call(this,arguments[s]);};})("add"),i("remove")),a.classList.toggle("c3",!1),a.classList.contains("c3")&&(r=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:r.call(this,e);});else{if("Element" in (i=window.self)){var a="classList",n="prototype",i=i.Element[n],o=Object,c=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"");},l=Array[n].indexOf||function(e){for(var t=0,s=this.length;t<s;t++)if(t in this&&this[t]===e)return t;return -1;},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t;},d=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return l.call(e,t);},p=function(e){for(var t=c.call(e.getAttribute("class")||""),s=t?t.split(/\s+/):[],r=0,a=s.length;r<a;r++)this.push(s[r]);this._updateClassName=function(){e.setAttribute("class",this.toString());};},f=p[n]=[],b=function(){return new p(this);};if(u[n]=Error[n],f.item=function(e){return this[e]||null;},f.contains=function(e){return -1!==d(this,e+="");},f.add=function(){for(var e,t=arguments,s=0,r=t.length,a=!1;-1===d(this,e=t[s]+"")&&(this.push(e),a=!0),++s<r;);a&&this._updateClassName();},f.remove=function(){var e,t,s=arguments,r=0,a=s.length,n=!1;do for(t=d(this,e=s[r]+"");-1!==t;)this.splice(t,1),n=!0,t=d(this,e);while(++r<a);n&&this._updateClassName();},f.toggle=function(e,t){var s=this.contains(e+=""),r=s?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!s;},f.toString=function(){return this.join(" ");},o.defineProperty){f={get:b,enumerable:!0,configurable:!0};try{o.defineProperty(i,a,f);}catch(e){-2146823252===e.number&&(f.enumerable=!1,o.defineProperty(i,a,f));}}else o[n].__defineGetter__&&i.__defineGetter__(a,b);}}},{}],2:[function(e,t,s){"use strict";var r;"function"!=typeof (r=window.Element.prototype).matches&&(r.matches=r.msMatchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),s=0;t[s]&&t[s]!==this;)++s;return Boolean(t[s]);}),"function"!=typeof r.closest&&(r.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode;}return null;});},{}],3:[function(e,t,s){"use strict";for(var r={polyfill:function(){if(!("KeyboardEvent" in window)||"key" in KeyboardEvent.prototype)return !1;var e={get:function(e){var t=r.keys[this.which||this.keyCode];return t=Array.isArray(t)?t[+this.shiftKey]:t;}};return Object.defineProperty(KeyboardEvent.prototype,"key",e),e;},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}},a=1;a<25;a++)r.keys[111+a]="F"+a;var n="";for(a=65;a<91;a++)n=String.fromCharCode(a),r.keys[a]=[n.toLowerCase(),n.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",r):void 0!==s&&void 0!==t?t.exports=r:window&&(window.keyboardeventKeyPolyfill=r);},{}],4:[function(e,t,s){"use strict";var c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},s=0;s<10;s++)t["_"+String.fromCharCode(s)]=s;var r,a=Object.getOwnPropertyNames(t).map(function(e){return t[e];});if("0123456789"===a.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e;}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0;}}}catch(e){}}()?Object.assign:function(e,t){for(var s,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e);}(e),a=1;a<arguments.length;a++){for(var n in s=Object(arguments[a]))l.call(s,n)&&(r[n]=s[n]);if(c)for(var i=c(s),o=0;o<i.length;o++)u.call(s,i[o])&&(r[i[o]]=s[i[o]]);}return r;};},{}],5:[function(e,t,s){"use strict";const c=e("object-assign"),l=e("../delegate"),u=e("../delegateAll"),d=/^(.+):delegate\((.+)\)$/;function p(e,t){var s=e[t];return delete e[t],s;}t.exports=function(o,e){const s=Object.keys(o).reduce(function(e,t){s=o[t=t],(i=t.match(d))&&(t=i[1],r=i[2]),"object"==typeof s&&(a={capture:p(s,"capture"),passive:p(s,"passive")}),n={selector:r,delegate:"object"==typeof s?u(s):r?l(r,s):s,options:a};
10var s,r,a,n,i=-1<t.indexOf(" ")?t.split(" ").map(function(e){return c({type:e},n);}):(n.type=t,[n]);return e.concat(i);},[]);return c({add:function(t){s.forEach(function(e){t.addEventListener(e.type,e.delegate,e.options);});},remove:function(t){s.forEach(function(e){t.removeEventListener(e.type,e.delegate,e.options);});}},e);};},{"../delegate":7,"../delegateAll":8,"object-assign":4}],6:[function(e,t,s){"use strict";t.exports=function(e){return function(t){return e.some(function(e){return !1===e.call(this,t);},this);};};},{}],7:[function(e,t,s){"use strict";e("element-closest"),t.exports=function(s,r){return function(e){var t=e.target.closest(s);if(t)return r.call(t,e);};};},{"element-closest":2}],8:[function(e,t,s){"use strict";const r=e("../delegate"),a=e("../compose");t.exports=function(s){var e=Object.keys(s);return 1===e.length&&"*"===e[0]?s["*"]:(e=e.reduce(function(e,t){return e.push(r(t,s[t])),e;},[]),a(e));};},{"../compose":6,"../delegate":7}],9:[function(e,t,s){"use strict";t.exports=function(t,s){return function(e){if(t!==e.target&&!t.contains(e.target))return s.call(this,e);};};},{}],10:[function(e,t,s){"use strict";t.exports={behavior:e("./behavior"),delegate:e("./delegate"),delegateAll:e("./delegateAll"),ignore:e("./ignore"),keymap:e("./keymap")};},{"./behavior":5,"./delegate":7,"./delegateAll":8,"./ignore":9,"./keymap":11}],11:[function(e,t,s){"use strict";e("keyboardevent-key-polyfill");const n={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};t.exports=function(a){const e=Object.keys(a).some(function(e){return -1<e.indexOf("+");});return function(s){var r=function(e,t){var s=e.key;if(t)for(var r in n)!0===e[n[r]]&&(s=[r,s].join("+"));return s;}(s,e);return [r,r.toLowerCase()].reduce(function(e,t){return e=t in a?a[r].call(this,s):e;},void 0);};},t.exports.MODIFIERS=n;},{"keyboardevent-key-polyfill":3}],12:[function(e,t,s){"use strict";t.exports=function(t,s){function r(e){return e.currentTarget.removeEventListener(e.type,r,s),t.call(this,e);}return r;};},{}],13:[function(e,t,s){"use strict";var r=/(^\s+)|(\s+$)/g,a=/\s+/,n=String.prototype.trim?function(e){return e.trim();}:function(e){return e.replace(r,"");};t.exports=function(e,t){if("string"!=typeof e)throw new Error("Expected a string but got "+typeof e);var s=((t=t||window.document).getElementById||function(e){return this.querySelector('[id="'+e.replace(/"/g,'\\"')+'"]');}).bind(t);return 1===(e=n(e).split(a)).length&&""===e[0]?[]:e.map(function(e){var t=s(e);if(t)return t;throw new Error('no element with id: "'+e+'"');});};},{}],14:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/toggle-form-input");var n=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];t.exports=r({[n]:{[`.${e}-show-password`]:function(e){e.preventDefault(),a(this);}}});},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/toggle-form-input":55}],15:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select");var a=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/is-in-viewport");var o=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const c=`.${e}-accordion, .${e}-accordion--bordered`,l=`.${e}-accordion__button[aria-controls]`,u="aria-expanded",d=(t)=>{return r(l,t).filter((e)=>e.closest(c)===t);},p=(t,e)=>{var s=t.closest(c);if(!s)throw new Error(l+" is missing outer "+c);var e=n(t,e),r=s.hasAttribute("data-allow-multiple");e&&!r&&d(s).forEach((e)=>{e!==t&&n(e,!1);});};e=a({[o]:{[l](e){p(this),"true"!==this.getAttribute(u)||i(this)||this.scrollIntoView();}}},{init(e){r(l,e).forEach((e)=>{var t="true"===e.getAttribute(u);p(e,t);});},ACCORDION:c,BUTTON:l,show:(e)=>p(e,!0),hide:(e)=>p(e,!1),toggle:p,getButtons:d});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/toggle":56}],16:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const n=`.${e}-banner__header`,i=e+"-banner__header--expanded";t.exports=r({[a]:{[n+" [aria-controls]"]:function(e){e.preventDefault(),this.closest(n).classList.toggle(i);}}});},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45}],17:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/utils/debounce"),e=e("../../uswds-core/src/js/config")["prefix"],i=e+"-character-count";const o="."+i,c=`.${e}-character-count__field`,l=`.${e}-character-count__message`,u="The content is too long.",d=e+"-character-count__status--invalid",p=i+"__status",f=i+"__sr-status",b="."+p,h="."+f,v="characters allowed",m=(e)=>{e=e.closest(o);if(!e)throw new Error(c+" is missing outer "+o);var t=e.querySelector(l);
10if(t)return {characterCountEl:e,messageEl:t};throw new Error(o+" is missing inner "+l);},g=(e)=>{var t=document.createElement("div"),s=document.createElement("div"),r=e.dataset.maxlength+" "+v;t.classList.add(""+p,"usa-hint"),s.classList.add(""+f,"usa-sr-only"),t.setAttribute("aria-hidden",!0),s.setAttribute("aria-live","polite"),t.textContent=r,s.textContent=r,e.append(t,s);},w=(e,t)=>{let s="";var r;return s=0===e?t+" "+v:(r=Math.abs(t-e))+` ${"character"+(1===r?"":"s")} `+(t<e?"over limit":"left");},y=n((e,t)=>{e.textContent=t;},1e3),A=(e)=>{var t=m(e)["characterCountEl"],s=e.value.length,r=parseInt(t.getAttribute("data-maxlength"),10),a=t.querySelector(b),t=t.querySelector(h),n=w(s,r);r&&(r=s&&r<s,a.textContent=n,y(t,n),r&&!e.validationMessage&&e.setCustomValidity(u),r||e.validationMessage!==u||e.setCustomValidity(""),a.classList.toggle(d,r));},E=(e)=>{var t,{characterCountEl:s,messageEl:r}=m(e);r.classList.add("usa-sr-only"),r.removeAttribute("aria-live"),r=e,e=m(r).characterCountEl,(t=r.getAttribute("maxlength"))&&(r.removeAttribute("maxlength"),e.setAttribute("data-maxlength",t)),g(s);};e=a({input:{[c](){A(this);}}},{init(e){r(c,e).forEach((e)=>E(e));},MESSAGE_INVALID_CLASS:d,VALIDATION_MESSAGE:u,STATUS_MESSAGE_CLASS:p,STATUS_MESSAGE_SR_ONLY_CLASS:f,DEFAULT_STATUS_LABEL:v,createStatusMessages:g,getCountMessage:w,updateCountMessage:A});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/debounce":46,"../../uswds-core/src/js/utils/select":53}],18:[function(e,t,I){"use strict";var s=e("receptor/keymap");const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior");const f=e("../../uswds-core/src/js/utils/sanitizer");var n=e("../../uswds-core/src/js/config")["prefix"],e=e("../../uswds-core/src/js/events")["CLICK"],n=n+"-combo-box";const b=n+"--pristine",h=n+"__select",v=n+"__input",m=n+"__clear-input",O=m+"__wrapper",B=n+"__input-button-separator",g=n+"__toggle-list",H=g+"__wrapper",w=n+"__list",y=n+"__list-option",A=y+"--focused",E=y+"--selected",x=n+"__status",j="."+n,P="."+h,u="."+v,d="."+m,p="."+g,F="."+w,i="."+y,L="."+A,R="."+E,Y="."+x,U=".*{{query}}.*";const _=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=(e.value=t,new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:t}}));e.dispatchEvent(t);},S=(e)=>{var t,s,r,a,n,i,o,c,l,e=e.closest(j);if(e)return t=e.querySelector(P),s=e.querySelector(u),r=e.querySelector(F),a=e.querySelector(Y),n=e.querySelector(L),i=e.querySelector(R),o=e.querySelector(p),c=e.querySelector(d),l=e.classList.contains(b),{comboBoxEl:e,selectEl:t,inputEl:s,listEl:r,statusEl:a,focusedOptionEl:n,selectedOptionEl:i,toggleListBtnEl:o,clearInputBtnEl:c,isPristine:l,disableFiltering:"true"===e.dataset.disableFiltering};throw new Error("Element is missing outer "+j);},C=(e)=>{var {inputEl:e,toggleListBtnEl:t,clearInputBtnEl:s}=S(e);s.hidden=!0,s.disabled=!0,t.disabled=!0,e.disabled=!0;};const o=(e)=>{e=e.closest(j);if(!e.dataset.enhanced){const u=e.querySelector("select");if(!u)throw new Error(j+" is missing inner select");var t=u.id,r=document.querySelector(`label[for="${t}"]`),a=t+"--list",n=t+"-label",i=t+"--assistiveHint";const d=[];var o=e.dataset["defaultValue"],c=e.dataset["placeholder"];let s;if(c&&d.push({placeholder:c}),o){for(let e=0,t=u.options.length;e<t;e+=1){var l=u.options[e];if(l.value===o){s=l;break;}}}if(!r||!r.matches(`label[for="${t}"]`))throw new Error(j+` for ${t} is either missing a label or a "for" attribute`);r.setAttribute("id",n),r.setAttribute("id",n),u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1"),u.classList.add("usa-sr-only",h),u.id="",u.value="",["required","aria-label","aria-labelledby"].forEach((e)=>{var t;u.hasAttribute(e)&&(t=u.getAttribute(e),d.push({[e]:t}),u.removeAttribute(e));});const p=document.createElement("input");p.setAttribute("id",t),p.setAttribute("aria-owns",a),p.setAttribute("aria-controls",a),p.setAttribute("aria-autocomplete","list"),p.setAttribute("aria-describedby",i),p.setAttribute("aria-expanded","fal
10se"),p.setAttribute("autocapitalize","off"),p.setAttribute("autocomplete","off"),p.setAttribute("class",v),p.setAttribute("type","text"),p.setAttribute("role","combobox"),d.forEach((s)=>Object.keys(s).forEach((e)=>{var t=f.escapeHTML`${s[e]}`;p.setAttribute(e,t);})),e.insertAdjacentElement("beforeend",p),e.insertAdjacentHTML("beforeend",f.escapeHTML`
11    <span class="${O}" tabindex="-1">
12        <button type="button" class="${m}" aria-label="Clear the select contents">&nbsp;</button>
13      </span>
14      <span class="${B}">&nbsp;</span>
15      <span class="${H}" tabindex="-1">
16        <button type="button" tabindex="-1" class="${g}" aria-label="Toggle the dropdown list">&nbsp;</button>
17      </span>
18      <ul
19        tabindex="-1"
20        id="${a}"
21        class="${w}"
22        role="listbox"
23        aria-labelledby="${n}"
24        hidden>
25      </ul>
26      <div class="${x} usa-sr-only" role="status"></div>
27      <span id="${i}" class="usa-sr-only">
28        When autocomplete results are available use up and down arrows to review and enter to select.
29        Touch device users, explore by touch or with swipe gestures.
30      </span>`),s&&(c=S(e)["inputEl"],_(u,s.value),_(c,s.text),e.classList.add(b)),u.disabled&&(C(e),u.disabled=!1),e.dataset.enhanced="true";}},D=function(e,t){var {skipFocus:s,preventScroll:r}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},{inputEl:e,listEl:a,focusedOptionEl:n}=S(e);n&&(n.classList.remove(A),n.setAttribute("tabIndex","-1")),t?(e.setAttribute("aria-activedescendant",t.id),t.setAttribute("tabIndex","0"),t.classList.add(A),r||(n=t.offsetTop+t.offsetHeight,a.scrollTop+a.offsetHeight<n&&(a.scrollTop=n-a.offsetHeight),t.offsetTop<a.scrollTop&&(a.scrollTop=t.offsetTop)),s||t.focus({preventScroll:r})):(e.setAttribute("aria-activedescendant",""),e.focus());},T=function(e){let r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};const n=(e)=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");e=`^(?:${e.replace(/{{(.*?)}}/g,(e,t)=>{var t=t.trim(),s=a[t];return "query"!==t&&s?(t=new RegExp(s,"i"),(s=r.match(t))?n(s[1]):""):n(r);})})$`;return new RegExp(e,"i");},c=(e)=>{const {comboBoxEl:t,selectEl:s,inputEl:r,listEl:a,statusEl:n,isPristine:i,disableFiltering:o}=S(e);let c,l;const u=a.id+"--option-";var d=(r.value||"").toLowerCase(),e=t.dataset.filter||U,p=T(e,d,t.dataset);const f=[];for(let e=0,t=s.options.length;e<t;e+=1){var b=s.options[e],h=u+f.length;b.value&&(o||i||!d||p.test(b.text))&&(s.value&&b.value===s.value&&(c=h),o&&!l&&p.test(b.text)&&(l=h),f.push(b));}var e=f.length,v=f.map((e,t)=>{var s=u+t,r=[y];let a="-1",n="false";s===c&&(r.push(E,A),a="0",n="true"),c||0!==t||(r.push(A),a="0");var i=document.createElement("li");return i.setAttribute("aria-setsize",f.length),i.setAttribute("aria-posinset",t+1),i.setAttribute("aria-selected",n),i.setAttribute("id",s),i.setAttribute("class",r.join(" ")),i.setAttribute("tabindex",a),i.setAttribute("role","option"),i.setAttribute("data-value",e.value),i.textContent=e.text,i;}),m=document.createElement("li");m.setAttribute("class",y+"--no-results"),m.textContent="No results found",a.hidden=!1,e?(a.innerHTML="",v.forEach((e)=>a.insertAdjacentElement("beforeend",e))):(a.innerHTML="",a.insertAdjacentElement("beforeend",m)),r.setAttribute("aria-expanded","true"),n.textContent=e?e+` result${1<e?"s":""} available.`:"No results.";let g;i&&c?g=a.querySelector("#"+c):o&&l&&(g=a.querySelector("#"+l)),g&&D(a,g,{skipFocus:!0});},l=(e)=>{var {inputEl:e,listEl:t,statusEl:s,focusedOptionEl:r}=S(e);s.innerHTML="",e.setAttribute("aria-expanded","false"),e.setAttribute("aria-activedescendant",""),r&&r.classList.remove(A),t.scrollTop=0,t.hidden=!0;},$=(e)=>{var {comboBoxEl:t,selectEl:s,inputEl:r}=S(e);_(s,e.dataset.value),_(r,e.textContent),t.classList.add(b),l(t),r.focus();},k=(e)=>{var {comboBoxEl:s,selectEl:r,inputEl:a}=S(e),n=r.value,i=(a.value||"").toLowerCase();if(n){for(let e=0,t=r.options.length;e<t;e+=1){var o=r.options[e];if(o.value===n)return i!==o.text&&_(a,o.text),void s.classList.add(b);}}
30i&&_(a);};var M=(e)=>{var {comboBoxEl:t,listEl:s}=S(e.target),s=(s.hidden&&c(t),s.querySelector(L)||s.querySelector(i));s&&D(t,s),e.preventDefault();},q=(e)=>{var t=e.target,s=t.nextSibling;s&&D(t,s),e.preventDefault();},N=(e)=>{var {comboBoxEl:t,listEl:s,focusedOptionEl:r}=S(e.target),r=r&&r.previousSibling,s=!s.hidden;D(t,r),s&&e.preventDefault(),r||l(t);};a=a({[e]:{[u](){var e,t;this.disabled||(e=this,{comboBoxEl:e,listEl:t}=S(e),t.hidden&&c(e));},[p](){var e,t,s;this.disabled||(e=this,{comboBoxEl:e,listEl:t,inputEl:s}=S(e),(t.hidden?c:l)(e),s.focus());},[i](){this.disabled||$(this);},[d](){var e,t,s,r;this.disabled||(e=this,{comboBoxEl:e,listEl:r,selectEl:t,inputEl:s}=S(e),r=!r.hidden,t.value&&_(t),s.value&&_(s),e.classList.remove(b),r&&c(e),s.focus());}},focusout:{[j](e){this.contains(e.relatedTarget)||(k(this),l(this));}},keydown:{[j]:s({Escape:(e)=>{var {comboBoxEl:e,inputEl:t}=S(e.target);l(e),k(e),t.focus();}}),[u]:s({Enter:(e)=>{var {comboBoxEl:t,listEl:s}=S(e.target),s=!s.hidden;((e)=>{var {comboBoxEl:s,selectEl:r,inputEl:a,statusEl:e}=S(e),n=(e.textContent="",(a.value||"").toLowerCase());if(n){for(let e=0,t=r.options.length;e<t;e+=1){var i=r.options[e];if(i.text.toLowerCase()===n)return _(r,i.value),_(a,i.text),s.classList.add(b);}}k(s);})(t),s&&l(t),e.preventDefault();},ArrowDown:M,Down:M}),[i]:s({ArrowUp:N,Up:N,ArrowDown:q,Down:q,Enter:(e)=>{$(e.target),e.preventDefault();},Tab:(e)=>
30{$(e.target),e.preventDefault();},"Shift+Tab":()=>{}})},input:{[u](){this.closest(j).classList.remove(b),c(this);}},mouseover:{[i](){var e;(e=this).classList.contains(A)||D(e,e,{preventScroll:!0});}}},{init(e){r(j,e).forEach((e)=>{o(e);});},getComboBoxContext:S,enhanceComboBox:o,generateDynamicRegExp:T,disable:C,enable:(e)=>{var {inputEl:e,toggleListBtnEl:t,clearInputBtnEl:s}=S(e);s.hidden=!1,s.disabled=!1,t.disabled=!1,e.disabled=!1;},displayList:c,hideList:l,COMBO_BOX_CLASS:n});t.exports=a;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11}],19:[function(e,A,E){"use strict";const t=e("receptor/keymap");var _=e("../../uswds-core/src/js/utils/behavior");const S=e("../../uswds-core/src/js/utils/select"),P=e("../../uswds-core/src/js/utils/select-or-matches");var s=e("../../uswds-core/src/js/config")["prefix"],F=e("../../uswds-core/src/js/events")["CLICK"];const R=e("../../uswds-core/src/js/utils/active-element");var Y=e("../../uswds-core/src/js/utils/is-ios-device");const C=e("../../uswds-core/src/js/utils/sanitizer");e=s+"-date-picker";const U=e+"__wrapper",K=e+"--initialized",V=e+"--active",W=e+"__internal-input",z=e+"__external-input",Q=e+"__button",n=e+"__calendar",G=e+"__status",D=n+"__date",Z=D+"--focused",X=D+"--selected",J=D+"--previous-month",ee=D+"--current-month",te=D+"--next-month",se=D+"--range-date",re=D+"--today",ae=D+"--range-date-start",ne=D+"--range-date-end",ie=D+"--within-range",oe=n+"__previous-year",ce=n+"__previous-month",le=n+"__next-year",ue=n+"__next-month",de=n+"__month-selection",pe=n+"__year-selection",p=n+"__month",fe=p+"--focused",be=p+"--selected",x=n+"__year",he=x+"--focused",ve=x+"--selected",me=n+"__previous-year-chunk",ge=n+"__next-year-chunk",we=n+"__date-picker",ye=n+"__month-picker",Ae=n+"__year-picker",T=n+"__table",Ee=n+"__row",$=n+"__cell",k=$+"--center-items",xe=n+"__month-label",je=n+"__day-of-week",b="."+e,Le="."+Q,_e="."+W,h="."+z,v="."+n,Se="."+G;s="."+D;const o="."+Z;e="."+ee;const Ce="."+oe,De="."+ce,Te="."+le,$e="."+ue;var ke="."+pe,Me="."+de,qe="."+p;const m="."+x,Ne="."+me,Ie="."+ge,M="."+we;var Oe="."+ye;const Be="."+Ae,c="."+fe,l="."+he,He="Please enter a valid date",Pe=["January","February","March","April","May","June","July","August","September","October","November","December"],Fe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],j=12,Re="MM/DD/YYYY",Ye="YYYY-MM-DD";function Ue(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.map((e)=>e+":not([disabled])").join(", ");}var Ke=Ue(Ce,De,ke,Me,Te,$e,o),Ve=Ue(c),We=Ue(Ne,Ie,l);const ze=(e,t)=>(t!==e.getMonth()&&e.setDate(0),e),Qe=(e,t,s)=>{var r=new Date(0);return r.setFullYear(e,t,s),r;},Ge=()=>{var e=new Date(),t=e.getDate(),s=e.getMonth(),e=e.getFullYear();return Qe(e,s,t);},Ze=(e)=>{var t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth(),1),t;},Xe=(e)=>{var t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth()+1,0),t;},q=(e,t)=>{e=new Date(e.getTime());return e.setDate(e.getDate()+t),e;},Je=(e,t)=>q(e,-t),et=(e,t)=>q(e,7*t),tt=(e)=>{var t=e.getDay();return Je(e,t);},N=(e,t)=>{var e=new Date(e.getTime()),s=(e.getMonth()+12+t)%12;return e.setMonth(e.getMonth()+t),ze(e,s),e;},st=(e,t)=>N(e,-t),rt=(e,t)=>N(e,12*t),at=(e,t)=>
30rt(e,-t),f=(e,t)=>{e=new Date(e.getTime());return e.setMonth(t),ze(e,t),e;},L=(e,t)=>{var e=new Date(e.getTime()),s=e.getMonth();return e.setFullYear(t),ze(e,s),e;},nt=(e,t)=>{let s=t<e?t:e;return new Date(s.getTime());},it=(e,t)=>{let s=e<t?t:e;return new Date(s.getTime());},ot=(e,t)=>e&&t&&e.getFullYear()===t.getFullYear(),I=(e,t)=>ot(e,t)&&e.getMonth()===t.getMonth(),O=(e,t)=>I(e,t)&&e.getDate()===t.getDate(),u=(e,t,s)=>{let r=e;return e<t?r=t:s&&s<e&&(r=s),new Date(r.getTime());},ct=(e,t,s)=>t<=e&&(!s||e<=s),lt=(e,t,s)=>Xe(e)<t||s&&Ze(e)>s,ut=(e,t,s)=>Xe(f(e,11))<t||s&&Ze(f(e,0))>s,g=function(r){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ye,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];let i,o,c,l,u;if(r){let e,t,s;a===Re?[e,t,s]=r.split("/"):[s,e,t]=r.split("-"),s&&(u=parseInt(s,10),Number.isNaN(u)||(l=u,n&&(l=Math.max(0,l),s.length<3)&&(r=(a=Ge().getFullYear())-a%10**s.length,l=r+u))),e&&(u=parseInt(e,10),Number.isNaN(u)||(o=u,n&&(o=Math.max(1,o),o=Math.min(12,o)))),o&&t&&null!=l&&(u=parseInt(t,10),Number.isNaN(u)||(c=u,n&&(a=Qe(l,o,0).getDate(),c=Math.max(1,c),c=Math.min(a,c)))),o&&c&&null!=l&&(i=Qe(l,o-1,c));}return i;},B=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ye,s=(e,t)=>("0000"+e).slice(-t),r=e.getMonth()+1,a=e.getDate(),e=e.getFullYear();return t===Re?[s(r,2),s(a,2),s(e,4)].join("/"):[s(e,4),s(r,2),s(a,2)].join("-");},dt=(e,t)=>{var s=[],r=[];let a=0;for(;a<e.length;){r=[];const i=document.createElement("tr");for(;a<e.length&&r.length<t;){var n=document.createElement("td");n.insertAdjacentElement("beforeend",e[a]),r.push(n),a+=1;}r.forEach((e)=>{i.insertAdjacentElement("beforeend",e);}),s.push(i);}return s;},pt=(e)=>{const t=document.createElement("tbody");return e.forEach((e)=>{t.insertAdjacentElement("beforeend",e);}),t;},ft=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=(e.value=t,new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:t}}));e.dispatchEvent(t);},H=(e)=>{e=e.closest(b);if(!e)throw new Error("Element is missing outer "+b);var t=e.querySelector(_e),s=e.querySelector(h),r=e.querySelector(v),a=e.querySelector(Le),n=e.querySelector(Se),i=e.querySelector(m),o=g(s.value,Re,!0),c=g(t.value),l=g(r.dataset.value),u=g(e.dataset.minDate),d=g(e.dataset.maxDate),p=g(e.dataset.rangeDate),f=g(e.dataset.defaultDate);if(u&&d&&d<u)throw new Error("Minimum date cannot be after maximum date");return {calendarDate:l,minDate:u,toggleBtnEl:a,selectedDate:c,maxDate:d,firstYearChunkEl:i,datePickerEl:e,inputDate:o,internalInputEl:t,externalInputEl:s,calendarEl:r,rangeDate:p,defaultDate:f,statusEl:n};},bt=(e)=>{var {externalInputEl:e,toggleBtnEl:t}=H(e);t.disabled=!0,e.disabled=!0;};const ht=(e)=>{var t,s,r,a,{externalInputEl:e,minDate:n,maxDate:i}=H(e),e=e.value;let o=!1;return o=e&&(o=!0,[t,s,r]=(e=e.split("/")).map((e)=>{let t;e=parseInt(e,10);return t=Number.isNaN(e)?t:e;}),t)&&s&&null!=r&&(a=Qe(r,t-1,s)).getMonth()===t-1&&a.getDate()===s&&a.getFullYear()===r&&4===e[2].length&&ct(a,n,i)?!1:o;},vt=(e)=>{var e=H(e)["externalInputEl"],t=ht(e);t&&!e.validationMessage&&e.setCustomValidity(He),t||e.validationMessage!==He||e.setCustomValidity("");},mt=(e,t)=>{var s,r,a=g(t);a&&(a=B(a,Re),{datePickerEl:e,internalInputEl:s,externalInputEl:r}=H(e),ft(s,t),ft(r,a),vt(e));},d=(e,t)=>{const {datePickerEl:s,calendarEl:r,statusEl:a,selectedDate:d,maxDate:p,minDate:f,rangeDate:b}=H(e),h=Ge();let n=t||h;e=r.hidden;const v=q(n,0);var i=n.getMonth(),t=n.getFullYear();const m=st(n,1),g=N(n,1);var o=B(n),c=Ze(n),l=I(n,f),u=I(n,p),w=d||n;const y=b&&nt(w,b),A=b&&it(w,b),E=b&&q(y,1),x=b&&Je(A,1);for(var w=Pe[i],j=(n=tt(c),[]);j.length<28||n.getMonth()===i||j.length%7!=0;)j.push(((e)=>{var t=[D],s=e.getDate(),r=e.getMonth(),a=e.getFullYear(),n=e.getDay(),i=B(e);let o="-1";var c=!ct(e,f,p),l=O(e,d),e=(I(e,m)&&t.push(J),I(e,v)&&t.push(ee),I(e,g)&&t.push(te),l&&t.push(X),O(e,h)&&t.push(re),b&&(O(e,b)&&t.push(se),O(e,y)&&t.pu
30sh(ae),O(e,A)&&t.push(ne),ct(e,E,x))&&t.push(ie),O(e,v)&&(o="0",t.push(Z)),Pe[r]),n=Fe[n],u=document.createElement("button");return u.setAttribute("type","button"),u.setAttribute("tabindex",o),u.setAttribute("class",t.join(" ")),u.setAttribute("data-day",s),u.setAttribute("data-month",r+1),u.setAttribute("data-year",a),u.setAttribute("data-value",i),u.setAttribute("aria-label",C.escapeHTML`${s} ${e} ${a} ${n}`),u.setAttribute("aria-selected",l?"true":"false"),!0==c&&(u.disabled=!0),u.textContent=s,u;})(n)),n=q(n,1);var c=dt(j,7),L=r.cloneNode(),o=(L.dataset.value=o,L.style.top=s.offsetHeight+"px",L.hidden=!1,L.innerHTML=C.escapeHTML`
31    <div tabindex="-1" class="${we}">
32      <div class="${Ee}">
33        <div class="${$} ${k}">
34          <button
35            type="button"
36            class="${oe}"
37            aria-label="Navigate back one year"
38            ${l?'disabled="disabled"':""}
39          ></button>
40        </div>
41        <div class="${$} ${k}">
42          <button
43            type="button"
44            class="${ce}"
45            aria-label="Navigate back one month"
46            ${l?'disabled="disabled"':""}
47          ></button>
48        </div>
49        <div class="${$} ${xe}">
50          <button
51            type="button"
52            class="${de}" aria-label="${w}. Click to select month"
53          >${w}</button>
54          <button
55            type="button"
56            class="${pe}" aria-label="${t}. Click to select year"
57          >${t}</button>
58        </div>
59        <div class="${$} ${k}">
60          <button
61            type="button"
62            class="${ue}"
63            aria-label="Navigate forward one month"
64            ${u?'disabled="disabled"':""}
65          ></button>
66        </div>
67        <div class="${$} ${k}">
68          <button
69            type="button"
70            class="${le}"
71            aria-label="Navigate forward one year"
72            ${u?'disabled="disabled"':""}
73          ></button>
74        </div>
75      </div>
76    </div>
77    `,document.createElement("table")),l=(o.setAttribute("class",T),o.setAttribute("role","presentation"),document.createElement("thead"));o.insertAdjacentElement("beforeend",l);const _=document.createElement("tr"),S=(l.insertAdjacentElement("beforeend",_),{Sunday:"S",Monday:"M",Tuesday:"T",Wednesday:"W",Thursday:"Th",Friday:"Fr",Saturday:"S"});Object.keys(S).forEach((e)=>{var t=document.createElement("th");t.setAttribute("class",je),t.setAttribute("scope","presentation"),t.setAttribute("aria-label",e),t.textContent=S[e],_.insertAdjacentElement("beforeend",t);});u=pt(c);o.insertAdjacentElement("beforeend",u);L.querySelector(M).insertAdjacentElement("beforeend",o),r.parentNode.replaceChild(L,r),s.classList.add(V);l=[];return O(d,v)&&l.push("Selected date"),e?(l.push("You can navigate by day using left and right arrows","Weeks by using up and down arrows","Months by using page up and page down keys","Years by using shift plus page up and shift plus page down","Home and end keys navigate to the beginning and end of a week"),a.textContent=""):l.push(w+" "+t),a.textContent=l.join(". "),L;},gt=(e)=>{var {datePickerEl:e,calendarEl:t,statusEl:s}=H(e);e.classList.remove(V),t.hidden=!0,s.textContent="";},wt=(e)=>{var {calendarEl:e,inputDate:t,minDate:s,maxDate:r}=H(e);!e.hidden&&t&&(t=u(t,s,r),d(e,t));},yt=(e,t)=>{const {calendarEl:s,statusEl:r,calendarDate:o,minDate:c,maxDate:l}=H(e),u=o.getMonth(),d=null==t?u:t;var e=Pe.map((e,t)=>{var s=f(o,t),s=lt(s,c,l);let r="-1";var a=[p],n=t===u,i=(t===d&&(r="0",a.push(fe)),n&&a.push(be),document.createElement("button"));return i.setAttribute("type","button"),i.setAttribute("tabindex",r),i.setAttribute("class",a.join(" ")),i.setAttribute("data-value",t),i.setAttribute("data-label",e),i.setAttribute("aria-selected",n?"true":"false"),!0===s&&(i.disabled=!0),i.textContent=e,i;}),t=document.createElement("div"),a=(t.setAttribute("tabindex","-1"),t.setAttribute("class",ye),document.createElement("table")),e=(a.setAttribute("class",T),a.setAttribute("role","presentation"),dt(e,3)),e=pt(e),e=(a.insertAdjacentElement("beforeend",e),t.insertAdjacentElement("beforeend",a),s.cloneNode());return e.insertAdjacentElement("beforeend",t),s.parentNode.replaceChild(e,s),r.textContent="Select a month.",e;},w=(e,t)=>{var {calendarEl:e,statusEl:s,calendarDate:r,minDate:a,maxDate:n}=H(e),i=r.getFullYear(),o=null==t?i:t,t=o,c=(t-=t%j,t=Math.max(0,t),ut(L(r,t-1),a,n)),l=ut(L(r,t+j),a,n),u=[];let d=t;for(;u.length<j;){var p=ut(L(r,d),a,n);let e="-1";var f=[x],b=d===i,h=(d===o&&(e="0",f.push(he)),b&&f.push(ve),document.createElement("button"));h.setAttribute("type","button"),h.setAttribute("tabindex",e),h.setAttribute("class",f.join(" ")),h.setAttribute("data-value",d),h.setAttribute("aria-selected",b?"true":"false"),!0===p&&(h.disabled=!0),h.textContent=d,u.push(h),d+=1;}var v=e.cloneNode(),m=document.createElement("div"),g=(m.setAttribute("tabindex","-1"),m.setAttribute("class",Ae),document.createElement("table")),w=(g.setAttribute("role","presentation"),g.setAttribute("class",T),document.createElement("tbody")),y=document.createElement("tr"),A=document.createElement("button"),c=(A.setAttribute("type","button"),A.setAttribute("class",me),A.setAttribute("aria-label",`Navigate back ${j} years`),!0===c&&(A.disabled=!0),A.innerHTML=C.escapeHTML`&nbsp`,document.createElement("button")),l=(c.setAttribute("type","button"),c.setAttribute("class",ge),c.setAttribute("aria-label",`Navigate forward ${j} years`),!0===l&&(c.disabled=!0),c.innerHTML=C.escapeHTML`&nbsp`,document.createElement("table")),E=(l.setAttribute("class",T),l.setAttribute("role","presentation"),dt(u,3)),E=pt(E),E=(l.insertAdjacentElement("beforeend",E),document.createElement("td")),A=(E.insertAdjacentElement("beforeend",A),document.createElement("td")),l=(A.setAttribute("colspan","3"),A.insertAdjacentElement("beforeend",l),document.createElement("td"));return l.insertAdjacentElement("beforeend",c),y.insertAdjacentElement("beforeend",E),y.insertAdjacentElement("beforeend",A),y.insertAdjacentElement("beforeend",l),w.insertAdjacentElement("beforeend",y),g.insertAdjacentElement("beforeend",w),m.insertAdjacentElement("beforeend",g),v.insertAdjacentElement("beforeend",m),e.parentNode.replaceChild(v,e),s.textContent=C.escapeHTML`Showing years ${t} to ${t+j-1}. Select a year.`,v;},At=(e)=>{var {datePickerEl:t,externalInputEl:s}=H(e.target);gt(t),s.focus(),e.preventDefault();};var r=(i)=>(e)=>{var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(e.target),n=i(s),n=u(n,r,a);O(s,n)||d(t,n).querySelector(o).focus(),e.preventDefault();},Et=r((e)=>{return e=e,t=1,et(e,-t);var t;}),xt=r((e)=>et(e,1)),jt=r((e)=>Je(e,1)),Lt=r((e)=>q(e,1)),_t=r((e)=>tt(e)),St=r((e)=>{return t=(e=e).getDay(),q(e,6-t);var t;}),Ct=r((e)=>N(e,1)),Dt=r((e)=>st(e,1)),Tt=r((e)=>rt(e,1)),r=r((e)=>at(e,1));var a=(o)=>(e)=>{var t=e.target,s=parseInt(t.dataset.value,10),{calendarEl:t,calendarDate:r,minDate:a,maxDate:n}=H(t),i=f(r,s),s=o(s),s=Math.max(0,Math.min(11,s)),r=f(r,s),s=u(r,a,n);I(i,s)||yt(t,s.getMonth()).querySelector(c).focus(),e.preventDefault();},$t=a((e)=>e-3),kt=a((e)=>e+3),Mt=a((e)=>e-1),qt=a((e)=>e+1),Nt=a((e)=>e-e%3),It=a((e)=>e+2-e%3),Ot=a(()=>11),a=a(()=>0);var i=(o)=>(e)=>{var t=e.target,s=parseInt(t.dataset.value,10),{calendarEl:t,calendarDate:r,minDate:a,maxDate:n}
77=H(t),i=L(r,s),s=o(s),s=Math.max(0,s),r=L(r,s),s=u(r,a,n);ot(i,s)||w(t,s.getFullYear()).querySelector(l).focus(),e.preventDefault();},Bt=i((e)=>e-3),Ht=i((e)=>e+3),Pt=i((e)=>e-1),Ft=i((e)=>e+1),Rt=i((e)=>e-e%3),Yt=i((e)=>e+2-e%3),Ut=i((e)=>e-j),i=i((e)=>e+j);var y=(n)=>{const a=(e)=>{var e=H(e)["calendarEl"],e=S(n,e),t=e.length-1,s=e[0],r=e[t],a=e.indexOf(R());return {focusableElements:e,isNotFound:-1===a,firstTabStop:s,isFirstTab:0===a,lastTabStop:r,isLastTab:a===t};};return {tabAhead(e){var {firstTabStop:t,isLastTab:s,isNotFound:r}=a(e.target);(s||r)&&(e.preventDefault(),t.focus());},tabBack(e){var {lastTabStop:t,isFirstTab:s,isNotFound:r}=a(e.target);(s||r)&&(e.preventDefault(),t.focus());}};},Ke=y(Ke),Ve=y(Ve),y=y(We),We={[F]:{[Le](){var e,t,s,r,a,n;(e=this).disabled||({calendarEl:t,inputDate:n,minDate:s,maxDate:r,defaultDate:a}=H(e),t.hidden?(n=u(n||a||Ge(),s,r),d(t,n).querySelector(o).focus()):gt(e));},[s](){var e,t,s;(e=this).disabled||({datePickerEl:t,externalInputEl:s}=H(e),mt(e,e.dataset.value),gt(t),s.focus());},[qe](){var e,t,s,r,a;(e=this).disabled||({calendarEl:t,calendarDate:a,minDate:s,maxDate:r}=H(e),e=parseInt(e.dataset.value,10),a=f(a,e),a=u(a,s,r),d(t,a).querySelector(o).focus());},[m](){var e,t,s,r,a;(e=this).disabled||({calendarEl:t,calendarDate:a,minDate:s,maxDate:r}=H(e),e=parseInt(e.innerHTML,10),a=L(a,e),a=u(a,s,r),d(t,a).querySelector(o).focus());},[De](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=st(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(De);(e=e.disabled?r.querySelector(M):e).focus();}},[$e](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=N(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector($e);(e=e.disabled?r.querySelector(M):e).focus();}},[Ce](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=at(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(Ce);(e=e.disabled?r.querySelector(M):e).focus();}},[Te](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=rt(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(Te);(e=e.disabled?r.querySelector(M):e).focus();}},[Ne](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),n=t.querySelector(l),n=parseInt(n.textContent,10)-j,n=Math.max(0,n),s=L(s,n),n=u(s,r,a),s=w(t,n.getFullYear());let e=s.querySelector(Ne);(e=e.disabled?s.querySelector(Be):e).focus();}},[Ie](){var t=this;if(!t.disabled){var {calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),n=t.querySelector(l),n=parseInt(n.textContent,10)+j,n=Math.max(0,n),s=L(s,n),n=u(s,r,a),s=w(t,n.getFullYear());let e=s.querySelector(Ie);(e=e.disabled?s.querySelector(Be):e).focus();}},[Me](){yt(this).querySelector(c).focus();},[ke](){w(this).querySelector(l).focus();}},keyup:{[v](e){var t=this.dataset.keydownKeyCode;""+e.keyCode!==t&&e.preventDefault();}},keydown:{[h](e){13===e.keyCode&&vt(this);},[s]:t({Up:Et,ArrowUp:Et,Down:xt,ArrowDown:xt,Left:jt,ArrowLeft:jt,Right:Lt,ArrowRight:Lt,Home:_t,End:St,PageDown:Ct,PageUp:Dt,"Shift+PageDown":Tt,"Shift+PageUp":r,Tab:Ke.tabAhead}),[M]:t({Tab:Ke.tabAhead,"Shift+Tab":Ke.tabBack}),[qe]:t({Up:$t,ArrowUp:$t,Down:kt,ArrowDown:kt,Left:Mt,ArrowLeft:Mt,Right:qt,ArrowRight:qt,Home:Nt,End:It,PageDown:Ot,PageUp:a}),[Oe]:t({Tab:Ve.tabAhead,"Shift+Tab":Ve.tabBack}),[m]:t({Up:Bt,ArrowUp:Bt,Down:Ht,ArrowDown:Ht,Left:Pt,ArrowLeft:Pt,Right:Ft,ArrowRight:Ft,Home:Rt,End:Yt,PageDown:i,PageUp:Ut}),[Be]:t({Tab:y.tabAhead,"Shift+Tab":y.tabBack}),[v](e){this.dataset.keydownKeyCode=e.keyCode;},[b](e){t({Escape:At})(e);}},focusout:{[h](){vt(this);},[b](e){this.contains(e.relatedTarget)||gt(this);}},input:{[h](){{var t=this,{internalInputEl:s,inputDate:r}=H(t);let e="";r&&!ht(t)&&(e=B(r)),s.value!==e&&ft(s,e);}wt(this);}}},F=(Y()||(We.mouseover={[e](){var e,t,s;(e=this).disabled||(s=(t=e.closest(v)).dataset.value,(e=e.dataset.value)!==s&&(s=g(e),d(t,s).querySelector(o).focus()));},[qe](){var e,t;(e=this).disabled||e.classList.contains(fe)||(t=parseInt(e.dataset.value,10),yt(e,t).querySelector(c).focus());},[m](){var e,t;(e=this).disabled||e.classList.contains(he)||(t=parseInt(e.dataset.value,10),w(e,t).querySelector(l).focus());}}),_(We,{init(e){P(b,e).forEach((e)=>{var t=(e=e.closest(b)).dataset.defaultValue,s=e.querySelector("input");if(!s)throw new Error(b+" is missing inner input");s.value&&(s.value="");var r=g(e.dataset.minDate||s.getAttribute("min"));e.dataset.minDate=r?B(r):"0000-01-01",(r=g(e.dataset.maxDate||s.getAttribute("max")))&&(e.dataset.maxDate=B(r));(r=document.createElement("div")).classList.add(U);var a=s.cloneNode();a.classList.add(z),a.type="text",r.appendChild(a),r.insertAdjacentHTML("beforeend",C.escapeHTML`
78    <button type="button" class="${Q}" aria-haspopup="true" aria-label="Toggle calendar"></button>
79    <div class="${n}" role="dialog" aria-modal="true" hidden></div>
80    <div class="usa-sr-only ${G}
80" role="status" aria-live="polite"></div>`),s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex","-1"),s.style.display="none",s.classList.add(W),s.removeAttribute("id"),s.removeAttribute("name"),s.required=!1,e.appendChild(r),e.classList.add(K),t&&mt(e,t),s.disabled&&(bt(e),s.disabled=!1);});},getDatePickerContext:H,disable:bt,enable:(e)=>{var {externalInputEl:e,toggleBtnEl:t}=H(e);t.disabled=!1,e.disabled=!1;},isDateInputInvalid:ht,setCalendarValue:mt,validateDateInput:vt,renderCalendar:d,updateCalendarIfVisible:wt}));A.exports=F;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/active-element":44,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-ios-device":49,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11}],20:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/utils/select-or-matches");var i=e("../../uswds-core/src/js/config")["prefix"];const {getDatePickerContext:o,isDateInputInvalid:c,updateCalendarIfVisible:l}=e("../../usa-date-picker/src/index");e=i+"-date-range-picker";const u=e+"__range-start",d=e+"__range-end",p="."+(i+"-date-picker"),f="."+e,b="."+u,h="."+d,v=(e)=>{var t,s,e=e.closest(f);if(e)return t=e.querySelector(b),s=e.querySelector(h),{dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s};throw new Error("Element is missing outer "+f);},m=(e)=>{var {dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s}=v(e),t=o(t)["internalInputEl"],r=t.value;r&&!c(t)?(s.dataset.minDate=r,s.dataset.rangeDate=r,s.dataset.defaultDate=r):(s.dataset.minDate=e.dataset.minDate||"",s.dataset.rangeDate="",s.dataset.defaultDate=""),l(s);},g=(e)=>{var {dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s}=v(e),s=o(s)["internalInputEl"],r=s.value;r&&!c(s)?(t.dataset.maxDate=r,t.dataset.rangeDate=r,t.dataset.defaultDate=r):(t.dataset.maxDate=e.dataset.maxDate||"",t.dataset.rangeDate="",t.dataset.defaultDate=""),l(t);};i=r({"input change":{[b](){m(this);},[h](){g(this);}}},{init(e){n(f,e).forEach((e)=>{var e=(e=e).closest(f),[t,s]=a(p,e);if(!t)throw new Error(`${f} is missing inner two '${p}' elements`);if(!s)throw new Error(`${f} is missing second '${p}' element`);t.classList.add(u),s.classList.add(d),e.dataset.minDate||(e.dataset.minDate="0000-01-01");var r=e.dataset["minDate"];(r=(t.dataset.minDate=r,s.dataset.minDate=r,e.dataset)["maxDate"])&&(t.dataset.maxDate=r,s.dataset.maxDate=r),m(e),g(e);});}});t.exports=i;},{"../../usa-date-picker/src/index":19,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/select-or-matches":52}],21:[function(e,t,g){"use strict";const s=e("../../uswds-core/src/js/utils/select-or-matches");var r=e("../../uswds-core/src/js/utils/behavior");const A=e("../../uswds-core/src/js/utils/sanitizer");e=e("../../uswds-core/src/js/config").prefix;const c=e+"-file-input",a="."+c,l=e+"-file-input__input",u=e+"-file-input__target",o="."+l,d=e+"-file-input__box",p=e+"-file-input__instructions",E=e+"-file-input__preview",x=e+"-file-input__preview-heading",n=e+"-file-input--disabled",f=e+"-file-input__choose",j=e+"-file-input__accepted-files-message",b=e+"-file-input__drag-text",i=e+"-file-input--drag",L="is-loading",_="display-none",S="has-invalid-file",C=e+"-file-input__preview-image",D=C+"--generic",T=C+"--pdf",$=C+"--word",k=C+"--video",M=C+"--excel",q="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";let N=Boolean(!0);const h=(e)=>{var t,e=e.closest(a);if(e)return t=e.querySelector(o),{dropZoneEl:e,inputEl:t};throw new Error("Element is missing outer "+a);},v=(e)=>{var {dropZoneEl:e,inputEl:t}=h(e);t.disabled=!0,e.classList.add(n),e.setAttribute("aria-disabled","true");};const m=(e)=>{var t=e.charCodeAt(0);return 32===t?"-":65<=t&&t<=90?"img_"+e.toLowerCase():"__"+t.toString(16).slice(-4);},I=(e)=>e.replace(/[^a-z0-9]/g,m),O=(e)=>e+"-"+Math.floor(Date.now().toString()/1e3),B=(e,t,s)=>{var r=e.querySelectorAll("."+E),a=e.querySelector(o),n=e.querySelector("."+x),i=e.querySelector("."+j);n&&(n.outerHTML=""),i&&(i.outerHTML="",e.classList.remove(S)),null!==r&&(t&&t.classList.remove(_),a.setAttribute("aria-label",s),Array.prototype.forEach.call(r,(e)=>{e.parentNode.removeChild(e);}));},w=(e,t,s,r)=>{var a=e,n=t,i=s,o=r,c=n.getAttribute("accept");if(o.classList.remove(S),c){var l=c.split(","),c=document.createElement("div");let t=!0;var u=a.target.files||a.dataTransfer.files;for(let e=0;e<u.length;e+=1){var d=u[e];
80if(!t)break;for(let e=0;e<l.length;e+=1){var p=l[e];if(t=0<d.name.indexOf(p)||((e,t)=>{let s=!1;e=e.indexOf(t);return s=0<=e?!0:s;})(d.type,p.replace(/\*/g,""))){N=!0;break;}}}t||(B(o,i),n.value="",o.insertBefore(c,n),c.textContent=n.dataset.errormessage||"This is not a valid file type.",c.classList.add(j),o.classList.add(S),N=!1,a.preventDefault(),a.stopPropagation());}if(!0===N){var f=t,b=s,h=r,v=(i=e).target.files,m=document.createElement("div"),i=f.dataset.defaultAriaLabel,g=[];B(h,b,i);for(let e=0;e<v.length;e+=1){const w=new FileReader(),y=v[e].name;g.push(y),0===e?f.setAttribute("aria-label","You have selected the file: "+y):1<=e&&f.setAttribute("aria-label",`You have selected ${v.length} files: `+g.join(", ")),w.onloadstart=function(){var e=O(I(y));b.insertAdjacentHTML("afterend",A.escapeHTML`<div class="${E}" aria-hidden="true">
81          <img id="${e}" src="${q}" alt="" class="${C} ${L}"/>${y}
82        <div>`);},w.onloadend=function(){var e=O(I(y)),e=document.getElementById(e);0<y.indexOf(".pdf")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${T}")`):0<y.indexOf(".doc")||0<y.indexOf(".pages")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${$}")`):0<y.indexOf(".xls")||0<y.indexOf(".numbers")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${M}")`):0<y.indexOf(".mov")||0<y.indexOf(".mp4")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${k}")`):e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${D}")`),e.classList.remove(L),e.src=w.result;},v[e]&&w.readAsDataURL(v[e]),0===e?(h.insertBefore(m,b),m.innerHTML='Selected file <span class="usa-file-input__choose">Change file</span>'):1<=e&&(h.insertBefore(m,b),m.innerHTML=A.escapeHTML`${e+1} files selected <span class="usa-file-input__choose">Change files</span>`),m&&(b.classList.add(_),m.classList.add(x));}}};e=r({},{init(e){s(a,e).forEach((t)=>{const {instructions:s,dropTarget:r}=((e)=>{var t=e.hasAttribute("multiple"),s=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div"),n=document.createElement("div"),i=e.hasAttribute("disabled");let o;return e.classList.remove(c),e.classList.add(l),s.classList.add(c),a.classList.add(d),n.classList.add(p),n.setAttribute("aria-hidden","true"),r.classList.add(u),e.setAttribute("aria-live","polite"),e.parentNode.insertBefore(r,e),e.parentNode.insertBefore(s,r),r.appendChild(e),s.appendChild(r),e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(a,e),i&&v(e),t?(o="No files selected",n.innerHTML=A.escapeHTML`<span class="${b}">Drag files here or </span><span class="${f}">choose from folder</span>`):(o="No file selected",n.innerHTML=A.escapeHTML`<span class="${b}">Drag file here or </span><span class="${f}">choose from folder</span>`),e.setAttribute("aria-label",o),e.setAttribute("data-default-aria-label",o),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(s.querySelector("."+b).outerHTML=""),{instructions:n,dropTarget:r};})(t);r.addEventListener("dragover",function(){this.classList.add(i);},!1),r.addEventListener("dragleave",function(){this.classList.remove(i);},!1),r.addEventListener("drop",function(){this.classList.remove(i);},!1),t.addEventListener("change",(e)=>w(e,t,s,r),!1);});},teardown(e){s(o,e).forEach((e)=>{var t=e.parentElement.parentElement;t.parentElement.replaceChild(e,t),e.className=c;});},getFileInputContext:h,disable:v,enable:(e)=>{var {dropZoneEl:e,inputEl:t}=h(e);t.disabled=!1,e.classList.remove(n),e.removeAttribute("aria-disabled");}});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52}],22:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"];const n=e("../../uswds-core/src/js/config")["prefix"],i=`.${n}-footer--big`,o=i+" nav"+` .${n}-footer__primary-link`;function c(r){var e=document.querySelector(i);
82if(e){e=e.querySelectorAll(o);const a=r?"button":"h4";e.forEach((e)=>{var t=e.getAttribute("class"),s=document.createElement(a);s.setAttribute("class",t),s.classList.toggle(n+"-footer__primary-link--button",r),s.textContent=e.textContent,r&&(t=n+"-footer-menu-list-"+Math.floor(1e5*Math.random()),s.setAttribute("aria-controls",t),s.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("id",t),s.setAttribute("type","button")),e.after(s),e.remove();});}}const l=(e)=>{c(e.matches);};t.exports=r({[a]:{[o]:function(){var e;window.innerWidth<480&&(e="true"===this.getAttribute("aria-expanded"),this.closest(i).querySelectorAll(o).forEach((e)=>{e.setAttribute("aria-expanded",!1);}),this.setAttribute("aria-expanded",!e));}}},{HIDE_MAX_WIDTH:480,init(){c(window.innerWidth<480),this.mediaQueryList=window.matchMedia("(max-width: 479.9px)"),this.mediaQueryList.addListener(l);},teardown(){this.mediaQueryList.removeListener(l);}});},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45}],23:[function(e,t,N){"use strict";var s=e("receptor/keymap"),r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/focus-trap"),o=e("../../usa-accordion/src/index");var c=e("../../uswds-core/src/js/utils/scrollbar-width"),l=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const u=`.${e}-header`,d=`.${e}-nav`;var p=`.${e}-nav-container`;const f=`.${e}-nav__primary`,b=`.${e}-nav__primary-item`,h=`button.${e}-nav__link`;var v=d+" a";const m="data-nav-hidden",g=`.${e}-menu-btn`,w=`.${e}-nav__close`;var y=w+`, .${e}-overlay`;const A=[d,`.${e}-overlay`].join(", "),E=`body *:not(${u}, ${p}, ${d}, ${d} *):not([aria-hidden])`,x=(m,"usa-js-mobile-nav--active");let j,L,_;const S=()=>document.body.classList.contains(x);e=c();const C=window.getComputedStyle(document.body).getPropertyValue("padding-right"),D=parseInt(C.replace(/px/,""),10)+parseInt(e.replace(/px/,""),10)+"px",T=()=>{const t=document.querySelector(u).parentNode;(_=document.querySelectorAll(E)).forEach((e)=>{e!==t&&(e.setAttribute("aria-hidden",!0),e.setAttribute(m,""));});},$=()=>{(_=document.querySelectorAll("[data-nav-hidden]"))&&_.forEach((e)=>{e.removeAttribute("aria-hidden"),e.removeAttribute(m);});};p=(e)=>{var t=document["body"];const s="boolean"==typeof e?e:!S();t.classList.toggle(x,s),a(A).forEach((e)=>e.classList.toggle("is-visible",s)),j.focusTrap.update(s);var e=t.querySelector(w),r=document.querySelector(g);return t.style.paddingRight=t.style.paddingRight===D?C:D,(s?T:$)(),s&&e?e.focus():!s&&document.activeElement===e&&r&&r.focus(),s;};const k=()=>{var e=document.body.querySelector(w);S()&&e&&0===e.getBoundingClientRect().width&&j.toggleNav.call(e,!1);},M=()=>j.toggleNav.call(j,!1),q=()=>{L&&(n(L,!1),L=null);};j=r({[l]:{[h](){return L!==this&&q(),L||(L=this,n(L,!0)),!1;},body:q,[g]:p,[y]:p,[v](){var e=this.closest(o.ACCORDION);e&&o.getButtons(e).forEach((e)=>o.hide(e)),S()&&j.toggleNav.call(j,!1);}},keydown:{[f]:s({Escape:(e)=>{var t;q(),t=(e=e).target.closest(b),e.target.matches(h)||t.querySelector(h).focus();}})},focusout:{[f](e){e.target.closest(f).contains(e.relatedTarget)||q();}}},{init(e){e=e.matches(d)?e:e.querySelector(d);e&&(j.focusTrap=i(e,{Escape:M})),k(),window.addEventListener("resize",k,!1);},teardown(){window.removeEventListener("resize",k,!1),L=!1;},focusTrap:null,toggleNav:p}),t.exports=j;},{"../../usa-accordion/src/index":15,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/toggle":56,"receptor/keymap":11}],24:[function(e,t,s){"use strict";const r=e("receptor/once");var a=e("receptor/keymap");const n=e("../../uswds-core/src/js/utils/select-or-matches");var i=e("../../uswds-core/src/js/utils/behavior"),o=e("../../uswds-core/src/js/config")["prefix"],c=e("../../uswds-core/src/js/events")["CLICK"];const l=e("../../uswds-core/src/js/utils/sanitizer"),u=o+"-current",d=0,p=o+"-in-page-nav",f=o+"-anchor",b=p+"__nav",h=p+"__list",v=p+"__item",m=p+"__link",g=p+"__heading",w=v+"--sub-item",y="main",A=(e)=>{const t=document.querySelectorAll("."+m);e.map((e)=>!0===e.isIntersecting&&1<=e.intersectionRatio&&(t.forEach((e)=>e.classList.remove(u)),document.querySelector(`a[href="#${e.target.id}"]`).classList.add(u),!0));},E=(e)=>{var t=document.querySelector("."+p).dataset.scrollOffset||d;window.scroll({behavior:"smooth",top:e.offsetTop-t,block:"start"});},x=(e)=>{var t=l.escapeHTML`${e.dataset.titleText||"On this page"}`,s=l.escapeHTML`${e.dataset.titleHeadingLevel||"h4"}`,r={root:null,rootMargin:l.escapeHTML`${e.dataset.rootMargin||"0px 0px 0px 0px"}`,threshold:[l.escapeHTML`${e.dataset.threshold||"1"}`]},a=document.querySelectorAll(`${y} h2, ${y} h3`),n=document.createElement("nav"),s=(n.setAttribute("aria-label",t),n.classList.add(b),document.createElement(s));s.classList.add(g),s.setAttribute("tabindex","0"),s.textContent=t,n.appendChild(s);const o=document.createElement("ul");o.classList.add(h),n.appendChild(o),a.forEach((e,t)=>{var s=document.createElement("li"),r=document.createElement("a"),a=document.createElement("a"),n=e.textContent,i=e.tagName.toLowerCase();s.classList.add(v),"h3"===i&&s.classList.add(w),r.setAttribute("href","#section_"+t),r.setAttribute("class",m),r.textContent=n,a.setAttribute("id","section_"+t),a.setAttribute("class",f),e.insertAdjacentElement("afterbegin",a),o.appendChild(s),s.appendChild(r);}),e.appendChild(n);t=document.querySelectorAll("."+f);const i=new window.IntersectionObserver(A,r);t.forEach((e)=>{i.observe(e);});};e=i({[c]:{["."+m](e){e.preventDefault(),this.disabled||(e=this,e=document.querySelector(e.hash),E(e));}}
82,keydown:{["."+m]:a({Enter:(e)=>{e=((e)=>{let t;return t=(e&&1===e.nodeType?e.getAttribute("href"):e.target.hash).replace("#","");})(e);const t=document.getElementById(e).parentElement;t&&(t.setAttribute("tabindex",0),t.focus(),t.addEventListener("blur",r(()=>{t.setAttribute("tabindex",-1);}))),E(t);}})}},{init(e){n("."+p,e).forEach((e)=>{x(e);});}});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11,"receptor/once":12}],25:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior"),e=e("../../uswds-core/src/js/config")["prefix"];const n="."+(e+"-masked"),i=e+"-input-mask",o=i+"--content",c="placeholder",p="_#dDmMyY9",f="A",b=(e,t)=>e?t.replace(/\W/g,""):t.replace(/\D/g,""),h=(e)=>!Number.isNaN(parseInt(e,10)),v=(e)=>!!e&&e.match(/[A-Z]/i),l=(e)=>{var t=e,s=t.getAttribute("id"),r=(t.value=((e)=>{var t=e.dataset.charset,s=t||e.dataset.placeholder,e=e["value"],r=s.length;let a="",n,i;var o=b(t,e);for(n=0,i=0;n<r;n+=1){var c=h(o[i]),l=v(o[i]),u=0<=p.indexOf(s[n]),d=0<=f.indexOf(s[n]);if(u&&c||t&&d&&l)a+=o[i],i+=1;else{if(!t&&!c&&u||t&&(d&&!l||u&&!c))return a;a+=s[n];}if(void 0===o[i])break;}return a;})(t),r=(t=e).value,t=""+e.dataset.placeholder.substr(r.length),(e=document.createElement("i")).textContent=r,[e,t]),e=document.getElementById(s+"Mask");e.textContent="",e.replaceChildren(r[0],r[1]);};e=a({keyup:{[n](){l(this);}}},{init(e){r(n,e).forEach((e)=>{var t,s,r;(r=(e=e).getAttribute(c))&&(e.setAttribute("maxlength",r.length),e.setAttribute("data-placeholder",r),e.removeAttribute(c),(t=document.createElement("span")).classList.add(i),t.setAttribute("data-mask",r),(s=document.createElement("span")).classList.add(o),s.setAttribute("aria-hidden","true"),s.id=e.id+"Mask",s.textContent=r,t.appendChild(s),e.closest("form").insertBefore(t,e),t.appendChild(e));});}});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52}],26:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/config")["prefix"];e=e("../../uswds-core/src/js/events").CLICK;const i=`.${n}-input-group`,o=i+` .${n}-input`;var c=i+` .${n}-input-prefix, ${i} .${n}-input-suffix`;const l="is-focused";function u(){this.closest(i).classList.add(l);}function d(){this.closest(i).classList.remove(l);}r=r({[e]:{[c](){this.closest(i).querySelector(`.${n}-input`).focus();}}},{init(e){a(o,e).forEach((e)=>{e.addEventListener("focus",u,!1),e.addEventListener("blur",d,!1);});}});t.exports=r;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53}],27:[function(e,t,s){"use strict";var r=e("receptor/keymap"),a=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/focus-trap"),o=e("../../usa-accordion/src/index");var c=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const l=`.${e}-language__submenu`,u=`.${e}-language__primary`,d=`.${e}-language__primary-item`,p=`button.${e}-language__link`;let f,b;const h=()=>f.toggleLanguage.call(f,!1),v=()=>{b&&(n(b,!1),b=null);};f=a({[c]:{[p](){return b!==this&&v(),b===this?v():b||(b=this,n(b,!0)),!1;},body:v,[`.${e}-language`+" a"](){var e=this.closest(o.ACCORDION);e&&o.getButtons(e).forEach((e)=>o.hide(e));}},keydown:{[u]:r({Escape:(e)=>{var t;v(),t=(e=e).target.closest(d),e.target.matches(p)||t.querySelector(p).focus();}})},focusout:{[u](e){e.target.closest(u).contains(e.relatedTarget)||v();}}},{init(e){e=e.matches(l)?e:e.querySelector(l);e&&(f.focusTrap=i(e,{Escape:h}));},teardown(){b=!1;},focusTrap:null}),t.exports=f;},{"../../usa-accordion/src/index":15,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/toggle":56,"receptor/keymap":11}],28:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches"),u=e("../../uswds-core/src/js/utils/focus-trap");var a=e("../../uswds-core/src/js/utils/scrollbar-width"),e=e("../../uswds-core/src/js/config")["prefix"];const d=e+"-modal",p=d+"-overlay",f=d+"-wrapper",b="data-open-modal",h="data-close-modal",v="data-force-action",m="data-modal-hidden",n="."+d,g=`.${f} *[data-focus]`,w=f+` *[${h}]`,y=(b,w+`, .${p}:not([${v}])`),A=`body > *:not(.${f}):not([aria-hidden])`,E=(m,"usa-js-modal--active"),x="is-hidden";let j;e=a();const L=window.getComputedStyle(document.body).getPropertyValue("padding-right"),_=parseInt(L.replace(/px/,""),10)+parseInt(e.replace(/px/,""),10)+"px",S=()=>{j.toggleModal.call(j,!1);};function C(e){let t,s=e.target;var r,a,n,i,o=document["body"],c=!document.body.classList.contains(E),l=s?s.getAttribute("aria-controls"):document.querySelector(".usa-modal-wrapper.is-visible"),l=c?document.getElementById(l):document.querySelector(".usa-modal-wrapper.is-visible");return !!l&&(r=l.querySelector(g)?l.querySelector(g):l.querySelector(".usa-modal"),a=document.getElementById(l.getAttribute("data-opener")),n=o.querySelector("*[data-open-modal][aria-controls]"),i=l.getAttribute(v),(s="keydown"===e.type&&null!==l?l.querySelector(w):s)&&(s.hasAttribute(b)&&(null===this.getAttribute("id")?(t="modal-"+(Math.floor(9e5*Math.random())+1e5),this.setAttribute("id",t)):t=this.getAttribute("id"),l.setAttribute("data-opener",t)),s.closest("."+d
82))&&!s.hasAttribute(h)&&!s.closest(`[${h}]`)?(e.stopPropagation(),!1):(o.classList.toggle(E,c),l.classList.toggle("is-visible",c),l.classList.toggle(x,!c),i&&o.classList.toggle("usa-js-no-click",c),o.style.paddingRight=o.style.paddingRight===_?L:_,c&&r?(j.focusTrap=i?u(l):u(l,{Escape:S}),j.focusTrap.update(c),r.focus(),document.querySelectorAll(A).forEach((e)=>{e.setAttribute("aria-hidden","true"),e.setAttribute(m,"");})):!c&&n&&a&&(document.querySelectorAll("[data-modal-hidden]").forEach((e)=>{e.removeAttribute("aria-hidden"),e.removeAttribute(m);}),a.focus(),j.focusTrap.update(c)),c));}j={init(e){r(n,e).forEach((e)=>{var t=e.id;{var s=e,r=document.createElement("div"),a=document.createElement("div");const u=e.getAttribute("id");var n=e.getAttribute("aria-labelledby"),i=e.getAttribute("aria-describedby"),o=!!e.hasAttribute(v)&&e.hasAttribute(v),c=document.createElement("div");c.setAttribute("data-placeholder-for",u),c.style.display="none",c.setAttribute("aria-hidden","true");for(let e=0;e<s.attributes.length;e+=1){var l=s.attributes[e];c.setAttribute("data-original-"+l.name,l.value);}s.after(c),s.parentNode.insertBefore(r,s),r.appendChild(s),s.parentNode.insertBefore(a,s),a.appendChild(s),r.classList.add(x),r.classList.add(f),a.classList.add(p),r.setAttribute("role","dialog"),r.setAttribute("id",u),n&&r.setAttribute("aria-labelledby",n),i&&r.setAttribute("aria-describedby",i),o&&r.setAttribute(v,"true"),e.removeAttribute("id"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-describedby"),e.setAttribute("tabindex","-1"),r.querySelectorAll(y).forEach((e)=>{e.setAttribute("aria-controls",u);}),document.body.appendChild(r);}document.querySelectorAll(`[aria-controls="${t}"]`).forEach((e)=>{"A"===e.nodeName&&(e.setAttribute("role","button"),e.addEventListener("click",(e)=>e.preventDefault())),e.addEventListener("click",C);});});},teardown(e){r(n,e).forEach((e)=>{var t=e,s=t,r=(t=s.parentElement.parentElement).getAttribute("id"),a=document.querySelector(`[data-
82placeholder-for="${r}"]`);if(a){for(let e=0;e<a.attributes.length;e+=1){var n=a.attributes[e];n.name.startsWith("data-original-")&&s.setAttribute(n.name.substr(14),n.value);}a.after(s),a.parentElement.removeChild(a);}t.parentElement.removeChild(t);r=e.id;document.querySelectorAll(`[aria-controls="${r}"]`).forEach((e)=>e.removeEventListener("click",C));});},focusTrap:null,toggleModal:C,on(e){this.init(e);},off(e){this.teardown(e);}},t.exports=j;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select-or-matches":52}],29:[function(e,t,s){"use strict";const a=e("receptor/ignore");var r=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/select"),i=e("../../uswds-core/src/js/events")["CLICK"],o=".js-search-button",c=".js-search-form",l="[type=search]",u="header";let d;const p=(e)=>{e=e.closest(u);return (e||document).querySelector(c);},f=(e,t)=>{var s=p(e);if(!s)throw new Error(`No ${c} found for search toggle in ${u}!`);if(e.hidden=t,s.hidden=!t,t){e=s.querySelector(l);e&&e.focus();const r=a(s,()=>{d&&!function(){f(this,!1),d=void 0;}.call(d),document.body.removeEventListener(i,r);});setTimeout(()=>{document.body.addEventListener(i,r);},0);}};e=r({[i]:{".js-search-button":function(){f(this,!0),d=this;}}},{init(e){n(o,e).forEach((e)=>{f(e,!1);});},teardown(){d=void 0;}});t.exports=e;},{"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53,"receptor/ignore":9}],30:[function(e,t,s){"use strict";const r=e("receptor/once");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];t.exports=a({[n]:{[`.${e}-skipnav[href^="#"], .${e}-footer__return-to-top [href^="#"]`]:function(){var e=encodeURI(this.getAttribute("href"));const t=document.getElementById("#"===e?"main-content":e.slice(1));t&&(t.style.outline="0",t.setAttribute("tabindex",0),t.focus(),t.addEventListener("blur",r(()=>{t.setAttribute("tabindex",-1);})));}}});},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"receptor/once":12}],31:[function(e,t,s){"use strict";const o=e("../../uswds-core/src/js/utils/select");var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"];const n=e("../../uswds-core/src/js/config")["prefix"],i=e("../../uswds-core/src/js/utils/sanitizer"),c=`.${n}-table`,l="aria-sort",u="ascending",d="descending",p=n+"-table__header__button",f="."+p,b="th[data-sortable]",h=`.${n}-table__announcement-region[aria-live="polite"]`,v=(e,t)=>e.children[t].getAttribute("data-sort-value")||e.children[t].innerText||e.children[t].textContent,m=(r,a)=>(e,t)=>{var s=v(a?e:t,r),t=v(a?t:e,r);return s&&t&&!Number.isNaN(Number(s))&&!Number.isNaN(Number(t))?s-t:s.toString().localeCompare(t,navigator.language,{numeric:!0,ignorePunctuation:!0});},g=(e)=>{var t=e.innerText,s=e.getAttribute(l)===u,r=t+"', sortable column, currently "+(e.getAttribute(l)===u||e.getAttribute(l)===d||!1?s?"sorted "+u:"sorted "+d:"unsorted"),t=`Click to sort by ${t} in ${s?d:u} order.`;e.setAttribute("aria-label",r),e.querySelector(f).setAttribute("title",t);},w=(t,e)=>{var s,r=t.closest(c);let a=e;if("boolean"!=typeof a&&(a=t.getAttribute(l)===u),!r)throw new Error(b+" is missing outer "+c);if(a=((e,t)=>{e.setAttribute(l,!0===t?d:u),g(e);const s=e.closest(c).querySelector("tbody");var r=[].slice.call(s.querySelectorAll("tr"));const a=[].slice.call(e.parentNode.children).indexOf(e);return r.sort(m(a,!t)).forEach((e)=>{[].slice.call(e.children).forEach((e)=>e.removeAttribute("data-sort-active")),e.children[a].setAttribute("data-sort-active",!0),s.appendChild(e);}),!0;})(t,e)){s=r,o(b,s).filter((e)=>e.closest(c)===s).forEach((e)=>{e!==t&&((e=e).removeAttribute(l),g(e));});var e=r,r=t,n=e.querySelector("caption").innerText,i=r.getAttribute(l)===u,r=r.innerText;if(!(e=e.nextElementSibling)||!e.matches(h))throw new Error("Table containing a sortable column header is not followed by an aria-live region.");n=`The table named "${n}" is now sorted by ${r} in ${i?u:d} order.`,e.innerText=n;}};e=r({[a]:{[f](e){e.preventDefault(),w(e.target.closest(b),e.target.closest(b).getAttribute(l)===u);}}},{init(e){var t,e=o(b,e),e=(e.forEach((e)=>{return e=e,(t=document.createElement("button")).setAttribute("tabindex","0"),t.classList.add(p),t.innerHTML=i.escapeHTML`
83  <svg class="${n}-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
84    <g class="descending" fill="transparent">
85      <path d="M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z" />
86    </g>
87    <g class="ascending" fill="transparent">
88      <path transform="rotate(180, 12, 12)" d="M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z" />
89    </g>
90    <g class="unsorted" fill="transparent">
91      <polygon points="15.17 15 13 17.17 13 6.83 15.17 9 16.58 7.59 12 3 7.41 7.59 8.83 9 11 6.83 11 17.17 8.83 15 7.42 16.41 12 21 16.59 16.41 15.17 15"/>
92    </g>
93  </svg>
94  `,e.appendChild(t),void g(e);var t;}),e.filter((e)=>
94e.getAttribute(l)===u||e.getAttribute(l)===d)[0]);void 0!==e&&((t=e.getAttribute(l))===u?w(e,!0):t===d&&w(e,!1));},TABLE:c,SORTABLE_HEADER:b,SORT_BUTTON:f});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select":53}],32:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select-or-matches");var n=e("../../uswds-core/src/js/config")["prefix"];const {COMBO_BOX_CLASS:b,enhanceComboBox:i}=e("../../usa-combo-box/src/index"),h="."+(n+"-time-picker"),v={filter:"0?{{ hourQueryFilter }}:{{minuteQueryFilter}}.*{{ apQueryFilter }}m?",apQueryFilter:"([ap])",hourQueryFilter:"([1-9][0-2]?)",minuteQueryFilter:"[\\d]+:([0-9]{0,2})"},m=(e)=>{let t;var s;return t=e&&([e,s]=e.split(":").map((e)=>{let t;e=parseInt(e,10);return t=Number.isNaN(e)?t:e;}),null!=e)&&null!=s?60*e+s:t;},o=(t)=>{const s=t.closest(h),r=s.querySelector("input");if(!r)throw new Error(h+" is missing inner input");const a=document.createElement("select");["id","name","required","aria-label","aria-labelledby"].forEach((e)=>{var t;r.hasAttribute(e)&&(t=r.getAttribute(e),a.setAttribute(e,t),r.removeAttribute(e));});var n=(e,t)=>("0000"+e).slice(-t),t=Math.max(0,m(s.dataset.minTime)||0),i=Math.min(1439,m(s.dataset.maxTime)||1439),o=Math.floor(Math.max(1,s.dataset.step||30));let c;for(let e=t;e<=i;e+=o){u=e,l=void 0,l=u%60,u=Math.floor(u/60);var {minute:l,hour24:u,hour12:d,ampm:p}={minute:l,hour24:u,hour12:u%12||12,ampm:u<12?"am":"pm"},f=document.createElement("option");f.value=n(u,2)+":"+n(l,2),f.text=d+":"+n(l,2)+p,f.text===r.value&&(c=f.value),a.appendChild(f);}s.classList.add(b),Object.keys(v).forEach((e)=>{s.dataset[e]=v[e];}),s.dataset.disableFiltering="true",s.dataset.defaultValue=c,s.appendChild(a),r.remove();};e=r({},{init(e){a(h,e).forEach((e)=>{o(e),i(e);});},FILTER_DATASET:v});t.exports=e;},{"../../usa-combo-box/src/index":18,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52}],33:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/config")["prefix"];const f=e("../../uswds-core/src/js/utils/is-in-viewport"),i=`.${n}-tooltip`;e=`.${n}-tooltip__trigger`;const o=n+"-tooltip__trigger",c=n+"-tooltip",b=n+"-tooltip__body",h="is-visible",v=n+"-tooltip__body--wrap",l=(e)=>{var t=e.parentNode,s=t.querySelector("."+b);return {trigger:e,wrapper:t,body:s};},u=(t,r,e)=>{t.setAttribute("aria-hidden","false"),t.classList.add("is-set");const a=(e)=>{t.classList.remove(b+"--top"),t.classList.remove(b+"--bottom"),t.classList.remove(b+"--right"),t.classList.remove(b+"--left"),t.classList.add(b+"--"+e);},n=(e)=>{e.style.top=null,e.style.bottom=null,e.style.right=null,e.style.left=null,e.style.margin=null;},i=(e,t)=>parseInt(window.getComputedStyle(e).getPropertyValue(t),10),o=(e,t,s)=>{return 0<i(s,"margin-"+e)?t-i(s,"margin-"+e):t;},c=(e)=>{n(e);var t=o("top",e.offsetHeight,r),s=o("left",e.offsetWidth,r);a("top"),e.style.left="50%",e.style.top="-5px",e.style.margin=`-${t}px 0 0 -${s/2}px`;},l=(e)=>{n(e);var t=o("left",e.offsetWidth,r);a("bottom"),e.style.left="50%",e.style.margin=`5px 0 0 -${t/2}px`;},u=(e)=>{n(e);var t=o("top",e.offsetHeight,r);a("right"),e.style.top="50%",e.style.left=r.offsetLeft+r.offsetWidth+5+"px",e.style.margin=`-${t/2}px 0 0 0`;},d=(e)=>{n(e);var t=o("top",e.offsetHeight,r),s=o("left",r.offsetLeft>e.offsetWidth?r.offsetLeft-e.offsetWidth:e.offsetWidth,r);a("left"),e.style.top="50%",e.style.left="-5px",e.style.margin=`-${t/2}px 0 0 ${r.offsetLeft>e.offsetWidth?s:-s}px`;};function p(s,e){e=1<arguments.length&&void 0!==e?e:1;const r=[c,l,u,d];let a=!1;!function e(t){t<r.length&&((0,r[t])(s),f(s)?a=!0:e(t+=1));}(0),a||(s.classList.add(v),e<=2&&p(s,e+=1));}switch(e){case "top":c(t),f(t)||p(t);break;case "bottom":l(t),f(t)||p(t);break;case "right":u(t),f(t)||p(t);break;
94case "left":d(t),f(t)||p(t);}setTimeout(()=>{t.classList.add(h);},20);},d=(e)=>{e.classList.remove(h),e.classList.remove("is-set"),e.classList.remove(v),e.setAttribute("aria-hidden","true");},p=(e)=>{var t="tooltip-"+(Math.floor(9e5*Math.random())+1e5),s=e.getAttribute("title");const r=document.createElement("span");var a=document.createElement("span"),n=e.getAttribute("data-position")?e.getAttribute("data-position"):"top",i=e.getAttribute("data-classes");return e.setAttribute("aria-describedby",t),e.setAttribute("tabindex","0"),e.removeAttribute("title"),e.classList.remove(c),e.classList.add(o),e.parentNode.insertBefore(r,e),r.appendChild(e),r.classList.add(c),r.appendChild(a),i&&i.split(" ").forEach((e)=>r.classList.add(e)),a.classList.add(b),a.setAttribute("id",t),a.setAttribute("role","tooltip"),a.setAttribute("aria-hidden","true"),a.textContent=s,{tooltipBody:a,position:n,tooltipContent:s,wrapper:r};};n=a({"mouseover focusin":{[i](e){e=e.target;"BUTTON"===e.nodeName&&e.hasAttribute("title")&&p(e);},[e](e){var {trigger:e,body:t}=l(e.target);u(t,e,e.dataset.position);}},"mouseout focusout":{[e](e){e=l(e.target).body;d(e);}}},{init(e){r(i,e).forEach((e)=>{p(e);});},setup:p,getTooltipElements:l,show:u,hide:d});t.exports=n;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select-or-matches":52}],34:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/validate-input");var n=e("../../uswds-core/src/js/config")["prefix"];const i=e("../../uswds-core/src/js/utils/select-or-matches"),o="input[data-validation-element]",c=`.${n}-checklist__item`,l=(e)=>{var t,r,s,a;a=(t=e).parentNode,s=t.getAttribute("id")+"-sr-summary",t.setAttribute("aria-describedby",s),(t=document.createElement("span")).setAttribute("data-validation-status",""),t.classList.add("usa-sr-only"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic",!0),t.setAttribute("id",s),a.append(t),s=(r=e).parentNode.querySelectorAll(c),a=r.getAttribute("data-validation-element"),r.setAttribute("aria-controls",a),s.forEac
94h((e)=>{let t="status incomplete";r.hasAttribute("data-validation-incomplete")&&(t=r.getAttribute("data-validation-incomplete"));var s=`${e.textContent} ${t} `;e.setAttribute("tabindex","0"),e.setAttribute("aria-label",s);});};e=r({"input change":{"input[data-validation-element]"(e){e=e.target,a(e);}}},{init(e){i(o,e).forEach((e)=>l(e));}});t.exports=e;},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52,"../../uswds-core/src/js/utils/validate-input":57}],35:[function(e,t,s){"use strict";t.exports={prefix:"usa"};},{}],36:[function(e,t,s){"use strict";t.exports={CLICK:"click"};},{}],37:[function(e,t,s){"use strict";var r=e("../../../usa-accordion/src/index"),a=e("../../../usa-banner/src/index"),n=e("../../../usa-character-count/src/index"),i=e("../../../usa-combo-box/src/index"),o=e("../../../usa-date-picker/src/index"),c=e("../../../usa-date-range-picker/src/index"),l=e("../../../usa-file-input/src/index"),u=e("../../../usa-footer/src/index"),d=e("../../../usa-in-page-navigation/src/index"),p=e("../../../usa-input-mask/src/index"),f=e("../../../usa-input-prefix-suffix/src/index"),b=e("../../../usa-language-selector/src/index"),h=e("../../../usa-modal/src/index"),v=e("../../../usa-header/src/index"),m=e("../../../_usa-password/src/index"),g=e("../../../usa-search/src/index"),w=e("../../../usa-skipnav/src/index"),y=e("../../../usa-table/src/index"),A=e("../../../usa-time-picker/src/index"),E=e("../../../usa-tooltip/src/index"),e=e("../../../usa-validation/src/index");t.exports={accordion:r,banner:a,characterCount:n,comboBox:i,datePicker:o,dateRangePicker:c,fileInput:l,footer:u,inPageNavigation:d,inputMask:p,inputPrefixSuffix:f,languageSelector:b,modal:h,navigation:v,password:m,search:g,skipnav:w,table:y,timePicker:A,tooltip:E,validator:e};},{"../../../_usa-password/src/index":14,"../../../usa-accordion/src/index":15,"../../../usa-banner/src/index":16,"../../../usa-character-count/src/index":17,"../../../usa-combo-box/src/index":18,"../../../usa-date-picker/src/index":19,"../../../usa-date-range-picker/src/index":20,"../../../usa-file-input/src/index":21,"../../../usa-footer/src/index":22,"../../../usa-header/src/index":23,"../../../usa-in-page-navigation/src/index":24,"../../../usa-input-mask/src/index":25,"../../../usa-input-prefix-suffix/src/index":26,"../../../usa-language-selector/src/index":27,"../../../usa-modal/src/index":28,"../../../usa-search/src/index":29,"../../../usa-skipnav/src/index":30,"../../../usa-table/src/index":31,"../../../usa-time-picker/src/index":32,"../../../usa-tooltip/src/index":33,"../../../usa-validation/src/index":34}],38:[function(e,t,s){"use strict";"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){var t=t||{bubbles:!1,cancelable:!1,detail:null},s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s;});},{}],39:[function(e,t,s){"use strict";var r=window.HTMLElement.prototype;const a="hidden";a in r||Object.defineProperty(r,a,{get(){return this.hasAttribute(a);},set(e){e?this.setAttribute(a,""):this.removeAttribute(a);}});},{}],40:[function(e,t,s){"use strict";e("classlist-polyfill"),e("./element-hidden"),e("./number-is-nan"),e("./custom-event"),e("./svg4everybody");},{"./custom-event":38,"./element-hidden":39,"./number-is-nan":41,"./svg4everybody":42,"classlist-polyfill":1}],41:[function(e,t,s){"use strict";Number.isNaN=Number.isNaN||function(e){return "number"==typeof e&&e!=e;};},{}],42:[function(e,t,s){"use strict";function b(e,t,s,r){if(s){var a=document.createDocumentFragment(),n=!t.hasAttribute("viewBox")&&s.getAttribute("viewBox");n&&t.setAttribute("viewBox",n);for(var i=document.importNode?document.importNode(s,!0):s.cloneNode(!0),o=document.createElementNS(t.namespaceURI||"http://www.w3.org/2000/svg","g");i.childNodes.length;)o.appendChild(i.firstChild);if(r)for(var c=0;r.attributes.length>c;c++){var l=r.attributes[c];"xlink:href"!==l.name&&"href"!==l.name&&o.setAttribute(l.name,l.value);}a.appendChild(o),e.appendChild(a);}}t.exports=function(e){var c,l=Object(e),e=window.top!==window.self,u=(c="polyfill" in l?l.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&e,{}),d=window.requestAnimationFrame||setTimeout,p=document.getElementsByTagName("use"),f=0;c&&function e(){if(!(f&&p.length-f<=0))for(var t=f=0;t<p.length;){var s,r,a=p[t],n=a.parentNode,i=function(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t;}(n),o=a.getAttribute("xlink:href")||a.getAttribute("href");!o&&l.attributeName&&(o=a.getAttribute(l.attributeName)),i&&o?c&&(!l.validate||l.validate(o,i,a)?(n.removeChild(a),s=(o=o.split("#")).shift(),o=o.join("#"),s.length?((r=u[s])||((r=u[s]=new XMLHttpRequest()).open("GET",s),r.send(),r._embeds=[]),r._embeds.push({parent:n,svg:i,id:o}),function(r,a){r.onreadystatechange=function(){var s;4===r.readyState&&((s=r._cachedDocument)||((s=r._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=r.responseText,s.domain!==document.domain&&(s.domain=document.domain),r._cachedTarget={}),r._embeds.splice(0).map(function(e){var t=(t=r._cachedTarget[e.id])||(r._cachedTarget[e.id]=s.getElementById(e.id));b(e.parent,e.svg,t,a);}));},r.onreadystatechange();}(r,a)):b(n,i,document.getElementById(o),a)):(++t,++f)):++t;}d(e,67);}();};},{}],43:[function(e,t,s){"use strict";window.uswdsPresent=!0,e("./polyfills");var r=e("./config");const a=e("./index"),n=e("./polyfills/svg4everybody");r.components=a;e=()=>{const t=document.body;
94Object.keys(a).forEach((e)=>{a[e].on(t);}),n();};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e,{once:!0}):e(),s.default=r,s.initComponents=e;},{"./config":35,"./index":37,"./polyfills":40,"./polyfills/svg4everybody":42}],44:[function(e,t,s){"use strict";t.exports=function(){return (0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement;};},{}],45:[function(e,t,s){"use strict";function r(){for(var e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];return function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.body;s.forEach((e)=>{"function"==typeof this[e]&&this[e].call(this,t);});};}const a=e("object-assign"),n=e("receptor/behavior");t.exports=(e,t)=>n(e,a({on:r("init","add"),off:r("teardown","remove")},t));},{"object-assign":4,"receptor/behavior":5}],46:[function(e,t,s){"use strict";t.exports=function(r){var a=this;let n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,i=null;return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];window.clearTimeout(i),i=window.setTimeout(()=>{r.apply(a,t);},n);};};},{}],47:[function(e,t,s){"use strict";const a=e("object-assign"),n=e("receptor")["keymap"],i=e("./behavior"),o=e("./select"),c=e("./active-element"),l=(e)=>{const t=o('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',e),s=t[0],r=t[t.length-1];return {firstTabStop:s,lastTabStop:r,tabAhead:function(e){c()===r&&(e.preventDefault(),s.focus());},tabBack:function(e){c()===s?(e.preventDefault(),r.focus()):t.includes(c())||(e.preventDefault(),s.focus());}};};t.exports=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};const s=l(e);var {Esc:e,Escape:r}=t,e=(r&&!e&&(t.Esc=r),n(a({Tab:s.tabAhead,"Shift+Tab":s.tabBack},t)));return i({keydown:e},{init(){s.firstTabStop&&s.firstTabStop.focus();},update(e){e?this.on():this.off();}});};},{"./active-element":44,"./behavior":45,"./select":53,"object-assign":4,receptor:10}],48:[function(e,t,s){"use strict";t.exports=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(t.innerHeight||s.clientHeight)&&e.right<=(t.innerWidth||s.clientWidth);};},{}],49:[function(e,t,s){"use strict";t.exports=function(){return "undefined"!=typeof navigator&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!window.MSStream;};},{}],50:[function(e,t,s){"use strict";t.exports=function(){"use strict";var n={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return n._entities[e];},escapeHTML:function(e){var t="";for(var s=0;s<e.length;s++){t+=e[s];if(s+1<arguments.length){var r=arguments[s+1]||"";t+=String(r).replace(n._entity,n.getEntity);}}return t;},createSafeHTML:function(e){var t=arguments.length;var s=new Array(t>1?t-1:0);for(var r=1;r<t;r++)s[r-1]=arguments[r];var a=n.escapeHTML.apply(n,[e].concat(s));return {__html:a,toString:function(){return "[object WrappedHTMLObject]";},info:"This is a wrapped HTML object. See https://developer.mozilla.or"+"g/en-US/Firefox_OS/Security/Security_Automation for more."};},unwrapSafeHTML:function(){var e=arguments.length;var t=new Array(e);for(var s=0;s<e;s++)t[s]=arguments[s];var r=t.map(function(e){return e.__html;});return r.join("");}};return n;}();},{}],51:[function(e,t,s){"use strict";t.exports=function(){var e=document.createElement("div"),t=(e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e),document.createElement("div")),t=(e.appendChild(t),e.offsetWidth-t.offsetWidth+"px");return e.parentNode.removeChild(e),t;};},{}],52:[function(e,t,s){"use strict";const a=e("./select");t.exports=(e,t)=>{var s,r=a(e,t);return "string"==typeof e&&(s=t)&&"object"==typeof s&&1===s.nodeType&&t.matches(e)&&r.push(t),r;};},{"./select":53}],53:[function(e,t,s){"use strict";
94t.exports=(e,t)=>{var s;return "string"!=typeof e?[]:(s=(t=t&&(s=t)&&"object"==typeof s&&1===s.nodeType?t:window.document).querySelectorAll(e),Array.prototype.slice.call(s));};},{}],54:[function(e,t,s){"use strict";t.exports=(e,t)=>{e.setAttribute("autocapitalize","off"),e.setAttribute("autocorrect","off"),e.setAttribute("type",t?"password":"text");};},{}],55:[function(e,t,s){"use strict";const a=e("resolve-id-refs"),n=e("./toggle-field-mask"),i="aria-pressed",o="data-show-text";t.exports=(e)=>{const t=e.hasAttribute(i)&&"true"!==e.getAttribute(i);a(e.getAttribute("aria-controls")).forEach((e)=>n(e,t)),e.hasAttribute(o)||e.setAttribute(o,e.textContent);var s=e.getAttribute(o),r=e.getAttribute("data-hide-text")||s.replace(/\bShow\b/i,(e)=>`${"S"===e[0]?"H":"h"}ide`);return e.textContent=t?s:r,e.setAttribute(i,t),t;};},{"./toggle-field-mask":54,"resolve-id-refs":13}],56:[function(e,t,s){"use strict";const r="aria-expanded";t.exports=(e,t)=>{let s=t;"boolean"!=typeof s&&(s="false"===e.getAttribute(r)),e.setAttribute(r,s);
94t=e.getAttribute("aria-controls"),e=document.getElementById(t);if(e)return s?e.removeAttribute("hidden"):e.setAttribute("hidden",""),s;throw new Error(`No toggle target found with id: "${t}"`);};},{}],57:[function(e,t,s){"use strict";const c=e("./debounce");e=e("../config").prefix;const l=e+"-checklist__item--checked";t.exports=function(n){var e=n.dataset.validationElement;const i="#"===e.charAt(0)?document.querySelector(e):document.getElementById(e);if(!i)throw new Error(`No validation element found with id: "${e}"`);let o="";Object.entries(n.dataset).forEach((t)=>{var [t,s]=t;if(t.startsWith("validate")){var t=t.substr("validate".length).toLowerCase(),s=new RegExp(s),r=`[data-validator="${t}"]`,r=i.querySelector(r);const a=n.parentNode.querySelector("[data-validation-status]");s=s.test(n.value);if(r.classList.toggle(l,s),!r)throw new Error(`No validator checkbox found for: "${t}"`);s=n.dataset.validationComplete||"status complete",t=n.dataset.validationIncomplete||"status incomplete";let e=r.textContent+" ";r.classList.contains(l)?e+=s:e+=t,r.setAttribute("aria-label",e),o+=e+". ",c(()=>{a.textContent=o;},1e3)();}});};},{"../config":35,"./debounce":46}]},{},[43]);;
95(function(Drupal,once,$){'use strict';Drupal.behaviors.bush41libraryTheme={attach(context,settings){const sidebarMenu='.region-sidebar .block-menu-blockmain .usa-nav__primary';once('sidebar-menu',sidebarMenu).forEach(function(element){const expandableButtons=element.querySelectorAll('.usa-accordion__button');expandableButtons.forEach(function(button){button.addEventListener('click',function(){location.href=button.dataset.url;});});});const iFrames='iframe';const iFrameTimeOut=setTimeout(()=>{once('iframes',iFrames,context).forEach(function(element){if(!element.title)element.title=Drupal.t('iFrame embed');});clearTimeout(iFrameTimeOut);},3000);}};}(Drupal,once,jQuery));;
96(function(Drupal,once){'use strict';Drupal.behaviors.bush41libraryThreeCardsHomepage={attach(context,settings){context.querySelectorAll('.wp-block-group.three-cards-homepage .usa-card').forEach((element)=>{element.addEventListener('click',()=>{window.location.href=element.querySelector('a').getAttribute('href');});});}};}(Drupal,once));;

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