var Trestle=function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=13)}([function(t,e,n){(function(e){t.exports=e.jQuery=n(7)}).call(this,n(2))},function(e,t,n){ /* flatpickr v4.6.9, @license MIT */ e.exports=function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ee=function(){Ee=Object.assign||function e(t){for(var n,i=1,r=arguments.length;i",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false},ke={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false},Ae=function(e,t){if(t===void 0){t=2}return("000"+e).slice(t*-1)},Oe=function(e){return e===true?1:0};function Ie(t,n){var i;return function(){var e=this;clearTimeout(i);i=setTimeout(function(){return t.apply(e,arguments)},n)}}var Me=function(e){return e instanceof Array?e:[e]};function Ne(e,t,n){if(n===true)return e.classList.add(t);e.classList.remove(t)}function je(e,t,n){var i=window.document.createElement(e);t=t||"";n=n||"";i.className=t;if(n!==undefined)i.textContent=n;return i}function Le(e){while(e.firstChild)e.removeChild(e.firstChild)}function Pe(e,t){if(t(e))return e;else if(e.parentNode)return Pe(e.parentNode,t);return undefined}function $e(e,t){var n=je("div","numInputWrapper"),i=je("input","numInput "+e),r=je("span","arrowUp"),o=je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(t!==undefined)for(var a in t)i.setAttribute(a,t[a]);n.appendChild(i);n.appendChild(r);n.appendChild(o);return n}function He(t){try{if(typeof t.composedPath==="function"){var e=t.composedPath();return e[0]}return t.target}catch(e){return t.target}}var e=function(){return undefined},Fe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},w={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Oe(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(parseFloat(t)*1e3)},W:function(e,t,n){var i=parseInt(t);var r=new Date(e.getFullYear(),0,2+(i-1)*7,0,0,0,0);r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek);return r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},qe={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return Fe(l.n(e,t,n)-1,false,t)},G:function(e,t,n){return Ae(l.h(e,t,n))},H:function(e){return Ae(e.getHours())},J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Oe(e.getHours()>11)]},M:function(e,t){return Fe(e.getMonth(),true,t)},S:function(e){return Ae(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return Ae(e.getFullYear(),4)},d:function(e){return Ae(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Ae(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Ae(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},Re=function(e){var t=e.config,o=t===void 0?Se:t,n=e.l10n,a=n===void 0?ke:n,i=e.isMobile,s=i===void 0?false:i;return function(i,e,t){var r=t||a;if(o.formatDate!==undefined&&!s){return o.formatDate(i,e,r)}return e.split("").map(function(e,t,n){return l[e]&&n[t-1]!=="\\"?l[e](i,r,o):e!=="\\"?e:""}).join("")}},Be=function(e){var t=e.config,y=t===void 0?Se:t,n=e.l10n,b=n===void 0?ke:n;return function(e,t,n,i){if(e!==0&&!e)return undefined;var r=i||b;var o;var a=e;if(e instanceof Date)o=new Date(e.getTime());else if(typeof e!=="string"&&e.toFixed!==undefined)o=new Date(e);else if(typeof e==="string"){var s=t||(y||Se).dateFormat;var l=String(e).trim();if(l==="today"){o=new Date;n=true}else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(y&&y.parseDate)o=y.parseDate(e,s);else{o=!y||!y.noCalendar?new Date((new Date).getFullYear(),0,1,0,0,0,0):new Date((new Date).setHours(0,0,0,0));var u=void 0,c=[];for(var f=0,d=0,p="";fMath.min(t,n)&&e=0?new Date:new Date(E.config.minDate.getTime());var n=Ye(E.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds());E.selectedDates=[t];E.latestSelectedDateObj=t}if(e!==undefined&&e.type!=="blur"){xe(e)}var i=E._input.value;h();_e();if(E._input.value!==i){E._debouncedChange()}}function s(e,t){return e%12+12*Oe(t===E.l10n.amPM[1])}function o(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function h(){if(E.hourElement===undefined||E.minuteElement===undefined)return;var e=(parseInt(E.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(E.minuteElement.value,10)||0)%60,n=E.secondElement!==undefined?(parseInt(E.secondElement.value,10)||0)%60:0;if(E.amPM!==undefined){e=s(e,E.amPM.textContent)}var i=E.config.minTime!==undefined||E.config.minDate&&E.minDateHasTime&&E.latestSelectedDateObj&&We(E.latestSelectedDateObj,E.config.minDate,true)===0;var r=E.config.maxTime!==undefined||E.config.maxDate&&E.maxDateHasTime&&E.latestSelectedDateObj&&We(E.latestSelectedDateObj,E.config.maxDate,true)===0;if(r){var o=E.config.maxTime!==undefined?E.config.maxTime:E.config.maxDate;e=Math.min(e,o.getHours());if(e===o.getHours())t=Math.min(t,o.getMinutes());if(t===o.getMinutes())n=Math.min(n,o.getSeconds())}if(i){var a=E.config.minTime!==undefined?E.config.minTime:E.config.minDate;e=Math.max(e,a.getHours());if(e===a.getHours()&&t=12)];if(E.secondElement!==undefined)E.secondElement.value=Ae(n)}function i(e){var t=He(e);var n=parseInt(t.value)+(e.delta||0);if(n/1e3>1||e.key==="Enter"&&!/[^\d]/.test(n.toString())){B(n)}}function a(t,n,i,r){if(n instanceof Array)return n.forEach(function(e){return a(t,e,i,r)});if(t instanceof Array)return t.forEach(function(e){return a(e,n,i,r)});t.addEventListener(n,i,r);E._handlers.push({remove:function(){return t.removeEventListener(n,i)}})}function m(){me("onChange")}function u(){if(E.config.wrap){["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(E.element.querySelectorAll("[data-"+t+"]"),function(e){return a(e,"click",E[t])})})}if(E.isMobile){pe();return}var e=Ie(G,50);E._debouncedChange=Ie(m,Ke);if(E.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))a(E.daysContainer,"mouseover",function(e){if(E.config.mode==="range")K(He(e))});a(window.document.body,"keydown",Y);if(!E.config.inline&&!E.config.static)a(window,"resize",e);if(window.ontouchstart!==undefined)a(window.document,"touchstart",R);else a(window.document,"mousedown",R);a(window.document,"focus",R,{capture:true});if(E.config.clickOpens===true){a(E._input,"focus",E.open);a(E._input,"click",E.open)}if(E.daysContainer!==undefined){a(E.monthNav,"click",Ce);a(E.monthNav,["keyup","increment"],i);a(E.daysContainer,"click",oe)}if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined){var t=function(e){return He(e).select()};a(E.timeContainer,["increment"],p);a(E.timeContainer,"blur",p,{capture:true});a(E.timeContainer,"click",v);a([E.hourElement,E.minuteElement],["focus","click"],t);if(E.secondElement!==undefined)a(E.secondElement,"focus",function(){return E.secondElement&&E.secondElement.select()});if(E.amPM!==undefined){a(E.amPM,"click",function(e){p(e);m()})}}if(E.config.allowInput){a(E._input,"blur",z)}}function g(e,t){var n=e!==undefined?E.parseDate(e):E.latestSelectedDateObj||(E.config.minDate&&E.config.minDate>E.now?E.config.minDate:E.config.maxDate&&E.config.maxDate1);E.calendarContainer.appendChild(e);var r=E.config.appendTo!==undefined&&E.config.appendTo.nodeType!==undefined;if(E.config.inline||E.config.static){E.calendarContainer.classList.add(E.config.inline?"inline":"static");if(E.config.inline){if(!r&&E.element.parentNode)E.element.parentNode.insertBefore(E.calendarContainer,E._input.nextSibling);else if(E.config.appendTo!==undefined)E.config.appendTo.appendChild(E.calendarContainer)}if(E.config.static){var o=je("div","flatpickr-wrapper");if(E.element.parentNode)E.element.parentNode.insertBefore(o,E.element);o.appendChild(E.element);if(E.altInput)o.appendChild(E.altInput);o.appendChild(E.calendarContainer)}}if(!E.config.static&&!E.config.inline)(E.config.appendTo!==undefined?E.config.appendTo:window.document.body).appendChild(E.calendarContainer)}function w(e,t,n,i){var r=W(t,true),o=je("span","flatpickr-day "+e,t.getDate().toString());o.dateObj=t;o.$i=i;o.setAttribute("aria-label",E.formatDate(t,E.config.ariaDateFormat));if(e.indexOf("hidden")===-1&&We(t,E.now)===0){E.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(r){o.tabIndex=-1;if(ve(t)){o.classList.add("selected");E.selectedDateElem=o;if(E.config.mode==="range"){Ne(o,"startRange",E.selectedDates[0]&&We(t,E.selectedDates[0],true)===0);Ne(o,"endRange",E.selectedDates[1]&&We(t,E.selectedDates[1],true)===0);if(e==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(E.config.mode==="range"){if(ye(t)&&!ve(t))o.classList.add("inRange")}if(E.weekNumbers&&E.config.showMonths===1&&e!=="prevMonthDay"&&n%7===1){E.weekNumbers.insertAdjacentHTML("beforeend",""+E.config.getWeek(t)+"")}me("onDayCreate",o);return o}function _(e){e.focus();if(E.config.mode==="range")K(e)}function C(e){var t=e>0?0:E.config.showMonths-1;var n=e>0?E.config.showMonths:-1;for(var i=t;i!=n;i+=e){var r=E.daysContainer.children[i];var o=e>0?0:r.children.length-1;var a=e>0?r.children.length:-1;for(var s=o;s!=a;s+=e){var l=r.children[s];if(l.className.indexOf("hidden")===-1&&W(l.dateObj))return l}}return undefined}function x(e,t){var n=e.className.indexOf("Month")===-1?e.dateObj.getMonth():E.currentMonth;var i=t>0?E.config.showMonths:-1;var r=t>0?1:-1;for(var o=n-E.currentMonth;o!=i;o+=r){var a=E.daysContainer.children[o];var s=n-E.currentMonth===o?e.$i+t:t<0?a.children.length-1:0;var l=a.children.length;for(var u=s;u>=0&&u0?l:-1);u+=r){var c=a.children[u];if(c.className.indexOf("hidden")===-1&&W(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return _(c)}}E.changeMonth(r);T(C(r),0);return undefined}function T(e,t){var n=U(document.activeElement||document.body);var i=e!==undefined?e:n?document.activeElement:E.selectedDateElem!==undefined&&U(E.selectedDateElem)?E.selectedDateElem:E.todayDateElem!==undefined&&U(E.todayDateElem)?E.todayDateElem:C(t>0?1:-1);if(i===undefined){E._input.focus()}else if(!n){_(i)}else{x(i,t)}}function D(e,t){var n=(new Date(e,t,1).getDay()-E.l10n.firstDayOfWeek+7)%7;var i=E.utils.getDaysInMonth((t-1+12)%12,e);var r=E.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),a=E.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay";var u=i+1-n,c=0;for(;u<=i;u++,c++){o.appendChild(w(s,new Date(e,t-1,u),u,c))}for(u=1;u<=r;u++,c++){o.appendChild(w("",new Date(e,t,u),u,c))}for(var f=r+1;f<=42-n&&(E.config.showMonths===1||c%7!==0);f++,c++){o.appendChild(w(l,new Date(e,t+1,f%r),f,c))}var d=je("div","dayContainer");d.appendChild(o);return d}function S(){if(E.daysContainer===undefined){return}Le(E.daysContainer);if(E.weekNumbers)Le(E.weekNumbers);var e=document.createDocumentFragment();for(var t=0;t1||E.config.monthSelectorType!=="dropdown")return;var e=function(e){if(E.config.minDate!==undefined&&E.currentYear===E.config.minDate.getFullYear()&&eE.config.maxDate.getMonth())};E.monthsDropdownContainer.tabIndex=-1;E.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++){if(!e(t))continue;var n=je("option","flatpickr-monthDropdown-month");n.value=new Date(E.currentYear,t).getMonth().toString();n.textContent=Fe(t,E.config.shorthandCurrentMonth,E.l10n);n.tabIndex=-1;if(E.currentMonth===t){n.selected=true}E.monthsDropdownContainer.appendChild(n)}}function A(){var e=je("div","flatpickr-month");var t=window.document.createDocumentFragment();var n;if(E.config.showMonths>1||E.config.monthSelectorType==="static"){n=je("span","cur-month")}else{E.monthsDropdownContainer=je("select","flatpickr-monthDropdown-months");E.monthsDropdownContainer.setAttribute("aria-label",E.l10n.monthAriaLabel);a(E.monthsDropdownContainer,"change",function(e){var t=He(e);var n=parseInt(t.value,10);E.changeMonth(n-E.currentMonth);me("onMonthChange")});k();n=E.monthsDropdownContainer}var i=$e("cur-year",{tabindex:"-1"});var r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",E.l10n.yearAriaLabel);if(E.config.minDate){r.setAttribute("min",E.config.minDate.getFullYear().toString())}if(E.config.maxDate){r.setAttribute("max",E.config.maxDate.getFullYear().toString());r.disabled=!!E.config.minDate&&E.config.minDate.getFullYear()===E.config.maxDate.getFullYear()}var o=je("div","flatpickr-current-month");o.appendChild(n);o.appendChild(i);t.appendChild(o);e.appendChild(t);return{container:e,yearElement:r,monthElement:n}}function O(){Le(E.monthNav);E.monthNav.appendChild(E.prevMonthNav);if(E.config.showMonths){E.yearElements=[];E.monthElements=[]}for(var e=E.config.showMonths;e--;){var t=A();E.yearElements.push(t.yearElement);E.monthElements.push(t.monthElement);E.monthNav.appendChild(t.container)}E.monthNav.appendChild(E.nextMonthNav)}function I(){E.monthNav=je("div","flatpickr-months");E.yearElements=[];E.monthElements=[];E.prevMonthNav=je("span","flatpickr-prev-month");E.prevMonthNav.innerHTML=E.config.prevArrow;E.nextMonthNav=je("span","flatpickr-next-month");E.nextMonthNav.innerHTML=E.config.nextArrow;O();Object.defineProperty(E,"_hidePrevMonthArrow",{get:function(){return E.__hidePrevMonthArrow},set:function(e){if(E.__hidePrevMonthArrow!==e){Ne(E.prevMonthNav,"flatpickr-disabled",e);E.__hidePrevMonthArrow=e}}});Object.defineProperty(E,"_hideNextMonthArrow",{get:function(){return E.__hideNextMonthArrow},set:function(e){if(E.__hideNextMonthArrow!==e){Ne(E.nextMonthNav,"flatpickr-disabled",e);E.__hideNextMonthArrow=e}}});E.currentYearElement=E.yearElements[0];be();return E.monthNav}function M(){E.calendarContainer.classList.add("hasTime");if(E.config.noCalendar)E.calendarContainer.classList.add("noCalendar");var e=Ye(E.config);E.timeContainer=je("div","flatpickr-time");E.timeContainer.tabIndex=-1;var t=je("span","flatpickr-time-separator",":");var n=$e("flatpickr-hour",{"aria-label":E.l10n.hourAriaLabel});E.hourElement=n.getElementsByTagName("input")[0];var i=$e("flatpickr-minute",{"aria-label":E.l10n.minuteAriaLabel});E.minuteElement=i.getElementsByTagName("input")[0];E.hourElement.tabIndex=E.minuteElement.tabIndex=-1;E.hourElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getHours():E.config.time_24hr?e.hours:o(e.hours));E.minuteElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getMinutes():e.minutes);E.hourElement.setAttribute("step",E.config.hourIncrement.toString());E.minuteElement.setAttribute("step",E.config.minuteIncrement.toString());E.hourElement.setAttribute("min",E.config.time_24hr?"0":"1");E.hourElement.setAttribute("max",E.config.time_24hr?"23":"12");E.hourElement.setAttribute("maxlength","2");E.minuteElement.setAttribute("min","0");E.minuteElement.setAttribute("max","59");E.minuteElement.setAttribute("maxlength","2");E.timeContainer.appendChild(n);E.timeContainer.appendChild(t);E.timeContainer.appendChild(i);if(E.config.time_24hr)E.timeContainer.classList.add("time24hr");if(E.config.enableSeconds){E.timeContainer.classList.add("hasSeconds");var r=$e("flatpickr-second");E.secondElement=r.getElementsByTagName("input")[0];E.secondElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getSeconds():e.seconds);E.secondElement.setAttribute("step",E.minuteElement.getAttribute("step"));E.secondElement.setAttribute("min","0");E.secondElement.setAttribute("max","59");E.secondElement.setAttribute("maxlength","2");E.timeContainer.appendChild(je("span","flatpickr-time-separator",":"));E.timeContainer.appendChild(r)}if(!E.config.time_24hr){E.amPM=je("span","flatpickr-am-pm",E.l10n.amPM[Oe((E.latestSelectedDateObj?E.hourElement.value:E.config.defaultHour)>11)]);E.amPM.title=E.l10n.toggleTitle;E.amPM.tabIndex=-1;E.timeContainer.appendChild(E.amPM)}return E.timeContainer}function N(){if(!E.weekdayContainer)E.weekdayContainer=je("div","flatpickr-weekdays");else Le(E.weekdayContainer);for(var e=E.config.showMonths;e--;){var t=je("div","flatpickr-weekdaycontainer");E.weekdayContainer.appendChild(t)}j();return E.weekdayContainer}function j(){if(!E.weekdayContainer){return}var e=E.l10n.firstDayOfWeek;var t=Te(E.l10n.weekdays.shorthand);if(e>0&&e\n "+t.join("")+"\n \n "}}function L(){E.calendarContainer.classList.add("hasWeeks");var e=je("div","flatpickr-weekwrapper");e.appendChild(je("span","flatpickr-weekday",E.l10n.weekAbbreviation));var t=je("div","flatpickr-weeks");e.appendChild(t);return{weekWrapper:e,weekNumbers:t}}function P(e,t){if(t===void 0){t=true}var n=t?e:e-E.currentMonth;if(n<0&&E._hidePrevMonthArrow===true||n>0&&E._hideNextMonthArrow===true)return;E.currentMonth+=n;if(E.currentMonth<0||E.currentMonth>11){E.currentYear+=E.currentMonth>11?1:-1;E.currentMonth=(E.currentMonth+12)%12;me("onYearChange");k()}S();me("onMonthChange");be()}function $(e,t){if(e===void 0){e=true}if(t===void 0){t=true}E.input.value="";if(E.altInput!==undefined)E.altInput.value="";if(E.mobileInput!==undefined)E.mobileInput.value="";E.selectedDates=[];E.latestSelectedDateObj=undefined;if(t===true){E.currentYear=E._initialDate.getFullYear();E.currentMonth=E._initialDate.getMonth()}if(E.config.enableTime===true){var n=Ye(E.config),i=n.hours,r=n.minutes,o=n.seconds;l(i,r,o)}E.redraw();if(e)me("onChange")}function H(){E.isOpen=false;if(!E.isMobile){if(E.calendarContainer!==undefined){E.calendarContainer.classList.remove("open")}if(E._input!==undefined){E._input.classList.remove("active")}}me("onClose")}function F(){if(E.config!==undefined)me("onDestroy");for(var e=E._handlers.length;e--;){E._handlers[e].remove()}E._handlers=[];if(E.mobileInput){if(E.mobileInput.parentNode)E.mobileInput.parentNode.removeChild(E.mobileInput);E.mobileInput=undefined}else if(E.calendarContainer&&E.calendarContainer.parentNode){if(E.config.static&&E.calendarContainer.parentNode){var t=E.calendarContainer.parentNode;t.lastChild&&t.removeChild(t.lastChild);if(t.parentNode){while(t.firstChild)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else E.calendarContainer.parentNode.removeChild(E.calendarContainer)}if(E.altInput){E.input.type="text";if(E.altInput.parentNode)E.altInput.parentNode.removeChild(E.altInput);delete E.altInput}if(E.input){E.input.type=E.input._type;E.input.classList.remove("flatpickr-input");E.input.removeAttribute("readonly")}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete E[e]}catch(e){}})}function q(e){if(E.config.appendTo&&E.config.appendTo.contains(e))return true;return E.calendarContainer.contains(e)}function R(e){if(E.isOpen&&!E.config.inline){var t=He(e);var n=q(t);var i=t===E.input||t===E.altInput||E.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(E.input)||~e.path.indexOf(E.altInput));var r=e.type==="blur"?i&&e.relatedTarget&&!q(e.relatedTarget):!i&&!n&&!q(e.relatedTarget);var o=!E.config.ignoredFocusElements.some(function(e){return e.contains(t)});if(r&&o){if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined&&E.input.value!==""&&E.input.value!==undefined){p()}E.close();if(E.config&&E.config.mode==="range"&&E.selectedDates.length===1){E.clear(false);E.redraw()}}}}function B(e){if(!e||E.config.minDate&&eE.config.maxDate.getFullYear())return;var t=e,n=E.currentYear!==t;E.currentYear=t||E.currentYear;if(E.config.maxDate&&E.currentYear===E.config.maxDate.getFullYear()){E.currentMonth=Math.min(E.config.maxDate.getMonth(),E.currentMonth)}else if(E.config.minDate&&E.currentYear===E.config.minDate.getFullYear()){E.currentMonth=Math.max(E.config.minDate.getMonth(),E.currentMonth)}if(n){E.redraw();me("onYearChange");k()}}function W(e,t){var n;if(t===void 0){t=true}var i=E.parseDate(e,undefined,t);if(E.config.minDate&&i&&We(i,E.config.minDate,t!==undefined?t:!E.minDateHasTime)<0||E.config.maxDate&&i&&We(i,E.config.maxDate,t!==undefined?t:!E.maxDateHasTime)>0)return false;if(!E.config.enable&&E.config.disable.length===0)return true;if(i===undefined)return false;var r=!!E.config.enable,o=(n=E.config.enable)!==null&&n!==void 0?n:E.config.disable;for(var a=0,s=void 0;a=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function U(e){if(E.daysContainer!==undefined)return e.className.indexOf("hidden")===-1&&e.className.indexOf("flatpickr-disabled")===-1&&E.daysContainer.contains(e);return false}function z(e){var t=e.target===E._input;if(t&&(E.selectedDates.length>0||E._input.value.length>0)&&!(e.relatedTarget&&q(e.relatedTarget))){E.setDate(E._input.value,true,e.target===E.altInput?E.config.altFormat:E.config.dateFormat)}}function Y(e){var t=He(e);var n=E.config.wrap?d.contains(t):t===E._input;var i=E.config.allowInput;var r=E.isOpen&&(!i||!n);var o=E.config.inline&&n&&!i;if(e.keyCode===13&&n){if(i){E.setDate(E._input.value,true,t===E.altInput?E.config.altFormat:E.config.dateFormat);return t.blur()}else{E.open()}}else if(q(t)||r||o){var a=!!E.timeContainer&&E.timeContainer.contains(t);switch(e.keyCode){case 13:if(a){e.preventDefault();p();re()}else oe(e);break;case 27:e.preventDefault();re();break;case 8:case 46:if(n&&!E.config.allowInput){e.preventDefault();E.clear()}break;case 37:case 39:if(!a&&!n){e.preventDefault();if(E.daysContainer!==undefined&&(i===false||document.activeElement&&U(document.activeElement))){var s=e.keyCode===39?1:-1;if(!e.ctrlKey)T(undefined,s);else{e.stopPropagation();P(s);T(C(1),0)}}}else if(E.hourElement)E.hourElement.focus();break;case 38:case 40:e.preventDefault();var l=e.keyCode===40?1:-1;if(E.daysContainer&&t.$i!==undefined||t===E.input||t===E.altInput){if(e.ctrlKey){e.stopPropagation();B(E.currentYear-l);T(C(1),0)}else if(!a)T(undefined,l*7)}else if(t===E.currentYearElement){B(E.currentYear-l)}else if(E.config.enableTime){if(!a&&E.hourElement)E.hourElement.focus();p(e);E._debouncedChange()}break;case 9:if(a){var u=[E.hourElement,E.minuteElement,E.secondElement,E.amPM].concat(E.pluginElements).filter(function(e){return e});var c=u.indexOf(t);if(c!==-1){var f=u[c+(e.shiftKey?-1:1)];e.preventDefault();(f||E._input).focus()}}else if(!E.config.noCalendar&&E.daysContainer&&E.daysContainer.contains(t)&&e.shiftKey){e.preventDefault();E._input.focus()}break}}if(E.amPM!==undefined&&t===E.amPM){switch(e.key){case E.l10n.amPM[0].charAt(0):case E.l10n.amPM[0].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[0];h();_e();break;case E.l10n.amPM[1].charAt(0):case E.l10n.amPM[1].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[1];h();_e();break}}if(n||q(t)){me("onKeyDown",e)}}function K(a){if(E.selectedDates.length!==1||a&&(!a.classList.contains("flatpickr-day")||a.classList.contains("flatpickr-disabled")))return;var s=a?a.dateObj.getTime():E.days.firstElementChild.dateObj.getTime(),l=E.parseDate(E.selectedDates[0],undefined,true).getTime(),e=Math.min(s,E.selectedDates[0].getTime()),t=Math.max(s,E.selectedDates[0].getTime());var u=false;var c=0,f=0;for(var n=e;ne&&nc))c=n;else if(n>l&&(!f||n0&&r0&&r>f;if(o){n.classList.add("notAllowed");["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)});return"continue"}else if(u&&!o)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)});if(a!==undefined){a.classList.add(s<=E.selectedDates[0].getTime()?"startRange":"endRange");if(ls&&r===l)n.classList.add("endRange");if(r>=c&&(f===0||r<=f)&&Ue(r,l,s))n.classList.add("inRange")}};for(var o=0,p=d.children.length;o0||t.getMinutes()>0||t.getSeconds()>0}if(E.selectedDates){E.selectedDates=E.selectedDates.filter(function(e){return W(e)});if(!E.selectedDates.length&&i==="min")r(t);_e()}if(E.daysContainer){ie();if(t!==undefined)E.currentYearElement[i]=t.getFullYear().toString();else E.currentYearElement.removeAttribute(i);E.currentYearElement.disabled=!!n&&t!==undefined&&n.getFullYear()===t.getFullYear()}}}function V(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var t=Ee(Ee({},JSON.parse(JSON.stringify(d.dataset||{}))),c);var n={};E.config.parseDate=t.parseDate;E.config.formatDate=t.formatDate;Object.defineProperty(E.config,"enable",{get:function(){return E.config._enable},set:function(e){E.config._enable=ce(e)}});Object.defineProperty(E.config,"disable",{get:function(){return E.config._disable},set:function(e){E.config._disable=ce(e)}});var i=t.mode==="time";if(!t.dateFormat&&(t.enableTime||i)){var r=Ge.defaultConfig.dateFormat||Se.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):r+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var o=Ge.defaultConfig.altFormat||Se.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):o+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(E.config,"minDate",{get:function(){return E.config._minDate},set:X("min")});Object.defineProperty(E.config,"maxDate",{get:function(){return E.config._maxDate},set:X("max")});var a=function(t){return function(e){E.config[t==="min"?"_minTime":"_maxTime"]=E.parseDate(e,"H:i:S")}};Object.defineProperty(E.config,"minTime",{get:function(){return E.config._minTime},set:a("min")});Object.defineProperty(E.config,"maxTime",{get:function(){return E.config._maxTime},set:a("max")});if(t.mode==="time"){E.config.noCalendar=true;E.config.enableTime=true}Object.assign(E.config,n,t);for(var s=0;s-1){E.config[u]=Me(l[u]).map(f).concat(E.config[u])}else if(typeof t[u]==="undefined")E.config[u]=l[u]}}if(!t.altInputClass){E.config.altInputClass=J().className+" "+E.config.altInputClass}me("onParseConfig")}function J(){return E.config.wrap?d.querySelector("[data-input]"):d}function Z(){if(typeof E.config.locale!=="object"&&typeof Ge.l10ns[E.config.locale]==="undefined")E.config.errorHandler(new Error("flatpickr: invalid locale "+E.config.locale));E.l10n=Ee(Ee({},Ge.l10ns.default),typeof E.config.locale==="object"?E.config.locale:E.config.locale!=="default"?Ge.l10ns[E.config.locale]:undefined);qe.K="("+E.l10n.amPM[0]+"|"+E.l10n.amPM[1]+"|"+E.l10n.amPM[0].toLowerCase()+"|"+E.l10n.amPM[1].toLowerCase()+")";var e=Ee(Ee({},c),JSON.parse(JSON.stringify(d.dataset||{})));if(e.time_24hr===undefined&&Ge.defaultConfig.time_24hr===undefined){E.config.time_24hr=E.l10n.time_24hr}E.formatDate=Re(E);E.parseDate=Be({config:E.config,l10n:E.l10n})}function ee(e){if(typeof E.config.position==="function"){return void E.config.position(E,e)}if(E.calendarContainer===undefined)return;me("onPreCalendarPosition");var t=e||E._positionElement;var n=Array.prototype.reduce.call(E.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=E.calendarContainer.offsetWidth,r=E.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u=o==="above"||o!=="below"&&ln;var c=window.pageYOffset+s.top+(!u?t.offsetHeight+2:-n-2);Ne(E.calendarContainer,"arrowTop",!u);Ne(E.calendarContainer,"arrowBottom",u);if(E.config.inline)return;var f=window.pageXOffset+s.left;var d=false;var p=false;if(a==="center"){f-=(i-s.width)/2;d=true}else if(a==="right"){f-=i-s.width;p=true}Ne(E.calendarContainer,"arrowLeft",!d&&!p);Ne(E.calendarContainer,"arrowCenter",d);Ne(E.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right);var m=f+i>window.document.body.offsetWidth;var g=h+i>window.document.body.offsetWidth;Ne(E.calendarContainer,"rightMost",m);if(E.config.static)return;E.calendarContainer.style.top=c+"px";if(!m){E.calendarContainer.style.left=f+"px";E.calendarContainer.style.right="auto"}else if(!g){E.calendarContainer.style.left="auto";E.calendarContainer.style.right=h+"px"}else{var v=te();if(v===undefined)return;var y=window.document.body.offsetWidth;var b=Math.max(0,y/2-i/2);var w=".flatpickr-calendar.centerMost:before";var _=".flatpickr-calendar.centerMost:after";var C=v.cssRules.length;var x="{left:"+s.left+"px;right:auto;}";Ne(E.calendarContainer,"rightMost",false);Ne(E.calendarContainer,"centerMost",true);v.insertRule(w+","+_+x,C);E.calendarContainer.style.left=b+"px";E.calendarContainer.style.right="auto"}}function te(){var e=null;for(var t=0;tE.currentMonth+E.config.showMonths-1)&&E.config.mode!=="range";E.selectedDateElem=i;if(E.config.mode==="single")E.selectedDates=[r];else if(E.config.mode==="multiple"){var a=ve(r);if(a)E.selectedDates.splice(parseInt(a),1);else E.selectedDates.push(r)}else if(E.config.mode==="range"){if(E.selectedDates.length===2){E.clear(false,false)}E.latestSelectedDateObj=r;E.selectedDates.push(r);if(We(r,E.selectedDates[0],true)!==0)E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}h();if(o){var s=E.currentYear!==r.getFullYear();E.currentYear=r.getFullYear();E.currentMonth=r.getMonth();if(s){me("onYearChange");k()}me("onMonthChange")}be();S();_e();if(!o&&E.config.mode!=="range"&&E.config.showMonths===1)_(i);else if(E.selectedDateElem!==undefined&&E.hourElement===undefined){E.selectedDateElem&&E.selectedDateElem.focus()}if(E.hourElement!==undefined)E.hourElement!==undefined&&E.hourElement.focus();if(E.config.closeOnSelect){var l=E.config.mode==="single"&&!E.config.enableTime;var u=E.config.mode==="range"&&E.selectedDates.length===2&&!E.config.enableTime;if(l||u){re()}}m()}var ae={locale:[Z,j],showMonths:[O,n,N],minDate:[g],maxDate:[g],clickOpens:[function(){if(E.config.clickOpens===true){a(E._input,"focus",E.open);a(E._input,"click",E.open)}else{E._input.removeEventListener("focus",E.open);E._input.removeEventListener("click",E.open)}}]};function se(e,t){if(e!==null&&typeof e==="object"){Object.assign(E.config,e);for(var n in e){if(ae[n]!==undefined)ae[n].forEach(function(e){return e()})}}else{E.config[e]=t;if(ae[e]!==undefined)ae[e].forEach(function(e){return e()});else if(De.indexOf(e)>-1)E.config[e]=Me(t)}E.redraw();_e(true)}function le(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return E.parseDate(e,t)});else if(e instanceof Date||typeof e==="number")n=[E.parseDate(e,t)];else if(typeof e==="string"){switch(E.config.mode){case"single":case"time":n=[E.parseDate(e,t)];break;case"multiple":n=e.split(E.config.conjunction).map(function(e){return E.parseDate(e,t)});break;case"range":n=e.split(E.l10n.rangeSeparator).map(function(e){return E.parseDate(e,t)});break}}else E.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));E.selectedDates=E.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&W(e,false)});if(E.config.mode==="range")E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ue(e,t,n){if(t===void 0){t=false}if(n===void 0){n=E.config.dateFormat}if(e!==0&&!e||e instanceof Array&&e.length===0)return E.clear(t);le(e,n);E.latestSelectedDateObj=E.selectedDates[E.selectedDates.length-1];E.redraw();g(undefined,t);r();if(E.selectedDates.length===0){E.clear(false)}_e(t);if(t)me("onChange")}function ce(e){return e.slice().map(function(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){return E.parseDate(e,undefined,true)}else if(e&&typeof e==="object"&&e.from&&e.to)return{from:E.parseDate(e.from,undefined),to:E.parseDate(e.to,undefined)};return e}).filter(function(e){return e})}function fe(){E.selectedDates=[];E.now=E.parseDate(E.config.now)||new Date;var e=E.config.defaultDate||((E.input.nodeName==="INPUT"||E.input.nodeName==="TEXTAREA")&&E.input.placeholder&&E.input.value===E.input.placeholder?null:E.input.value);if(e)le(e,E.config.dateFormat);E._initialDate=E.selectedDates.length>0?E.selectedDates[0]:E.config.minDate&&E.config.minDate.getTime()>E.now.getTime()?E.config.minDate:E.config.maxDate&&E.config.maxDate.getTime()0)E.latestSelectedDateObj=E.selectedDates[0];if(E.config.minTime!==undefined)E.config.minTime=E.parseDate(E.config.minTime,"H:i");if(E.config.maxTime!==undefined)E.config.maxTime=E.parseDate(E.config.maxTime,"H:i");E.minDateHasTime=!!E.config.minDate&&(E.config.minDate.getHours()>0||E.config.minDate.getMinutes()>0||E.config.minDate.getSeconds()>0);E.maxDateHasTime=!!E.config.maxDate&&(E.config.maxDate.getHours()>0||E.config.maxDate.getMinutes()>0||E.config.maxDate.getSeconds()>0)}function de(){E.input=J();if(!E.input){E.config.errorHandler(new Error("Invalid input element specified"));return}E.input._type=E.input.type;E.input.type="text";E.input.classList.add("flatpickr-input");E._input=E.input;if(E.config.altInput){E.altInput=je(E.input.nodeName,E.config.altInputClass);E._input=E.altInput;E.altInput.placeholder=E.input.placeholder;E.altInput.disabled=E.input.disabled;E.altInput.required=E.input.required;E.altInput.tabIndex=E.input.tabIndex;E.altInput.type="text";E.input.setAttribute("type","hidden");if(!E.config.static&&E.input.parentNode)E.input.parentNode.insertBefore(E.altInput,E.input.nextSibling)}if(!E.config.allowInput)E._input.setAttribute("readonly","readonly");E._positionElement=E.config.positionElement||E._input}function pe(){var e=E.config.enableTime?E.config.noCalendar?"time":"datetime-local":"date";E.mobileInput=je("input",E.input.className+" flatpickr-mobile");E.mobileInput.tabIndex=1;E.mobileInput.type=e;E.mobileInput.disabled=E.input.disabled;E.mobileInput.required=E.input.required;E.mobileInput.placeholder=E.input.placeholder;E.mobileFormatStr=e==="datetime-local"?"Y-m-d\\TH:i:S":e==="date"?"Y-m-d":"H:i:S";if(E.selectedDates.length>0){E.mobileInput.defaultValue=E.mobileInput.value=E.formatDate(E.selectedDates[0],E.mobileFormatStr)}if(E.config.minDate)E.mobileInput.min=E.formatDate(E.config.minDate,"Y-m-d");if(E.config.maxDate)E.mobileInput.max=E.formatDate(E.config.maxDate,"Y-m-d");if(E.input.getAttribute("step"))E.mobileInput.step=String(E.input.getAttribute("step"));E.input.type="hidden";if(E.altInput!==undefined)E.altInput.type="hidden";try{if(E.input.parentNode)E.input.parentNode.insertBefore(E.mobileInput,E.input.nextSibling)}catch(e){}a(E.mobileInput,"change",function(e){E.setDate(He(e).value,false,E.mobileFormatStr);me("onChange");me("onClose")})}function he(e){if(E.isOpen===true)return E.close();E.open(e)}function me(e,t){if(E.config===undefined)return;var n=E.config[e];if(n!==undefined&&n.length>0){for(var i=0;n[i]&&i=0&&We(e,E.selectedDates[1])<=0}function be(){if(E.config.noCalendar||E.isMobile||!E.monthNav)return;E.yearElements.forEach(function(e,t){var n=new Date(E.currentYear,E.currentMonth,1);n.setMonth(E.currentMonth+t);if(E.config.showMonths>1||E.config.monthSelectorType==="static"){E.monthElements[t].textContent=Fe(n.getMonth(),E.config.shorthandCurrentMonth,E.l10n)+" "}else{E.monthsDropdownContainer.value=n.getMonth().toString()}e.value=n.getFullYear().toString()});E._hidePrevMonthArrow=E.config.minDate!==undefined&&(E.currentYear===E.config.minDate.getFullYear()?E.currentMonth<=E.config.minDate.getMonth():E.currentYearE.config.maxDate.getMonth():E.currentYear>E.config.maxDate.getFullYear())}function we(t){return E.selectedDates.map(function(e){return E.formatDate(e,t)}).filter(function(e,t,n){return E.config.mode!=="range"||E.config.enableTime||n.indexOf(e)===t}).join(E.config.mode!=="range"?E.config.conjunction:E.l10n.rangeSeparator)}function _e(e){if(e===void 0){e=true}if(E.mobileInput!==undefined&&E.mobileFormatStr){E.mobileInput.value=E.latestSelectedDateObj!==undefined?E.formatDate(E.latestSelectedDateObj,E.mobileFormatStr):""}E.input.value=we(E.config.dateFormat);if(E.altInput!==undefined){E.altInput.value=we(E.config.altFormat)}if(e!==false)me("onValueUpdate")}function Ce(e){var t=He(e);var n=E.prevMonthNav.contains(t);var i=E.nextMonthNav.contains(t);if(n||i){P(n?-1:1)}else if(E.yearElements.indexOf(t)>=0){t.select()}else if(t.classList.contains("arrowUp")){E.changeYear(E.currentYear+1)}else if(t.classList.contains("arrowDown")){E.changeYear(E.currentYear-1)}}function xe(e){e.preventDefault();var t=e.type==="keydown",n=He(e),i=n;if(E.amPM!==undefined&&n===E.amPM){E.amPM.textContent=E.l10n.amPM[Oe(E.amPM.textContent===E.l10n.amPM[0])]}var r=parseFloat(i.getAttribute("min")),o=parseFloat(i.getAttribute("max")),a=parseFloat(i.getAttribute("step")),s=parseInt(i.value,10),l=e.delta||(t?e.which===38?1:-1:0);var u=s+a*l;if(typeof i.value!=="undefined"&&i.value.length===2){var c=i===E.hourElement,f=i===E.minuteElement;if(uo){u=i===E.hourElement?u-o-Oe(!E.amPM):r;if(f)y(undefined,1,E.hourElement)}if(E.amPM&&c&&(a===1?u+s===23:Math.abs(u-s)>a)){E.amPM.textContent=E.l10n.amPM[Oe(E.amPM.textContent===E.l10n.amPM[0])]}i.value=Ae(u)}}e();return E}function n(e,t){var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement});var i=[];for(var r=0;r=a){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}}};v.jQueryDetection(),g();var y="alert",b="4.6.0",w="bs.alert",_="."+w,C=".data-api",x=m["default"].fn[y],E='[data-dismiss="alert"]',T="close"+_,D="closed"+_,S="click"+_+C,k="alert",A="fade",O="show",I=function(){function i(e){this._element=e}var e=i.prototype;e.close=function e(t){var n=this._element;if(t){n=this._getRootElement(t)}var i=this._triggerCloseEvent(n);if(i.isDefaultPrevented()){return}this._removeElement(n)};e.dispose=function e(){m["default"].removeData(this._element,w);this._element=null};e._getRootElement=function e(t){var n=v.getSelectorFromElement(t);var i=false;if(n){i=document.querySelector(n)}if(!i){i=m["default"](t).closest("."+k)[0]}return i};e._triggerCloseEvent=function e(t){var n=m["default"].Event(T);m["default"](t).trigger(n);return n};e._removeElement=function e(t){var n=this;m["default"](t).removeClass(O);if(!m["default"](t).hasClass(A)){this._destroyElement(t);return}var i=v.getTransitionDurationFromElement(t);m["default"](t).one(v.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(i)};e._destroyElement=function e(t){m["default"](t).detach().trigger(D).remove()};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this);var t=e.data(w);if(!t){t=new i(this);e.data(w,t)}if(n==="close"){t[n](this)}})};i._handleDismiss=function e(t){return function(e){if(e){e.preventDefault()}t.close(this)}};o(i,null,[{key:"VERSION",get:function e(){return b}}]);return i}();m["default"](document).on(S,E,I._handleDismiss(new I)),m["default"].fn[y]=I._jQueryInterface,m["default"].fn[y].Constructor=I,m["default"].fn[y].noConflict=function(){m["default"].fn[y]=x;return I._jQueryInterface};var M="button",N="4.6.0",j="bs.button",L="."+j,P=".data-api",$=m["default"].fn[M],H="active",F="btn",q="focus",R='[data-toggle^="button"]',B='[data-toggle="buttons"]',W='[data-toggle="button"]',U='[data-toggle="buttons"] .btn',z='input:not([type="hidden"])',Y=".active",K=".btn",G="click"+L+P,Q="focus"+L+P+" "+("blur"+L+P),X="load"+L+P,V=function(){function r(e){this._element=e;this.shouldAvoidTriggerChange=false}var e=r.prototype;e.toggle=function e(){var t=true;var n=true;var i=m["default"](this._element).closest(B)[0];if(i){var r=this._element.querySelector(z);if(r){if(r.type==="radio"){if(r.checked&&this._element.classList.contains(H)){t=false}else{var o=i.querySelector(Y);if(o){m["default"](o).removeClass(H)}}}if(t){if(r.type==="checkbox"||r.type==="radio"){r.checked=!this._element.classList.contains(H)}if(!this.shouldAvoidTriggerChange){m["default"](r).trigger("change")}}r.focus();n=false}}if(!(this._element.hasAttribute("disabled")||this._element.classList.contains("disabled"))){if(n){this._element.setAttribute("aria-pressed",!this._element.classList.contains(H))}if(t){m["default"](this._element).toggleClass(H)}}};e.dispose=function e(){m["default"].removeData(this._element,j);this._element=null};r._jQueryInterface=function e(n,i){return this.each(function(){var e=m["default"](this);var t=e.data(j);if(!t){t=new r(this);e.data(j,t)}t.shouldAvoidTriggerChange=i;if(n==="toggle"){t[n]()}})};o(r,null,[{key:"VERSION",get:function e(){return N}}]);return r}();m["default"](document).on(G,R,function(e){var t=e.target;var n=t;if(!m["default"](t).hasClass(F)){t=m["default"](t).closest(K)[0]}if(!t||t.hasAttribute("disabled")||t.classList.contains("disabled")){e.preventDefault()}else{var i=t.querySelector(z);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled"))){e.preventDefault();return}if(n.tagName==="INPUT"||t.tagName!=="LABEL"){V._jQueryInterface.call(m["default"](t),"toggle",n.tagName==="INPUT")}}}).on(Q,R,function(e){var t=m["default"](e.target).closest(K)[0];m["default"](t).toggleClass(q,/^focus(in)?$/.test(e.type))}),m["default"](window).on(X,function(){var e=[].slice.call(document.querySelectorAll(U));for(var t=0,n=e.length;t0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var e=a.prototype;e.next=function e(){if(!this._isSliding){this._slide(ce)}};e.nextWhenVisible=function e(){var t=m["default"](this._element);if(!document.hidden&&t.is(":visible")&&t.css("visibility")!=="hidden"){this.next()}};e.prev=function e(){if(!this._isSliding){this._slide(fe)}};e.pause=function e(t){if(!t){this._isPaused=true}if(this._element.querySelector(Fe)){v.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};e.cycle=function e(t){if(!t){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._updateInterval();this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};e.to=function e(t){var n=this;this._activeElement=this._element.querySelector(Pe);var i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0){return}if(this._isSliding){m["default"](this._element).one(me,function(){return n.to(t)});return}if(i===t){this.pause();this.cycle();return}var r=t>i?ce:fe;this._slide(r,this._items[t])};e.dispose=function e(){m["default"](this._element).off(te);m["default"].removeData(this._element,ee);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};e._getConfig=function e(t){t=s({},le,t);v.typeCheckConfig(J,t,ue);return t};e._handleSwipe=function e(){var t=Math.abs(this.touchDeltaX);if(t<=se){return}var n=t/this.touchDeltaX;this.touchDeltaX=0;if(n>0){this.prev()}if(n<0){this.next()}};e._addEventListeners=function e(){var t=this;if(this._config.keyboard){m["default"](this._element).on(ge,function(e){return t._keydown(e)})}if(this._config.pause==="hover"){m["default"](this._element).on(ve,function(e){return t.pause(e)}).on(ye,function(e){return t.cycle(e)})}if(this._config.touch){this._addTouchEventListeners()}};e._addTouchEventListeners=function e(){var n=this;if(!this._touchSupported){return}var t=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchStartX=t.originalEvent.clientX}else if(!n._pointerEvent){n.touchStartX=t.originalEvent.touches[0].clientX}};var i=function e(t){if(t.originalEvent.touches&&t.originalEvent.touches.length>1){n.touchDeltaX=0}else{n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}};var r=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchDeltaX=t.originalEvent.clientX-n.touchStartX}n._handleSwipe();if(n._config.pause==="hover"){n.pause();if(n.touchTimeout){clearTimeout(n.touchTimeout)}n.touchTimeout=setTimeout(function(e){return n.cycle(e)},ae+n._config.interval)}};m["default"](this._element.querySelectorAll(He)).on(Ee,function(e){return e.preventDefault()});if(this._pointerEvent){m["default"](this._element).on(Ce,function(e){return t(e)});m["default"](this._element).on(xe,function(e){return r(e)});this._element.classList.add(je)}else{m["default"](this._element).on(be,function(e){return t(e)});m["default"](this._element).on(we,function(e){return i(e)});m["default"](this._element).on(_e,function(e){return r(e)})}};e._keydown=function e(t){if(/input|textarea/i.test(t.target.tagName)){return}switch(t.which){case re:t.preventDefault();this.prev();break;case oe:t.preventDefault();this.next();break}};e._getItemIndex=function e(t){this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll($e)):[];return this._items.indexOf(t)};e._getItemByDirection=function e(t,n){var i=t===ce;var r=t===fe;var o=this._getItemIndex(n);var a=this._items.length-1;var s=r&&o===0||i&&o===a;if(s&&!this._config.wrap){return n}var l=t===fe?-1:1;var u=(o+l)%this._items.length;return u===-1?this._items[this._items.length-1]:this._items[u]};e._triggerSlideEvent=function e(t,n){var i=this._getItemIndex(t);var r=this._getItemIndex(this._element.querySelector(Pe));var o=m["default"].Event(he,{relatedTarget:t,direction:n,from:r,to:i});m["default"](this._element).trigger(o);return o};e._setActiveIndicatorElement=function e(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Le));m["default"](n).removeClass(ke);var i=this._indicatorsElement.children[this._getItemIndex(t)];if(i){m["default"](i).addClass(ke)}}};e._updateInterval=function e(){var t=this._activeElement||this._element.querySelector(Pe);if(!t){return}var n=parseInt(t.getAttribute("data-interval"),10);if(n){this._config.defaultInterval=this._config.defaultInterval||this._config.interval;this._config.interval=n}else{this._config.interval=this._config.defaultInterval||this._config.interval}};e._slide=function e(t,n){var i=this;var r=this._element.querySelector(Pe);var o=this._getItemIndex(r);var a=n||r&&this._getItemByDirection(t,r);var s=this._getItemIndex(a);var l=Boolean(this._interval);var u;var c;var f;if(t===ce){u=Ie;c=Me;f=de}else{u=Oe;c=Ne;f=pe}if(a&&m["default"](a).hasClass(ke)){this._isSliding=false;return}var d=this._triggerSlideEvent(a,f);if(d.isDefaultPrevented()){return}if(!r||!a){return}this._isSliding=true;if(l){this.pause()}this._setActiveIndicatorElement(a);this._activeElement=a;var p=m["default"].Event(me,{relatedTarget:a,direction:f,from:o,to:s});if(m["default"](this._element).hasClass(Ae)){m["default"](a).addClass(c);v.reflow(a);m["default"](r).addClass(u);m["default"](a).addClass(u);var h=v.getTransitionDurationFromElement(r);m["default"](r).one(v.TRANSITION_END,function(){m["default"](a).removeClass(u+" "+c).addClass(ke);m["default"](r).removeClass(ke+" "+c+" "+u);i._isSliding=false;setTimeout(function(){return m["default"](i._element).trigger(p)},0)}).emulateTransitionEnd(h)}else{m["default"](r).removeClass(ke);m["default"](a).addClass(ke);this._isSliding=false;m["default"](this._element).trigger(p)}if(l){this.cycle()}};a._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this).data(ee);var t=s({},le,m["default"](this).data());if(typeof i==="object"){t=s({},t,i)}var n=typeof i==="string"?i:t.slide;if(!e){e=new a(this,t);m["default"](this).data(ee,e)}if(typeof i==="number"){e.to(i)}else if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}else if(t.interval&&t.ride){e.pause();e.cycle()}})};a._dataApiClickHandler=function e(t){var n=v.getSelectorFromElement(this);if(!n){return}var i=m["default"](n)[0];if(!i||!m["default"](i).hasClass(Se)){return}var r=s({},m["default"](i).data(),m["default"](this).data());var o=this.getAttribute("data-slide-to");if(o){r.interval=false}a._jQueryInterface.call(m["default"](i),r);if(o){m["default"](i).data(ee).to(o)}t.preventDefault()};o(a,null,[{key:"VERSION",get:function e(){return Z}},{key:"Default",get:function e(){return le}}]);return a}();m["default"](document).on(De,Re,Ue._dataApiClickHandler),m["default"](window).on(Te,function(){var e=[].slice.call(document.querySelectorAll(Be));for(var t=0,n=e.length;t0){this._selector=a;this._triggerArray.push(o)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var e=c.prototype;e.toggle=function e(){if(m["default"](this._element).hasClass(rt)){this.hide()}else{this.show()}};e.show=function e(){var t=this;if(this._isTransitioning||m["default"](this._element).hasClass(rt)){return}var n;var i;if(this._parent){n=[].slice.call(this._parent.querySelectorAll(ct)).filter(function(e){if(typeof t._config.parent==="string"){return e.getAttribute("data-parent")===t._config.parent}return e.classList.contains(ot)});if(n.length===0){n=null}}if(n){i=m["default"](n).not(this._selector).data(Ke);if(i&&i._isTransitioning){return}}var r=m["default"].Event(Ze);m["default"](this._element).trigger(r);if(r.isDefaultPrevented()){return}if(n){c._jQueryInterface.call(m["default"](n).not(this._selector),"hide");if(!i){m["default"](n).data(Ke,null)}}var o=this._getDimension();m["default"](this._element).removeClass(ot).addClass(at);this._element.style[o]=0;if(this._triggerArray.length){m["default"](this._triggerArray).removeClass(st).attr("aria-expanded",true)}this.setTransitioning(true);var a=function e(){m["default"](t._element).removeClass(at).addClass(ot+" "+rt);t._element.style[o]="";t.setTransitioning(false);m["default"](t._element).trigger(et)};var s=o[0].toUpperCase()+o.slice(1);var l="scroll"+s;var u=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,a).emulateTransitionEnd(u);this._element.style[o]=this._element[l]+"px"};e.hide=function e(){var t=this;if(this._isTransitioning||!m["default"](this._element).hasClass(rt)){return}var n=m["default"].Event(tt);m["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px";v.reflow(this._element);m["default"](this._element).addClass(at).removeClass(ot+" "+rt);var r=this._triggerArray.length;if(r>0){for(var o=0;o0};e._getOffset=function e(){var t=this;var n={};if(typeof this._config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{});return e}}else{n.offset=this._config.offset}return n};e._getPopperConfig=function e(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){t.modifiers.applyStyle={enabled:false}}return s({},t,this._config.popperConfig)};c._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this).data(mt);var t=typeof n==="object"?n:null;if(!e){e=new c(this,t);m["default"](this).data(mt,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};c._clearMenus=function e(t){if(t&&(t.which===Et||t.type==="keyup"&&t.which!==_t)){return}var n=[].slice.call(document.querySelectorAll(Rt));for(var i=0,r=n.length;i0){o--}if(t.which===xt&&odocument.documentElement.clientHeight;if(!i){this._element.style.overflowY="hidden"}this._element.classList.add(An);var r=v.getTransitionDurationFromElement(this._dialog);m["default"](this._element).off(v.TRANSITION_END);m["default"](this._element).one(v.TRANSITION_END,function(){t._element.classList.remove(An);if(!i){m["default"](t._element).one(v.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,r)}}).emulateTransitionEnd(r);this._element.focus()};e._showElement=function e(t){var n=this;var i=m["default"](this._element).hasClass(Sn);var r=this._dialog?this._dialog.querySelector(In):null;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){document.body.appendChild(this._element)}this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");if(m["default"](this._dialog).hasClass(xn)&&r){r.scrollTop=0}else{this._element.scrollTop=0}if(i){v.reflow(this._element)}m["default"](this._element).addClass(kn);if(this._config.focus){this._enforceFocus()}var o=m["default"].Event(mn,{relatedTarget:t});var a=function e(){if(n._config.focus){n._element.focus()}n._isTransitioning=false;m["default"](n._element).trigger(o)};if(i){var s=v.getTransitionDurationFromElement(this._dialog);m["default"](this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else{a()}};e._enforceFocus=function e(){var t=this;m["default"](document).off(gn).on(gn,function(e){if(document!==e.target&&t._element!==e.target&&m["default"](t._element).has(e.target).length===0){t._element.focus()}})};e._setEscapeEvent=function e(){var t=this;if(this._isShown){m["default"](this._element).on(bn,function(e){if(t._config.keyboard&&e.which===ln){e.preventDefault();t.hide()}else if(!t._config.keyboard&&e.which===ln){t._triggerBackdropTransition()}})}else if(!this._isShown){m["default"](this._element).off(bn)}};e._setResizeEvent=function e(){var t=this;if(this._isShown){m["default"](window).on(vn,function(e){return t.handleUpdate(e)})}else{m["default"](window).off(vn)}};e._hideModal=function e(){var t=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._showBackdrop(function(){m["default"](document.body).removeClass(Dn);t._resetAdjustments();t._resetScrollbar();m["default"](t._element).trigger(pn)})};e._removeBackdrop=function e(){if(this._backdrop){m["default"](this._backdrop).remove();this._backdrop=null}};e._showBackdrop=function e(t){var n=this;var i=m["default"](this._element).hasClass(Sn)?Sn:"";if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=Tn;if(i){this._backdrop.classList.add(i)}m["default"](this._backdrop).appendTo(document.body);m["default"](this._element).on(yn,function(e){if(n._ignoreBackdropClick){n._ignoreBackdropClick=false;return}if(e.target!==e.currentTarget){return}if(n._config.backdrop==="static"){n._triggerBackdropTransition()}else{n.hide()}});if(i){v.reflow(this._backdrop)}m["default"](this._backdrop).addClass(kn);if(!t){return}if(!i){t();return}var r=v.getTransitionDurationFromElement(this._backdrop);m["default"](this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){m["default"](this._backdrop).removeClass(kn);var o=function e(){n._removeBackdrop();if(t){t()}};if(m["default"](this._element).hasClass(Sn)){var a=v.getTransitionDurationFromElement(this._backdrop);m["default"](this._backdrop).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}}else if(t){t()}};e._adjustDialog=function e(){var t=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&t){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!t){this._element.style.paddingRight=this._scrollbarWidth+"px"}};e._resetAdjustments=function e(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};e._checkScrollbar=function e(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)'+'
'+'
',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:true,sanitizeFn:null,whiteList:Fn,popperConfig:null},ti="show",ni="out",ii={HIDE:"hide"+Kn,HIDDEN:"hidden"+Kn,SHOW:"show"+Kn,SHOWN:"shown"+Kn,INSERTED:"inserted"+Kn,CLICK:"click"+Kn,FOCUSIN:"focusin"+Kn,FOCUSOUT:"focusout"+Kn,MOUSEENTER:"mouseenter"+Kn,MOUSELEAVE:"mouseleave"+Kn},ri="fade",oi="show",ai=".tooltip-inner",si=".arrow",li="hover",ui="focus",ci="click",fi="manual",di=function(){function r(e,t){if(typeof d["default"]==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=e;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var e=r.prototype;e.enable=function e(){this._isEnabled=true};e.disable=function e(){this._isEnabled=false};e.toggleEnabled=function e(){this._isEnabled=!this._isEnabled};e.toggle=function e(t){if(!this._isEnabled){return}if(t){var n=this.constructor.DATA_KEY;var i=m["default"](t.currentTarget).data(n);if(!i){i=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(n,i)}i._activeTrigger.click=!i._activeTrigger.click;if(i._isWithActiveTrigger()){i._enter(null,i)}else{i._leave(null,i)}}else{if(m["default"](this.getTipElement()).hasClass(oi)){this._leave(null,this);return}this._enter(null,this)}};e.dispose=function e(){clearTimeout(this._timeout);m["default"].removeData(this.element,this.constructor.DATA_KEY);m["default"](this.element).off(this.constructor.EVENT_KEY);m["default"](this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);if(this.tip){m["default"](this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};e.show=function e(){var n=this;if(m["default"](this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var t=m["default"].Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){m["default"](this.element).trigger(t);var i=v.findShadowRoot(this.element);var r=m["default"].contains(i!==null?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r){return}var o=this.getTipElement();var a=v.getUID(this.constructor.NAME);o.setAttribute("id",a);this.element.setAttribute("aria-describedby",a);this.setContent();if(this.config.animation){m["default"](o).addClass(ri)}var s=typeof this.config.placement==="function"?this.config.placement.call(this,o,this.element):this.config.placement;var l=this._getAttachment(s);this.addAttachmentClass(l);var u=this._getContainer();m["default"](o).data(this.constructor.DATA_KEY,this);if(!m["default"].contains(this.element.ownerDocument.documentElement,this.tip)){m["default"](o).appendTo(u)}m["default"](this.element).trigger(this.constructor.Event.INSERTED);this._popper=new d["default"](this.element,o,this._getPopperConfig(l));m["default"](o).addClass(oi);m["default"](o).addClass(this.config.customClass);if("ontouchstart"in document.documentElement){m["default"](document.body).children().on("mouseover",null,m["default"].noop)}var c=function e(){if(n.config.animation){n._fixTransition()}var t=n._hoverState;n._hoverState=null;m["default"](n.element).trigger(n.constructor.Event.SHOWN);if(t===ni){n._leave(null,n)}};if(m["default"](this.tip).hasClass(ri)){var f=v.getTransitionDurationFromElement(this.tip);m["default"](this.tip).one(v.TRANSITION_END,c).emulateTransitionEnd(f)}else{c()}}};e.hide=function e(t){var n=this;var i=this.getTipElement();var r=m["default"].Event(this.constructor.Event.HIDE);var o=function e(){if(n._hoverState!==ti&&i.parentNode){i.parentNode.removeChild(i)}n._cleanTipClass();n.element.removeAttribute("aria-describedby");m["default"](n.element).trigger(n.constructor.Event.HIDDEN);if(n._popper!==null){n._popper.destroy()}if(t){t()}};m["default"](this.element).trigger(r);if(r.isDefaultPrevented()){return}m["default"](i).removeClass(oi);if("ontouchstart"in document.documentElement){m["default"](document.body).children().off("mouseover",null,m["default"].noop)}this._activeTrigger[ci]=false;this._activeTrigger[ui]=false;this._activeTrigger[li]=false;if(m["default"](this.tip).hasClass(ri)){var a=v.getTransitionDurationFromElement(i);m["default"](i).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}this._hoverState=""};e.update=function e(){if(this._popper!==null){this._popper.scheduleUpdate()}};e.isWithContent=function e(){return Boolean(this.getTitle())};e.addAttachmentClass=function e(t){m["default"](this.getTipElement()).addClass(Qn+"-"+t)};e.getTipElement=function e(){this.tip=this.tip||m["default"](this.config.template)[0];return this.tip};e.setContent=function e(){var t=this.getTipElement();this.setElementContent(m["default"](t.querySelectorAll(ai)),this.getTitle());m["default"](t).removeClass(ri+" "+oi)};e.setElementContent=function e(t,n){if(typeof n==="object"&&(n.nodeType||n.jquery)){if(this.config.html){if(!m["default"](n).parent().is(t)){t.empty().append(n)}}else{t.text(m["default"](n).text())}return}if(this.config.html){if(this.config.sanitize){n=Wn(n,this.config.whiteList,this.config.sanitizeFn)}t.html(n)}else{t.text(n)}};e.getTitle=function e(){var t=this.element.getAttribute("data-original-title");if(!t){t=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return t};e._getPopperConfig=function e(t){var n=this;var i={placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:si},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function e(t){if(t.originalPlacement!==t.placement){n._handlePopperPlacementChange(t)}},onUpdate:function e(t){return n._handlePopperPlacementChange(t)}};return s({},i,this.config.popperConfig)};e._getOffset=function e(){var t=this;var n={};if(typeof this.config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{});return e}}else{n.offset=this.config.offset}return n};e._getContainer=function e(){if(this.config.container===false){return document.body}if(v.isElement(this.config.container)){return m["default"](this.config.container)}return m["default"](document).find(this.config.container)};e._getAttachment=function e(t){return Zn[t.toUpperCase()]};e._setListeners=function e(){var i=this;var t=this.config.trigger.split(" ");t.forEach(function(e){if(e==="click"){m["default"](i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)})}else if(e!==fi){var t=e===li?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN;var n=e===li?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;m["default"](i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}});this._hideModalHandler=function(){if(i.element){i.hide()}};m["default"](this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);if(this.config.selector){this.config=s({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};e._fixTitle=function e(){var t=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||t!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};e._enter=function e(t,n){var i=this.constructor.DATA_KEY;n=n||m["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusin"?ui:li]=true}if(m["default"](n.getTipElement()).hasClass(oi)||n._hoverState===ti){n._hoverState=ti;return}clearTimeout(n._timeout);n._hoverState=ti;if(!n.config.delay||!n.config.delay.show){n.show();return}n._timeout=setTimeout(function(){if(n._hoverState===ti){n.show()}},n.config.delay.show)};e._leave=function e(t,n){var i=this.constructor.DATA_KEY;n=n||m["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusout"?ui:li]=false}if(n._isWithActiveTrigger()){return}clearTimeout(n._timeout);n._hoverState=ni;if(!n.config.delay||!n.config.delay.hide){n.hide();return}n._timeout=setTimeout(function(){if(n._hoverState===ni){n.hide()}},n.config.delay.hide)};e._isWithActiveTrigger=function e(){for(var t in this._activeTrigger){if(this._activeTrigger[t]){return true}}return false};e._getConfig=function e(t){var n=m["default"](this.element).data();Object.keys(n).forEach(function(e){if(Vn.indexOf(e)!==-1){delete n[e]}});t=s({},this.constructor.Default,n,typeof t==="object"&&t?t:{});if(typeof t.delay==="number"){t.delay={show:t.delay,hide:t.delay}}if(typeof t.title==="number"){t.title=t.title.toString()}if(typeof t.content==="number"){t.content=t.content.toString()}v.typeCheckConfig(Un,t,this.constructor.DefaultType);if(t.sanitize){t.template=Wn(t.template,t.whiteList,t.sanitizeFn)}return t};e._getDelegateConfig=function e(){var t={};if(this.config){for(var n in this.config){if(this.constructor.Default[n]!==this.config[n]){t[n]=this.config[n]}}}return t};e._cleanTipClass=function e(){var t=m["default"](this.getTipElement());var n=t.attr("class").match(Xn);if(n!==null&&n.length){t.removeClass(n.join(""))}};e._handlePopperPlacementChange=function e(t){this.tip=t.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(t.placement))};e._fixTransition=function e(){var t=this.getTipElement();var n=this.config.animation;if(t.getAttribute("x-placement")!==null){return}m["default"](t).removeClass(ri);this.config.animation=false;this.hide();this.show();this.config.animation=n};r._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this);var t=e.data(Yn);var n=typeof i==="object"&&i;if(!t&&/dispose|hide/.test(i)){return}if(!t){t=new r(this,n);e.data(Yn,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i]()}})};o(r,null,[{key:"VERSION",get:function e(){return zn}},{key:"Default",get:function e(){return ei}},{key:"NAME",get:function e(){return Un}},{key:"DATA_KEY",get:function e(){return Yn}},{key:"Event",get:function e(){return ii}},{key:"EVENT_KEY",get:function e(){return Kn}},{key:"DefaultType",get:function e(){return Jn}}]);return r}();m["default"].fn[Un]=di._jQueryInterface,m["default"].fn[Un].Constructor=di,m["default"].fn[Un].noConflict=function(){m["default"].fn[Un]=Gn;return di._jQueryInterface};var pi="popover",hi="4.6.0",mi="bs.popover",gi="."+mi,vi=m["default"].fn[pi],yi="bs-popover",bi=new RegExp("(^|\\s)"+yi+"\\S+","g"),wi=s({},di.Default,{placement:"right",trigger:"click",content:"",template:''}),_i=s({},di.DefaultType,{content:"(string|element|function)"}),Ci="fade",xi="show",Ei=".popover-header",Ti=".popover-body",Di={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Si=function(e){a(i,e);function i(){return e.apply(this,arguments)||this}var t=i.prototype;t.isWithContent=function e(){return this.getTitle()||this._getContent()};t.addAttachmentClass=function e(t){m["default"](this.getTipElement()).addClass(yi+"-"+t)};t.getTipElement=function e(){this.tip=this.tip||m["default"](this.config.template)[0];return this.tip};t.setContent=function e(){var t=m["default"](this.getTipElement());this.setElementContent(t.find(Ei),this.getTitle());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(Ti),n);t.removeClass(Ci+" "+xi)};t._getContent=function e(){return this.element.getAttribute("data-content")||this.config.content};t._cleanTipClass=function e(){var t=m["default"](this.getTipElement());var n=t.attr("class").match(bi);if(n!==null&&n.length>0){t.removeClass(n.join(""))}};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this).data(mi);var t=typeof n==="object"?n:null;if(!e&&/dispose|hide/.test(n)){return}if(!e){e=new i(this,t);m["default"](this).data(mi,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return hi}},{key:"Default",get:function e(){return wi}},{key:"NAME",get:function e(){return pi}},{key:"DATA_KEY",get:function e(){return mi}},{key:"Event",get:function e(){return Di}},{key:"EVENT_KEY",get:function e(){return gi}},{key:"DefaultType",get:function e(){return _i}}]);return i}(di);m["default"].fn[pi]=Si._jQueryInterface,m["default"].fn[pi].Constructor=Si,m["default"].fn[pi].noConflict=function(){m["default"].fn[pi]=vi;return Si._jQueryInterface};var ki="scrollspy",Ai="4.6.0",Oi="bs.scrollspy",Ii="."+Oi,Mi=".data-api",Ni=m["default"].fn[ki],ji={offset:10,method:"auto",target:""},Li={offset:"number",method:"string",target:"(string|element)"},Pi="activate"+Ii,$i="scroll"+Ii,Hi="load"+Ii+Mi,Fi="dropdown-item",qi="active",Ri='[data-spy="scroll"]',Bi=".nav, .list-group",Wi=".nav-link",Ui=".nav-item",zi=".list-group-item",Yi=".dropdown",Ki=".dropdown-item",Gi=".dropdown-toggle",Qi="offset",Xi="position",Vi=function(){function i(e,t){var n=this;this._element=e;this._scrollElement=e.tagName==="BODY"?window:e;this._config=this._getConfig(t);this._selector=this._config.target+" "+Wi+","+(this._config.target+" "+zi+",")+(this._config.target+" "+Ki);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;m["default"](this._scrollElement).on($i,function(e){return n._process(e)});this.refresh();this._process()}var e=i.prototype;e.refresh=function e(){var t=this;var n=this._scrollElement===this._scrollElement.window?Qi:Xi;var r=this._config.method==="auto"?n:this._config.method;var o=r===Xi?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var i=[].slice.call(document.querySelectorAll(this._selector));i.map(function(e){var t;var n=v.getSelectorFromElement(e);if(n){t=document.querySelector(n)}if(t){var i=t.getBoundingClientRect();if(i.width||i.height){return[m["default"](t)[r]().top+o,n]}}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]);t._targets.push(e[1])})};e.dispose=function e(){m["default"].removeData(this._element,Oi);m["default"](this._scrollElement).off(Ii);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};e._getConfig=function e(t){t=s({},ji,typeof t==="object"&&t?t:{});if(typeof t.target!=="string"&&v.isElement(t.target)){var n=m["default"](t.target).attr("id");if(!n){n=v.getUID(ki);m["default"](t.target).attr("id",n)}t.target="#"+n}v.typeCheckConfig(ki,t,Li);return t};e._getScrollTop=function e(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};e._getScrollHeight=function e(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};e._getOffsetHeight=function e(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};e._process=function e(){var t=this._getScrollTop()+this._config.offset;var n=this._getScrollHeight();var i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n){this.refresh()}if(t>=i){var r=this._targets[this._targets.length-1];if(this._activeTarget!==r){this._activate(r)}return}if(this._activeTarget&&t0){this._activeTarget=null;this._clear();return}for(var o=this._offsets.length;o--;){var a=this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]==="undefined"||t",null==t||null==n||y.isCrossDomain(o)||(r+=""),r+='',i.method="post",i.action=o,i.target=this.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),s(e)}}.call(this),function(){var l=[].slice,u=y.matches,c=y.getData,f=y.setData,d=y.fire,p=y.stopEverything,h=y.ajax,m=y.isCrossDomain,g=y.serializeElement,v=function(e){var t=e.getAttribute("data-remote");return null!=t&&"false"!==t};y.handleRemote=function(e){var t,n,i,r,o,a,s=this;return!v(s)||(d(s,"ajax:before")?(a=s.getAttribute("data-with-credentials"),i=s.getAttribute("data-type")||"script",u(s,y.formSubmitSelector)?(t=c(s,"ujs:submit-button"),r=c(s,"ujs:submit-button-formmethod")||s.method,o=c(s,"ujs:submit-button-formaction")||s.getAttribute("action")||location.href,"GET"===r.toUpperCase()&&(o=o.replace(/\?.*$/,"")),"multipart/form-data"===s.enctype?(n=new FormData(s),null!=t&&n.append(t.name,t.value)):n=g(s,t),f(s,"ujs:submit-button",null),f(s,"ujs:submit-button-formmethod",null),f(s,"ujs:submit-button-formaction",null)):n=u(s,y.buttonClickSelector)||u(s,y.inputChangeSelector)?(r=s.getAttribute("data-method"),o=s.getAttribute("data-url"),g(s,s.getAttribute("data-params"))):(r=s.getAttribute("data-method"),o=y.href(s),s.getAttribute("data-params")),h({type:r||"GET",url:o,data:n,dataType:i,beforeSend:function(e,t){return d(s,"ajax:beforeSend",[e,t])?d(s,"ajax:send",[e]):(d(s,"ajax:stopped"),!1)},success:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:success",e)},error:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:error",e)},complete:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:complete",e)},crossDomain:m(o),withCredentials:null!=a&&"false"!==a}),p(e)):(d(s,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(e){var t=this,n=t.form;if(n)return t.name&&f(n,"ujs:submit-button",{name:t.name,value:t.value}),f(n,"ujs:formnovalidate-button",t.formNoValidate),f(n,"ujs:submit-button-formaction",t.getAttribute("formaction")),f(n,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t=(this.getAttribute("data-method")||"GET").toUpperCase(),n=this.getAttribute("data-params"),i=(e.metaKey||e.ctrlKey)&&"GET"===t&&!n;if(null!=e.button&&0!==e.button||i)return e.stopImmediatePropagation()}}.call(this),function(){var e=y.fire,t=y.delegate,n=y.getData,i=y.$,r=y.refreshCSRFTokens,o=y.CSRFProtection,a=y.loadCSPNonce,s=y.enableElement,l=y.disableElement,u=y.handleDisabledElement,c=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,p=y.formSubmitButtonClick,h=y.handleMethod;if("undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return o(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return i(y.formEnableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)}),i(y.linkDisableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)})}),t(document,y.linkDisableSelector,"ajax:complete",s),t(document,y.linkDisableSelector,"ajax:stopped",s),t(document,y.buttonDisableSelector,"ajax:complete",s),t(document,y.buttonDisableSelector,"ajax:stopped",s),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",h),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",u),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",u),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",u),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return l(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",l),t(document,y.formSubmitSelector,"ajax:complete",s),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",u),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",p),document.addEventListener("DOMContentLoaded",r),document.addEventListener("DOMContentLoaded",a),window._rails_loaded=!0},window.Rails===y&&e(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),e.exports?e.exports=y:void 0===(r="function"==typeof(i=y)?i.call(t,n,t,e):i)||(e.exports=r)}).call(this)},function(e,t,n){ /*! * bsCustomFileInput v1.3.4 (https://github.com/Johann-S/bs-custom-file-input) * Copyright 2018 - 2020 Johann-S * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE) */ e.exports=function(){"use strict";var c={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},o=3,f=function e(t){var n="";var i=t.parentNode.querySelector(c.CUSTOMFILELABEL);if(i){n=i.textContent}return n},a=function e(t){if(t.childNodes.length>0){var n=[].slice.call(t.childNodes);for(var i=0;i>10|55296,1023&n|56320))}function r(){C()}var e,p,w,o,a,h,d,m,_,l,u,C,x,s,E,g,c,v,y,T="sizzle"+ +new Date,b=n.document,D=0,i=0,S=le(),k=le(),A=le(),O=le(),I=function(e,t){return e===t&&(u=!0),0},M={}.hasOwnProperty,t=[],N=t.pop,j=t.push,L=t.push,P=t.slice,$=function(e,t){for(var n=0,i=e.length;n+~]|"+F+")"+F+"*"),K=new RegExp(F+"|>"),G=new RegExp(B),Q=new RegExp("^"+q+"$"),X={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(t=P.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){j.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(t,e,n,i){var r,o,a,s,l,u,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&(C(e),e=e||x,E)){if(11!==d&&(l=te.exec(t)))if(r=l[1]){if(9===d){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&y(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return L.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(r)),n}if(p.qsa&&!O[t+" "]&&(!g||!g.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===d&&(K.test(t)||Y.test(t))){for((f=ne.test(t)&&me(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute("id"))?s=s.replace(re,oe):e.setAttribute("id",s=T)),o=(u=h(t)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+ve(u[o]);c=u.join(",")}try{return L.apply(n,f.querySelectorAll(c)),n}catch(e){O(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function le(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function ue(e){return e[T]=!0,e}function ce(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!V.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!=x&&9===i.nodeType&&i.documentElement&&(s=(x=i).documentElement,E=!a(x),b!=x&&(n=x.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),p.scope=ce(function(e){return s.appendChild(e).appendChild(x.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(x.getElementsByClassName),p.getById=ce(function(e){return s.appendChild(e).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(ie,f);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(ie,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},c=[],g=[],(p.qsa=ee.test(x.querySelectorAll))&&(ce(function(e){var t;s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(t=x.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==x||e.ownerDocument==b&&y(b,e)?-1:t==x||t.ownerDocument==b&&y(b,t)?1:l?$(l,e)-$(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==x?-1:t==x?1:r?-1:o?1:l?$(l,e)-$(l,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]==b?-1:s[i]==b?1:0}),x},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(C(e),p.matchesSelector&&E&&!O[t+" "]&&(!c||!c.test(t))&&(!g||!g.test(t)))try{var n=v.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){O(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,f),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=se.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,n,i){return b(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?T.grep(e,function(e){return e===n!==i}):"string"!=typeof n?T.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),S.test(i[1])&&T.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=E.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=T.fn,A=T(E);var I=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=E.createDocumentFragment().appendChild(E.createElement("div")),(ce=E.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),ue.appendChild(ce),y.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",y.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",y.option=!!ue.lastChild;var he={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function me(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&D(e,t)?T.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n",""]);var ve=/<|&#?\w+;/;function ye(e,t,n,i,r){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function Oe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(G.hasData(e)&&(s=G.get(e).events))for(r in G.remove(t,"handle events"),s)for(n=0,i=s[r].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(i[0])},abort:function(){r&&r()}}});var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||T.expando+"_"+Mt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(tn,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?T(x).removeProp(i):x[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,en.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((Zt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Zt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(i)):t=E),o=!n&&[],(r=S.exec(e))?[t.createElement(r[1])]:(r=ye([e],t,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=T.css(e,"position"),c=T(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ne})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;T.fn[t]=function(e){return R(this,function(e,t,n){var i;return m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n?i?i[r]:e[t]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ve(y.pixelPosition,function(e,t){if(t)return t=Xe(e,n),ze.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(a,s){T.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){T.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var i;return m(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?T.css(e,t,r):T.style(e,t,n,r)},s,n?e:void 0,n)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0=0){return 1}}return 0}();function e(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function t(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},i)}}}var r,a=n&&window.Promise?e:t;function s(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function w(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function p(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function h(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,i=t.overflowX,r=t.overflowY;if(/(auto|scroll|overlay)/.test(n+r+i)){return e}return h(p(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var o=n&&!!(window.MSInputMethodContext&&document.documentMode),l=n&&/MSIE 10/.test(navigator.userAgent);function g(e){if(e===11){return o}if(e===10){return l}return o||l}function b(e){if(!e){return document.documentElement}var t=g(10)?document.body:null;var n=e.offsetParent||null;while(n===t&&e.nextElementSibling){n=(e=e.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&w(n,"position")==="static"){return b(n)}return n}function u(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||b(e.firstElementChild)===e}function c(e){if(e.parentNode!==null){return c(e.parentNode)}return e}function v(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?e:t;var r=n?t:e;var o=document.createRange();o.setStart(i,0);o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r)){if(u(a)){return a}return b(a)}var s=c(e);if(s.host){return v(s.host,t)}else{return v(e,c(t).host)}}function f(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=t==="top"?"scrollTop":"scrollLeft";var i=e.nodeName;if(i==="BODY"||i==="HTML"){var r=e.ownerDocument.documentElement;var o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function y(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=f(t,"top");var r=f(t,"left");var o=n?-1:1;e.top+=i*o;e.bottom+=i*o;e.left+=r*o;e.right+=r*o;return e}function d(e,t){var n=t==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function _(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function C(e){var t=e.body;var n=e.documentElement;var i=g(10)&&getComputedStyle(n);return{height:_("Height",t,n,i),width:_("Width",t,n,i)}}var x=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}},E=function(){function i(e,t){for(var n=0;n2&&arguments[2]!==undefined?arguments[2]:false;var i=g(10);var r=t.nodeName==="HTML";var o=k(e);var a=k(t);var s=h(e);var l=w(t);var u=parseFloat(l.borderTopWidth);var c=parseFloat(l.borderLeftWidth);if(n&&r){a.top=Math.max(a.top,0);a.left=Math.max(a.left,0)}var f=S({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});f.marginTop=0;f.marginLeft=0;if(!i&&r){var d=parseFloat(l.marginTop);var p=parseFloat(l.marginLeft);f.top-=u-d;f.bottom-=u-d;f.left-=c-p;f.right-=c-p;f.marginTop=d;f.marginLeft=p}if(i&&!n?t.contains(s):t===s&&s.nodeName!=="BODY"){f=y(f,t)}return f}function O(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=A(e,n);var r=Math.max(n.clientWidth,window.innerWidth||0);var o=Math.max(n.clientHeight,window.innerHeight||0);var a=!t?f(n):0;var s=!t?f(n,"left"):0;var l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return S(l)}function I(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(w(e,"position")==="fixed"){return true}var n=p(e);if(!n){return false}return I(n)}function M(e){if(!e||!e.parentElement||g()){return document.documentElement}var t=e.parentElement;while(t&&w(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function N(e,t,n,i){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var o={top:0,left:0};var a=r?M(e):v(e,m(t));if(i==="viewport"){o=O(a,r)}else{var s=void 0;if(i==="scrollParent"){s=h(p(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=A(s,a,r);if(s.nodeName==="HTML"&&!I(a)){var u=C(e.ownerDocument),c=u.height,f=u.width;o.top+=l.top-l.marginTop;o.bottom=c+l.top;o.left+=l.left-l.marginLeft;o.right=f+l.left}else{o=l}}n=n||0;var d=typeof n==="number";o.left+=d?n:n.left||0;o.top+=d?n:n.top||0;o.right-=d?n:n.right||0;o.bottom-=d?n:n.bottom||0;return o}function j(e){var t=e.width,n=e.height;return t*n}function L(e,t,i,n,r){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var a=N(i,n,o,r);var s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}};var l=Object.keys(s).map(function(e){return D({key:e},s[e],{area:j(s[e])})}).sort(function(e,t){return t.area-e.area});var u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight});var c=u.length>0?u[0].key:l[0].key;var f=e.split("-")[1];return c+(f?"-"+f:"")}function P(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=i?M(t):v(t,m(n));return A(n,r,i)}function $(e){var t=e.ownerDocument.defaultView;var n=t.getComputedStyle(e);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var o={width:e.offsetWidth+r,height:e.offsetHeight+i};return o}function H(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function F(e,t,n){n=n.split("-")[0];var i=$(e);var r={width:i.width,height:i.height};var o=["right","left"].indexOf(n)!==-1;var a=o?"top":"left";var s=o?"left":"top";var l=o?"height":"width";var u=!o?"height":"width";r[a]=t[a]+t[l]/2-i[l]/2;if(n===s){r[s]=t[s]-i[u]}else{r[s]=t[H(s)]}return r}function q(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function R(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=q(e,function(e){return e[t]===n});return e.indexOf(i)}function B(e,n,t){var i=t===undefined?e:e.slice(0,R(e,"name",t));i.forEach(function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var t=e["function"]||e.fn;if(e.enabled&&s(t)){n.offsets.popper=S(n.offsets.popper);n.offsets.reference=S(n.offsets.reference);n=t(n,e)}});return n}function W(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=F(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=B(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function U(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function z(e){var t=[false,"ms","Webkit","Moz","O"];var n=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0;ia[p]){e.offsets.popper[f]+=s[f]+h-a[p]}e.offsets.popper=S(e.offsets.popper);var m=s[f]+s[u]/2-h/2;var g=w(e.instance.popper);var v=parseFloat(g["margin"+c]);var y=parseFloat(g["border"+c+"Width"]);var b=m-e.offsets.popper[f]-v-y;b=Math.max(Math.min(a[u]-h,b),0);e.arrowElement=i;e.offsets.arrow=(n={},T(n,f,Math.round(b)),T(n,d,""),n);return e}function ue(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var ce=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],fe=ce.slice(3);function de(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=fe.indexOf(e);var i=fe.slice(n+1).concat(fe.slice(0,n));return t?i.reverse():i}var pe={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function he(m,g){if(U(m.instance.modifiers,"inner")){return m}if(m.flipped&&m.placement===m.originalPlacement){return m}var v=N(m.instance.popper,m.instance.reference,g.padding,g.boundariesElement,m.positionFixed);var y=m.placement.split("-")[0];var b=H(y);var w=m.placement.split("-")[1]||"";var _=[];switch(g.behavior){case pe.FLIP:_=[y,b];break;case pe.CLOCKWISE:_=de(y);break;case pe.COUNTERCLOCKWISE:_=de(y,true);break;default:_=g.behavior}_.forEach(function(e,t){if(y!==e||_.length===t+1){return m}y=m.placement.split("-")[0];b=H(y);var n=m.offsets.popper;var i=m.offsets.reference;var r=Math.floor;var o=y==="left"&&r(n.right)>r(i.left)||y==="right"&&r(n.left)r(i.top)||y==="bottom"&&r(n.top)r(v.right);var l=r(n.top)r(v.bottom);var c=y==="left"&&a||y==="right"&&s||y==="top"&&l||y==="bottom"&&u;var f=["top","bottom"].indexOf(y)!==-1;var d=!!g.flipVariations&&(f&&w==="start"&&a||f&&w==="end"&&s||!f&&w==="start"&&l||!f&&w==="end"&&u);var p=!!g.flipVariationsByContent&&(f&&w==="start"&&s||f&&w==="end"&&a||!f&&w==="start"&&u||!f&&w==="end"&&l);var h=d||p;if(o||c||h){m.flipped=true;if(o||c){y=_[t+1]}if(h){w=ue(w)}m.placement=y+(w?"-"+w:"");m.offsets.popper=D({},m.offsets.popper,F(m.instance.popper,m.offsets.reference,m.placement));m=B(m.instance.modifiers,m,"flip")}});return m}function me(e){var t=e.offsets,n=t.popper,i=t.reference;var r=e.placement.split("-")[0];var o=Math.floor;var a=["top","bottom"].indexOf(r)!==-1;var s=a?"right":"bottom";var l=a?"left":"top";var u=a?"width":"height";if(n[s]o(i[s])){e.offsets.popper[l]=o(i[s])}return e}function ge(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var o=+r[1];var a=r[2];if(!o){return e}if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}var l=S(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var u=void 0;if(a==="vh"){u=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{u=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return u/100*o}else{return o}}function ve(e,r,o,t){var a=[0,0];var s=["right","left"].indexOf(t)!==-1;var n=e.split(/(\+|\-)/).map(function(e){return e.trim()});var i=n.indexOf(q(n,function(e){return e.search(/,|\s/)!==-1}));if(n[i]&&n[i].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var l=/\s*,\s*|\s+/;var u=i!==-1?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];u=u.map(function(e,t){var n=(t===1?!s:s)?"height":"width";var i=false;return e.reduce(function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;i=true;return e}else if(i){e[e.length-1]+=t;i=false;return e}else{return e.concat(t)}},[]).map(function(e){return ge(e,n,r,o)})});u.forEach(function(n,i){n.forEach(function(e,t){if(Z(e)){a[i]+=e*(n[t-1]==="-"?-1:1)}})});return a}function ye(e,t){var n=t.offset;var i=e.placement,r=e.offsets,o=r.popper,a=r.reference;var s=i.split("-")[0];var l=void 0;if(Z(+n)){l=[+n,0]}else{l=ve(n,o,a,s)}if(s==="left"){o.top+=l[0];o.left-=l[1]}else if(s==="right"){o.top+=l[0];o.left+=l[1]}else if(s==="top"){o.left+=l[0];o.top-=l[1]}else if(s==="bottom"){o.left+=l[0];o.top+=l[1]}e.popper=o;return e}function be(e,r){var t=r.boundariesElement||b(e.instance.popper);if(e.instance.reference===t){t=b(t)}var n=z("transform");var i=e.instance.popper.style;var o=i.top,a=i.left,s=i[n];i.top="";i.left="";i[n]="";var l=N(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o;i.left=a;i[n]=s;r.boundaries=l;var u=r.priority;var c=e.offsets.popper;var f={primary:function e(t){var n=c[t];if(c[t]l[t]&&!r.escapeWithReference){i=Math.min(c[n],l[t]-(t==="right"?c.width:c.height))}return T({},n,i)}};u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";c=D({},c,f[t](e))});e.offsets.popper=c;return e}function we(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper;var s=["bottom","top"].indexOf(n)!==-1;var l=s?"left":"top";var u=s?"width":"height";var c={start:T({},l,o[l]),end:T({},l,o[l]+o[u]-a[u])};e.offsets.popper=D({},a,c[i])}return e}function _e(e){if(!se(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=q(e.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==undefined?arguments[2]:{};x(this,o);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=a(this.update.bind(this));this.options=D({},o.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(D({},o.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=D({},o.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(e){return D({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order});this.modifiers.forEach(function(e){if(e.enabled&&s(e.onLoad)){e.onLoad(n.reference,n.popper,n.options,e,n.state)}});this.update();var r=this.options.eventsEnabled;if(r){this.enableEventListeners()}this.state.eventsEnabled=r}E(o,[{key:"update",value:function e(){return W.call(this)}},{key:"destroy",value:function e(){return Y.call(this)}},{key:"enableEventListeners",value:function e(){return X.call(this)}},{key:"disableEventListeners",value:function e(){return J.call(this)}}]);return o}();return Te.Utils=("undefined"!=typeof window?window:De).PopperUtils,Te.placements=ce,Te.Defaults=Ee,Te}()}).call(this,n(2))},function(e,t,n){ /*! * Bootstrap Confirmation (v4.2.0) * @copyright 2013 Nimit Suwannagate * @copyright 2014-2020 Damien "Mistic" Sorel * @licence Apache License, Version 2.0 */ !function(s){"use strict";function i(e,t){for(var n=0;n\n
\n

\n
\n

\n
\n
\n
\n
\n'});if(h.whiteList){h.whiteList["*"].push("data-apply","data-dismiss")}var m={FADE:"fade",SHOW:"show"},g={TITLE:".popover-header",CONTENT:".confirmation-content",BUTTONS:".confirmation-buttons .btn-group"},v={13:"Enter",27:"Escape",39:"ArrowRight",40:"ArrowDown"},y={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u,CONFIRMED:"confirmed"+u,CANCELED:"canceled"+u,KEYUP:"keyup"+u},b,w=function(i){n(r,i);t(r,null,[{key:"VERSION",get:function e(){return a}},{key:"Default",get:function e(){return h}},{key:"NAME",get:function e(){return o}},{key:"DATA_KEY",get:function e(){return l}},{key:"Event",get:function e(){return y}},{key:"EVENT_KEY",get:function e(){return u}},{key:"DefaultType",get:function e(){return p}}]);function r(e,t){var n;n=i.call(this,e,t)||this;if((n.config.popout||n.config.singleton)&&!n.config.rootSelector){throw new Error("The rootSelector option is required to use popout and singleton features since jQuery 3.")}n._isDelegate=false;if(t.selector){t._selector=t.rootSelector+" "+t.selector;n.config._selector=t._selector}else if(t._selector){n.config._selector=t._selector;n._isDelegate=true}else{n.config._selector=t.rootSelector}if(n.config.confirmationEvent===undefined){n.config.confirmationEvent=n.config.trigger}if(!n.config.selector){n._copyAttributes()}n._setConfirmationListeners();return n}var e=r.prototype;e.isWithContent=function e(){return true};e.setContent=function e(){var t=s(this.getTipElement());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(g.TITLE),this.getTitle());t.find(g.CONTENT).toggle(!!n);if(n){this.setElementContent(t.find(g.CONTENT),n)}if(this.config.buttons.length>0){this._setButtons(t,this.config.buttons)}else{this._setStandardButtons(t)}t.removeClass(m.FADE+" "+m.SHOW);this._setupKeyupEvent()};e.dispose=function e(){s("body").off(y.CLICK+"."+this.uid);this.eventBody=false;this._cleanKeyupEvent();i.prototype.dispose.call(this)};e.hide=function e(t){this._cleanKeyupEvent();i.prototype.hide.call(this,t)};e._copyAttributes=function e(){var t=this;this.config._attributes={};if(this.config.copyAttributes){if(typeof this.config.copyAttributes==="string"){this.config.copyAttributes=this.config.copyAttributes.split(" ")}}else{this.config.copyAttributes=[]}this.config.copyAttributes.forEach(function(e){t.config._attributes[e]=s(t.element).attr(e)})};e._setConfirmationListeners=function e(){var t=this;if(!this.config.selector){s(this.element).on(this.config.trigger,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}});s(this.element).on(y.SHOWN,function(){if(t.config.singleton){s(t.config._selector).not(s(this)).filter(function(){return s(this).data(l)!==undefined}).confirmation("hide")}})}else{s(this.element).on(this.config.trigger,this.config.selector,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}})}if(!this._isDelegate){this.eventBody=false;this.uid=this.element.id||r.getUID(o+"_group");s(this.element).on(y.SHOWN,function(){if(t.config.popout&&!t.eventBody){t.eventBody=s("body").on(y.CLICK+"."+t.uid,function(e){if(s(t.config._selector).is(e.target)||s(t.config._selector).has(e.target).length>0){return}s(t.config._selector).filter(function(){return s(this).data(l)!==undefined}).confirmation("hide");s("body").off(y.CLICK+"."+t.uid);t.eventBody=false})}})}};e._setStandardButtons=function e(t){var n=[{class:this.config.btnOkClass,label:this.config.btnOkLabel,iconClass:this.config.btnOkIconClass,iconContent:this.config.btnOkIconContent,attr:this.config._attributes},{class:this.config.btnCancelClass,label:this.config.btnCancelLabel,iconClass:this.config.btnCancelIconClass,iconContent:this.config.btnCancelIconContent,cancel:true}];this._setButtons(t,n)};e._setButtons=function e(t,n){var i=this;var r=t.find(g.BUTTONS).empty();n.forEach(function(t){var e=s('').addClass(f).addClass(t["class"]||d+" btn-secondary").html(t.label||"").attr(t.attr||(t.cancel?{}:i.config._attributes));if(t.iconClass||t.iconContent){e.prepend(s("").addClass(t.iconClass||"").text(t.iconContent||""))}e.one("click",function(e){if(s(this).attr("href")==="#"){e.preventDefault()}if(t.onClick){t.onClick.call(s(i.element))}if(t.cancel){i.config.onCancel.call(i.element,t.value);s(i.element).trigger(y.CANCELED,[t.value])}else{i.config.onConfirm.call(i.element,t.value);s(i.element).trigger(y.CONFIRMED,[t.value]);s(i.element).trigger(i.config.confirmationEvent,[true])}i.hide()});r.append(e)})};e._setupKeyupEvent=function e(){b=this;s(window).off(y.KEYUP).on(y.KEYUP,this._onKeyup.bind(this))};e._cleanKeyupEvent=function e(){if(b===this){b=undefined;s(window).off(y.KEYUP)}};e._onKeyup=function e(t){if(!this.tip){this._cleanKeyupEvent();return}var n=s(this.getTipElement());var i=t.key||v[t.keyCode||t.which];var r=n.find(g.BUTTONS);var o=r.find(".active");var a;switch(i){case"Escape":this.hide();break;case"ArrowRight":if(o.length&&o.next().length){a=o.next()}else{a=r.children().first()}o.removeClass("active");a.addClass("active").focus();break;case"ArrowLeft":if(o.length&&o.prev().length){a=o.prev()}else{a=r.children().last()}o.removeClass("active");a.addClass("active").focus();break}};r.getUID=function e(t){var n=t;do{n+=~~(Math.random()*1e6)}while(document.getElementById(n));return n};r._jQueryInterface=function e(n){return this.each(function(){var e=s(this).data(l);var t=typeof n==="object"?n:{};t.rootSelector=s(this).selector||t.rootSelector;if(!e&&/destroy|hide/.test(n)){return}if(!e){e=new r(this,t);s(this).data(l,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};return r}(r);s.fn[o]=w._jQueryInterface,s.fn[o].Constructor=w,s.fn[o].noConflict=function(){s.fn[o]=c;return w._jQueryInterface}}(n(0),n(3))},function(e,t,n){var i,r,o; /*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */r=[n(0)],void 0===(o="function"==typeof(i=function(c){var l="Close",u="BeforeClose",n="AfterClose",i="BeforeAppend",f="MarkupParse",d="Open",r="Change",o="mfp",p="."+o,h="mfp-ready",a="mfp-removing",s="mfp-prevent-close",m,e=function(){},g=!!window.jQuery,v,y=c(window),b,w,_,t,C=function(e,t){m.ev.on(o+e+p,t)},x=function(e,t,n,i){var r=document.createElement("div");r.className="mfp-"+e;if(n){r.innerHTML=n}if(!i){r=c(r);if(t){r.appendTo(t)}}else if(t){t.appendChild(r)}return r},E=function(e,t){m.ev.triggerHandler(o+e,t);if(m.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(m.st.callbacks[e]){m.st.callbacks[e].apply(m,c.isArray(t)?t:[t])}}},T=function(e){if(e!==t||!m.currTemplate.closeBtn){m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose));t=e}return m.currTemplate.closeBtn},D=function(){if(!c.magnificPopup.instance){m=new e;m.init();c.magnificPopup.instance=m}},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(e["transition"]!==undefined){return true}while(t.length){if(t.pop()+"Transition"in e){return true}}return false};e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener;m.isAndroid=/android/gi.test(e);m.isIOS=/iphone|ipad|ipod/gi.test(e);m.supportsTransition=S();m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);b=c(document);m.popupsCache={}},open:function(e){var t;if(e.isObj===false){m.items=e.items.toArray();m.index=0;var n=e.items,i;for(t=0;t(e||y.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!c.contains(m.wrap[0],e.target)){m._setFocus();return false}},_parseMarkup:function(r,e,t){var o;if(t.data){e=c.extend(t.data,e)}E(f,[r,e,t]);c.each(e,function(e,t){if(t===undefined||t===false){return true}o=e.split("_");if(o.length>1){var n=r.find(p+"-"+o[0]);if(n.length>0){var i=o[1];if(i==="replaceWith"){if(n[0]!==t[0]){n.replaceWith(t)}}else if(i==="img"){if(n.is("img")){n.attr("src",t)}else{n.replaceWith(c("").attr("src",t).attr("class",n.attr("class")))}}else{n.attr(o[1],t)}}}else{r.find(p+"-"+e).html(t)}})},_getScrollbarSize:function(){if(m.scrollbarSize===undefined){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(e);m.scrollbarSize=e.offsetWidth-e.clientWidth;document.body.removeChild(e)}return m.scrollbarSize}},c.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){D();if(!e){e={}}else{e=c.extend(true,{},e)}e.isObj=true;e.index=t||0;return this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){if(t.options){c.magnificPopup.defaults[e]=t.options}c.extend(this.proto,t.proto);this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:true}},c.fn.magnificPopup=function(e){D();var t=c(this);if(typeof e==="string"){if(e==="open"){var n,i=g?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;if(i.items){n=i.items[r]}else{n=t;if(i.delegate){n=n.find(i.delegate)}n=n.eq(r)}m._openClick({mfpEl:n},t,i)}else{if(m.isOpen)m[e].apply(m,Array.prototype.slice.call(arguments,1))}}else{e=c.extend(true,{},e);if(g){t.data("magnificPopup",e)}else{t[0].magnificPopup=e}m.addGroup(t,e)}return t};var k="inline",A,O,I,M=function(){if(I){O.after(I.addClass(A)).detach();I=null}};c.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(k);C(l+"."+k,function(){M()})},getInline:function(e,t){M();if(e.src){var n=m.st.inline,i=c(e.src);if(i.length){var r=i[0].parentNode;if(r&&r.tagName){if(!O){A=n.hiddenClass;O=x(A);A="mfp-"+A}I=i.after(O).detach().removeClass(A)}m.updateStatus("ready")}else{m.updateStatus("error",n.tNotFound);i=c("
")}e.inlineElement=i;return i}m.updateStatus("ready");m._parseMarkup(t,{},e);return t}}});var N="ajax",j,L=function(){if(j){c(document.body).removeClass(j)}},P=function(){L();if(m.req){m.req.abort()}};c.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){m.types.push(N);j=m.st.ajax.cursor;C(l+"."+N,P);C("BeforeChange."+N,P)},getAjax:function(r){if(j){c(document.body).addClass(j)}m.updateStatus("loading");var e=c.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};E("ParseAjax",i);m.appendContent(c(i.data),N);r.finished=true;L();m._setFocus();setTimeout(function(){m.wrap.addClass(h)},16);m.updateStatus("ready");E("AjaxContentAdded")},error:function(){L();r.finished=r.loadError=true;m.updateStatus("error",m.st.ajax.tError.replace("%url%",r.src))}},m.st.ajax.settings);m.req=c.ajax(e);return""}}});var $,H=function(e){if(e.data&&e.data.title!==undefined)return e.data.title;var t=m.st.image.titleSrc;if(t){if(c.isFunction(t)){return t.call(m,e)}else if(e.el){return e.el.attr(t)||""}}return""};c.magnificPopup.registerModule("image",{options:{markup:'
'+'
'+"
"+'
'+"
"+'
'+'
'+'
'+"
"+"
"+"
"+"
",cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:true,tError:'The image could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image");C(d+t,function(){if(m.currItem.type==="image"&&e.cursor){c(document.body).addClass(e.cursor)}});C(l+t,function(){if(e.cursor){c(document.body).removeClass(e.cursor)}y.off("resize"+p)});C("Resize"+t,m.resizeImage);if(m.isLowIE){C("AfterChange",m.resizeImage)}},resizeImage:function(){var e=m.currItem;if(!e||!e.img)return;if(m.st.image.verticalFit){var t=0;if(m.isLowIE){t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)}e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){if(e.img){e.hasSize=true;if($){clearInterval($)}e.isCheckingImgSize=false;E("ImageHasSize",e);if(e.imgHidden){if(m.content)m.content.removeClass("mfp-loading");e.imgHidden=false}}},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){if($){clearInterval($)}$=setInterval(function(){if(i.naturalWidth>0){m._onImageHasSize(t);return}if(n>200){clearInterval($)}n++;if(n===3){r(10)}else if(n===40){r(50)}else if(n===100){r(500)}},e)};r(1)},getImage:function(e,t){var n=0,i=function(){if(e){if(e.img[0].complete){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("ready")}e.hasSize=true;e.loaded=true;E("ImageLoadComplete")}else{n++;if(n<200){setTimeout(i,100)}else{r()}}}},r=function(){if(e){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("error",o.tError.replace("%url%",e.src))}e.hasSize=true;e.loaded=true;e.loadError=true}},o=m.st.image;var a=t.find(".mfp-img");if(a.length){var s=document.createElement("img");s.className="mfp-img";if(e.el&&e.el.find("img").length){s.alt=e.el.find("img").attr("alt")}e.img=c(s).on("load.mfploader",i).on("error.mfploader",r);s.src=e.src;if(a.is("img")){e.img=e.img.clone()}s=e.img[0];if(s.naturalWidth>0){e.hasSize=true}else if(!s.width){e.hasSize=false}}m._parseMarkup(t,{title:H(e),img_replaceWith:e.img},e);m.resizeImage();if(e.hasSize){if($)clearInterval($);if(e.loadError){t.addClass("mfp-loading");m.updateStatus("error",o.tError.replace("%url%",e.src))}else{t.removeClass("mfp-loading");m.updateStatus("ready")}return t}m.updateStatus("loading");e.loading=true;if(!e.hasSize){e.imgHidden=true;t.addClass("mfp-loading");m.findImageSize(e)}return t}}});var F,q=function(){if(F===undefined){F=document.createElement("p").style.MozTransform!==undefined}return F};c.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var o=m.st.zoom,e=".zoom",t;if(!o.enabled||!m.supportsTransition){return}var n=o.duration,i=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n;t.css(i);return t},r=function(){m.content.css("visibility","visible")},a,s;C("BuildControls"+e,function(){if(m._allowZoom()){clearTimeout(a);m.content.css("visibility","hidden");t=m._getItemToZoom();if(!t){r();return}s=i(t);s.css(m._getOffset());m.wrap.append(s);a=setTimeout(function(){s.css(m._getOffset(true));a=setTimeout(function(){r();setTimeout(function(){s.remove();t=s=null;E("ZoomAnimationEnded")},16)},n)},16)}});C(u+e,function(){if(m._allowZoom()){clearTimeout(a);m.st.removalDelay=n;if(!t){t=m._getItemToZoom();if(!t){return}s=i(t)}s.css(m._getOffset(true));m.wrap.append(s);m.content.css("visibility","hidden");setTimeout(function(){s.css(m._getOffset())},16)}});C(l+e,function(){if(m._allowZoom()){r();if(s){s.remove()}t=null}})},_allowZoom:function(){return m.currItem.type==="image"},_getItemToZoom:function(){if(m.currItem.hasSize){return m.currItem.img}else{return false}},_getOffset:function(e){var t;if(e){t=m.currItem.img}else{t=m.st.zoom.opener(m.currItem.el||m.currItem)}var n=t.offset();var i=parseInt(t.css("padding-top"),10);var r=parseInt(t.css("padding-bottom"),10);n.top-=c(window).scrollTop()-i;var o={width:t.width(),height:(g?t.innerHeight():t[0].offsetHeight)-r-i};if(q()){o["-moz-transform"]=o["transform"]="translate("+n.left+"px,"+n.top+"px)"}else{o.left=n.left;o.top=n.top}return o}}});var R="iframe",B="//about:blank",W=function(e){if(m.currTemplate[R]){var t=m.currTemplate[R].find("iframe");if(t.length){if(!e){t[0].src=B}if(m.isIE8){t.css("display",e?"block":"none")}}}};c.magnificPopup.registerModule(R,{options:{markup:'
'+'
'+''+"
",srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(R);C("BeforeChange",function(e,t,n){if(t!==n){if(t===R){W()}else if(n===R){W(true)}}});C(l+"."+R,function(){W()})},getIframe:function(e,t){var n=e.src;var i=m.st.iframe;c.each(i.patterns,function(){if(n.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){n=n.substr(n.lastIndexOf(this.id)+this.id.length,n.length)}else{n=this.id.call(this,n)}}n=this.src.replace("%id%",n);return false}});var r={};if(i.srcAction){r[i.srcAction]=n}m._parseMarkup(t,r,e);m.updateStatus("ready");return t}}});var U=function(e){var t=m.items.length;if(e>t-1){return e-t}else if(e<0){return t+e}return e},z=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};c.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,e=".mfp-gallery";m.direction=true;if(!o||!o.enabled)return false;_+=" mfp-gallery";C(d+e,function(){if(o.navigateByImgClick){m.wrap.on("click"+e,".mfp-img",function(){if(m.items.length>1){m.next();return false}})}b.on("keydown"+e,function(e){if(e.keyCode===37){m.prev()}else if(e.keyCode===39){m.next()}})});C("UpdateStatus"+e,function(e,t){if(t.text){t.text=z(t.text,m.currItem.index,m.items.length)}});C(f+e,function(e,t,n,i){var r=m.items.length;n.counter=r>1?z(o.tCounter,i.index,r):""});C("BuildControls"+e,function(){if(m.items.length>1&&o.arrows&&!m.arrowLeft){var e=o.arrowMarkup,t=m.arrowLeft=c(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(s),n=m.arrowRight=c(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(s);t.click(function(){m.prev()});n.click(function(){m.next()});m.container.append(t.add(n))}});C(r+e,function(){if(m._preloadTimeout)clearTimeout(m._preloadTimeout);m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages();m._preloadTimeout=null},16)});C(l+e,function(){b.off(e);m.wrap.off("click"+e);m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=true;m.index=U(m.index+1);m.updateItemHTML()},prev:function(){m.direction=false;m.index=U(m.index-1);m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index;m.index=e;m.updateItemHTML()},preloadNearbyImages:function(){var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),i;for(i=1;i<=(m.direction?n:t);i++){m._preloadItem(m.index+i)}for(i=1;i<=(m.direction?t:n);i++){m._preloadItem(m.index-i)}},_preloadItem:function(e){e=U(e);if(m.items[e].preloaded){return}var t=m.items[e];if(!t.parsed){t=m.parseEl(e)}E("LazyLoad",t);if(t.type==="image"){t.img=c('').on("load.mfploader",function(){t.hasSize=true}).on("error.mfploader",function(){t.hasSize=true;t.loadError=true;E("LazyLoadError",t)}).attr("src",t.src)}t.preloaded=true}}});var Y="retina";c.magnificPopup.registerModule(Y,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=m.st.retina,i=n.ratio;i=!isNaN(i)?i:i();if(i>1){C("ImageHasSize"+"."+Y,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})});C("ElementParse"+"."+Y,function(e,t){t.src=n.replaceSrc(t,i)})}}}}}),D()})?i.apply(t,r):i)||(e.exports=o)},function(i,e,t){var n,r,o;r=[t(0)],void 0===(o="function"==typeof(n=function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd){var t=n.fn.select2.amd}var t;(function(){if(!t||!t.requirejs){if(!t){t={}}else{r=t} /** * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/almond/LICENSE */var e,r,c;(function(p){var o,a,h,m,g={},v={},y={},b={},n=Object.prototype.hasOwnProperty,i=[].slice,w=/\.js$/;function _(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,a,s,l,u,c,f,d,p,h=t&&t.split("/"),m=y.map,g=m&&m["*"]||{};if(e){e=e.split("/");a=e.length-1;if(y.nodeIdCompat&&w.test(e[a])){e[a]=e[a].replace(w,"")}if(e[0].charAt(0)==="."&&h){p=h.slice(0,h.length-1);e=p.concat(e)}for(c=0;c0){e.splice(c-1,2);c-=2}}}e=e.join("/")}if((h||g)&&m){n=e.split("/");for(c=n.length;c>0;c-=1){i=n.slice(0,c).join("/");if(h){for(f=h.length;f>0;f-=1){r=m[h.slice(0,f).join("/")];if(r){r=r[i];if(r){o=r;s=c;break}}}}if(o){break}if(!l&&g&&g[i]){l=g[i];u=c}}if(!o&&l){o=l;s=u}if(o){n.splice(0,s,o);e=n.join("/")}}return e}function C(t,n){return function(){var e=i.call(arguments,0);if(typeof e[0]!=="string"&&e.length===1){e.push(null)}return a.apply(p,e.concat([t,n]))}}function l(t){return function(e){return s(e,t)}}function x(t){return function(e){g[t]=e}}function E(e){if(_(v,e)){var t=v[e];delete v[e];b[e]=true;o.apply(p,t)}if(!_(g,e)&&!_(b,e)){throw new Error("No "+e)}return g[e]}function u(e){var t,n=e?e.indexOf("!"):-1;if(n>-1){t=e.substring(0,n);e=e.substring(n+1,e.length)}return[t,e]}function T(e){return e?u(e):[]}h=function(e,t){var n,i=u(e),r=i[0],o=t[1];e=i[1];if(r){r=s(r,o);n=E(r)}if(r){if(n&&n.normalize){e=n.normalize(e,l(o))}else{e=s(e,o)}}else{e=s(e,o);i=u(e);r=i[0];e=i[1];if(r){n=E(r)}}return{f:r?r+"!"+e:e,n:e,pr:r,p:n}};function t(e){return function(){return y&&y.config&&y.config[e]||{}}}m={require:function(e){return C(e)},exports:function(e){var t=g[e];if(typeof t!=="undefined"){return t}else{return g[e]={}}},module:function(e){return{id:e,uri:"",exports:g[e],config:t(e)}}};o=function(e,t,n,i){var r,o,a,s,l,u,c=[],f=typeof n,d;i=i||e;u=T(i);if(f==="undefined"||f==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(l=0;l0){e.call(arguments,i.prototype.constructor);n=r.prototype.constructor}n.apply(this,arguments)}r.displayName=i.displayName;function n(){this.constructor=o}o.prototype=new n;for(var a=0;a":">",'"':""","'":"'","/":"/"};if(typeof e!=="string"){return e}return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})};r.appendMany=function(e,t){if(o.fn.jquery.substr(0,3)==="1.7"){var n=o();o.map(t,function(e){n=n.add(e)});t=n}e.append(t)};r.__cache={};var n=0;r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");if(t==null){if(e.id){t=e.id;e.setAttribute("data-select2-id",t)}else{e.setAttribute("data-select2-id",++n);t=n.toString()}}return t};r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);if(!r.__cache[i]){r.__cache[i]={}}r.__cache[i][t]=n};r.GetData=function(e,t){var n=r.GetUniqueElementId(e);if(t){if(r.__cache[n]){if(r.__cache[n][t]!=null){return r.__cache[n][t]}return o(e).data(t)}return o(e).data(t)}else{return r.__cache[n]}};r.RemoveData=function(e){var t=r.GetUniqueElementId(e);if(r.__cache[t]!=null){delete r.__cache[t]}e.removeAttribute("data-select2-id")};return r});t.define("select2/results",["jquery","./utils"],function(h,m){function i(e,t,n){this.$element=e;this.data=n;this.options=t;i.__super__.constructor.call(this)}m.Extend(i,m.Observable);i.prototype.render=function(){var e=h('
    ');if(this.options.get("multiple")){e.attr("aria-multiselectable","true")}this.$results=e;return e};i.prototype.clear=function(){this.$results.empty()};i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear();this.hideLoading();var n=h('');var 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(e.results==null||e.results.length===0){if(this.$results.children().length===0){this.trigger("results:message",{message:"noResults"})}return}e.results=this.sort(e.results);for(var n=0;n0){t.first().trigger("mouseenter")}else{e.first().trigger("mouseenter")}this.ensureHighlightVisible()};i.prototype.setClasses=function(){var n=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});var t=n.$results.find(".select2-results__option[aria-selected]");t.each(function(){var e=h(this);var t=m.GetData(this,"data");var n=""+t.id;if(t.element!=null&&t.element.selected||t.element==null&&h.inArray(n,i)>-1){e.attr("aria-selected","true")}else{e.attr("aria-selected","false")}})})};i.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching");var n={disabled:true,loading:true,text:t(e)};var i=this.option(n);i.className+=" loading-results";this.$results.prepend(i)};i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()};i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"};var i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;if(e.element!=null&&i.call(e.element,":disabled")||e.element==null&&e.disabled){delete n["aria-selected"];n["aria-disabled"]="true"}if(e.id==null){delete n["aria-selected"]}if(e._resultId!=null){t.id=e._resultId}if(e.title){t.title=e.title}if(e.children){n.role="group";n["aria-label"]=e.text;delete n["aria-selected"]}for(var r in n){var o=n[r];t.setAttribute(r,o)}if(e.children){var a=h(t);var s=document.createElement("strong");s.className="select2-results__group";var l=h(s);this.template(e,s);var u=[];for(var c=0;c",{class:"select2-results__options select2-results__options--nested"});p.append(u);a.append(s);a.append(p)}else{this.template(e,t)}m.StoreData(t,"data",e);return t};i.prototype.bind=function(t,e){var l=this;var n=t.id+"-results";this.$results.attr("id",n);t.on("results:all",function(e){l.clear();l.append(e.data);if(t.isOpen()){l.setClasses();l.highlightFirstItem()}});t.on("results:append",function(e){l.append(e.data);if(t.isOpen()){l.setClasses()}});t.on("query",function(e){l.hideMessages();l.showLoading(e)});t.on("select",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("unselect",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("open",function(){l.$results.attr("aria-expanded","true");l.$results.attr("aria-hidden","false");l.setClasses();l.ensureHighlightVisible()});t.on("close",function(){l.$results.attr("aria-expanded","false");l.$results.attr("aria-hidden","true");l.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var e=l.getHighlightedResults();if(e.length===0){return}e.trigger("mouseup")});t.on("results:select",function(){var e=l.getHighlightedResults();if(e.length===0){return}var t=m.GetData(e[0],"data");if(e.attr("aria-selected")=="true"){l.trigger("close",{})}else{l.trigger("select",{data:t})}});t.on("results:previous",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);if(n<=0){return}var i=n-1;if(e.length===0){i=0}var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top;var a=r.offset().top;var s=l.$results.scrollTop()+(a-o);if(i===0){l.$results.scrollTop(0)}else if(a-o<0){l.$results.scrollTop(s)}});t.on("results:next",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);var i=n+1;if(i>=t.length){return}var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top+l.$results.outerHeight(false);var a=r.offset().top+r.outerHeight(false);var s=l.$results.scrollTop()+a-o;if(i===0){l.$results.scrollTop(0)}else if(a>o){l.$results.scrollTop(s)}});t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(e){l.displayMessage(e)});if(h.fn.mousewheel){this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop();var n=l.$results.get(0).scrollHeight-t+e.deltaY;var i=e.deltaY>0&&t-e.deltaY<=0;var r=e.deltaY<0&&n<=l.$results.height();if(i){l.$results.scrollTop(0);e.preventDefault();e.stopPropagation()}else if(r){l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height());e.preventDefault();e.stopPropagation()}})}this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this);var n=m.GetData(this,"data");if(t.attr("aria-selected")==="true"){if(l.options.get("multiple")){l.trigger("unselect",{originalEvent:e,data:n})}else{l.trigger("close",{})}return}l.trigger("select",{originalEvent:e,data:n})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=m.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted");l.trigger("results:focus",{data:t,element:h(this)})})};i.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e};i.prototype.destroy=function(){this.$results.remove()};i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(e.length===0){return}var t=this.$results.find("[aria-selected]");var n=t.index(e);var i=this.$results.offset().top;var r=e.offset().top;var o=this.$results.scrollTop()+(r-i);var a=r-i;o-=e.outerHeight(false)*2;if(n<=2){this.$results.scrollTop(0)}else if(a>this.$results.outerHeight()||a<0){this.$results.scrollTop(o)}};i.prototype.template=function(e,t){var n=this.options.get("templateResult");var i=this.options.get("escapeMarkup");var r=n(e,t);if(r==null){t.style.display="none"}else if(typeof r==="string"){t.innerHTML=i(r)}else{h(t).append(r)}};return i});t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e});t.define("select2/selection/base",["jquery","../utils","../keys"],function(r,o,a){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}o.Extend(n,o.Observable);n.prototype.render=function(){var e=r('");this._tabindex=0;if(o.GetData(this.$element[0],"old-tabindex")!=null){this._tabindex=o.GetData(this.$element[0],"old-tabindex")}else if(this.$element.attr("tabindex")!=null){this._tabindex=this.$element.attr("tabindex")}e.attr("title",this.$element.attr("title"));e.attr("tabindex",this._tabindex);e.attr("aria-disabled","false");this.$selection=e;return e};n.prototype.bind=function(e,t){var n=this;var 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);if(e.which===a.SPACE){e.preventDefault()}});e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)});e.on("selection:update",function(e){n.update(e.data)});e.on("open",function(){n.$selection.attr("aria-expanded","true");n.$selection.attr("aria-owns",i);n._attachCloseHandler(e)});e.on("close",function(){n.$selection.attr("aria-expanded","false");n.$selection.removeAttr("aria-activedescendant");n.$selection.removeAttr("aria-owns");n.$selection.trigger("focus");n._detachCloseHandler(e)});e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex);n.$selection.attr("aria-disabled","false")});e.on("disable",function(){n.$selection.attr("tabindex","-1");n.$selection.attr("aria-disabled","true")})};n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){if(document.activeElement==t.$selection[0]||r.contains(t.$selection[0],document.activeElement)){return}t.trigger("blur",e)},1)};n.prototype._attachCloseHandler=function(e){r(document.body).on("mousedown.select2."+e.id,function(e){var t=r(e.target);var n=t.closest(".select2");var i=r(".select2.select2-container--open");i.each(function(){if(this==n[0]){return}var e=o.GetData(this,"element");e.select2("close")})})};n.prototype._detachCloseHandler=function(e){r(document.body).off("mousedown.select2."+e.id)};n.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)};n.prototype.destroy=function(){this._detachCloseHandler(this.container)};n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")};n.prototype.isEnabled=function(){return!this.isDisabled()};n.prototype.isDisabled=function(){return this.options.get("disabled")};return n});t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}n.Extend(r,t);r.prototype.render=function(){var e=r.__super__.render.call(this);e.addClass("select2-selection--single");e.html(''+''+''+"");return e};r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true");this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(e){if(e.which!==1){return}n.trigger("toggle",{originalEvent:e})});this.$selection.on("focus",function(e){});this.$selection.on("blur",function(e){});t.on("focus",function(e){if(!t.isOpen()){n.$selection.trigger("focus")}})};r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};r.prototype.display=function(e,t){var n=this.options.get("templateSelection");var i=this.options.get("escapeMarkup");return i(n(e,t))};r.prototype.selectionContainer=function(){return e("")};r.prototype.update=function(e){if(e.length===0){this.clear();return}var t=e[0];var n=this.$selection.find(".select2-selection__rendered");var i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;if(r){n.attr("title",r)}else{n.removeAttr("title")}};return r});t.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}l.Extend(n,e);n.prototype.render=function(){var e=n.__super__.render.call(this);e.addClass("select2-selection--multiple");e.html('
      ');return e};n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments);this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})});this.$selection.on("click",".select2-selection__choice__remove",function(e){if(r.isDisabled()){return}var t=o(this);var n=t.parent();var i=l.GetData(n[0],"data");r.trigger("unselect",{originalEvent:e,data:i})})};n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};n.prototype.display=function(e,t){var n=this.options.get("templateSelection");var i=this.options.get("escapeMarkup");return i(n(e,t))};n.prototype.selectionContainer=function(){var e=o('
    • '+''+"×"+""+"
    • ");return e};n.prototype.update=function(e){this.clear();if(e.length===0){return}var t=[];for(var n=0;n1;if(i||n){return e.call(this,t)}this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)};return t});t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(r,i,s){function e(){}e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);if(this.placeholder==null){if(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()){return}var n=this.$selection.find(".select2-selection__clear");if(n.length===0){return}t.stopPropagation();var i=s.GetData(n[0],"data");var r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};this.trigger("clear",o);if(o.prevented){this.$element.val(r);return}for(var a=0;a0||t.length===0){return}var n=this.options.get("translations").get("removeAllItems");var i=r(''+"×"+"");s.StoreData(i[0],"data",t);this.$selection.find(".select2-selection__rendered").prepend(i)};return e});t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,s,l){function e(e,t,n){e.call(this,t,n)}e.prototype.render=function(e){var t=i('");this.$searchContainer=t;this.$search=t.find("input");var n=e.call(this);this._transferTabIndex();return n};e.prototype.bind=function(e,t,n){var r=this;var i=t.id+"-results";e.call(this,t,n);t.on("open",function(){r.$search.attr("aria-controls",i);r.$search.trigger("focus")});t.on("close",function(){r.$search.val("");r.$search.removeAttr("aria-controls");r.$search.removeAttr("aria-activedescendant");r.$search.trigger("focus")});t.on("enable",function(){r.$search.prop("disabled",false);r._transferTabIndex()});t.on("disable",function(){r.$search.prop("disabled",true)});t.on("focus",function(e){r.$search.trigger("focus")});t.on("results:focus",function(e){if(e.data._resultId){r.$search.attr("aria-activedescendant",e.data._resultId)}else{r.$search.removeAttr("aria-activedescendant")}});this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)});this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)});this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation();r.trigger("keypress",e);r._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===l.BACKSPACE&&r.$search.val()===""){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var i=s.GetData(n[0],"data");r.searchRemoveChoice(i);e.preventDefault()}}});this.$selection.on("click",".select2-search--inline",function(e){if(r.$search.val()){e.stopPropagation()}});var o=document.documentMode;var a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){if(a){r.$selection.off("input.search input.searchcheck");return}r.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&e.type==="input"){r.$selection.off("input.search input.searchcheck");return}var t=e.which;if(t==l.SHIFT||t==l.CTRL||t==l.ALT){return}if(t==l.TAB){return}r.handleSearch(e)})};e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")};e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)};e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");e.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();if(n){this.$search.trigger("focus")}};e.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=false};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="";if(this.$search.attr("placeholder")!==""){e=this.$selection.find(".select2-selection__rendered").width()}else{var t=this.$search.val().length+1;e=t*.75+"em"}this.$search.css("width",e)};return e});t.define("select2/selection/eventRelay",["jquery"],function(a){function e(){}e.prototype.bind=function(e,t,n){var i=this;var r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"];var o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n);t.on("*",function(e,t){if(a.inArray(e,r)===-1){return}t=t||{};var n=a.Event("select2:"+e,{params:t});i.$element.trigger(n);if(a.inArray(e,o)===-1){return}t.prevented=n.isDefaultPrevented()})};return e});t.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}i.prototype.all=function(){return this.dict};i.prototype.get=function(e){return this.dict[e]};i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)};i._cache={};i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])};return i});t.define("select2/diacritics",[],function(){var e={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"};return e});t.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}i.Extend(n,i.Observable);n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")};n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")};n.prototype.bind=function(e,t){};n.prototype.destroy=function(){};n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";n+=i.generateChars(4);if(t.id!=null){n+="-"+t.id.toString()}else{n+="-"+i.generateChars(4)}return n};return n});t.define("select2/data/select",["./base","../utils","jquery"],function(e,s,l){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}s.Extend(n,e);n.prototype.current=function(e){var n=[];var i=this;this.$element.find(":selected").each(function(){var e=l(this);var t=i.item(e);n.push(t)});e(n)};n.prototype.select=function(r){var o=this;r.selected=true;if(l(r.element).is("option")){r.element.selected=true;this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple")){this.current(function(e){var t=[];r=[r];r.push.apply(r,e);for(var n=0;n=0){var l=n.filter(o(s));var u=this.item(l);var c=m.extend(true,{},s,u);var f=this.option(c);l.replaceWith(f);continue}var d=this.option(s);if(s.children){var p=this.convertToOptions(s.children);h.appendMany(d,p)}r.push(d)}return r};return i});t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,a){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults}n.__super__.constructor.call(this,e,t)}t.Extend(n,e);n.prototype._applyDefaults=function(e){var t={data:function(e){return a.extend({},e,{q:e.term})},transport:function(e,t,n){var i=a.ajax(e);i.then(t);i.fail(n);return i}};return a.extend({},t,e,true)};n.prototype.processResults=function(e){return e};n.prototype.query=function(n,i){var e=[];var r=this;if(this._request!=null){if(a.isFunction(this._request.abort)){this._request.abort()}this._request=null}var t=a.extend({type:"GET"},this.ajaxOptions);if(typeof t.url==="function"){t.url=t.url.call(this.$element,n)}if(typeof t.data==="function"){t.data=t.data.call(this.$element,n)}function o(){var e=t.transport(t,function(e){var t=r.processResults(e,n);if(r.options.get("debug")&&window.console&&console.error){if(!t||!t.results||!a.isArray(t.results)){console.error("Select2: The AJAX results did not return an array in the "+"`results` key of the response.")}}i(t)},function(){if("status"in e&&(e.status===0||e.status==="0")){return}r.trigger("results:message",{message:"errorLoading"})});r._request=e}if(this.ajaxOptions.delay&&n.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout)}this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)}else{o()}};return n});t.define("select2/data/tags",["jquery"],function(c){function e(e,t,n){var i=n.get("tags");var r=n.get("createTag");if(r!==undefined){this.createTag=r}var o=n.get("insertTag");if(o!==undefined){this.insertTag=o}e.call(this,t,n);if(c.isArray(i)){for(var a=0;a0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}e.call(this,t,n)};return e});t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength");e.call(this,t,n)}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,n){var i=this;this.current(function(e){var t=e!=null?e.length:0;if(i.maximumSelectionLength>0&&t>=i.maximumSelectionLength){i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}});return}if(n){n()}})};return e});t.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}e.Extend(n,e.Observable);n.prototype.render=function(){var e=t(''+''+"");e.attr("dir",this.options.get("dir"));this.$dropdown=e;return e};n.prototype.bind=function(){};n.prototype.position=function(e,t){};n.prototype.destroy=function(){this.$dropdown.remove()};return n});t.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}t.prototype.render=function(e){var t=e.call(this);var n=o(''+''+"");this.$searchContainer=n;this.$search=n.find("input");t.prepend(n);return t};t.prototype.bind=function(e,t,n){var i=this;var r=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.attr("tabindex",0);i.$search.attr("aria-controls",r);i.$search.trigger("focus");window.setTimeout(function(){i.$search.trigger("focus")},0)});t.on("close",function(){i.$search.attr("tabindex",-1);i.$search.removeAttr("aria-controls");i.$search.removeAttr("aria-activedescendant");i.$search.val("");i.$search.trigger("blur")});t.on("focus",function(){if(!t.isOpen()){i.$search.trigger("focus")}});t.on("results:all",function(e){if(e.query.term==null||e.query.term===""){var t=i.showSearch(e);if(t){i.$searchContainer.removeClass("select2-search--hide")}else{i.$searchContainer.addClass("select2-search--hide")}}});t.on("results:focus",function(e){if(e.data._resultId){i.$search.attr("aria-activedescendant",e.data._resultId)}else{i.$search.removeAttr("aria-activedescendant")}})};t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=false};t.prototype.showSearch=function(e,t){return true};return t});t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder"));e.call(this,t,n,i)}e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results);e.call(this,t)};e.prototype.normalizePlaceholder=function(e,t){if(typeof t==="string"){t={id:"",text:t}}return t};e.prototype.removePlaceholder=function(e,t){var n=t.slice(0);for(var i=t.length-1;i>=0;i--){var r=t[i];if(this.placeholder.id===r.id){n.splice(i,1)}}return n};return e});t.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,i){this.lastParams={};e.call(this,t,n,i);this.$loadingMore=this.createLoadingMore();this.loading=false}e.prototype.append=function(e,t){this.$loadingMore.remove();this.loading=false;e.call(this,t);if(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=true});t.on("query:append",function(e){i.lastParams=e;i.loading=true});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))};e.prototype.loadMoreIfNeeded=function(){var e=i.contains(document.documentElement,this.$loadingMore[0]);if(this.loading||!e){return}var t=this.$results.offset().top+this.$results.outerHeight(false);var n=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(false);if(t+50>=n){this.loadMore()}};e.prototype.loadMore=function(){this.loading=true;var e=i.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=i("
    • ');var t=this.options.get("translations").get("loadingMore");e.html(t(this.lastParams));return e};return e});t.define("select2/dropdown/attachBody",["jquery","../utils"],function(p,s){function e(e,t,n){this.$dropdownParent=p(n.get("dropdownParent")||document.body);e.call(this,t,n)}e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);t.on("open",function(){i._showDropdown();i._attachPositioningHandler(t);i._bindContainerResultHandlers(t)});t.on("close",function(){i._hideDropdown();i._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})};e.prototype.destroy=function(e){e.call(this);this.$dropdownContainer.remove()};e.prototype.position=function(e,t,n){t.attr("class",n.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=n};e.prototype.render=function(e){var t=p("");var n=e.call(this);t.append(n);this.$dropdownContainer=t;return t};e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()};e.prototype._bindContainerResultHandlers=function(e,t){if(this._containerResultsHandlersBound){return}var 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=true};e.prototype._attachPositioningHandler=function(e,t){var n=this;var i="scroll.select2."+t.id;var r="resize.select2."+t.id;var o="orientationchange.select2."+t.id;var a=this.$container.parents().filter(s.hasScroll);a.each(function(){s.StoreData(this,"select2-scroll-position",{x:p(this).scrollLeft(),y:p(this).scrollTop()})});a.on(i,function(e){var t=s.GetData(this,"select2-scroll-position");p(this).scrollTop(t.y)});p(window).on(i+" "+r+" "+o,function(e){n._positionDropdown();n._resizeDropdown()})};e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id;var i="resize.select2."+t.id;var r="orientationchange.select2."+t.id;var o=this.$container.parents().filter(s.hasScroll);o.off(n);p(window).off(n+" "+i+" "+r)};e.prototype._positionDropdown=function(){var e=p(window);var t=this.$dropdown.hasClass("select2-dropdown--above");var n=this.$dropdown.hasClass("select2-dropdown--below");var i=null;var r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(false);var o={height:this.$container.outerHeight(false)};o.top=r.top;o.bottom=r.top+o.height;var a={height:this.$dropdown.outerHeight(false)};var s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()};var l=s.topr.bottom+a.height;var c={left:r.left,top:o.bottom};var f=this.$dropdownParent;if(f.css("position")==="static"){f=f.offsetParent()}var d={top:0,left:0};if(p.contains(document.body,f[0])||f[0].isConnected){d=f.offset()}c.top-=d.top;c.left-=d.left;if(!t&&!n){i="below"}if(!u&&l&&!t){i="above"}else if(!l&&u&&t){i="below"}if(i=="above"||t&&i!=="below"){c.top=o.top-d.top-a.height}if(i!=null){this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i);this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)}this.$dropdownContainer.css(c)};e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(false)+"px"};if(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()};return e});t.define("select2/dropdown/minimumResultsForSearch",[],function(){function r(e){var t=0;for(var n=0;n0){e.dataAdapter=y.Decorate(e.dataAdapter,E)}if(e.maximumInputLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,T)}if(e.maximumSelectionLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,D)}if(e.tags){e.dataAdapter=y.Decorate(e.dataAdapter,C)}if(e.tokenSeparators!=null||e.tokenizer!=null){e.dataAdapter=y.Decorate(e.dataAdapter,x)}if(e.query!=null){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(e.initSelection!=null){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(e.resultsAdapter==null){e.resultsAdapter=f;if(e.ajax!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,O)}if(e.placeholder!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,A)}if(e.selectOnClose){e.resultsAdapter=y.Decorate(e.resultsAdapter,N)}}if(e.dropdownAdapter==null){if(e.multiple){e.dropdownAdapter=S}else{var i=y.Decorate(S,k);e.dropdownAdapter=i}if(e.minimumResultsForSearch!==0){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,M)}if(e.closeOnSelect){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)}if(e.dropdownCssClass!=null||e.dropdownCss!=null||e.adaptDropdownCssClass!=null){var r=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,I)}if(e.selectionAdapter==null){if(e.multiple){e.selectionAdapter=p}else{e.selectionAdapter=d}if(e.placeholder!=null){e.selectionAdapter=y.Decorate(e.selectionAdapter,h)}if(e.allowClear){e.selectionAdapter=y.Decorate(e.selectionAdapter,m)}if(e.multiple){e.selectionAdapter=y.Decorate(e.selectionAdapter,g)}if(e.containerCssClass!=null||e.containerCss!=null||e.adaptContainerCssClass!=null){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language);e.language.push("en");var a=[];for(var s=0;s0){var n=c.extend(true,{},t);for(var i=t.children.length-1;i>=0;i--){var r=t.children[i];var o=u(e,r);if(o==null){n.children.splice(i,1)}}if(n.children.length>0){return n}return u(e,n)}var a=l(t.text).toUpperCase();var s=l(e.term).toUpperCase();if(a.indexOf(s)>-1){return t}return null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:y.escapeMarkup,language:{},matcher:u,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,scrollAfterSelect:false,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}};t.prototype.applyFromElement=function(e,t){var n=e.language;var i=this.defaults.language;var r=t.prop("lang");var o=t.closest("[lang]").prop("lang");var a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));e.language=a;return e};t.prototype._resolveLanguage=function(e){if(!e){return[]}if(c.isEmptyObject(e)){return[]}if(c.isPlainObject(e)){return[e]}var t;if(!c.isArray(e)){t=[e]}else{t=e}var n=[];for(var i=0;i0){var r=t[i].split("-");var o=r[0];n.push(o)}}return n};t.prototype._processTranslations=function(e,t){var n=new a;for(var i=0;i-1){continue}if(d.isPlainObject(this.options[f])){d.extend(this.options[f],c[f])}else{this.options[f]=c[f]}}return this};e.prototype.get=function(e){return this.options[e]};e.prototype.set=function(e,t){this.options[e]=t};return e});t.define("select2/core",["jquery","./options","./utils","./keys"],function(a,u,c,i){var f=function(e,t){if(c.GetData(e[0],"select2")!=null){c.GetData(e[0],"select2").destroy()}this.$element=e;this.id=this._generateId(e);t=t||{};this.options=new u(t,e);f.__super__.constructor.call(this);var n=e.attr("tabindex")||0;c.StoreData(e[0],"old-tabindex",n);e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);var a=this.options.get("dropdownAdapter");this.dropdown=new a(e,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);var s=this.options.get("resultsAdapter");this.results=new s(e,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})});e.addClass("select2-hidden-accessible");e.attr("aria-hidden","true");this._syncAttributes();c.StoreData(e[0],"select2",this);e.data("select2",this)};c.Extend(f,c.Observable);f.prototype._generateId=function(e){var t="";if(e.attr("id")!=null){t=e.attr("id")}else if(e.attr("name")!=null){t=e.attr("name")+"-"+c.generateChars(2)}else{t=c.generateChars(4)}t=t.replace(/(:|\.|\[|\]|,)/g,"");t="select2-"+t;return t};f.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));if(t!=null){e.css("width",t)}};f.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(t=="resolve"){var i=this._resolveWidth(e,"style");if(i!=null){return i}return this._resolveWidth(e,"element")}if(t=="element"){var r=e.outerWidth(false);if(r<=0){return"auto"}return r+"px"}if(t=="style"){var o=e.attr("style");if(typeof o!=="string"){return null}var a=o.split(";");for(var s=0,l=a.length;s=1){return c[1]}}return null}if(t=="computedstyle"){var f=window.getComputedStyle(e[0]);return f.width}return t};f.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)};f.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=c.bind(this._syncAttributes,this);this._syncS=c.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent("onpropertychange",this._syncA)}var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(e!=null){this._observer=new e(function(e){t._syncA();t._syncS(null,e)});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false})}else if(this.$element[0].addEventListener){this.$element[0].addEventListener("DOMAttrModified",t._syncA,false);this.$element[0].addEventListener("DOMNodeInserted",t._syncS,false);this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,false)}};f.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerSelectionEvents=function(){var n=this;var 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){if(a.inArray(e,i)!==-1){return}n.trigger(e,t)})};f.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){if(!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;if(n.isOpen()){if(t===i.ESC||t===i.TAB||t===i.UP&&e.altKey){n.close(e);e.preventDefault()}else if(t===i.ENTER){n.trigger("results:select",{});e.preventDefault()}else if(t===i.SPACE&&e.ctrlKey){n.trigger("results:toggle",{});e.preventDefault()}else if(t===i.UP){n.trigger("results:previous",{});e.preventDefault()}else if(t===i.DOWN){n.trigger("results:next",{});e.preventDefault()}}else{if(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey){n.open();e.preventDefault()}}})};f.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));if(this.isDisabled()){if(this.isOpen()){this.close()}this.trigger("disable",{})}else{this.trigger("enable",{})}};f.prototype._isChangeMutation=function(e,t){var n=false;var i=this;if(e&&e.target&&(e.target.nodeName!=="OPTION"&&e.target.nodeName!=="OPTGROUP")){return}if(!t){n=true}else if(t.addedNodes&&t.addedNodes.length>0){for(var r=0;r0){n=true}else if(a.isArray(t)){a.each(t,function(e,t){if(i._isChangeMutation(e,t)){n=true;return false}})}return n};f.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t);var i=this;if(n){this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}};f.prototype.trigger=function(e,t){var n=f.__super__.trigger;var i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(t===undefined){t={}}if(e in i){var r=i[e];var o={prevented:false,name:e,args:t};n.call(this,r,o);if(o.prevented){t.prevented=true;return}}n.call(this,e,t)};f.prototype.toggleDropdown=function(){if(this.isDisabled()){return}if(this.isOpen()){this.close()}else{this.open()}};f.prototype.open=function(){if(this.isOpen()){return}if(this.isDisabled()){return}this.trigger("query",{})};f.prototype.close=function(e){if(!this.isOpen()){return}this.trigger("close",{originalEvent:e})};f.prototype.isEnabled=function(){return!this.isDisabled()};f.prototype.isDisabled=function(){return this.options.get("disabled")};f.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")};f.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")};f.prototype.focus=function(e){if(this.hasFocus()){return}this.$container.addClass("select2-container--focus");this.trigger("focus",{})};f.prototype.enable=function(e){if(this.options.get("debug")&&window.console&&console.warn){console.warn('Select2: The `select2("enable")` method has been deprecated and will'+' be removed in later Select2 versions. Use $element.prop("disabled")'+" instead.")}if(e==null||e.length===0){e=[true]}var t=!e[0];this.$element.prop("disabled",t)};f.prototype.data=function(){if(this.options.get("debug")&&arguments.length>0&&window.console&&console.warn){console.warn('Select2: Data can no longer be set using `select2("data")`. You '+"should consider setting the value instead using `$element.val()`.")}var t=[];this.dataAdapter.current(function(e){t=e});return t};f.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.")}if(e==null||e.length===0){return this.$element.val()}var t=e[0];if(a.isArray(t)){t=a.map(t,function(e){return e.toString()})}this.$element.val(t).trigger("input").trigger("change")};f.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent("onpropertychange",this._syncA)}if(this._observer!=null){this._observer.disconnect();this._observer=null}else if(this.$element[0].removeEventListener){this.$element[0].removeEventListener("DOMAttrModified",this._syncA,false);this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,false);this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,false)}this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",c.GetData(this.$element[0],"old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");c.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};f.prototype.render=function(){var e=a(''+''+''+"");e.attr("dir",this.options.get("dir"));this.$container=e;this.$container.addClass("select2-container--"+this.options.get("theme"));c.StoreData(e[0],"element",this.$element);return e};return f});t.define("select2/compat/utils",["jquery"],function(a){function e(e,t,n){var i,r=[],o;i=a.trim(e.attr("class"));if(i){i=""+i;a(i.split(/\s+/)).each(function(){if(this.indexOf("select2-")===0){r.push(this)}})}i=a.trim(t.attr("class"));if(i){i=""+i;a(i.split(/\s+/)).each(function(){if(this.indexOf("select2-")!==0){o=n(this);if(o!=null){r.push(o)}}})}e.attr("class",r.join(" "))}return{syncCssClasses:e}});t.define("select2/compat/containerCss",["jquery","./utils"],function(a,s){function l(e){return null}function e(){}e.prototype.render=function(e){var t=e.call(this);var n=this.options.get("containerCssClass")||"";if(a.isFunction(n)){n=n(this.$element)}var i=this.options.get("adaptContainerCssClass");i=i||l;if(n.indexOf(":all:")!==-1){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);if(t!=null){return t+" "+e}return e}}var o=this.options.get("containerCss")||{};if(a.isFunction(o)){o=o(this.$element)}s.syncCssClasses(t,this.$element,i);t.css(o);t.addClass(n);return t};return e});t.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,s){function l(e){return null}function e(){}e.prototype.render=function(e){var t=e.call(this);var n=this.options.get("dropdownCssClass")||"";if(a.isFunction(n)){n=n(this.$element)}var i=this.options.get("adaptDropdownCssClass");i=i||l;if(n.indexOf(":all:")!==-1){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);if(t!=null){return t+" "+e}return e}}var o=this.options.get("dropdownCss")||{};if(a.isFunction(o)){o=o(this.$element)}s.syncCssClasses(t,this.$element,i);t.css(o);t.addClass(n);return t};return e});t.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){if(n.get("debug")&&window.console&&console.warn){console.warn("Select2: The `initSelection` option has been deprecated in favor"+" of a custom data adapter that overrides the `current` method. "+"This method is now called multiple times instead of a single "+"time when the instance is initialized. Support will be removed "+"for the `initSelection` option in future versions of Select2")}this.initSelection=n.get("initSelection");this._isInitialized=false;e.call(this,t,n)}e.prototype.current=function(e,t){var n=this;if(this._isInitialized){e.call(this,t);return}this.initSelection.call(null,this.$element,function(e){n._isInitialized=true;if(!i.isArray(e)){e=[e]}t(e)})};return e});t.define("select2/compat/inputData",["jquery","../utils"],function(a,i){function e(e,t,n){this._currentData=[];this._valueSeparator=n.get("valueSeparator")||",";if(t.prop("type")==="hidden"){if(n.get("debug")&&console&&console.warn){console.warn("Select2: Using a hidden input with Select2 is no longer "+"supported and may stop working in the future. It is recommended "+"to use a `