Current File : /home/getxxhzo/app.genicards.com/public/assets/js/front-third-party-vcard11.js
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={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:!1},o=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},a=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,r)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):void 0}function f(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),r=u("span","arrowUp"),o=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function p(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+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*a(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(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),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((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,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:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},_={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[_.w(e,t,n)]},F:function(e,t,n){return g(_.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(_.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(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)}},w=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,a=void 0===o?r:o,s=e.isMobile,l=void 0!==s&&s;return function(e,t,i){var r=i||a;return void 0===n.formatDate||l?t.split("").map((function(t,i,o){return _[t]&&"\\"!==o[i-1]?_[t](e,r,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,r)}},D=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,a=void 0===o?r:o;return function(e,t,r,o){if(0===e||e){var s,l=o||a,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)s=new Date,r=!0;else if(n&&n.parseDate)s=n.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else{for(var h=void 0,f=[],p=0,m=0,g="";p<u.length;p++){var _=u[p],w="\\"===_,D="\\"===u[p-1]||w;if(y[_]&&!D){g+=y[_];var b=new RegExp(g).exec(e);b&&(h=!0)&&f["Y"!==_?"push":"unshift"]({fn:v[_],val:b[++m]})}else w||(g+=".")}s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach((function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s})),s=h?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===r&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function b(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var M=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},C=function(e,t,n){return 3600*e+60*t+n},x=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},S={DAY:864e5};function k(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),o=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<o&&(n=o),t===r&&n===o&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},r=0,o=t;r<o.length;r++){i(o[r])}return e});var O=300;function T(m,v){var _={config:e(e({},i),Y.defaultConfig),l10n:r};function T(){var e;return(null===(e=_.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function E(e){return e.bind(_)}function A(){var e=_.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==_.calendarContainer&&(_.calendarContainer.style.visibility="hidden",_.calendarContainer.style.display="block"),void 0!==_.daysContainer){var t=(_.days.offsetWidth+1)*e.showMonths;_.daysContainer.style.width=t+"px",_.calendarContainer.style.width=t+(void 0!==_.weekWrapper?_.weekWrapper.offsetWidth:0)+"px",_.calendarContainer.style.removeProperty("visibility"),_.calendarContainer.style.removeProperty("display")}}))}function $(e){if(0===_.selectedDates.length){var t=void 0===_.config.minDate||b(new Date,_.config.minDate)>=0?new Date:new Date(_.config.minDate.getTime()),n=k(_.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),_.selectedDates=[t],_.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=p(e),i=n;void 0!==_.amPM&&n===_.amPM&&(_.amPM.textContent=_.l10n.amPM[a(_.amPM.textContent===_.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==i.value&&2===i.value.length){var h=i===_.hourElement,f=i===_.minuteElement;d<r?(d=s+d+a(!h)+(a(h)&&a(!_.amPM)),f&&W(void 0,-1,_.hourElement)):d>s&&(d=i===_.hourElement?d-s-a(!_.amPM):r,f&&W(void 0,1,_.hourElement)),_.amPM&&h&&(1===l?d+c===23:Math.abs(d-c)>l)&&(_.amPM.textContent=_.l10n.amPM[a(_.amPM.textContent===_.l10n.amPM[0])]),i.value=o(d)}}(e);var i=_._input.value;N(),Se(),_._input.value!==i&&_._debouncedChange()}function N(){if(void 0!==_.hourElement&&void 0!==_.minuteElement){var e,t,n=(parseInt(_.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(_.minuteElement.value,10)||0)%60,r=void 0!==_.secondElement?(parseInt(_.secondElement.value,10)||0)%60:0;void 0!==_.amPM&&(e=n,t=_.amPM.textContent,n=e%12+12*a(t===_.l10n.amPM[1]));var o=void 0!==_.config.minTime||_.config.minDate&&_.minDateHasTime&&_.latestSelectedDateObj&&0===b(_.latestSelectedDateObj,_.config.minDate,!0),s=void 0!==_.config.maxTime||_.config.maxDate&&_.maxDateHasTime&&_.latestSelectedDateObj&&0===b(_.latestSelectedDateObj,_.config.maxDate,!0);if(void 0!==_.config.maxTime&&void 0!==_.config.minTime&&_.config.minTime>_.config.maxTime){var l=C(_.config.minTime.getHours(),_.config.minTime.getMinutes(),_.config.minTime.getSeconds()),c=C(_.config.maxTime.getHours(),_.config.maxTime.getMinutes(),_.config.maxTime.getSeconds()),u=C(n,i,r);if(u>c&&u<l){var d=x(l);n=d[0],i=d[1],r=d[2]}}else{if(s){var h=void 0!==_.config.maxTime?_.config.maxTime:_.config.maxDate;(n=Math.min(n,h.getHours()))===h.getHours()&&(i=Math.min(i,h.getMinutes())),i===h.getMinutes()&&(r=Math.min(r,h.getSeconds()))}if(o){var f=void 0!==_.config.minTime?_.config.minTime:_.config.minDate;(n=Math.max(n,f.getHours()))===f.getHours()&&i<f.getMinutes()&&(i=f.getMinutes()),i===f.getMinutes()&&(r=Math.max(r,f.getSeconds()))}}I(n,i,r)}}function P(e){var t=e||_.latestSelectedDateObj;t&&t instanceof Date&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function I(e,t,n){void 0!==_.latestSelectedDateObj&&_.latestSelectedDateObj.setHours(e%24,t,n||0,0),_.hourElement&&_.minuteElement&&!_.isMobile&&(_.hourElement.value=o(_.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),_.minuteElement.value=o(t),void 0!==_.amPM&&(_.amPM.textContent=_.l10n.amPM[a(e>=12)]),void 0!==_.secondElement&&(_.secondElement.value=o(n)))}function L(e){var t=p(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ie(n)}function H(e,t,n,i){return t instanceof Array?t.forEach((function(t){return H(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return H(e,t,n,i)})):(e.addEventListener(t,n,i),void _._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function j(){De("onChange")}function F(e,t){var n=void 0!==e?_.parseDate(e):_.latestSelectedDateObj||(_.config.minDate&&_.config.minDate>_.now?_.config.minDate:_.config.maxDate&&_.config.maxDate<_.now?_.config.maxDate:_.now),i=_.currentYear,r=_.currentMonth;try{void 0!==n&&(_.currentYear=n.getFullYear(),_.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,_.config.errorHandler(e)}t&&_.currentYear!==i&&(De("onYearChange"),Z()),!t||_.currentYear===i&&_.currentMonth===r||De("onMonthChange"),_.redraw()}function R(e){var t=p(e);~t.className.indexOf("arrow")&&W(e,t.classList.contains("arrowUp")?1:-1)}function W(e,t,n){var i=e&&p(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,o=be("increment");o.delta=t,r&&r.dispatchEvent(o)}function U(e,t,n,i){var r=re(t,!0),o=u("span",e,t.getDate().toString());return o.dateObj=t,o.$i=i,o.setAttribute("aria-label",_.formatDate(t,_.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===b(t,_.now)&&(_.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),r?(o.tabIndex=-1,Me(t)&&(o.classList.add("selected"),_.selectedDateElem=o,"range"===_.config.mode&&(c(o,"startRange",_.selectedDates[0]&&0===b(t,_.selectedDates[0],!0)),c(o,"endRange",_.selectedDates[1]&&0===b(t,_.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===_.config.mode&&function(e){return!("range"!==_.config.mode||_.selectedDates.length<2)&&(b(e,_.selectedDates[0])>=0&&b(e,_.selectedDates[1])<=0)}(t)&&!Me(t)&&o.classList.add("inRange"),_.weekNumbers&&1===_.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&_.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+_.config.getWeek(t)+"</span>"),De("onDayCreate",o),o}function G(e){e.focus(),"range"===_.config.mode&&le(e)}function q(e){for(var t=e>0?0:_.config.showMonths-1,n=e>0?_.config.showMonths:-1,i=t;i!=n;i+=e)for(var r=_.daysContainer.children[i],o=e>0?0:r.children.length-1,a=e>0?r.children.length:-1,s=o;s!=a;s+=e){var l=r.children[s];if(-1===l.className.indexOf("hidden")&&re(l.dateObj))return l}}function z(e,t){var n=T(),i=oe(n||document.body),r=void 0!==e?e:i?n:void 0!==_.selectedDateElem&&oe(_.selectedDateElem)?_.selectedDateElem:void 0!==_.todayDateElem&&oe(_.todayDateElem)?_.todayDateElem:q(t>0?1:-1);void 0===r?_._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():_.currentMonth,i=t>0?_.config.showMonths:-1,r=t>0?1:-1,o=n-_.currentMonth;o!=i;o+=r)for(var a=_.daysContainer.children[o],s=n-_.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=r){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&re(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return G(u)}_.changeMonth(r),z(q(r),0)}(r,t):G(r)}function V(e,t){for(var n=(new Date(e,t,1).getDay()-_.l10n.firstDayOfWeek+7)%7,i=_.utils.getDaysInMonth((t-1+12)%12,e),r=_.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),a=_.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)o.appendChild(U("flatpickr-day "+s,new Date(e,t-1,c),0,d));for(c=1;c<=r;c++,d++)o.appendChild(U("flatpickr-day",new Date(e,t,c),0,d));for(var h=r+1;h<=42-n&&(1===_.config.showMonths||d%7!=0);h++,d++)o.appendChild(U("flatpickr-day "+l,new Date(e,t+1,h%r),0,d));var f=u("div","dayContainer");return f.appendChild(o),f}function B(){if(void 0!==_.daysContainer){d(_.daysContainer),_.weekNumbers&&d(_.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<_.config.showMonths;t++){var n=new Date(_.currentYear,_.currentMonth,1);n.setMonth(_.currentMonth+t),e.appendChild(V(n.getFullYear(),n.getMonth()))}_.daysContainer.appendChild(e),_.days=_.daysContainer.firstChild,"range"===_.config.mode&&1===_.selectedDates.length&&le()}}function Z(){if(!(_.config.showMonths>1||"dropdown"!==_.config.monthSelectorType)){var e=function(e){return!(void 0!==_.config.minDate&&_.currentYear===_.config.minDate.getFullYear()&&e<_.config.minDate.getMonth())&&!(void 0!==_.config.maxDate&&_.currentYear===_.config.maxDate.getFullYear()&&e>_.config.maxDate.getMonth())};_.monthsDropdownContainer.tabIndex=-1,_.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(_.currentYear,t).getMonth().toString(),n.textContent=g(t,_.config.shorthandCurrentMonth,_.l10n),n.tabIndex=-1,_.currentMonth===t&&(n.selected=!0),_.monthsDropdownContainer.appendChild(n)}}}function K(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();_.config.showMonths>1||"static"===_.config.monthSelectorType?e=u("span","cur-month"):(_.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),_.monthsDropdownContainer.setAttribute("aria-label",_.l10n.monthAriaLabel),H(_.monthsDropdownContainer,"change",(function(e){var t=p(e),n=parseInt(t.value,10);_.changeMonth(n-_.currentMonth),De("onMonthChange")})),Z(),e=_.monthsDropdownContainer);var i=f("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",_.l10n.yearAriaLabel),_.config.minDate&&r.setAttribute("min",_.config.minDate.getFullYear().toString()),_.config.maxDate&&(r.setAttribute("max",_.config.maxDate.getFullYear().toString()),r.disabled=!!_.config.minDate&&_.config.minDate.getFullYear()===_.config.maxDate.getFullYear());var o=u("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(i),n.appendChild(o),t.appendChild(n),{container:t,yearElement:r,monthElement:e}}function J(){d(_.monthNav),_.monthNav.appendChild(_.prevMonthNav),_.config.showMonths&&(_.yearElements=[],_.monthElements=[]);for(var e=_.config.showMonths;e--;){var t=K();_.yearElements.push(t.yearElement),_.monthElements.push(t.monthElement),_.monthNav.appendChild(t.container)}_.monthNav.appendChild(_.nextMonthNav)}function Q(){_.weekdayContainer?d(_.weekdayContainer):_.weekdayContainer=u("div","flatpickr-weekdays");for(var e=_.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");_.weekdayContainer.appendChild(t)}return X(),_.weekdayContainer}function X(){if(_.weekdayContainer){var e=_.l10n.firstDayOfWeek,n=t(_.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var i=_.config.showMonths;i--;)_.weekdayContainer.children[i].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+n.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function ee(e,t){void 0===t&&(t=!0);var n=t?e:e-_.currentMonth;n<0&&!0===_._hidePrevMonthArrow||n>0&&!0===_._hideNextMonthArrow||(_.currentMonth+=n,(_.currentMonth<0||_.currentMonth>11)&&(_.currentYear+=_.currentMonth>11?1:-1,_.currentMonth=(_.currentMonth+12)%12,De("onYearChange"),Z()),B(),De("onMonthChange"),Ce())}function te(e){return _.calendarContainer.contains(e)}function ne(e){if(_.isOpen&&!_.config.inline){var t=p(e),n=te(t),i=!(t===_.input||t===_.altInput||_.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(_.input)||~e.path.indexOf(_.altInput)))&&!n&&!te(e.relatedTarget),r=!_.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&r&&(_.config.allowInput&&_.setDate(_._input.value,!1,_.config.altInput?_.config.altFormat:_.config.dateFormat),void 0!==_.timeContainer&&void 0!==_.minuteElement&&void 0!==_.hourElement&&""!==_.input.value&&void 0!==_.input.value&&$(),_.close(),_.config&&"range"===_.config.mode&&1===_.selectedDates.length&&_.clear(!1))}}function ie(e){if(!(!e||_.config.minDate&&e<_.config.minDate.getFullYear()||_.config.maxDate&&e>_.config.maxDate.getFullYear())){var t=e,n=_.currentYear!==t;_.currentYear=t||_.currentYear,_.config.maxDate&&_.currentYear===_.config.maxDate.getFullYear()?_.currentMonth=Math.min(_.config.maxDate.getMonth(),_.currentMonth):_.config.minDate&&_.currentYear===_.config.minDate.getFullYear()&&(_.currentMonth=Math.max(_.config.minDate.getMonth(),_.currentMonth)),n&&(_.redraw(),De("onYearChange"),Z())}}function re(e,t){var n;void 0===t&&(t=!0);var i=_.parseDate(e,void 0,t);if(_.config.minDate&&i&&b(i,_.config.minDate,void 0!==t?t:!_.minDateHasTime)<0||_.config.maxDate&&i&&b(i,_.config.maxDate,void 0!==t?t:!_.maxDateHasTime)>0)return!1;if(!_.config.enable&&0===_.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!_.config.enable,o=null!==(n=_.config.enable)&&void 0!==n?n:_.config.disable,a=0,s=void 0;a<o.length;a++){if("function"==typeof(s=o[a])&&s(i))return r;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return r;if("string"==typeof s){var l=_.parseDate(s,void 0,!0);return l&&l.getTime()===i.getTime()?r:!r}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function oe(e){return void 0!==_.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&_.daysContainer.contains(e))}function ae(e){var t=e.target===_._input,n=_._input.value.trimEnd()!==xe();!t||!n||e.relatedTarget&&te(e.relatedTarget)||_.setDate(_._input.value,!0,e.target===_.altInput?_.config.altFormat:_.config.dateFormat)}function se(e){var t=p(e),n=_.config.wrap?m.contains(t):t===_._input,i=_.config.allowInput,r=_.isOpen&&(!i||!n),o=_.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return _.setDate(_._input.value,!0,t===_.altInput?_.config.altFormat:_.config.dateFormat),_.close(),t.blur();_.open()}else if(te(t)||r||o){var a=!!_.timeContainer&&_.timeContainer.contains(t);switch(e.keyCode){case 13:a?(e.preventDefault(),$(),me()):ge(e);break;case 27:e.preventDefault(),me();break;case 8:case 46:n&&!_.config.allowInput&&(e.preventDefault(),_.clear());break;case 37:case 39:if(a||n)_.hourElement&&_.hourElement.focus();else{e.preventDefault();var s=T();if(void 0!==_.daysContainer&&(!1===i||s&&oe(s))){var l=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),ee(l),z(q(1),0)):z(void 0,l)}}break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;_.daysContainer&&void 0!==t.$i||t===_.input||t===_.altInput?e.ctrlKey?(e.stopPropagation(),ie(_.currentYear-c),z(q(1),0)):a||z(void 0,7*c):t===_.currentYearElement?ie(_.currentYear-c):_.config.enableTime&&(!a&&_.hourElement&&_.hourElement.focus(),$(e),_._debouncedChange());break;case 9:if(a){var u=[_.hourElement,_.minuteElement,_.secondElement,_.amPM].concat(_.pluginElements).filter((function(e){return e})),d=u.indexOf(t);if(-1!==d){var h=u[d+(e.shiftKey?-1:1)];e.preventDefault(),(h||_._input).focus()}}else!_.config.noCalendar&&_.daysContainer&&_.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),_._input.focus())}}if(void 0!==_.amPM&&t===_.amPM)switch(e.key){case _.l10n.amPM[0].charAt(0):case _.l10n.amPM[0].charAt(0).toLowerCase():_.amPM.textContent=_.l10n.amPM[0],N(),Se();break;case _.l10n.amPM[1].charAt(0):case _.l10n.amPM[1].charAt(0).toLowerCase():_.amPM.textContent=_.l10n.amPM[1],N(),Se()}(n||te(t))&&De("onKeyDown",e)}function le(e,t){if(void 0===t&&(t="flatpickr-day"),1===_.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():_.days.firstElementChild.dateObj.getTime(),i=_.parseDate(_.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,_.selectedDates[0].getTime()),o=Math.max(n,_.selectedDates[0].getTime()),a=!1,s=0,l=0,c=r;c<o;c+=S.DAY)re(new Date(c),!0)||(a=a||c>r&&c<o,c<i&&(!s||c>s)?s=c:c>i&&(!l||c<l)&&(l=c));Array.from(_.rContainer.querySelectorAll("*:nth-child(-n+"+_.config.showMonths+") > ."+t)).forEach((function(t){var r=t.dateObj.getTime(),o=s>0&&r<s||l>0&&r>l;if(o)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));a&&!o||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=_.selectedDates[0].getTime()?"startRange":"endRange"),i<n&&r===i?t.classList.add("startRange"):i>n&&r===i&&t.classList.add("endRange"),r>=s&&(0===l||r<=l)&&M(r,i,n)&&t.classList.add("inRange")))}))}}function ce(){!_.isOpen||_.config.static||_.config.inline||fe()}function ue(e){return function(t){var n=_.config["_"+e+"Date"]=_.parseDate(t,_.config.dateFormat),i=_.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(_["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),_.selectedDates&&(_.selectedDates=_.selectedDates.filter((function(e){return re(e)})),_.selectedDates.length||"min"!==e||P(n),Se()),_.daysContainer&&(pe(),void 0!==n?_.currentYearElement[e]=n.getFullYear().toString():_.currentYearElement.removeAttribute(e),_.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function de(){return _.config.wrap?m.querySelector("[data-input]"):m}function he(){"object"!=typeof _.config.locale&&void 0===Y.l10ns[_.config.locale]&&_.config.errorHandler(new Error("flatpickr: invalid locale "+_.config.locale)),_.l10n=e(e({},Y.l10ns.default),"object"==typeof _.config.locale?_.config.locale:"default"!==_.config.locale?Y.l10ns[_.config.locale]:void 0),y.D="("+_.l10n.weekdays.shorthand.join("|")+")",y.l="("+_.l10n.weekdays.longhand.join("|")+")",y.M="("+_.l10n.months.shorthand.join("|")+")",y.F="("+_.l10n.months.longhand.join("|")+")",y.K="("+_.l10n.amPM[0]+"|"+_.l10n.amPM[1]+"|"+_.l10n.amPM[0].toLowerCase()+"|"+_.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===Y.defaultConfig.time_24hr&&(_.config.time_24hr=_.l10n.time_24hr),_.formatDate=w(_),_.parseDate=D({config:_.config,l10n:_.l10n})}function fe(e){if("function"!=typeof _.config.position){if(void 0!==_.calendarContainer){De("onPreCalendarPosition");var t=e||_._positionElement,n=Array.prototype.reduce.call(_.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=_.calendarContainer.offsetWidth,r=_.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===o||"below"!==o&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(_.calendarContainer,"arrowTop",!u),c(_.calendarContainer,"arrowBottom",u),!_.config.inline){var h=window.pageXOffset+s.left,f=!1,p=!1;"center"===a?(h-=(i-s.width)/2,f=!0):"right"===a&&(h-=i-s.width,p=!0),c(_.calendarContainer,"arrowLeft",!f&&!p),c(_.calendarContainer,"arrowCenter",f),c(_.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=h+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(c(_.calendarContainer,"rightMost",g),!_.config.static)if(_.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var w=window.document.body.offsetWidth,D=Math.max(0,w/2-i/2),b=y.cssRules.length,M="{left:"+s.left+"px;right:auto;}";c(_.calendarContainer,"rightMost",!1),c(_.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,b),_.calendarContainer.style.left=D+"px",_.calendarContainer.style.right="auto"}else _.calendarContainer.style.left="auto",_.calendarContainer.style.right=m+"px";else _.calendarContainer.style.left=h+"px",_.calendarContainer.style.right="auto"}}}else _.config.position(_,e)}function pe(){_.config.noCalendar||_.isMobile||(Z(),Ce(),B())}function me(){_._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(_.close,0):_.close()}function ge(e){e.preventDefault(),e.stopPropagation();var t=h(p(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,i=_.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(i.getMonth()<_.currentMonth||i.getMonth()>_.currentMonth+_.config.showMonths-1)&&"range"!==_.config.mode;if(_.selectedDateElem=n,"single"===_.config.mode)_.selectedDates=[i];else if("multiple"===_.config.mode){var o=Me(i);o?_.selectedDates.splice(parseInt(o),1):_.selectedDates.push(i)}else"range"===_.config.mode&&(2===_.selectedDates.length&&_.clear(!1,!1),_.latestSelectedDateObj=i,_.selectedDates.push(i),0!==b(i,_.selectedDates[0],!0)&&_.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(N(),r){var a=_.currentYear!==i.getFullYear();_.currentYear=i.getFullYear(),_.currentMonth=i.getMonth(),a&&(De("onYearChange"),Z()),De("onMonthChange")}if(Ce(),B(),Se(),r||"range"===_.config.mode||1!==_.config.showMonths?void 0!==_.selectedDateElem&&void 0===_.hourElement&&_.selectedDateElem&&_.selectedDateElem.focus():G(n),void 0!==_.hourElement&&void 0!==_.hourElement&&_.hourElement.focus(),_.config.closeOnSelect){var s="single"===_.config.mode&&!_.config.enableTime,l="range"===_.config.mode&&2===_.selectedDates.length&&!_.config.enableTime;(s||l)&&me()}j()}}_.parseDate=D({config:_.config,l10n:_.l10n}),_._handlers=[],_.pluginElements=[],_.loadedPlugins=[],_._bind=H,_._setHoursFromDate=P,_._positionCalendar=fe,_.changeMonth=ee,_.changeYear=ie,_.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);_.input.value="",void 0!==_.altInput&&(_.altInput.value="");void 0!==_.mobileInput&&(_.mobileInput.value="");_.selectedDates=[],_.latestSelectedDateObj=void 0,!0===t&&(_.currentYear=_._initialDate.getFullYear(),_.currentMonth=_._initialDate.getMonth());if(!0===_.config.enableTime){var n=k(_.config);I(n.hours,n.minutes,n.seconds)}_.redraw(),e&&De("onChange")},_.close=function(){_.isOpen=!1,_.isMobile||(void 0!==_.calendarContainer&&_.calendarContainer.classList.remove("open"),void 0!==_._input&&_._input.classList.remove("active"));De("onClose")},_.onMouseOver=le,_._createElement=u,_.createDay=U,_.destroy=function(){void 0!==_.config&&De("onDestroy");for(var e=_._handlers.length;e--;)_._handlers[e].remove();if(_._handlers=[],_.mobileInput)_.mobileInput.parentNode&&_.mobileInput.parentNode.removeChild(_.mobileInput),_.mobileInput=void 0;else if(_.calendarContainer&&_.calendarContainer.parentNode)if(_.config.static&&_.calendarContainer.parentNode){var t=_.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else _.calendarContainer.parentNode.removeChild(_.calendarContainer);_.altInput&&(_.input.type="text",_.altInput.parentNode&&_.altInput.parentNode.removeChild(_.altInput),delete _.altInput);_.input&&(_.input.type=_.input._type,_.input.classList.remove("flatpickr-input"),_.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]}catch(e){}}))},_.isEnabled=re,_.jumpToDate=F,_.updateValue=Se,_.open=function(e,t){void 0===t&&(t=_._positionElement);if(!0===_.isMobile){if(e){e.preventDefault();var n=p(e);n&&n.blur()}return void 0!==_.mobileInput&&(_.mobileInput.focus(),_.mobileInput.click()),void De("onOpen")}if(_._input.disabled||_.config.inline)return;var i=_.isOpen;_.isOpen=!0,i||(_.calendarContainer.classList.add("open"),_._input.classList.add("active"),De("onOpen"),fe(t));!0===_.config.enableTime&&!0===_.config.noCalendar&&(!1!==_.config.allowInput||void 0!==e&&_.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return _.hourElement.select()}),50))},_.redraw=pe,_.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(_.config,e),e)void 0!==ve[i]&&ve[i].forEach((function(e){return e()}));else _.config[e]=t,void 0!==ve[e]?ve[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(_.config[e]=l(t));_.redraw(),Se(!0)},_.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=_.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return _.clear(t);ye(e,n),_.latestSelectedDateObj=_.selectedDates[_.selectedDates.length-1],_.redraw(),F(void 0,t),P(),0===_.selectedDates.length&&_.clear(!1);Se(t),t&&De("onChange")},_.toggle=function(e){if(!0===_.isOpen)return _.close();_.open(e)};var ve={locale:[he,X],showMonths:[J,A,Q],minDate:[F],maxDate:[F],positionElement:[we],clickOpens:[function(){!0===_.config.clickOpens?(H(_._input,"focus",_.open),H(_._input,"click",_.open)):(_._input.removeEventListener("focus",_.open),_._input.removeEventListener("click",_.open))}]};function ye(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return _.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[_.parseDate(e,t)];else if("string"==typeof e)switch(_.config.mode){case"single":case"time":n=[_.parseDate(e,t)];break;case"multiple":n=e.split(_.config.conjunction).map((function(e){return _.parseDate(e,t)}));break;case"range":n=e.split(_.l10n.rangeSeparator).map((function(e){return _.parseDate(e,t)}))}else _.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));_.selectedDates=_.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&re(e,!1)})),"range"===_.config.mode&&_.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function _e(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?_.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:_.parseDate(e.from,void 0),to:_.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function we(){_._positionElement=_.config.positionElement||_._input}function De(e,t){if(void 0!==_.config){var n=_.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](_.selectedDates,_.input.value,_,t);"onChange"===e&&(_.input.dispatchEvent(be("change")),_.input.dispatchEvent(be("input")))}}function be(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Me(e){for(var t=0;t<_.selectedDates.length;t++){var n=_.selectedDates[t];if(n instanceof Date&&0===b(n,e))return""+t}return!1}function Ce(){_.config.noCalendar||_.isMobile||!_.monthNav||(_.yearElements.forEach((function(e,t){var n=new Date(_.currentYear,_.currentMonth,1);n.setMonth(_.currentMonth+t),_.config.showMonths>1||"static"===_.config.monthSelectorType?_.monthElements[t].textContent=g(n.getMonth(),_.config.shorthandCurrentMonth,_.l10n)+" ":_.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),_._hidePrevMonthArrow=void 0!==_.config.minDate&&(_.currentYear===_.config.minDate.getFullYear()?_.currentMonth<=_.config.minDate.getMonth():_.currentYear<_.config.minDate.getFullYear()),_._hideNextMonthArrow=void 0!==_.config.maxDate&&(_.currentYear===_.config.maxDate.getFullYear()?_.currentMonth+1>_.config.maxDate.getMonth():_.currentYear>_.config.maxDate.getFullYear()))}function xe(e){var t=e||(_.config.altInput?_.config.altFormat:_.config.dateFormat);return _.selectedDates.map((function(e){return _.formatDate(e,t)})).filter((function(e,t,n){return"range"!==_.config.mode||_.config.enableTime||n.indexOf(e)===t})).join("range"!==_.config.mode?_.config.conjunction:_.l10n.rangeSeparator)}function Se(e){void 0===e&&(e=!0),void 0!==_.mobileInput&&_.mobileFormatStr&&(_.mobileInput.value=void 0!==_.latestSelectedDateObj?_.formatDate(_.latestSelectedDateObj,_.mobileFormatStr):""),_.input.value=xe(_.config.dateFormat),void 0!==_.altInput&&(_.altInput.value=xe(_.config.altFormat)),!1!==e&&De("onValueUpdate")}function ke(e){var t=p(e),n=_.prevMonthNav.contains(t),i=_.nextMonthNav.contains(t);n||i?ee(n?-1:1):_.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?_.changeYear(_.currentYear+1):t.classList.contains("arrowDown")&&_.changeYear(_.currentYear-1)}return function(){_.element=_.input=m,_.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),v),o={};_.config.parseDate=r.parseDate,_.config.formatDate=r.formatDate,Object.defineProperty(_.config,"enable",{get:function(){return _.config._enable},set:function(e){_.config._enable=_e(e)}}),Object.defineProperty(_.config,"disable",{get:function(){return _.config._disable},set:function(e){_.config._disable=_e(e)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var s=Y.defaultConfig.dateFormat||i.dateFormat;o.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):s+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=Y.defaultConfig.altFormat||i.altFormat;o.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(_.config,"minDate",{get:function(){return _.config._minDate},set:ue("min")}),Object.defineProperty(_.config,"maxDate",{get:function(){return _.config._maxDate},set:ue("max")});var u=function(e){return function(t){_.config["min"===e?"_minTime":"_maxTime"]=_.parseDate(t,"H:i:S")}};Object.defineProperty(_.config,"minTime",{get:function(){return _.config._minTime},set:u("min")}),Object.defineProperty(_.config,"maxTime",{get:function(){return _.config._maxTime},set:u("max")}),"time"===r.mode&&(_.config.noCalendar=!0,_.config.enableTime=!0);Object.assign(_.config,o,r);for(var d=0;d<t.length;d++)_.config[t[d]]=!0===_.config[t[d]]||"true"===_.config[t[d]];n.filter((function(e){return void 0!==_.config[e]})).forEach((function(e){_.config[e]=l(_.config[e]||[]).map(E)})),_.isMobile=!_.config.disableMobile&&!_.config.inline&&"single"===_.config.mode&&!_.config.disable.length&&!_.config.enable&&!_.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<_.config.plugins.length;d++){var h=_.config.plugins[d](_)||{};for(var f in h)n.indexOf(f)>-1?_.config[f]=l(h[f]).map(E).concat(_.config[f]):void 0===r[f]&&(_.config[f]=h[f])}r.altInputClass||(_.config.altInputClass=de().className+" "+_.config.altInputClass);De("onParseConfig")}(),he(),function(){if(_.input=de(),!_.input)return void _.config.errorHandler(new Error("Invalid input element specified"));_.input._type=_.input.type,_.input.type="text",_.input.classList.add("flatpickr-input"),_._input=_.input,_.config.altInput&&(_.altInput=u(_.input.nodeName,_.config.altInputClass),_._input=_.altInput,_.altInput.placeholder=_.input.placeholder,_.altInput.disabled=_.input.disabled,_.altInput.required=_.input.required,_.altInput.tabIndex=_.input.tabIndex,_.altInput.type="text",_.input.setAttribute("type","hidden"),!_.config.static&&_.input.parentNode&&_.input.parentNode.insertBefore(_.altInput,_.input.nextSibling));_.config.allowInput||_._input.setAttribute("readonly","readonly");we()}(),function(){_.selectedDates=[],_.now=_.parseDate(_.config.now)||new Date;var e=_.config.defaultDate||("INPUT"!==_.input.nodeName&&"TEXTAREA"!==_.input.nodeName||!_.input.placeholder||_.input.value!==_.input.placeholder?_.input.value:null);e&&ye(e,_.config.dateFormat);_._initialDate=_.selectedDates.length>0?_.selectedDates[0]:_.config.minDate&&_.config.minDate.getTime()>_.now.getTime()?_.config.minDate:_.config.maxDate&&_.config.maxDate.getTime()<_.now.getTime()?_.config.maxDate:_.now,_.currentYear=_._initialDate.getFullYear(),_.currentMonth=_._initialDate.getMonth(),_.selectedDates.length>0&&(_.latestSelectedDateObj=_.selectedDates[0]);void 0!==_.config.minTime&&(_.config.minTime=_.parseDate(_.config.minTime,"H:i"));void 0!==_.config.maxTime&&(_.config.maxTime=_.parseDate(_.config.maxTime,"H:i"));_.minDateHasTime=!!_.config.minDate&&(_.config.minDate.getHours()>0||_.config.minDate.getMinutes()>0||_.config.minDate.getSeconds()>0),_.maxDateHasTime=!!_.config.maxDate&&(_.config.maxDate.getHours()>0||_.config.maxDate.getMinutes()>0||_.config.maxDate.getSeconds()>0)}(),_.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=_.currentMonth),void 0===t&&(t=_.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:_.l10n.daysInMonth[e]}},_.isMobile||function(){var e=window.document.createDocumentFragment();if(_.calendarContainer=u("div","flatpickr-calendar"),_.calendarContainer.tabIndex=-1,!_.config.noCalendar){if(e.appendChild((_.monthNav=u("div","flatpickr-months"),_.yearElements=[],_.monthElements=[],_.prevMonthNav=u("span","flatpickr-prev-month"),_.prevMonthNav.innerHTML=_.config.prevArrow,_.nextMonthNav=u("span","flatpickr-next-month"),_.nextMonthNav.innerHTML=_.config.nextArrow,J(),Object.defineProperty(_,"_hidePrevMonthArrow",{get:function(){return _.__hidePrevMonthArrow},set:function(e){_.__hidePrevMonthArrow!==e&&(c(_.prevMonthNav,"flatpickr-disabled",e),_.__hidePrevMonthArrow=e)}}),Object.defineProperty(_,"_hideNextMonthArrow",{get:function(){return _.__hideNextMonthArrow},set:function(e){_.__hideNextMonthArrow!==e&&(c(_.nextMonthNav,"flatpickr-disabled",e),_.__hideNextMonthArrow=e)}}),_.currentYearElement=_.yearElements[0],Ce(),_.monthNav)),_.innerContainer=u("div","flatpickr-innerContainer"),_.config.weekNumbers){var t=function(){_.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",_.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;_.innerContainer.appendChild(n),_.weekNumbers=i,_.weekWrapper=n}_.rContainer=u("div","flatpickr-rContainer"),_.rContainer.appendChild(Q()),_.daysContainer||(_.daysContainer=u("div","flatpickr-days"),_.daysContainer.tabIndex=-1),B(),_.rContainer.appendChild(_.daysContainer),_.innerContainer.appendChild(_.rContainer),e.appendChild(_.innerContainer)}_.config.enableTime&&e.appendChild(function(){_.calendarContainer.classList.add("hasTime"),_.config.noCalendar&&_.calendarContainer.classList.add("noCalendar");var e=k(_.config);_.timeContainer=u("div","flatpickr-time"),_.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":_.l10n.hourAriaLabel});_.hourElement=n.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":_.l10n.minuteAriaLabel});_.minuteElement=i.getElementsByTagName("input")[0],_.hourElement.tabIndex=_.minuteElement.tabIndex=-1,_.hourElement.value=o(_.latestSelectedDateObj?_.latestSelectedDateObj.getHours():_.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),_.minuteElement.value=o(_.latestSelectedDateObj?_.latestSelectedDateObj.getMinutes():e.minutes),_.hourElement.setAttribute("step",_.config.hourIncrement.toString()),_.minuteElement.setAttribute("step",_.config.minuteIncrement.toString()),_.hourElement.setAttribute("min",_.config.time_24hr?"0":"1"),_.hourElement.setAttribute("max",_.config.time_24hr?"23":"12"),_.hourElement.setAttribute("maxlength","2"),_.minuteElement.setAttribute("min","0"),_.minuteElement.setAttribute("max","59"),_.minuteElement.setAttribute("maxlength","2"),_.timeContainer.appendChild(n),_.timeContainer.appendChild(t),_.timeContainer.appendChild(i),_.config.time_24hr&&_.timeContainer.classList.add("time24hr");if(_.config.enableSeconds){_.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");_.secondElement=r.getElementsByTagName("input")[0],_.secondElement.value=o(_.latestSelectedDateObj?_.latestSelectedDateObj.getSeconds():e.seconds),_.secondElement.setAttribute("step",_.minuteElement.getAttribute("step")),_.secondElement.setAttribute("min","0"),_.secondElement.setAttribute("max","59"),_.secondElement.setAttribute("maxlength","2"),_.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),_.timeContainer.appendChild(r)}_.config.time_24hr||(_.amPM=u("span","flatpickr-am-pm",_.l10n.amPM[a((_.latestSelectedDateObj?_.hourElement.value:_.config.defaultHour)>11)]),_.amPM.title=_.l10n.toggleTitle,_.amPM.tabIndex=-1,_.timeContainer.appendChild(_.amPM));return _.timeContainer}());c(_.calendarContainer,"rangeMode","range"===_.config.mode),c(_.calendarContainer,"animate",!0===_.config.animate),c(_.calendarContainer,"multiMonth",_.config.showMonths>1),_.calendarContainer.appendChild(e);var r=void 0!==_.config.appendTo&&void 0!==_.config.appendTo.nodeType;if((_.config.inline||_.config.static)&&(_.calendarContainer.classList.add(_.config.inline?"inline":"static"),_.config.inline&&(!r&&_.element.parentNode?_.element.parentNode.insertBefore(_.calendarContainer,_._input.nextSibling):void 0!==_.config.appendTo&&_.config.appendTo.appendChild(_.calendarContainer)),_.config.static)){var s=u("div","flatpickr-wrapper");_.element.parentNode&&_.element.parentNode.insertBefore(s,_.element),s.appendChild(_.element),_.altInput&&s.appendChild(_.altInput),s.appendChild(_.calendarContainer)}_.config.static||_.config.inline||(void 0!==_.config.appendTo?_.config.appendTo:window.document.body).appendChild(_.calendarContainer)}(),function(){_.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(_.element.querySelectorAll("[data-"+e+"]"),(function(t){return H(t,"click",_[e])}))}));if(_.isMobile)return void function(){var e=_.config.enableTime?_.config.noCalendar?"time":"datetime-local":"date";_.mobileInput=u("input",_.input.className+" flatpickr-mobile"),_.mobileInput.tabIndex=1,_.mobileInput.type=e,_.mobileInput.disabled=_.input.disabled,_.mobileInput.required=_.input.required,_.mobileInput.placeholder=_.input.placeholder,_.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",_.selectedDates.length>0&&(_.mobileInput.defaultValue=_.mobileInput.value=_.formatDate(_.selectedDates[0],_.mobileFormatStr));_.config.minDate&&(_.mobileInput.min=_.formatDate(_.config.minDate,"Y-m-d"));_.config.maxDate&&(_.mobileInput.max=_.formatDate(_.config.maxDate,"Y-m-d"));_.input.getAttribute("step")&&(_.mobileInput.step=String(_.input.getAttribute("step")));_.input.type="hidden",void 0!==_.altInput&&(_.altInput.type="hidden");try{_.input.parentNode&&_.input.parentNode.insertBefore(_.mobileInput,_.input.nextSibling)}catch(e){}H(_.mobileInput,"change",(function(e){_.setDate(p(e).value,!1,_.mobileFormatStr),De("onChange"),De("onClose")}))}();var e=s(ce,50);_._debouncedChange=s(j,O),_.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&H(_.daysContainer,"mouseover",(function(e){"range"===_.config.mode&&le(p(e))}));H(_._input,"keydown",se),void 0!==_.calendarContainer&&H(_.calendarContainer,"keydown",se);_.config.inline||_.config.static||H(window,"resize",e);void 0!==window.ontouchstart?H(window.document,"touchstart",ne):H(window.document,"mousedown",ne);H(window.document,"focus",ne,{capture:!0}),!0===_.config.clickOpens&&(H(_._input,"focus",_.open),H(_._input,"click",_.open));void 0!==_.daysContainer&&(H(_.monthNav,"click",ke),H(_.monthNav,["keyup","increment"],L),H(_.daysContainer,"click",ge));if(void 0!==_.timeContainer&&void 0!==_.minuteElement&&void 0!==_.hourElement){var t=function(e){return p(e).select()};H(_.timeContainer,["increment"],$),H(_.timeContainer,"blur",$,{capture:!0}),H(_.timeContainer,"click",R),H([_.hourElement,_.minuteElement],["focus","click"],t),void 0!==_.secondElement&&H(_.secondElement,"focus",(function(){return _.secondElement&&_.secondElement.select()})),void 0!==_.amPM&&H(_.amPM,"click",(function(e){$(e)}))}_.config.allowInput&&H(_._input,"blur",ae)}(),(_.selectedDates.length||_.config.noCalendar)&&(_.config.enableTime&&P(_.config.noCalendar?_.latestSelectedDateObj:void 0),Se(!1)),A();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!_.isMobile&&t&&fe(),De("onReady")}(),_}function E(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],r=0;r<n.length;r++){var o=n[r];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=T(o,t||{}),i.push(o._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return E(this,e)},HTMLElement.prototype.flatpickr=function(e){return E([this],e)});var Y=function(e,t){return"string"==typeof e?E(window.document.querySelectorAll(e),t):e instanceof Node?E([e],t):E(e,t)};return Y.defaultConfig={},Y.l10ns={en:e({},r),default:e({},r)},Y.localize=function(t){Y.l10ns.default=e(e({},Y.l10ns.default),t)},Y.setDefaults=function(t){Y.defaultConfig=e(e({},Y.defaultConfig),t)},Y.parseDate=D({}),Y.formatDate=w({}),Y.compareDates=b,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return E(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=Y),Y})),function(e){e(["jquery"],(function(e){return function(){function t(t,n){return t||(t=a()),(l=e("#"+t.containerId)).length||n&&(l=function(t){return l=e("<div/>").attr("id",t.containerId).addClass(t.positionClass),l.appendTo(e(t.target)),l}(t)),l}function n(t){for(var n=l.children(),r=n.length-1;r>=0;r--)i(e(n[r]),t)}function i(t,n,i){var r=!(!i||!i.force)&&i.force;return!(!t||!r&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){s(t)}}),0))}function r(e){c&&c(e)}function o(n){function i(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(t){var n=t&&!1!==p.closeMethod?p.closeMethod:p.hideMethod,i=t&&!1!==p.closeDuration?p.closeDuration:p.hideDuration,o=t&&!1!==p.closeEasing?p.closeEasing:p.hideEasing;if(!e(":focus",v).length||t)return clearTimeout(b.intervalId),v[n]({duration:i,easing:o,complete:function(){s(v),clearTimeout(g),p.onHidden&&"hidden"!==M.state&&p.onHidden(),M.state="hidden",M.endTime=new Date,r(M)}})}function c(){(p.timeOut>0||p.extendedTimeOut>0)&&(g=setTimeout(o,p.extendedTimeOut),b.maxHideTime=parseFloat(p.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)}function h(){clearTimeout(g),b.hideEta=0,v.stop(!0,!0)[p.showMethod]({duration:p.showDuration,easing:p.showEasing})}function f(){var e=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;w.width(e+"%")}var p=a(),m=n.iconClass||p.iconClass;if(void 0!==n.optionsOverride&&(p=e.extend(p,n.optionsOverride),m=n.optionsOverride.iconClass||m),!function(e,t){if(e.preventDuplicates){if(t.message===u)return!0;u=t.message}return!1}(p,n)){d++,l=t(p,!0);var g=null,v=e("<div/>"),y=e("<div/>"),_=e("<div/>"),w=e("<div/>"),D=e(p.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},M={toastId:d,state:"visible",startTime:new Date,options:p,map:n};return n.iconClass&&v.addClass(p.toastClass).addClass(m),function(){if(n.title){var e=n.title;p.escapeHtml&&(e=i(n.title)),y.append(e).addClass(p.titleClass),v.append(y)}}(),function(){if(n.message){var e=n.message;p.escapeHtml&&(e=i(n.message)),_.append(e).addClass(p.messageClass),v.append(_)}}(),p.closeButton&&(D.addClass(p.closeClass).attr("role","button"),v.prepend(D)),p.progressBar&&(w.addClass(p.progressClass),v.prepend(w)),p.rtl&&v.addClass("rtl"),p.newestOnTop?l.prepend(v):l.append(v),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}v.attr("aria-live",e)}(),v.hide(),v[p.showMethod]({duration:p.showDuration,easing:p.showEasing,complete:p.onShown}),p.timeOut>0&&(g=setTimeout(o,p.timeOut),b.maxHideTime=parseFloat(p.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,p.progressBar&&(b.intervalId=setInterval(f,10))),p.closeOnHover&&v.hover(h,c),!p.onclick&&p.tapToDismiss&&v.click(o),p.closeButton&&D&&D.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),p.onCloseClick&&p.onCloseClick(e),o(!0)})),p.onclick&&v.click((function(e){p.onclick(e),o()})),r(M),p.debug&&console&&console.log(M),v}}function a(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},f.options)}function s(e){l||(l=t()),e.is(":visible")||(e.remove(),e=null,0===l.children().length&&(l.remove(),u=void 0))}var l,c,u,d=0,h={error:"error",info:"info",success:"success",warning:"warning"},f={clear:function(e,r){var o=a();l||t(o),i(e,o,r)||n(o)},remove:function(n){var i=a();return l||t(i),n&&0===e(":focus",n).length?void s(n):void(l.children().length&&l.remove())},error:function(e,t,n){return o({type:h.error,iconClass:a().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:t,info:function(e,t,n){return o({type:h.info,iconClass:a().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){c=e},success:function(e,t,n){return o({type:h.success,iconClass:a().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return o({type:h.warning,iconClass:a().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return f}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}((function(e){var t,n,i,r,o,a,s,l,c,u,d,h,f,p,m=((b=e&&e.fn&&e.fn.select2&&e.fn.select2.amd?e.fn.select2.amd:b)&&b.requirejs||(b?n=b:b={},l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/,a=function(e,t){var n,i,r=w(e),o=r[0];t=t[1];return e=r[1],o&&(n=_(o=v(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return v(e,i)})):v(e,t):(o=(r=w(e=v(e,t)))[0],e=r[1],o&&(n=_(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},s={require:function(e){return y(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:(t=e,function(){return u&&u.config&&u.config[t]||{}})};var t}},r=function(e,t,n,r){var o,u,h,f,p,m=[],v=typeof n,w=D(r=r||e);if("undefined"==v||"function"==v){for(t=!t.length&&n.length?["require","exports","module"]:t,f=0;f<t.length;f+=1)if("require"===(u=(h=a(t[f],w)).f))m[f]=s.require(e);else if("exports"===u)m[f]=s.exports(e),p=!0;else if("module"===u)o=m[f]=s.module(e);else if(g(l,u)||g(c,u)||g(d,u))m[f]=_(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,y(r,!0),function(e){return function(t){l[e]=t}}(u),{}),m[f]=l[u]}v=n?n.apply(l[e],m):void 0,e&&(o&&o.exports!==i&&o.exports!==l[e]?l[e]=o.exports:v===i&&p||(l[e]=v))}else e&&(l[e]=n)},t=n=o=function(e,t,n,l,c){if("string"==typeof e)return s[e]?s[e](t):_(a(e,D(t)).f);if(!e.splice){if((u=e).deps&&o(u.deps,u.callback),!t)return;t.splice?(e=t,t=n,n=null):e=i}return t=t||function(){},"function"==typeof n&&(n=l,l=c),l?r(i,e,t,n):setTimeout((function(){r(i,e,t,n)}),4),o},o.config=function(e){return o(e)},t._defined=l,(m=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0},b.requirejs=t,b.require=n,b.define=m),b.define("almond",(function(){})),b.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),b.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}function i(){this.listeners={}}t.Extend=function(e,t){var n,i={}.hasOwnProperty;function r(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;0<i&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<r.length;a++){var s=r[a];o.prototype[s]=e.prototype[s]}for(var l=0;l<i.length;l++){var c=i[l];o.prototype[c]=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}}(c)}return o},i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++r).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){e=t.GetUniqueElementId(e),t.__cache[e]||(t.__cache[e]={}),t.__cache[e][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0===e.indexOf("select2-")}));t=(t=t.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0!==e.indexOf("select2-")})),t=n.concat(t);e.setAttribute("class",t.join(" "))},t})),b.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n];i=this.option(i);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&-1<r.indexOf(o)?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading(),e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},(e=this.option(e)).className+=" loading-results",this.$results.prepend(e)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var r,o={role:"option"},a=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(r in(null!=n.element&&a.call(n.element,":disabled")||null==n.element&&n.disabled)&&(o["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),o){var s=o[r];i.setAttribute(r,s)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d];h=this.option(h);u.push(h)}(a=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(u),l.append(c),l.append(a)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e,n=r.getHighlightedResults();0!==n.length&&(e=t.GetData(n[0],"data"),n.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:e}))})),n.on("results:previous",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(e=i-1,0===t.length&&(e=0),(i=n.eq(e)).trigger("mouseenter"),t=r.$results.offset().top,n=i.offset().top,i=r.$results.scrollTop()+(n-t),0===e?r.$results.scrollTop(0):n-t<0&&r.$results.scrollTop(i))})),n.on("results:next",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t)+1;i>=n.length||((e=n.eq(i)).trigger("mouseenter"),t=r.$results.offset().top+r.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=r.$results.scrollTop()+n-t,0===i?r.$results.scrollTop(0):t<n&&r.$results.scrollTop(e))})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){r.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY;t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=r.$results.height();t?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),o=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{}):r.trigger("select",{originalEvent:n,data:o})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),r.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e,t,n,i,r=this.getHighlightedResults();0!==r.length&&(e=this.$results.find(".select2-results__option--selectable").index(r),i=this.$results.offset().top,t=r.offset().top,n=this.$results.scrollTop()+(t-i),i=t-i,n-=2*r.outerHeight(!1),e<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup");null==(t=i(t,n))?n.style.display="none":"string"==typeof t?n.innerHTML=r(t):e(n).append(t)},n})),b.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),b.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.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");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},r})),b.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,r){var o=this;i.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){o.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){var i;o.isDisabled()||(i=e(this).parent(),i=n.GetData(i[0],"data"),o.trigger("unselect",{originalEvent:t,data:i}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){o.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r<e.length;r++){var o=e[r],a=this.selectionContainer(),s=this.display(o,a),l=i+n.generateChars(4)+"-";o.id?l+=o.id:l+=n.generateChars(4),a.find(".select2-selection__choice__display").append(s).attr("id",l);var c=o.title||o.text;c&&a.attr("title",c),s=this.options.get("translations").get("removeItem"),(c=a.find(".select2-selection__choice__remove")).attr("title",s()),c.attr("aria-label",s()),c.attr("aria-describedby",l),n.StoreData(a[0],"data",o),t.push(a)}this.$selection.find(".select2-selection__rendered").append(t)}},i})),b.define("select2/selection/placeholder",[],(function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t=t.title||t.text||n.text(),this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear(),t=this.createPlaceholder(this.placeholder),this.$selection.find(".select2-selection__rendered").append(t)},e})),b.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)this.$element.val(o);else{for(var s=0;s<r.length;s++)if(a={data:r[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){var r,o;t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===i.length||(r=this.$selection.find(".select2-selection__rendered").attr("id"),o=this.options.get("translations").get("removeAllItems"),(t=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",o()),t.attr("aria-label",o()),t.attr("aria-describedby",r),n.StoreData(t[0],"data",i),this.$selection.prepend(t),this.$selection[0].classList.add("select2-selection--clearable"))},i})),b.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');return this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t=t.call(this),this._transferTabIndex(),t.append(this.$searchContainer),t},i.prototype.bind=function(e,i,r){var o=this,a=i.id+"-results",s=i.id+"-container";e.call(this,i,r),o.$search.attr("aria-describedby",s),i.on("open",(function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.resizeSearch(),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(e){o.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){o.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){var i;e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which!==n.BACKSPACE||""!==o.$search.val()||0<(i=o.$selection.find(".select2-selection__choice").last()).length&&(i=t.GetData(i[0],"data"),o.searchRemoveChoice(i),e.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(e){o.$search.val()&&e.stopPropagation()}));var l=(i=document.documentMode)&&i<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){var t;l&&"input"===e.type?o.$selection.off("input.search input.searchcheck"):(t=e.which)!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),b.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this);return-1!==(t=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(t=t.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(t),n},t})),b.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){var i;-1!==o.indexOf(t)&&(n=n||{},i=e.Event("select2:"+t,{params:n}),r.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented()))}))},t})),b.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){var i;return e in n._cache||(i=t(e),n._cache[e]=i),new n(n._cache[e])},n})),b.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),b.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){return t=t.id+"-result-",t+=e.generateChars(4),null!=n.id?t+="-"+n.id.toString():t+="-"+e.generateChars(4),t},t})),b.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t,n=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(t){var i=[];(e=[e]).push.apply(e,t);for(var r=0;r<e.length;r++){var o=e[r].id;-1===i.indexOf(o)&&i.push(o)}n.$element.val(i),n.$element.trigger("input").trigger("change")})):(t=e.id,this.$element.val(t),this.$element.trigger("input").trigger("change"))},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var i=[],r=0;r<n.length;r++){var o=n[r].id;o!==e.id&&-1===i.indexOf(o)&&i.push(o)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each((function(){var t;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(t=n(this),t=r.item(t),null!==(t=r.matches(e,t))&&i.push(t))})),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;return e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title),(e=this._normalizeItem(e)).element=i,t.StoreData(i,"data",e),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var r=e[0];if("option"===r.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===r.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),a=[],s=0;s<o.length;s++){var l=n(o[s]);l=this.item(l);a.push(l)}i.children=a}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),b.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){for(var t=this,i=this.$element.find("option"),r=i.map((function(){return t.item(n(this)).id})).get(),o=[],a=0;a<e.length;a++){var s,l,c=this._normalizeItem(e[a]);0<=r.indexOf(c.id)?(s=i.filter(function(e){return function(){return n(this).val()==e.id}}(c)),l=this.item(s),l=n.extend(!0,{},c,l),l=this.option(l),s.replaceWith(l)):(l=this.option(c),c.children&&(c=this.convertToOptions(c.children),l.append(c)),o.push(l))}return o},i})),b.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){return(e=n.ajax(e)).then(t),e.fail(i),e}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var n=r.transport(r,(function(n){n=i.processResults(n,e),i.options.get("debug")&&window.console&&console.error&&(n&&n.results&&Array.isArray(n.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(n)}),(function(){"status"in n&&(0===n.status||"0"===n.status)||i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),b.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),r=n.get("createTag");if(void 0!==r&&(this.createTag=r),void 0!==(r=n.get("insertTag"))&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var a=i[o];a=this._normalizeItem(a),a=this.option(a);this.$element.append(a)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(r,o){for(var a=r.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!o&&(r.data=a,void n(r))}if(o)return!0;var u,d=i.createTag(t);null!=d&&((u=i.option(d)).attr("data-select2-tag","true"),i.addOptions([u]),i.insertTag(a,d)),r.results=a,n(r)})):e.call(this,t,n)},t.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{id:t,text:t}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),b.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(t){var n,i=r._normalizeItem(t);r.$element.find("option").filter((function(){return e(this).val()===i.id})).length||((n=r.option(i)).attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])),n=i,r.trigger("select",{data:n})}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var o=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];-1!==o.indexOf(c)?(c=a.substr(0,s),null!=(c=l(e.extend({},n,{term:c})))?(r(c),a=a.substr(s+1)||"",s=0):s++):s++}return{term:a}},t})),b.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),b.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),b.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){e=null!=e?e.length:0,0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),b.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),b.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search");t=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(t),n},t.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),b.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),b.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(t=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),b.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.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()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>");t=t.call(this);return n.append(t),this.$dropdownContainer=n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0)},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id;(i=this.$container.parents().filter(t.hasScroll)).each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),i.on(o,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(o+" "+a+" "+s,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id;i="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+i)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-s;t=c>o.bottom+s,l={left:o.left,top:a.bottom};"static"===(c=this.$dropdownParent).css("position")&&(c=c.offsetParent()),o={top:0,left:0},(e.contains(document.body,c[0])||c[0].isConnected)&&(o=c.offset()),l.top-=o.top,l.left-=o.left,n||i||(r="below"),t||!u||n?!u&&t&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(l.top=a.top-o.top-s),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(l)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),b.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e})),b.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}(i=this.getHighlightedResults()).length<1||null!=(i=e.GetData(i[0],"data")).element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})},t})),b.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),b.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this);return-1!==(t=this.options.get("dropdownCssClass")||"").indexOf(":all:")&&(t=t.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(t),n},t})),b.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){if(0<(n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)")).length){var n,i=n.first();if((n=e.GetData(i[0],"data").element)&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),b.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum;e="Please delete "+t+" character";return 1!=t&&(e+="s"),e},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),b.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p,m,g,v,y,_,w,D,b,M,C,x,S,k,O,T,E){function Y(){this.reset()}return Y.prototype.apply=function(u){var d;null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=p:null!=u.data?u.dataAdapter=f:u.dataAdapter=h,0<u.minimumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),0<u.maximumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),0<u.maximumSelectionLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,_)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,M)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,b)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,S)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,T))),null==u.dropdownAdapter&&(u.multiple?u.dropdownAdapter=w:(d=c.Decorate(w,D),u.dropdownAdapter=d),0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,O)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)),null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var E=[],Y=0;Y<u.language.length;Y++){var A=u.language[Y];-1===E.indexOf(A)&&E.push(A)}return u.language=E,u.translations=this._processTranslations(u.language,u.debug),u},Y.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(null==i.term||""===i.term.trim())return r;if(r.children&&0<r.children.length){for(var o=e.extend(!0,{},r),a=r.children.length-1;0<=a;a--)null==n(i,r.children[a])&&o.children.splice(a,1);return 0<o.children.length?o:n(i,o)}var s=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return-1<s.indexOf(l)?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},Y.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang");t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(t));return e.language=t,e},Y.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];for(var n,i=Array.isArray(t)?t:[t],r=[],o=0;o<i.length;o++)r.push(i[o]),"string"==typeof i[o]&&0<i[o].indexOf("-")&&(n=i[o].split("-")[0],r.push(n));return r},Y.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var o=new u,a=t[r];if("string"==typeof a)try{o=u.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,o=u.loadPath(a)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(a)?new u(a):a;i.extend(o)}return i},Y.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n,i=c._convertData(i),e.extend(!0,this.defaults,i)},new Y})),b.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var r={};function o(e,t){return t.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";s.substr(0,l.length)==l&&(s=s.substring(l.length),l=n.GetData(t[0],s),r[s.replace(/-([a-z])/g,o)]=l)}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var c,u=e.extend(!0,{},n.GetData(t[0]),r);for(c in u=n._convertData(u))-1<i.indexOf(c)||(e.isPlainObject(this.options[c])?e.extend(this.options[c],u[c]):this.options[c]=u[c]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),b.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var o=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",o),e.attr("tabindex","-1"),i=this.options.get("dataAdapter"),this.dataAdapter=new i(e,this.options),o=this.render(),this._placeContainer(o),i=this.options.get("selectionAdapter"),this.selection=new i(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o),i=this.options.get("dropdownAdapter"),this.dropdown=new i(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o),o=this.options.get("resultsAdapter"),this.results=new o(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var a=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){a.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;if("string"!=typeof(e=e.attr("style")))return null;for(var r=e.split(";"),o=0,a=r.length;o<a;o+=1){var s=r[o].replace(/\s/g,"").match(n);if(null!==s&&1<=s.length)return s[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},r.prototype._syncSubtree=function(e){e=this._isChangeMutation(e);var t=this;e&&this.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))},r.prototype.trigger=function(e,t){var n=r.__super__.trigger;if(void 0===t&&(t={}),e in(o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"})){var i=o[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),e=!(e=null==e||0===e.length?[!0]:e)[0],this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0],Array.isArray(e)&&(e=e.map((function(e){return e.toString()}))),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),b.define("jquery-mousewheel",["jquery"],(function(e){return e})),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){var o;return null==e.fn.select2&&(o=["open","close","destroy"],e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)})),-1<o.indexOf(t)?this:i}),null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:b.define,require:b.require});function g(e,t){return h.call(e,t)}function v(e,t){var n,i,r,o,a,s,l,c,d,h,f=t&&t.split("/"),m=u.map,g=m&&m["*"]||{};if(e){for(t=(e=e.split("/")).length-1,u.nodeIdCompat&&p.test(e[t])&&(e[t]=e[t].replace(p,"")),"."===e[0].charAt(0)&&f&&(e=f.slice(0,f.length-1).concat(e)),c=0;c<e.length;c++)"."===(h=e[c])?(e.splice(c,1),--c):".."===h&&(0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2));e=e.join("/")}if((f||g)&&m){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),f)for(d=f.length;0<d;--d)if(r=(r=m[f.slice(0,d).join("/")])&&r[i]){o=r,a=c;break}if(o)break;!s&&g&&g[i]&&(s=g[i],l=c)}!o&&s&&(o=s,a=l),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function y(e,t){return function(){var n=f.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(i,n.concat([e,t]))}}function _(e){var t;if(g(c,e)&&(t=c[e],delete c[e],d[e]=!0,r.apply(i,t)),!g(l,e)&&!g(d,e))throw new Error("No "+e);return l[e]}function w(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function D(e){return e?w(e):[]}var b=m.require("jquery.select2");return e.fn.select2.amd=m,b})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){for(var n=[],i=e.length,r=0;r<i;++r)n.push(t(e[r],r));return n}function u(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,i){return St(e,t,n,i,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){if(null==e._isValid){var t=h(e),n=m.call(t.parsedDateParts,(function(e){return null!=e}));n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function p(e){var t=d(NaN);return null!=e?u(h(t),e):h(t).userInvalidated=!0,t}var m=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},g=t.momentProperties=[],v=!1;function y(e,t){var n,i,r,o=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=h(t)),a(t._locale)||(e._locale=t._locale),0<o)for(n=0;n<o;n++)a(r=t[i=g[n]])||(e[i]=r);return e}function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function D(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function b(e,n){var i=!0;return u((function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var o,a,s=[],l=arguments.length,c=0;c<l;c++){if(o="","object"==typeof arguments[c]){for(a in o+="\n["+c+"] ",arguments[0])r(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[c];s.push(o)}D(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var M={};function C(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),M[e]||(D(n),M[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var n,o=u({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},u(o[n],e[n]),u(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(o[n]=u({},o[n]));return o}function k(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var O=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};function T(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},$={};function N(e,t,n,i){var r="string"==typeof i?function(){return this[i]()}:i;e&&($[e]=r),t&&($[t[0]]=function(){return T(r.apply(this,arguments),t[1],t[2])}),n&&($[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(t=I(t,e.localeData()),A[t]=A[t]||function(e){for(var t,n=e.match(E),i=0,r=n.length;i<r;i++)$[n[i]]?n[i]=$[n[i]]:n[i]=(t=n[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var i="",o=0;o<r;o++)i+=x(n[o])?n[o].call(t,e):n[o];return i}}(t),A[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(Y.lastIndex=0;0<=n&&Y.test(e);)e=e.replace(Y,i),Y.lastIndex=0,--n;return e}var L={};function H(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function j(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)r(e,n)&&(t=j(n))&&(i[t]=e[n]);return i}var R={};function W(e,t){R[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=0;return 0!=(e=+e)&&isFinite(e)?G(e):t}function z(e,n){return function(i){return null!=i?(B(this,e,i),t.updateOffset(this,n),this):V(this,e)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z=/\d/,K=/\d\d/,J=/\d{3}/,Q=/\d{4}/,X=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ae=/\d+/,se=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){pe[e]=x(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return r(pe,e)?pe[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={},me={};function ge(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=q(e)}),i=e.length,n=0;n<i;n++)me[e[n]]=r}function ve(e,t){ge(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}var ye,_e=0,we=1,De=2,be=3,Me=4,Ce=5,xe=6,Se=7,ke=8;function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?U(e)?29:28:31-n%7%2}ye=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),W("month",8),de("M",ee),de("MM",ee,K),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[we]=q(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,i){null!=(i=n._locale.monthsParse(e,i,n._strict))?t[we]=i:h(n).invalidMonth=e}));var Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae=ue,$e=ue;function Ne(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(!s(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Pe(e){return null!=e?(Ne(this,e),t.updateOffset(this,!0),this):V(this,"Month")}function Ie(){function e(e,t){return t.length-e.length}for(var t,n=[],i=[],r=[],o=0;o<12;o++)t=d([2e3,o]),n.push(this.monthsShort(t,"")),i.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(n.sort(e),i.sort(e),r.sort(e),o=0;o<12;o++)n[o]=fe(n[o]),i[o]=fe(i[o]);for(o=0;o<24;o++)r[o]=fe(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Le(e){return U(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),H("year","y"),W("year",1),de("Y",se),de("YY",ee,K),de("YYYY",re,Q),de("YYYYY",oe,X),de("YYYYYY",oe,X),ge(["YYYYY","YYYYYY"],_e),ge("YYYY",(function(e,n){n[_e]=2===e.length?t.parseTwoDigitYear(e):q(e)})),ge("YY",(function(e,n){n[_e]=t.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[_e]=parseInt(e,10)})),t.parseTwoDigitYear=function(e){return q(e)+(68<q(e)?1900:2e3)};var He=z("FullYear",!0);function je(e,t,n,i,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Fe(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Re(e,t,n){return(n=7+t-n)-(7+Fe(e,0,n).getUTCDay()-t)%7-1}function We(e,t,n,i,r){var o;n=(t=1+7*(t-1)+(7+n-i)%7+Re(e,i,r))<=0?Le(o=e-1)+t:t>Le(e)?(o=e+1,t-Le(e)):(o=e,t);return{year:o,dayOfYear:n}}function Ue(e,t,n){var i,r,o=Re(e.year(),t,n);return(o=Math.floor((e.dayOfYear()-o-1)/7)+1)<1?i=o+Ge(r=e.year()-1,t,n):o>Ge(e.year(),t,n)?(i=o-Ge(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ge(e,t,n){var i=Re(e,t,n);t=Re(e+1,t,n);return(Le(e)-i+t)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),W("week",5),W("isoWeek",5),de("w",ee),de("ww",ee,K),de("W",ee),de("WW",ee,K),ve(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=q(e)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,n,i){null!=(i=n._locale.weekdaysParse(e,i,n._strict))?t.d=i:h(n).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,n,i){t[i]=q(e)}));var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ue,Ke=ue,Je=ue;function Qe(){function e(e,t){return t.length-e.length}for(var t,n,i,r=[],o=[],a=[],s=[],l=0;l<7;l++)i=d([2e3,1]).day(l),t=fe(this.weekdaysMin(i,"")),n=fe(this.weekdaysShort(i,"")),i=fe(this.weekdays(i,"")),r.push(t),o.push(n),a.push(i),s.push(t),s.push(n),s.push(i);r.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Xe(){return this.hours()%12||12}function et(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tt(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Xe),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Xe.apply(this)+T(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Xe.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),et("a",!0),et("A",!1),H("hour","h"),W("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,K),de("hh",ee,K),de("kk",ee,K),de("hmm",te),de("hmmss",ne),de("Hmm",te),de("Hmmss",ne),ge(["H","HH"],be),ge(["k","kk"],(function(e,t,n){e=q(e),t[be]=24===e?0:e})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[be]=q(e),h(n).bigHour=!0})),ge("hmm",(function(e,t,n){var i=e.length-2;t[be]=q(e.substr(0,i)),t[Me]=q(e.substr(i)),h(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[be]=q(e.substr(0,i)),t[Me]=q(e.substr(i,2)),t[Ce]=q(e.substr(r)),h(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var i=e.length-2;t[be]=q(e.substr(0,i)),t[Me]=q(e.substr(i))})),ge("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[be]=q(e.substr(0,i)),t[Me]=q(e.substr(i,2)),t[Ce]=q(e.substr(r))})),ue=z("Hours",!0);var nt,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Ee,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Be,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},rt={},ot={};function at(e){return e&&e.toLowerCase().replace("_","-")}function st(e){var t;if(void 0===rt[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=nt._abbr,require("./locale/"+e),lt(t)}catch(t){rt[e]=null}return rt[e]}function lt(e,t){return e&&((t=a(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete rt[e],null;var n,i=it;if(t.abbr=e,null!=rt[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])i=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;i=n._config}return rt[e]=new k(S(i,t)),ot[e]&&ot[e].forEach((function(e){ct(e.name,e.config)})),lt(e),rt[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!n(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(i=st(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,n)>=t-1)break;t--}o++}return nt}(e)}function dt(e){var t=e._a;return t&&-2===h(e).overflow&&(t=t[we]<0||11<t[we]?we:t[De]<1||t[De]>Oe(t[_e],t[we])?De:t[be]<0||24<t[be]||24===t[be]&&(0!==t[Me]||0!==t[Ce]||0!==t[xe])?be:t[Me]<0||59<t[Me]?Me:t[Ce]<0||59<t[Ce]?Ce:t[xe]<0||999<t[xe]?xe:-1,h(e)._overflowDayOfYear&&(t<_e||De<t)&&(t=De),h(e)._overflowWeeks&&-1===t&&(t=Se),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,yt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,i,r,o,a,s=e._i,l=ht.exec(s)||ft.exec(s),c=(s=mt.length,gt.length);if(l){for(h(e).iso=!0,t=0,n=s;t<n;t++)if(mt[t][1].exec(l[1])){r=mt[t][0],i=!1!==mt[t][2];break}if(null==r)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(gt[t][1].exec(l[3])){o=(l[2]||" ")+gt[t][0];break}if(null==o)return void(e._isValid=!1)}if(i||null==o){if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),Ct(e)}else e._isValid=!1}}else e._isValid=!1}function Dt(e){var t,n,i,r,o=yt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,n,i,r,o){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),Ee.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)],o&&e.push(parseInt(o,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),i=t,r=e,(n=o[1])&&Ve.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(h(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(n=o[8],i=o[9],r=o[10],n?_t[n]:i?0:((n=parseInt(r,10))-(i=n%100))/100*60+i),e._d=Fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0)):e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var n,i,r,o,a,s,l,c,u,d,f,p=[];if(!e._d){for(r=e,o=new Date(t.now()),i=r._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],e._w&&null==e._a[De]&&null==e._a[we]&&(null!=(o=(r=e)._w).GG||null!=o.W||null!=o.E?(c=1,u=4,a=bt(o.GG,r._a[_e],Ue(kt(),1,4).year),s=bt(o.W,1),((l=bt(o.E,1))<1||7<l)&&(d=!0)):(c=r._locale._week.dow,u=r._locale._week.doy,f=Ue(kt(),c,u),a=bt(o.gg,r._a[_e],f.year),s=bt(o.w,f.week),null!=o.d?((l=o.d)<0||6<l)&&(d=!0):null!=o.e?(l=o.e+c,(o.e<0||6<o.e)&&(d=!0)):l=c),s<1||s>Ge(a,c,u)?h(r)._overflowWeeks=!0:null!=d?h(r)._overflowWeekday=!0:(f=We(a,s,l,c,u),r._a[_e]=f.year,r._dayOfYear=f.dayOfYear)),null!=e._dayOfYear&&(o=bt(e._a[_e],i[_e]),(e._dayOfYear>Le(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),d=Fe(o,0,e._dayOfYear),e._a[we]=d.getUTCMonth(),e._a[De]=d.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=p[n]=i[n];for(;n<7;n++)e._a[n]=p[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[be]&&0===e._a[Me]&&0===e._a[Ce]&&0===e._a[xe]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Fe:je).apply(null,p),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function Ct(e){if(e._f===t.ISO_8601)wt(e);else if(e._f===t.RFC_2822)Dt(e);else{e._a=[],h(e).empty=!0;for(var n,i,o,a,s,l=""+e._i,c=l.length,u=0,d=I(e._f,e._locale).match(E)||[],f=d.length,p=0;p<f;p++)i=d[p],(n=(l.match(he(i,e))||[])[0])&&(0<(o=l.substr(0,l.indexOf(n))).length&&h(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),$[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),o=i,s=e,null!=(a=n)&&r(me,o)&&me[o](a,s._a,s,o)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,0<l.length&&h(e).unusedInput.push(l),e._a[be]<=12&&!0===h(e).bigHour&&0<e._a[be]&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[be],e._meridiem),null!==(c=h(e).era)&&(e._a[_e]=e._locale.erasConvertYear(c,e._a[_e])),Mt(e),dt(e)}}function xt(e){var r,o,d,m=e._i,g=e._f;return e._locale=e._locale||ut(e._l),null===m||void 0===g&&""===m?p({nullInput:!0}):("string"==typeof m&&(e._i=m=e._locale.preparse(m)),w(m)?new _(dt(m)):(l(m)?e._d=m:n(g)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return h(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)o=0,a=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Ct(t),f(t)&&(a=!0),o=(o+=h(t).charsLeftOver)+10*h(t).unusedTokens.length,h(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a&&(s=!0));u(e,n||t)}(e):g?Ct(e):a(g=(m=e)._i)?m._d=new Date(t.now()):l(g)?m._d=new Date(g.valueOf()):"string"==typeof g?(o=m,null!==(r=vt.exec(o._i))?o._d=new Date(+r[1]):(wt(o),!1===o._isValid&&(delete o._isValid,Dt(o),!1===o._isValid&&(delete o._isValid,o._strict?o._isValid=!1:t.createFromInputFallback(o))))):n(g)?(m._a=c(g.slice(0),(function(e){return parseInt(e,10)})),Mt(m)):i(g)?(r=m)._d||(d=void 0===(o=F(r._i)).day?o.date:o.day,r._a=c([o.year,o.month,d,o.hour,o.minute,o.second,o.millisecond],(function(e){return e&&parseInt(e,10)})),Mt(r)):s(g)?m._d=new Date(g):t.createFromInputFallback(m),f(e)||(e._d=null),e))}function St(e,t,r,a,s){var l={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==r&&!1!==r||(a=r,r=void 0),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=r,l._i=e,l._f=t,l._strict=a,(s=new _(dt(xt(s=l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function kt(e,t,n,i){return St(e,t,n,i,!1)}function Ot(e,t){var i,r;if(!(t=1===t.length&&n(t[0])?t[0]:t).length)return kt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}t.createFromInputFallback=b("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),t.ISO_8601=function(){},t.RFC_2822=function(){},te=b("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()})),ne=b("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()}));var Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Et(e){var t=(e=F(e)).year||0,n=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,i=!1,o=Tt.length;for(t in e)if(r(e,t)&&(-1===ye.call(Tt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Tt[n]]){if(i)return!1;parseFloat(e[Tt[n]])!==q(e[Tt[n]])&&(i=!0)}return!0}(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function Yt(e){return e instanceof Et}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function $t(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}$t("Z",":"),$t("ZZ",""),de("Z",ce),de("ZZ",ce),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(ce,e)}));var Nt=/([\+\-]|\d\d)/gi;function Pt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Nt)||["-",0,0])[1]+q(e[2]))?0:"+"===e[0]?t:-t}function It(e,n){var i;return n._isUTC?(n=n.clone(),i=(w(e)||l(e)?e:kt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):kt(e).local()}function Lt(e){return-Math.round(e._d.getTimezoneOffset())}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Rt(e,t){var n,i=e,o=null;return Yt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=jt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:q(o[De])*n,h:q(o[be])*n,m:q(o[Me])*n,s:q(o[Ce])*n,ms:q(At(1e3*o[xe]))*n}):(o=Ft.exec(e))?(n="-"===o[1]?-1:1,i={y:Wt(o[2],n),M:Wt(o[3],n),w:Wt(o[4],n),d:Wt(o[5],n),h:Wt(o[6],n),m:Wt(o[7],n),s:Wt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=function(e,t){var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(kt(i.from),kt(i.to)),(i={}).ms=t.milliseconds,i.M=t.months),o=new Et(i),Yt(e)&&r(e,"_locale")&&(o._locale=e._locale),Yt(e)&&r(e,"_isValid")&&(o._isValid=e._isValid),o}function Wt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),qt(this,Rt(n,i),e),this}}function qt(e,n,i,r){var o=n._milliseconds,a=At(n._days);n=At(n._months);e.isValid()&&(r=null==r||r,n&&Ne(e,V(e,"Month")+n*i),a&&B(e,"Date",V(e,"Date")+a*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&t.updateOffset(e,a||n))}function zt(e){return"string"==typeof e||e instanceof String}function Vt(e,t){if(e.date()<t.date())return-Vt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t=t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Bt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Zt(){return this._locale}Rt.fn=Et.prototype,Rt.invalid=function(){return Rt(NaN)},Te=Gt(1,"add"),ze=Gt(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Be=b("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));var Kt=126227808e5;function Jt(e,t){return(e%t+t)%t}function Qt(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-Kt:new Date(e,t,n).valueOf()}function Xt(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-Kt:Date.UTC(e,t,n)}function en(e,t){return t.erasAbbrRegex(e)}function tn(){for(var e=[],t=[],n=[],i=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(fe(r[o].name)),e.push(fe(r[o].abbr)),n.push(fe(r[o].narrow)),i.push(fe(r[o].name)),i.push(fe(r[o].abbr)),i.push(fe(r[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function nn(e,t){N(0,[e,e.length],0,t)}function rn(e,t,n,i,r){var o;return null==e?Ue(this,i,r).year:(o=Ge(e,i,r),function(e,t,n,i,r){return t=Fe((e=We(e,t,n,i,r)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=o<t?o:t,n,i,r))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),de("N",en),de("NN",en),de("NNN",en),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){(i=n._locale.erasParse(e,i,n._strict))?h(n).era=i:h(n).invalidEra=e})),de("y",ae),de("yy",ae),de("yyy",ae),de("yyyy",ae),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ae})),ge(["y","yy","yyy","yyyy"],_e),ge(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,r):t[_e]=parseInt(e,10)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),de("G",se),de("g",se),de("GG",ee,K),de("gg",ee,K),de("GGGG",re,Q),de("gggg",re,Q),de("GGGGG",oe,X),de("ggggg",oe,X),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=q(e)})),ve(["gg","GG"],(function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),H("quarter","Q"),W("quarter",7),de("Q",Z),ge("Q",(function(e,t){t[we]=3*(q(e)-1)})),N("D",["DD",2],"Do","date"),H("date","D"),W("date",9),de("D",ee),de("DD",ee,K),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],De),ge("Do",(function(e,t){t[De]=q(e.match(ee)[0])})),re=z("Date",!0),N("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),W("dayOfYear",4),de("DDD",ie),de("DDDD",J),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),N("m",["mm",2],0,"minute"),H("minute","m"),W("minute",14),de("m",ee),de("mm",ee,K),ge(["m","mm"],Me);var on;Q=z("Minutes",!1),N("s",["ss",2],0,"second"),H("second","s"),W("second",15),de("s",ee),de("ss",ee,K),ge(["s","ss"],Ce),oe=z("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),W("millisecond",16),de("S",ie,Z),de("SS",ie,K),de("SSS",ie,J),on="SSSS";on.length<=9;on+="S")de(on,ae);function an(e,t){t[xe]=q(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")ge(on,an);function sn(e){return e}function ln(e,t,n,i){var r=ut();i=d().set(i,t);return r[n](i,e)}function cn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");for(var i=[],r=0;r<12;r++)i[r]=ln(e,r,n,"month");return i}function un(e,t,n,i){"boolean"==typeof e?s(t)&&(n=t,t=void 0):(t=e,e=!1,s(n=t)&&(n=t,t=void 0)),t=t||"";var r,o=ut(),a=e?o._week.dow:0,l=[];if(null!=n)return ln(t,(n+a)%7,i,"day");for(r=0;r<7;r++)l[r]=ln(t,(r+a)%7,i,"day");return l}X=z("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName"),(Z=_.prototype).add=Te,Z.calendar=function(e,a){1===arguments.length&&(arguments[0]?function(e){return w(e)||l(e)||zt(e)||s(e)||function(e){var t=n(e),i=!1;return t&&(i=0===e.filter((function(t){return!s(t)&&zt(e)})).length),t&&i}(e)||function(e){var t,n=i(e)&&!o(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)a=a||r(e,s[t]);return n&&a}(e)||null==e}(arguments[0])?(e=arguments[0],a=void 0):function(e){for(var t=i(e)&&!o(e),n=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s=0;s<a.length;s+=1)n=n||r(e,a[s]);return t&&n}(arguments[0])&&(a=arguments[0],e=void 0):a=e=void 0);var c=It(e=e||kt(),this).startOf("day");c=t.calendarFormat(this,c)||"sameElse",a=a&&(x(a[c])?a[c].call(this,e):a[c]);return this.format(a||this.localeData().calendar(c,this,kt(e)))},Z.clone=function(){return new _(this)},Z.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=It(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=j(t)){case"year":o=Vt(this,i)/12;break;case"month":o=Vt(this,i);break;case"quarter":o=Vt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:G(o)},Z.endOf=function(e){var n,i;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Xt:Qt,e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=36e5-Jt(n+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":n=this._d.valueOf(),n+=6e4-Jt(n,6e4)-1;break;case"second":n=this._d.valueOf(),n+=1e3-Jt(n,1e3)-1}return this._d.setTime(n),t.updateOffset(this,!0),this},Z.format=function(e){return e=P(this,e=e||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat)),this.localeData().postformat(e)},Z.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.fromNow=function(e){return this.from(kt(),e)},Z.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.toNow=function(e){return this.to(kt(),e)},Z.get=function(e){return x(this[e=j(e)])?this[e]():this},Z.invalidAt=function(){return h(this).overflow},Z.isAfter=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},Z.isBefore=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},Z.isBetween=function(e,t,n,i){return e=w(e)?e:kt(e),t=w(t)?t:kt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},Z.isSame=function(e,t){e=w(e)?e:kt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},Z.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Z.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Z.isValid=function(){return f(this)},Z.lang=Be,Z.locale=Bt,Z.localeData=Zt,Z.max=ne,Z.min=te,Z.parsingFlags=function(){return u({},h(this))},Z.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:R[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=F(e)),i=n.length,o=0;o<i;o++)this[n[o].unit](e[n[o].unit]);else if(x(this[e=j(e)]))return this[e](t);return this},Z.startOf=function(e){var n,i;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Xt:Qt,e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Jt(n+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":n=this._d.valueOf(),n-=Jt(n,6e4);break;case"second":n=this._d.valueOf(),n-=Jt(n,1e3)}return this._d.setTime(n),t.updateOffset(this,!0),this},Z.subtract=ze,Z.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Z.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?P(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(t,"Z")):P(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},Z.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},Z.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},Z.eraYear=function(){for(var e,n,i=this.localeData().eras(),r=0,o=i.length;r<o;++r)if(e=i[r].since<=i[r].until?1:-1,n=this.clone().startOf("day").valueOf(),i[r].since<=n&&n<=i[r].until||i[r].until<=n&&n<=i[r].since)return(this.year()-t(i[r].since).year())*e+i[r].offset;return this.year()},Z.year=He,Z.isLeapYear=function(){return U(this.year())},Z.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Z.month=Pe,Z.daysInMonth=function(){return Oe(this.year(),this.month())},Z.week=Z.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Z.isoWeek=Z.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Z.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},Z.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},Z.isoWeeksInYear=function(){return Ge(this.year(),1,4)},Z.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},Z.date=re,Z.day=Z.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},Z.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Z.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},Z.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Z.hour=Z.hours=ue,Z.minute=Z.minutes=Q,Z.second=Z.seconds=oe,Z.millisecond=Z.milliseconds=X,Z.utcOffset=function(e,n,i){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Lt(this);if("string"==typeof e){if(null===(e=Pt(ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(r=Lt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?qt(this,Rt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(e){return this.utcOffset(0,e)},Z.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},Z.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Pt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Ht,Z.isUTC=Ht,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=b("dates accessor is deprecated. Use date instead.",re),Z.months=b("months accessor is deprecated. Use month instead",Pe),Z.years=b("years accessor is deprecated. Use year instead",He),Z.zone=b("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),Z.isDSTShifted=b("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=xt(t))._a?(e=(t._isUTC?d:kt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<i;a++)q(e[a])!==q(t[a])&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted})),(K=k.prototype).calendar=function(e,t,n){return x(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=sn,K.postformat=sn,K.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return x(r)?r(e,t,n,i):r.replace(/%d/i,e)},K.pastFuture=function(e,t){return x(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)r(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,n){for(var i,r=this._eras||ut("en")._eras,o=0,a=r.length;o<a;++o){if("string"==typeof r[o].since)i=t(r[o].since).startOf("day"),r[o].since=i.valueOf();switch(typeof r[o].until){case"undefined":r[o].until=1/0;break;case"string":i=t(r[o].until).startOf("day").valueOf(),r[o].until=i.valueOf()}}return r},K.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if(0<=[o,a,s].indexOf(e))return l[i]},K.erasConvertYear=function(e,n){var i=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*i},K.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||tn.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return r(this,"_erasNameRegex")||tn.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||tn.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(n(this._months)?this._months:this._months[(this._months.isFormat||Ye).test(t)?"format":"standalone"])[e.month()]:n(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(n(this._monthsShort)?this._monthsShort:this._monthsShort[Ye.test(t)?"format":"standalone"])[e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,n){var i,r;if(this._monthsParseExact)return function(e,t,n){var i,r,o;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=ye.call(this._shortMonthsParse,e))?r:null:-1!==(r=ye.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=ye.call(this._shortMonthsParse,e))||-1!==(r=ye.call(this._longMonthsParse,e))?r:null:-1!==(r=ye.call(this._longMonthsParse,e))||-1!==(r=ye.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},K.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?qe(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,n){var i,r;if(this._weekdaysParseExact)return function(e,t,n){var i,r,o;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,e))||-1!==(r=ye.call(this._shortWeekdaysParse,e))||-1!==(r=ye.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,e))||-1!==(r=ye.call(this._weekdaysParse,e))||-1!==(r=ye.call(this._minWeekdaysParse,e))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,e))||-1!==(r=ye.call(this._weekdaysParse,e))||-1!==(r=ye.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.lang=b("moment.lang is deprecated. Use moment.locale instead.",lt),t.langData=b("moment.langData is deprecated. Use moment.localeData instead.",ut);var dn=Math.abs;function hn(e,t,n,i){return t=Rt(t,n),e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function fn(e){return e<0?Math.floor(e):Math.ceil(e)}function pn(e){return 4800*e/146097}function mn(e){return 146097*e/4800}function gn(e){return function(){return this.as(e)}}function vn(e){return function(){return this.isValid()?this._data[e]:NaN}}ie=gn("ms"),J=gn("s"),Te=gn("m"),ne=gn("h"),te=gn("d"),ze=gn("w"),ue=gn("M"),Q=gn("Q"),oe=gn("y");X=vn("milliseconds"),re=vn("seconds"),He=vn("minutes"),K=vn("hours");var yn=vn("days"),_n=vn("months"),wn=vn("years"),Dn=Math.round,bn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var Mn=Math.abs;function Cn(e){return(0<e)-(e<0)||+e}function xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s=Mn(this._milliseconds)/1e3,l=Mn(this._days),c=Mn(this._months),u=this.asSeconds();return u?(e=G(s/60),t=G(e/60),s%=60,e%=60,n=G(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Cn(this._months)!==Cn(u)?"-":"",o=Cn(this._days)!==Cn(u)?"-":"",a=Cn(this._milliseconds)!==Cn(u)?"-":"",(u<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+i+"S":"")):"P0D"}var Sn=Et.prototype;return Sn.isValid=function(){return this._isValid},Sn.abs=function(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this},Sn.add=function(e,t){return hn(this,e,t,1)},Sn.subtract=function(e,t){return hn(this,e,t,-1)},Sn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(mn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Sn.asMilliseconds=ie,Sn.asSeconds=J,Sn.asMinutes=Te,Sn.asHours=ne,Sn.asDays=te,Sn.asWeeks=ze,Sn.asMonths=ue,Sn.asQuarters=Q,Sn.asYears=oe,Sn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Sn._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*fn(mn(n)+t),n=t=0),i.milliseconds=e%1e3,e=G(e/1e3),i.seconds=e%60,e=G(e/60),i.minutes=e%60,e=G(e/60),i.hours=e%24,t+=G(e/24),n+=e=G(pn(t)),t-=fn(mn(e)),e=G(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},Sn.clone=function(){return Rt(this)},Sn.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},Sn.milliseconds=X,Sn.seconds=re,Sn.minutes=He,Sn.hours=K,Sn.days=yn,Sn.weeks=function(){return G(this.days()/7)},Sn.months=_n,Sn.years=wn,Sn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=bn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},bn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),t=function(e,t,n,i){var r=Rt(e).abs(),o=Dn(r.as("s")),a=Dn(r.as("m")),s=Dn(r.as("h")),l=Dn(r.as("d")),c=Dn(r.as("M")),u=Dn(r.as("w"));return r=Dn(r.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],(o=(o=null!=n.w?o||u<=1&&["w"]||u<n.w&&["ww",u]:o)||c<=1&&["M"]||c<n.M&&["MM",c]||r<=1&&["y"]||["yy",r])[2]=t,o[3]=0<+e,o[4]=i,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,o)}(this,!n,i,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},Sn.toISOString=xn,Sn.toString=xn,Sn.toJSON=xn,Sn.locale=Bt,Sn.localeData=Zt,Sn.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),Sn.lang=Be,N("X",0,0,"unix"),N("x",0,0,"valueOf"),de("x",se),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(q(e))})),t.version="2.29.4",e=kt,t.fn=Z,t.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},t.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return kt(1e3*e)},t.months=function(e,t){return cn(e,t,"months")},t.isDate=l,t.locale=lt,t.invalid=p,t.duration=Rt,t.isMoment=w,t.weekdays=function(e,t,n){return un(e,t,n,"weekdays")},t.parseZone=function(){return kt.apply(null,arguments).parseZone()},t.localeData=ut,t.isDuration=Yt,t.monthsShort=function(e,t){return cn(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return un(e,t,n,"weekdaysMin")},t.defineLocale=ct,t.updateLocale=function(e,t){var n,i;return null!=t?(i=it,null!=rt[e]&&null!=rt[e].parentLocale?rt[e].set(S(rt[e]._config,t)):(t=S(i=null!=(n=st(e))?n._config:i,t),null==n&&(t.abbr=e),(i=new k(t)).parentLocale=rt[e],rt[e]=i),lt(e)):null!=rt[e]&&(null!=rt[e].parentLocale?(rt[e]=rt[e].parentLocale,e===lt()&&lt(e)):null!=rt[e]&&delete rt[e]),rt[e]},t.locales=function(){return O(rt)},t.weekdaysShort=function(e,t,n){return un(e,t,n,"weekdaysShort")},t.normalizeUnits=j,t.relativeTimeRounding=function(e){return void 0===e?Dn:"function"==typeof e&&(Dn=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==bn[e]&&(void 0===t?bn[e]:(bn[e]=t,"s"===e&&(bn.ss=t-1),!0))},t.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},t.prototype=Z,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}));