1// ***************************
2// js.compressed/tag-editor.js 3// *************************** 4/*=======================================================================*\ 5|| ###################################################################### || 6|| # vBulletin 5.6.1 7|| # ------------------------------------------------------------------ # || 8|| # Copyright 2000-2020 MH Sub I, LLC dba vBulletin. All Rights Reserved. # || 9|| # This file may not be redistributed in whole or significant part. # || 10|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # || 11|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || 12|| ###################################################################### || 13\*========================================================================*/ 14window.vBulletin=window.vBulletin||{};window.vBulletin.phrase=window.vBulletin.phrase||{};window.vBulletin.phrase.precache=window.vBulletin.phrase.precache||[];window.vBulletin.phrase.precache=$.merge(window.vBulletin.phrase.precache,["add_tags","edit_tags","error","error_adding_search_tips_code_x","error_adding_tags_code_x","error_fetching_popular_tags","invalid_server_response_please_try_again","invalid_x_tag_length","loading","none","popular_tags_cloud","tag_cloud","unable_to_load_tag_editor","unable_to_save_tags","you_may_add_one_more_tag","you_may_add_x_more_tags","you_may_not_add_any_more_tags",]);window.vBulletin.options=window.vBulletin.options||{};window.vBulletin.options.precache=window.vBulletin.options.precache||[];window.vBulletin.options.precache=$.merge(window.vBulletin.options.precache,["tagforcelower","tagmaxlen","tagminlen"]);window.vBulletin.jsexec=window.vBulletin.jsexec||{};window.vBulletin.jsexec.tag_editor=window.vBulletin.jsexec.tag_editor||{exec:0};window.vBulletin.jsexec.tag_editor.exec++;(function(D){if(window.vBulletin.jsexec.tag_editor.exec>1){return }var A={};vBulletin.tagEditor=vBulletin.tagEditor||{};vBulletin.tagEditor.instance=function(P,W,h,R){var Y=this,a=false,e=false,d=window.vBulletin.options.get("tagmaxlen")||25,J=window.vBulletin.options.get("tagminlen")||3,F=0,O=0,S=false,k=D(P),K=k.closest(".tag-editor-container"),I=k.closest(".tag-editor-wrapper"),Q=K.data("node-id")||0,g=false,N=k.attr("placeholder")?k.attr("placeholder"):"",M=N?N.length:10,j=function(){if(k.length==0){return false}k.attr("maxlength",d);g=new vBulletin_Autocomplete(k,{apiClass:"Tags",containerClass:(h||"")+" entry-field h-clearfix",placeholderText:N,editorContext:{type:"tags",context:Y},minLength:J,beforeAdd:function(m,n){a=e?true:false;if(l()==0){return false}return true},afterAdd:function(m,n){var o=f();if(o==0){k.hide()}k.attr("placeholder","");i(K.find(".tagcloudlink"),K)},afterDelete:function(n,o){a=e?true:false;var q=f();if(W||q>0){k.show();setTimeout(function(){k[0].focus()},10)}k.attr("placeholder",function(){var r=E();return(!r||r.length==0)?N:""});var m=K.find(".tag-cloud .tagcloudlink");if(m.length==0){var p=K.find(".popular-tags-link");if(p.length&&p.qtip){m=p.qtip("api").elements.tooltip.find(".tagcloudlink")}}m.each(function(){if(D(this).data("tag")==n){D(this).removeClass("added")}})}});k=g.getInputField();I.data("autocomplete-instance",g)},Z=function(m){if(window.vBulletin.options.get("tagforcelower")==1){m=m.toLowerCase()}if(m.length>d){m=m.substr(0,d)}return m},b=function(p,n){if(!g){return false}if(typeof n=="undefined"||n<1){n=pageData.userid}var m=g.getMinLength();if(p.length<m){vBulletin.warning("error",["invalid_x_tag_length",m]);return false}p=Z(p);var o=g.addElement(p,n);k.val("");f();return o},T=function(o){var m=o.length,n;for(n=0;n<m;++n){b(o[n])}},c=function(m){if(!g){return false}g.clearElements();T(m)},V=function(){k.attr("size",M);var m=JShtmlEncode(D.trim(k.val()));if(m==""){return false}var n="Adding tag: "+m;if(l()>0){setTimeout(function(){b(m)},10);n+=" (Tag added)"}console.log(n)},l=function(){if(W||(F==0&&O==0)){return true}var q=g.countElements(),m=D(g.getElements()).filter(function(r,s){return(pageData.userid==0||s.value==pageData.userid)}).length,p=F>0?F-q:O-q,o=O==0?p:O-m,n=Math.min(o,p);return n},f=function(){var n=K.find(".you-may-add-x-tags"),o=l(),m;if(o===true){return true}else{if(o>1){m=["you_may_add_x_more_tags",o]}else{if(o==1){m="you_may_add_one_more_tag"}else{m="you_may_not_add_any_more_tags";o=0}}}n.toggleClass("warning",(o==0)).html(vBulletin.phrase.get(m));return o},X=function(){g.clearElements()},E=function(){if(!g){return false}return g.getLabels()},H=function(m){if(W){k[0].focus();return }else{if(!A[m]){A[m]={}}else{F=A[m].maxTags;O=A[m].maxUserTags;S=A[m].canManageTags;U();return }}vBulletin.AJAX({call:"/ajax/api/tags/getNodeTags",data:{nodeid:m},success:function(n){if(D.isArray(n.tags)){F=parseInt(n.maxtags,10);O=parseInt(n.maxusertags,10);S=n.canmanagetags;A[m]={maxTags:F,maxUserTags:O,canManageTags:S};U()}},api_error:D.noop,error:D.noop,})};this.addTag=function(n,m){b(n,m)};this.addTags=function(m){T(m)};this.setTags=function(m){c(m)};this.removeAllTags=function(){X()};this.getTags=function(){return E()};this.getTagEditor=function(){return k};if(I.data("initialized")){console.log("Tag Editor is already initialized.");return }else{I.attr("data-initialized",true)}j();k.off("keydown").on("keydown",function(n){var m=D(n.target).val().length;D(n.target).attr("size",(m>M?m:M));if(n.which==13){a=e?true:false;V();n.preventDefault();return false}});k.off("blur").on("blur",function(m){e=window.setTimeout(function(){if(!a){V()}a=false;e=false},0)});k.off("click").on("click",function(m){if(!D(m.target).hasClass("tag-input")){D(".tag-input",D(this)).focus();a=e?true:false}return false});k.each(function(){var m=D(this);m.closest("form").submit(function(){V()})});function U(){var n=K.find(".you-may-add-text");if(!F&&!O){n.addClass("h-hide")}else{var m;if(F&&!O){m=F}else{if(!F&&O){m=O}else{m=Math.min(F,O)}}n.find("span").text(m)}if(!l()){k.hide()}else{if(k.is(":visible")){k[0].focus()}}}D(".tag-cloud-text.inline-tag-cloud .popular-tags-link",K).off("click").on("click",function(){var m=K.find(".tag-cloud");vBulletin.tagEditor.fetchPopularTags({type:"nodes",noformat:1,success:function(n){m.html(n);i(m.find(".tagcloudlink"),K)},error:function(n){m.html('<span class="error">{0}</span>'.format(n))}})});vBulletin.qtip.apply(D(".tag-cloud-text:not(.inline-tag-cloud) .popular-tags-link",K),"qtip-populartags",{content:{title:{text:vBulletin.phrase.get("tag_cloud"),button:false},text:function(o,n){function m(q){var p=vBulletin.phrase.get("error_fetching_popular_tags");if(q){p+=" "+vBulletin.phrase.get(q)}n.set("content.text",'<span class="error">{0}</span>'.format(p))}vBulletin.AJAX({call:"/search/fetchTagCloud",data:({type:"nodes",noformat:1}
14),success:function(p){n.set("content.text",'<div class="tag-cloud">{0}</div>'.format(p));var q=n.elements.tooltip;q.on("click",".tag-cloud .tagcloudlink label",G);i(q.find(".tagcloudlink"),I)},api_error:function(p){m(p[0])},error:function(){m()}});return vBulletin.phrase.get("working_ellipsis")}},position:{at:"bottom center",my:"top center",viewport:D(window),effect:false},show:{event:"click",solo:true},hide:"unfocus"});function G(n){var m=D(this),o=m.parent();if(!o.hasClass("added")&&b(m.text())){o.addClass("added");if(k.is(":visible")){k[0].focus()}}return false}function i(m,n){if(m.length>0){var o=(n.find(".tag-input").val()||"").split(",");D.each(o,function(p,q){var r=D.trim(q);m.each(function(){if(D(this).data("tag")==r){D(this).addClass("added")}})})}}function L(n){n.stopPropagation();var m=D(this);var o=I.find(".tag-editor-container");if(o.length==1){o.dialog({title:vBulletin.phrase.get("add_tags"),autoOpen:false,modal:true,resizable:false,closeOnEscape:false,showCloseButton:false,width:500,dialogClass:"dialog-container tag-editor-dialog-container dialog-box",open:function(){X();var p=I.find(".tag-input").val();if(p){var s=p.split(",");for(var r in s){b(D.trim(s[r]))}}else{if(N&&!k.attr("placeholder")){k.attr("placeholder",N)}}var t=f();if(t>0){k.show()}H(m.data("node-id"));var q=D(".tag-cloud",o);vBulletin.tagEditor.fetchPopularTags({type:I.data("type")||"nodes",noformat:1,success:function(u){q.html(u);i(q.find(".tagcloudlink"),I)},error:function(u){q.html('<span class="error">{0}</span>'.format(u))}})},close:function(){var p=I.data("autocomplete-instance");p.close()}}).dialog("open");m.data("tag-dialog",o);o.data("parent",m.closest("form, .search-controls-tags, .form_row"))}else{o=m.data("tag-dialog")||D();o.dialog("open")}return false}K.delegate(".tag-cloud .tagcloudlink label","click",G);I.delegate(".add-tag-link","click",L);if(typeof R!=="undefined"){L.call(R.target,R)}D(document).trigger("vb-tag-editor-init",{"$dialog":K})};vBulletin.tagEditor.fetchPopularTags=function(F){F=F||{};F.type=F.type!="search"?"nodes":F.type;var E=(typeof F.error=="function")?F.error:D.noop;vBulletin.AJAX({call:"/search/fetchTagCloud",data:({type:F.type,noformat:F.noformat}),success:function(G,I,H){if(typeof F.success=="function"){F.success(G,I,H)}},api_error:function(G){E("{0} {1}".format(vBulletin.phrase.get("error_fetching_popular_tags"),vBulletin.phrase.get(G[0])))},error:function(){E(vBulletin.phrase.get("error_fetching_popular_tags"))},})};function C(F,G){var E=G.split(",");G=[];D.each(E,function(I,H){if(H!=""){G.push(H)}});vBulletin.AJAX({call:"/ajax/api/tags/updateUserTags",data:{nodeid:F,taglist:G},success:function(H){if(H){var I=D("#content-tags-"+F);I.find(".js-content-tag, .js-content-tag-none").remove();if(H.tags&&H.tags.length>0){D.each(H.tags,function(K,J){var L=D("<span />").addClass("js-content-tag");D("<a />").attr("href",J.searchurl).html(J.tagtext).appendTo(L);if(K<H.tags.length-1){L.append(document.createTextNode(", "))}L.appendTo(I)})}else{D("<span />").addClass("js-content-tag-none").html(vBulletin.phrase.get("none")).appendTo(I)}}},error_phrase:"unable_to_save_tags",title_phrase:"edit_tags",})}function B(G){var E=D(this),F=E.data("node-id");vBulletin.AJAX({call:"/ajax/render/tag_editor",data:{nodeid:F,dialogOnly:true,editPost:true,editorClass:"js-topic-tag-editor",isAjaxTemplateRenderWithData:true,},success:function(H){D("body").append(H.template);D(document).on("vb-tag-editor-init",function(L,K){var J=K.$dialog;function I(){J.dialog("destroy").closest(".tag-editor-wrapper").remove()}J.on("vb-tag-dialog-cancel",I);J.on("vb-tag-dialog-save",function(N,M){C(F,M.tagList);I()})});new vBulletin.tagEditor.instance(".js-topic-tag-editor",false,false,G)},error_phrase:"unable_to_load_tag_editor",title_phrase:"edit_tags",})}D(document).ready(function(){D(document).off("click",".tag-editor-container .cancel-tag-btn").on("click",".tag-editor-container .cancel-tag-btn",function(){D(".tag-editor-container").dialog("close").trigger("vb-tag-dialog-cancel")});D(document).off("click",".tag-editor-container .save-tag-btn").on("click",".tag-editor-container .save-tag-btn",function(){var H=D(this).closest(".tag-editor-container"),G=H.find(".tag-input").val(),E=G.replace(/\,/g,", "),F=H.data("parent");F.find(".tag-list span").html(E);F.find(".tag-input").val(G);F.find(".tag-list").toggleClass("h-hide",!G);H.dialog("close").trigger("vb-tag-dialog-save",{tagList:G})});D(document).off("mousedown",".tag-editor-container .autocomplete-container").on("mousedown",".tag-editor-container .autocomplete-container",function(){var E=this;setTimeout(function(){var F=D(".autocompleteHelper:visible",E);if(F.length>0){F[0].focus()}},10);return false});if(D(".js-content-entry-tag-editor").length>0&&vBulletin.tagEditor){new vBulletin.tagEditor.instance(".js-content-entry-tag-editor")}
14D(document).off("click",".js-edit-tags").on("click",".js-edit-tags",B)})})(jQuery);; 15 16// ***************************
vendor: 6,059 bytes, lines 17-20
17// js.compressed/flatpickr/flatpickr.min.js 18// *************************** 19/* flatpickr v4.4.4,, @license MIT */ 20!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.flatpickr=t()}(this,function(){"use strict";var Z=function(e){return("0"+e).slice(-2)},Q=function(e){return!0===e?1:0};function X(n,a,i){var o;return void 0===i&&(i=!1),function(){var e=this,t=arguments;null!==o&&clearTimeout(o),o=window.setTimeout(function(){o=null,i||n.apply(e,t)},a),i&&!o&&n.apply(e,t)}}var ee=function(e){return e instanceof Array?e:[e]},e=function(){},te=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},D={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Q(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){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},ne={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},c={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[c.w(e,t,n)]},F:function(e,t,n){return te(c.n(e,t,n)-1,!1,t)},G:function(e,t,n){return Z(c.h(e,t,n))},H:function(e){return Z(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[Q(11<e.getHours())]},M:function(e,t){return te(e.getMonth(),!0,t)},S:function(e){return Z(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return Z(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Z(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Z(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},ae={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(3<t&&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"},ie=function(e){var t=e.config,o=void 0===t?b:t,n=e.l10n,r=void 0===n?ae:n;return function(a,e,t){if(void 0!==o.formatDate)return o.formatDate(a,e);var i=t||r;return e.split("").map(function(e,t,n){return c[e]&&"\\"!==n[t-1]?c[e](a,i,o):"\\"!==e?e:""}).join("")}},oe=function(e){var t=e.config,h=void 0===t?b:t,n=e.l10n,v=void 0===n?ae:n;return function(e,t,n){if(0===e||e){var a,i=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var o=t||(h||b).dateFormat,r=String(e).trim();if("today"===r)a=new Date,n=!0;else if(/Z$/.test(r)||/GMT$/.test(r))a=new Date(e);else if(h&&h.parseDate)a=h.parseDate(e,o);else{a=h&&h.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var c,l=[],d=0,s=0,u="";d<o.length;d++){var f=o[d],m="\\"===f,g="\\"===o[d-1]||m;if(ne[f]&&!g){u+=ne[f];var p=new RegExp(u).exec(e);p&&(c=!0)&&l["Y"!==f?"push":"unshift"]({fn:D[f],val:p[++s]})}else m||(u+=".");l.forEach(function(e){var t=e.fn,n=e.val;return a=t(a,n,v)||a})}a=c?a:void 0}}if(a instanceof Date)return!0===n&&a.setHours(0,0,0,0),a;h.errorHandler(new Error("Invalid date provided: "+i))}}};function re(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 ce=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},le={DAY:864e5},b={_disable:[],_enable:[],allowInput:!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",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],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",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
20ox='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};function de(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function se(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function ue(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function fe(e,t){var n=se("div","numInputWrapper"),a=se("input","numInput "+e),i=se("span","arrowUp"),o=se("span","arrowDown");if(a.type="text",a.pattern="\\d*",void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}"function"!=typeof Object.assign&&(Object.assign=function(n){if(!n)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,t=new Array(1<e?e-1:0),a=1;a<e;a++)t[a-1]=arguments[a];for(var i=function(t){t&&Object.keys(t).forEach(function(e){return n[e]=t[e]})},o=0;o<t.length;o++){i(t[o])}return n});var me=300;function r(s,u){var D={config:Object.assign({},ge.defaultConfig),l10n:ae};function f(e){return e.bind(D)}function t(){if(void 0!==D.daysContainer){D.calendarContainer.style.visibility="hidden",D.calendarContainer.style.display="block";var e=(D.days.offsetWidth+1)*D.config.showMonths;D.daysContainer.style.width=e+"px",D.calendarContainer.style.width=e+"px",void 0!==D.weekWrapper&&(D.calendarContainer.style.width=e+D.weekWrapper.offsetWidth+"px"),D.calendarContainer.style.removeProperty("visibility"),D.calendarContainer.style.removeProperty("display")}}function d(e){0!==D.selectedDates.length&&(!function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==D.amPM&&e.target===D.amPM&&(D.amPM.textContent=D.l10n.amPM[Q(D.amPM.textContent===D.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("data-min")),i=parseFloat(n.getAttribute("data-max")),o=parseFloat(n.getAttribute("data-step")),r=parseInt(n.value,10),c=e.delta||(t?38===e.which?1:-1:0),l=r+o*c;if(void 0!==n.value&&2===n.value.length){var d=n===D.hourElement,s=n===D.minuteElement;l<a?(l=i+l+Q(!d)+(Q(d)&&Q(!D.amPM)),s&&h(void 0,-1,D.hourElement)):i<l&&(l=n===D.hourElement?l-i-Q(!D.amPM):a,s&&h(void 0,1,D.hourElement)),D.amPM&&d&&(1===o?l+r===23:Math.abs(l-r)>o)&&(D.amPM.textContent=D.l10n.amPM[Q(D.amPM.textContent===D.l10n.amPM[0])]),n.value=Z(l)}}(e),"input"!==e.type?(m(),G()):setTimeout(function(){m(),G()},me))}function m(){if(void 0!==D.hourElement&&void 0!==D.minuteElement){var e,t,n=(parseInt(D.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(D.minuteElement.value,10)||0)%60,i=void 0!==D.secondElement?(parseInt(D.secondElement.value,10)||0)%60:0;void 0!==D.amPM&&(e=n,t=D.amPM.textContent,n=e%12+12*Q(t===D.l10n.amPM[1]));var o=void 0!==D.config.minTime||D.config.minDate&&D.minDateHasTime&&D.latestSelectedDateObj&&0===re(D.latestSelectedDateObj,D.config.minDate,!0);if(void 0!==D.config.maxTime||D.config.maxDate&&D.maxDateHasTime&&D.latestSelectedDateObj&&0===re(D.latestSelectedDateObj,D.config.maxDate,!0)){var r=void 0!==D.config.maxTime?D.config.maxTime:D.config.maxDate;(n=Math.min(n,r.getHours()))===r.getHours()&&(a=Math.min(a,r.getMinutes())),a===r.getMinutes()&&(i=Math.min(i,r.getSeconds()))}if(o){var c=void 0!==D.config.minTime?D.config.minTime:D.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}l(n,a,i)}}function g(e){var t=e||D.latestSelectedDateObj;t&&l(t.getHours(),t.getMinutes(),t.getSeconds())}function l(e,t,n){void 0!==D.latestSelectedDateObj&&D.latestSelectedDateObj.setHours(e%24,t,n||0,0),D.hourElement&&D.minuteElement&&!D.isMobile&&(D.hourElement.value=Z(D.config.time_24hr?e:(12+e)%12+12*Q(e%12==0)),D.minuteElement.value=Z(t),void 0!==D.amPM&&(D.amPM.textContent=D.l10n.amPM[Q(12<=e)]),void 0!==D.secondElement&&(D.secondElement.value=Z(n)))}function n(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(e.target.blur(),/[^\d]/.test(t.toString())||S(t))}
20function o(t,n,a,i){return n instanceof Array?n.forEach(function(e){return o(t,e,a,i)}):t instanceof Array?t.forEach(function(e){return o(e,n,a,i)}):(t.addEventListener(n,a,i),void D._handlers.push({element:t,event:n,handler:a}))}function a(t){return function(e){1===e.which&&t(e)}}function p(){U("onChange")}function i(e){var t=void 0!==e?D.parseDate(e):D.latestSelectedDateObj||(D.config.minDate&&D.config.minDate>D.now?D.config.minDate:D.config.maxDate&&D.config.maxDate<D.now?D.config.maxDate:D.now);try{void 0!==t&&(D.currentYear=t.getFullYear(),D.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,D.config.errorHandler(e)}D.redraw()}function r(e){~e.target.className.indexOf("arrow")&&h(e,e.target.classList.contains("arrowUp")?1:-1)}function h(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=q("increment");o.delta=t,i&&i.dispatchEvent(o)}function v(e,t,n,a){var i,o=P(t,!0),r=se("span","flatpickr-day "+e,t.getDate().toString());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",D.formatDate(t,D.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===re(t,D.now)&&((D.todayDateElem=r).classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,$(t)&&(r.classList.add("selected"),D.selectedDateElem=r,"range"===D.config.mode&&(de(r,"startRange",D.selectedDates[0]&&0===re(t,D.selectedDates[0],!0)),de(r,"endRange",D.selectedDates[1]&&0===re(t,D.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("disabled"),"range"===D.config.mode&&(i=t,!("range"!==D.config.mode||D.selectedDates.length<2)&&0<=re(i,D.selectedDates[0])&&re(i,D.selectedDates[1])<=0&&!$(t)&&r.classList.add("inRange")),D.weekNumbers&&1===D.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&D.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+D.config.getWeek(t)+"</span>"),U("onDayCreate",r),r}function b(e){e.focus(),"range"===D.config.mode&&A(e)}function w(e){for(var t=0<e?0:D.config.showMonths-1,n=0<e?D.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=D.daysContainer.children[a],o=0<e?0:i.children.length-1,r=0<e?i.children.length:-1,c=o;c!=r;c+=e){var l=i.children[c];if(-1===l.className.indexOf("hidden")&&P(l.dateObj))return l}}function M(e,t){var n=_(document.activeElement),a=void 0!==e?e:n?document.activeElement:void 0!==D.selectedDateElem&&_(D.selectedDateElem)?D.selectedDateElem:void 0!==D.todayDateElem&&_(D.todayDateElem)?D.todayDateElem:w(0<t?1:-1);return void 0===a?D._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():D.currentMonth,a=0<t?D.config.showMonths:-1,i=0<t?1:-1,o=n-D.currentMonth;o!=a;o+=i)for(var r=D.daysContainer.children[o],c=n-D.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,l=r.children.length,d=c;0<=d&&d<l&&d!=(0<t?l:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&P(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return b(s)}D.changeMonth(i),M(w(i),0)}(a,t):b(a)}function c(e,t){for(var n=(new Date(e,t,1).getDay()-D.l10n.firstDayOfWeek+7)%7,a=D.utils.getDaysInMonth((t-1+12)%12),i=D.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=1<D.config.showMonths,c=r?"prevMonthDay hidden":"prevMonthDay",l=r?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,s=0;d<=a;d++,s++)o.appendChild(v(c,new Date(e,t-1,d),d,s));for(d=1;d<=i;d++,s++)o.appendChild(v("",new Date(e,t,d),d,s));for(var u=i+1;u<=42-n&&(1===D.config.showMonths||s%7!=0);u++,s++)o.appendChild(v(l,new Date(e,t+1,u%i),u,s));var f=se("div","dayContainer");return f.appendChild(o),f}function C(){if(void 0!==D.daysContainer){ue(D.daysContainer),D.weekNumbers&&ue(D.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<D.config.showMonths;t++){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),e.appendChild(c(n.getFullYear(),n.getMonth()))}D.daysContainer.appendChild(e),D.days=D.daysContainer.firstChild}}function y(){var e=se("div","flatpickr-month"),t=window.document.createDocumentFragment(),n=se("span","cur-month");n.title=D.l10n.scrollTitle;var a=fe("cur-year",{tabindex:"-1"}),i=a.childNodes[0];i.title=D.l10n.scrollTitle,i.setAttribute("aria-label",D.l10n.yearAriaLabel),D.config.minDate&&i.setAttribute("data-min",D.config.minDate.getFullYear().toString()),D.config.maxDate&&(i.setAttribute("data-max",D.config.maxDate.getFullYear().toString()),i.disabled=!!D.config.minDate&&D.config.minDate.getFullYear()===D.config.maxDate.getFullYear());var o=se("div","flatpickr-current-month");return o.appendChild(n),o.appendChild(a),t.appendChild(o),e.appendChild(t),{container:e,yearElement:i,monthElement:n}}function x(){ue(D.monthNav),D.monthNav.appendChild(D.prevMonthNav);for(var e=D.config.showMonths;e--;){var t=y();D.yearElements.push(t.yearElement),D.monthElements.push(t.monthElement),D.monthNav.appendChild(t.container)}D.monthNav.appendChild(D.nextMonthNav)}function E(){D.weekdayContainer?ue(D.weekdayContainer):D.weekdayContainer=se("div","flatpickr-weekdays");for(var e=D.config.showMonths;e--;){var t=se("div","flatpickr-weekdaycontainer");D.weekdayContainer.appendChild(t)}return T(),D.weekdayContainer}function T(){var e=D.l10n.firstDayOfWeek,t=D.l10n.weekdays.shorthand.concat();
200<e&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=D.config.showMonths;n--;)D.weekdayContainer.children[n].innerHTML="\n <span class=flatpickr-weekday>\n "+t.join("</span><span class=flatpickr-weekday>")+"\n </span>\n "}function k(e,t){void 0===t&&(t=!0);var n=t?e:e-D.currentMonth;n<0&&!0===D._hidePrevMonthArrow||0<n&&!0===D._hideNextMonthArrow||(D.currentMonth+=n,(D.currentMonth<0||11<D.currentMonth)&&(D.currentYear+=11<D.currentMonth?1:-1,D.currentMonth=(D.currentMonth+12)%12,U("onYearChange")),C(),U("onMonthChange"),z())}function I(e){return!(!D.config.appendTo||!D.config.appendTo.contains(e))||D.calendarContainer.contains(e)}function O(t){if(D.isOpen&&!D.config.inline){var e=I(t.target),n=t.target===D.input||t.target===D.altInput||D.element.contains(t.target)||t.path&&t.path.indexOf&&(~t.path.indexOf(D.input)||~t.path.indexOf(D.altInput)),a="blur"===t.type?n&&t.relatedTarget&&!I(t.relatedTarget):!n&&!e,i=!D.config.ignoredFocusElements.some(function(e){return e.contains(t.target)});a&&i&&(D.close(),"range"===D.config.mode&&1===D.selectedDates.length&&(D.clear(!1),D.redraw()))}}function S(e){if(!(!e||D.config.minDate&&e<D.config.minDate.getFullYear()||D.config.maxDate&&e>D.config.maxDate.getFullYear())){var t=e,n=D.currentYear!==t;D.currentYear=t||D.currentYear,D.config.maxDate&&D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth=Math.min(D.config.maxDate.getMonth(),D.currentMonth):D.config.minDate&&D.currentYear===D.config.minDate.getFullYear()&&(D.currentMonth=Math.max(D.config.minDate.getMonth(),D.currentMonth)),n&&(D.redraw(),U("onYearChange"))}}function P(e,t){void 0===t&&(t=!0);var n=D.parseDate(e,void 0,t);if(D.config.minDate&&n&&re(n,D.config.minDate,void 0!==t?t:!D.minDateHasTime)<0||D.config.maxDate&&n&&0<re(n,D.config.maxDate,void 0!==t?t:!D.maxDateHasTime))return!1;if(0===D.config.enable.length&&0===D.config.disable.length)return!0;if(void 0===n)return!1;for(var a,i=0<D.config.enable.length,o=i?D.config.enable:D.config.disable,r=0;r<o.length;r++){if("function"==typeof(a=o[r])&&a(n))return i;if(a instanceof Date&&void 0!==n&&a.getTime()===n.getTime())return i;if("string"==typeof a&&void 0!==n){var c=D.parseDate(a,void 0,!0);return c&&c.getTime()===n.getTime()?i:!i}if("object"==typeof a&&void 0!==n&&a.from&&a.to&&n.getTime()>=a.from.getTime()&&n.getTime()<=a.to.getTime())return i}return!i}function _(e){return void 0!==D.daysContainer&&(-1===e.className.indexOf("hidden")&&D.daysContainer.contains(e))}function F(e){e.stopPropagation();var t=e.target===D._input,n=I(e.target),a=D.config.allowInput,i=D.isOpen&&(!a||!t),o=D.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return D.setDate(D._input.value,!0,e.target===D.altInput?D.config.altFormat:D.config.dateFormat),e.target.blur();D.open()}else if(n||i||o){var r=!!D.timeContainer&&D.timeContainer.contains(e.target);switch(e.keyCode){case 13:r?G():R(e);break;case 27:e.preventDefault(),W();break;case 8:case 46:t&&!D.config.allowInput&&(e.preventDefault(),D.clear());break;case 37:case 39:if(r)D.hourElement&&D.hourElement.focus();else if(e.preventDefault(),void 0!==D.daysContainer&&!1===D.config.allowInput){var c=39===e.keyCode?1:-1;e.ctrlKey?(k(c),M(w(1),0)):M(void 0,c)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;D.daysContainer?e.ctrlKey?(S(D.currentYear-l),M(w(1),0)):r||M(void 0,7*l):D.config.enableTime&&(!r&&D.hourElement&&D.hourElement.focus(),d(e),D._debouncedChange());break;case 9:e.target===D.hourElement?(e.preventDefault(),D.minuteElement.select()):e.target===D.minuteElement&&(D.secondElement||D.amPM)?(e.preventDefault(),void 0!==D.secondElement?D.secondElement.focus():void 0!==D.amPM&&D.amPM.focus()):e.target===D.secondElement&&D.amPM&&(e.preventDefault(),D.amPM.focus())}switch(e.key){case D.l10n.amPM[0].charAt(0):case D.l10n.amPM[0].charAt(0).toLowerCase():void 0!==D.amPM&&e.target===D.amPM&&(D.amPM.textContent=D.l10n.amPM[0],m(),G());break;case D.l10n.amPM[1].charAt(0):case D.l10n.amPM[1].charAt(0).toLowerCase():void 0!==D.amPM&&e.target===D.amPM&&(D.amPM.textContent=D.l10n.amPM[1],m(),G())}U("onKeyDown",e)}}function A(o){if(1===D.selectedDates.length&&o.classList.contains("flatpickr-day")&&!o.classList.contains("disabled")){for(var r=o.dateObj.getTime(),c=D.parseDate(D.selectedDates[0],void 0,!0).getTime(),e=Math.min(r,D.selectedDates[0].getTime()),t=Math.max(r,D.selectedDates[0].getTime()),n=D.daysContainer.children,a=n[0].children[0].dateObj.getTime(),i=n[n.length-1].lastChild.dateObj.getTime(),l=!1,d=0,s=0,u=a;u<i;u+=le.DAY)P(new Date(u),!0)||(l=l||e<u&&u<t,u<c&&(!d||d<u)?d=u:c<u&&(!s||u<s)&&(s=u));for(var f=0;f<D.config.showMonths;f++)for(var m=D.daysContainer.children[f],g=D.daysContainer.children[f-1],p=function(e,t){var n=m.children[e],a=n.dateObj.getTime(),i=0<d&&a<d||0<s&&s<a;return i?(n.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)}),"continue"):l&&!i?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)}),o.classList.add(r<D.selectedDates[0].getTime()?"startRange":"endRange"),void(!m.contains(o)&&0<f&&g&&g.lastChild.dateObj.getTime()>=a||(c<r&&a===c?n.classList.add("startRange"):r<c&&a===c&&n.classList.add("endRange"),d<=a&&(0===s||a<=s)&&ce(a,c,r)&&n.classList.add("inRange"))))},h=0,v=m.children.length;h<v;h++)p(h)}}function N(){!D.isOpen||D.config.static||D.config.inline||H()}function j(a){return function(e){var t=D.config["_"+a+"Date"]=D.parseDate(e,D.config.dateFormat),n=D.config["_"+("min"===a?"max":"min")+"Date"];void 0!==t&&(D["min"===a?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),D.selectedDates&&(D.selectedDates=D.selectedDates.filter(function(e){return P(e)}),D.selectedDates.length||"min"!==a||g(t),G()),D.daysContainer&&(L(),void 0!==t?D.currentYearElement[a]=t.getFullYear().toString():D.currentYearElement.removeAttribute(a),D.currentYearElement.disabled=!!n&&void 0!==t&&n.getFullYear()===t.getFullYear())}}function Y(){"object"!=typeof D.config.locale&&void 0===ge.l10ns[D.config.locale]&&D.config.errorHandler(new Error("flatpickr: invalid locale "+D.config.locale)),D.l10n=Object.assign({},ge.l10ns.default,"object"==typeof D.config.locale?D.config.locale:"default"!==D.config.locale?ge.l10ns[D.config.locale]:void 0),ne.K="("+D.l10n.amPM[0]+"|"+D.l10n.amPM[1]+"|"+D.l10n.amPM[0].toLowerCase()+"|"+D.l10n.amPM[1].toLowerCase()+")",D.formatDate=ie(D)}function H(e){if(void 0!==D.calendarContainer){U("onPreCalendarPosition");var t=e||D._positionElement,n=Array.prototype.reduce.call(D.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=D.calendarContainer.offsetWidth,i=D.config.position,o=t.getBoundingClientRect(),r=window.innerHeight-o.bottom,c="above"===i||"below"!==i&&r<n&&o.top>n,l=window.pageYOffset+o.top+(c?-n-2:t.offsetHeight+2);if(de(D.calendarContainer,"arrowTop",!c),de(D.calendarContainer,"arrowBottom",c),!D.config.inline){var d=window.pageXOffset+o.left,s=window.document.body.offsetWidth-o.right,u=d+a>window.document.body.offsetWidth;de(D.calendarContainer,"rightMost",u),D.config.static||(D.calendarContainer.style.top=l+"px",u?(D.calendarContainer.style.left="auto",D.calendarContainer.style.right=s+"px"):(D.calendarContainer.style.left=d+"px",D.calendarContainer.style.right="auto"))}}}function L(){D.config.noCalendar||D.isMobile||(z(),C())}function W(){D._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(D.close,0):D.close()}function R(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,a=D.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<D.currentMonth||a.getMonth()>D.currentMonth+D.config.showMonths-1)&&"range"!==D.config.mode;if(D.selectedDateElem=n,"single"===D.config.mode)D.selectedDates=[a];else if("multiple"===D.config.mode){var o=$(a);o?D.selectedDates.splice(parseInt(o),1):D.selectedDates.push(a)}else"range"===D.config.mode&&(2===D.selectedDates.length&&D.clear(!1),D.selectedDates.push(a),0!==re(a,D.selectedDates[0],!0)&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(m(),i){var r=D.currentYear!==a.getFullYear();D.currentYear=a.getFullYear(),D.currentMonth=a.getMonth(),r&&U("onYearChange"),U("onMonthChange")}if(z(),C(),D.config.minDate&&D.minDateHasTime&&D.config.enableTime&&0===re(a,D.config.minDate)&&g(D.config.minDate),G(),D.config.enableTime&&setTimeout(function(){return D.showTimeInput=!0},50),"range"===D.config.mode&&(1===D.selectedDates.length?A(n):z()),i||"range"===D.config.mode||1!==D.c
20onfig.showMonths?D.selectedDateElem&&D.selectedDateElem.focus():b(n),void 0!==D.hourElement&&setTimeout(function(){return void 0!==D.hourElement&&D.hourElement.select()},451),D.config.closeOnSelect){var c="single"===D.config.mode&&!D.config.enableTime,l="range"===D.config.mode&&2===D.selectedDates.length&&!D.config.enableTime;(c||l)&&W()}p()}}D.parseDate=oe({config:D.config,l10n:D.l10n}),D._handlers=[],D._bind=o,D._setHoursFromDate=g,D.changeMonth=k,D.changeYear=S,D.clear=function(e){void 0===e&&(e=!0);D.input.value="",void 0!==D.altInput&&(D.altInput.value="");void 0!==D.mobileInput&&(D.mobileInput.value="");D.selectedDates=[],D.latestSelectedDateObj=void 0,!(D.showTimeInput=!1)===D.config.enableTime&&(void 0!==D.config.minDate?g(D.config.minDate):l(D.config.defaultHour,D.config.defaultMinute,D.config.defaultSeconds));D.redraw(),e&&U("onChange")},D.close=function(){D.isOpen=!1,D.isMobile||(D.calendarContainer.classList.remove("open"),D._input.classList.remove("active"));U("onClose")},D._createElement=se,D.destroy=function(){void 0!==D.config&&U("onDestroy");for(var e=D._handlers.length;e--;){var t=D._handlers[e];t.element.removeEventListener(t.event,t.handler)}D._handlers=[],D.mobileInput?(D.mobileInput.parentNode&&D.mobileInput.parentNode.removeChild(D.mobileInput),D.mobileInput=void 0):D.calendarContainer&&D.calendarContainer.parentNode&&D.calendarContainer.parentNode.removeChild(D.calendarContainer);D.altInput&&(D.input.type="text",D.altInput.parentNode&&D.altInput.parentNode.removeChild(D.altInput),delete D.altInput);D.input&&(D.input.type=D.input._type,D.input.classList.remove("flatpickr-input"),D.input.removeAttribute("readonly"),D.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete D[e]}catch(e){}})},D.isEnabled=P,D.jumpToDate=i,D.open=function(e,t){void 0===t&&(t=D._input);if(!0===D.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){void 0!==D.mobileInput&&D.mobileInput.click()},0),void U("onOpen");if(D._input.disabled||D.config.inline)return;var n=D.isOpen;D.isOpen=!0,n||(D.calendarContainer.classList.add("open"),D._input.classList.add("active"),U("onOpen"),H(t));!0===D.config.enableTime&&!0===D.config.noCalendar&&(0===D.selectedDates.length&&(D.setDate(void 0!==D.config.minDate?new Date(D.config.minDate.getTime()):(new Date).setHours(D.config.defaultHour,D.config.defaultMinute,D.config.defaultSeconds,0),!1),m(
20),G()),setTimeout(function(){return D.hourElement.select()},50))},D.redraw=L,D.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(D.config,e):(D.config[e]=t,void 0!==J[e]&&J[e].forEach(function(e){return e()}));D.redraw(),i()},D.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=D.config.dateFormat);if(0!==e&&!e)return D.clear(t);K(e,n),D.showTimeInput=0<D.selectedDates.length,D.latestSelectedDateObj=D.selectedDates[0],D.redraw(),i(),g(),G(t),t&&U("onChange")},D.toggle=function(){if(D.isOpen)return D.close();D.open()};var J={locale:[Y,T],showMonths:[x,t,E]};function K(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return D.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[D.parseDate(e,t)];else if("string"==typeof e)switch(D.config.mode){case"single":n=[D.parseDate(e,t)];break;case"multiple":n=e.split(D.config.conjunction).map(function(e){return D.parseDate(e,t)});break;case"range":n=e.split(D.l10n.rangeSeparator).map(function(e){return D.parseDate(e,t)})}else D.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));D.selectedDates=n.filter(function(e){return e instanceof Date&&P(e,!1)}),"range"===D.config.mode&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function B(e){return e.map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?D.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:D.parseDate(e.from,void 0),to:D.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function U(e,t){var n=D.config[e];if(void 0!==n&&0<n.length)for(var a=0;n[a]&&a<n.length;a++)n[a](D.selectedDates,D.input.value,D,t);"onChange"===e&&(D.input.dispatchEvent(q("change")),D.input.dispatchEvent(q("input")))}function q(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function $(e){for(var t=0;t<D.selectedDates.length;t++)if(0===re(D.selectedDates[t],e))return""+t;return!1}function z(){D.config.noCalendar||D.isMobile||!D.monthNav||(D.yearElements.forEach(function(e,t){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),D.monthElements[t].textContent=te(n.getMonth(),D.config.shorthandCurrentMonth,D.l10n)+" ",e.value=n.getFullYear().toString()}),D._hidePrevMonthArrow=void 0!==D.config.minDate&&(D.currentYear===D.config.minDate.getFullYear()?D.currentMonth<=D.config.minDate.getMonth():D.currentYear<D.config.minDate.getFullYear()),D._hideNextMonthArrow=void 0!==D.config.maxDate&&(D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth+1>D.config.maxDate.getMonth():D.currentYear>D.config.maxDate.getFullYear()))}function G(e){if(void 0===e&&(e=!0),0===D.selectedDates.length)return D.clear(e);void 0!==D.mobileInput&&D.mobileFormatStr&&(D.mobileInput.value=void 0!==D.latestSelectedDateObj?D.formatDate(D.latestSelectedDateObj,D.mobileFormatStr):"");var t="range"!==D.config.mode?D.config.conjunction:D.l10n.rangeSeparator;D.input.value=D.selectedDates.map(function(e){return D.formatDate(e,D.config.dateFormat)}).join(t),void 0!==D.altInput&&(D.altInput.value=D.selectedDates.map(function(e){return D.formatDate(e,D.config.altFormat)}).join(t)),!1!==e&&U("onValueUpdate")}function V(e){var t=D.prevMonthNav.contains(e.target),n=D.nextMonthNav.contains(e.target);t||n?k(t?-1:1):0<=D.yearElements.indexOf(e.target)?(e.preventDefault(),e.target.select()):e.target.classList.contains("arrowUp")?D.changeYear(D.currentYear+1):e.target.classList.contains("arrowDown")&&D.changeYear(D.currentYear-1)}return function(){D.element=D.input=s,D.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n=Object.assign({},u,JSON.parse(JSON.stringify(s.dataset||{}))),a={};D.config.parseDate=n.parseDate,D.config.formatDate=n.formatDate,Object.defineProperty(D.config,"enable",{get:function(){return D.config._enable},set:function(e){D.config._enable=B(e)}}),Object.defineProperty(D.config,"disable",{get:function(){return D.config._disable},set:function(e){D.config._disable=B(e)}}),!n.dateFormat&&n.enableTime&&(a.dateFormat=n.noCalendar?"H:i"+(n.enableSeconds?":S":""):ge.defaultConfig.dateFormat+" H:i"+(n.enableSeconds?":S":"")),n.altInput&&n.enableTime&&!n.altFormat&&(a.altFormat=n.noCalendar?"h:i"+(n.enableSeconds?":S K":" K"):ge.defaultConfig.altFormat+" h:i"+(n.enableSeconds?":S":"")+" K"),Object.defineProperty(D.config,"minDate",{get:function(){return D.config._minDate},set:j("min")}),Object.defineProperty(D.config,"maxDate",{get:function(){return D.config._maxDate},set:j("max")});var i=function(t){return function(e){D.config["min"===t?"_minTime":"_maxTime"]=D.parseDate(e,"H:i")}};Object.defineProperty(D.config,"minTime",{get:function(){return D.config._minTime},set:i("min")}),Object.defineProperty(D.config,"maxTime",{get:function(){return D.config._maxTime},set:i("max")}),Object.assign(D.config,a,n);for(var o=0;o<e.length;o++)D.config[e[o]]=!0===D.config[e[o]]||"true"===D.config[e[o]];for(var r=t.length;r--;)void 0!==D.config[t[r]]&&(D.config[t[r]]=ee(D.config[t[r]]||[]).map(f));"time"===D.config.mode&&(D.config.noCalendar=!0,D.config.enableTime=!0);for(var c=0;c<D.config.plugins.length;c++){var l=D.config.plugins[c](D)||{};
20for(var d in l)~t.indexOf(d)?D.config[d]=ee(l[d]).map(f).concat(D.config[d]):void 0===n[d]&&(D.config[d]=l[d])}D.isMobile=!D.config.disableMobile&&!D.config.inline&&"single"===D.config.mode&&!D.config.disable.length&&!D.config.enable.length&&!D.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),U("onParseConfig")}(),Y(),function(){if(D.input=D.config.wrap?s.querySelector("[data-input]"):s,!D.input)return D.config.errorHandler(new Error("Invalid input element specified"));D.input._type=D.input.type,D.input.type="text",D.input.classList.add("flatpickr-input"),D._input=D.input,D.config.altInput&&(D.altInput=se(D.input.nodeName,D.input.className+" "+D.config.altInputClass),D._input=D.altInput,D.altInput.placeholder=D.input.placeholder,D.altInput.disabled=D.input.disabled,D.altInput.required=D.input.required,D.altInput.tabIndex=D.input.tabIndex,D.altInput.type="text",D.input.type="hidden",!D.config.static&&D.input.parentNode&&D.input.parentNode.insertBefore(D.altInput,D.input.nextSibling)),D.config.allowInput||D._input.setAttribute("readonly","readonly"),D._positionElement=D.config.positionElement||D._input}(),function(){D.selectedDates=[],D.now=D.parseDate(D.config.now)||new Date;var e=D.config.defaultDate||D.input.value;e&&K(e,D.config.dateFormat);var t=0<D.selectedDates.length?D.selectedDates[0]:D.config.minDate&&D.config.minDate.getTime()>D.now.getTime()?D.config.minDate:D.config.maxDate&&D.config.maxDate.getTime()<D.now.getTime()?D.config.maxDate:D.now;D.currentYear=t.getFullYear(),D.currentMonth=t.getMonth(),0<D.selectedDates.length&&(D.latestSelectedDateObj=D.selectedDates[0]),void 0!==D.config.minTime&&(D.config.minTime=D.parseDate(D.config.minTime,"H:i")),void 0!==D.config.maxTime&&(D.config.maxTime=D.parseDate(D.config.maxTime,"H:i")),D.minDateHasTime=!!D.config.minDate&&(0<D.config.minDate.getHours()||0<D.config.minDate.getMinutes()||0<D.config.minDate.getSeconds()),D.maxDateHasTime=!!D.config.maxDate&&(0<D.config.maxDate.getHours()||0<D.config.maxDate.getMinutes()||0<D.config.maxDate.getSeconds()),Object.defineProperty(D,"showTimeInput",{get:function(){return D._showTimeInput},set:function(e){D._showTimeInput=e,D.calendarContainer&&de(D.calendarContainer,"showTimeInput",e),D.isOpen&&H()}})}(),D.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=D.currentMonth),void 0===t&&(t=D.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:D.l10n.daysInMonth[e]}},D.isMobile||function(){var e=window.document.createDocumentFragment();if(D.calendarContainer=se("div","flatpickr-calendar"),D.calendarContainer.tabIndex=-1,!D.config.noCalendar){if(e.appendChild((D.monthNav=se("div","flatpickr-months"),D.yearElements=[],D.monthElements=[],D.prevMonthNav=se("span","flatpickr-prev-month"),D.prevMonthNav.innerHTML=D.config.prevArrow,D.nextMonthNav=se("span","flatpickr-next-month"),D.nextMonthNav.innerHTML=D.config.nextArrow,x(),Object.defineProperty(D,"_hidePrevMonthArrow",{get:function(){return D.__hidePrevMonthArrow},set:function(e){D.__hidePrevMonthArrow!==e&&(de(D.prevMonthNav,"disabled",e),D.__hidePrevMonthArrow=e)}}),Object.defineProperty(D,"_hideNextMonthArrow",{get:function(){return D.__hideNextMonthArrow},set:function(e){D.__hideNextMonthArrow!==e&&(de(D.nextMonthNav,"disabled",e),D.__hideNextMonthArrow=e)}}),D.currentYearElement=D.yearElements[0],z(),D.monthNav)),D.innerContainer=se("div","flatpickr-innerContainer"),D.config.weekNumbers){var t=function(){D.calendarContainer.classList.add("hasWeeks");var e=se("div","flatpickr-weekwrapper");e.appendChild(se("span","flatpickr-weekday",D.l10n.weekAbbreviation));var t=se("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;D.innerContainer.appendChild(n),D.weekNumbers=a,D.weekWrapper=n}D.rContainer=se("div","flatpickr-rContainer"),D.rContainer.appendChild(E()),D.daysContainer||(D.daysContainer=se("div","flatpickr-days"),D.daysContainer.tabIndex=-1),C(),D.rContainer.appendChild(D.daysContainer),D.innerContainer.appendChild(D.rContainer),e.appendChild(D.innerContainer)}D.config.enableTime&&e.appendChild(function(){D.calendarContainer.classList.add("hasTime"),D.config.noCalendar&&D.calendarContainer.classList.add("noCalendar"),D.timeContainer=se("div","flatpickr-time"),D.timeContainer.tabIndex=-1;var e=se("span","flatpickr-time-separator",":"),t=fe("flatpickr-hour");D.hourElement=t.childNodes[0];var n=fe("flatpickr-minute");
20if(D.minuteElement=n.childNodes[0],D.hourElement.tabIndex=D.minuteElement.tabIndex=-1,D.hourElement.value=Z(D.latestSelectedDateObj?D.latestSelectedDateObj.getHours():D.config.time_24hr?D.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(D.config.defaultHour)),D.minuteElement.value=Z(D.latestSelectedDateObj?D.latestSelectedDateObj.getMinutes():D.config.defaultMinute),D.hourElement.setAttribute("data-step",D.config.hourIncrement.toString()),D.minuteElement.setAttribute("data-step",D.config.minuteIncrement.toString()),D.hourElement.setAttribute("data-min",D.config.time_24hr?"0":"1"),D.hourElement.setAttribute("data-max",D.config.time_24hr?"23":"12"),D.minuteElement.setAttribute("data-min","0"),D.minuteElement.setAttribute("data-max","59"),D.timeContainer.appendChild(t),D.timeContainer.appendChild(e),D.timeContainer.appendChild(n),D.config.time_24hr&&D.timeContainer.classList.add("time24hr"),D.config.enableSeconds){D.timeContainer.classList.add("hasSeconds");var a=fe("flatpickr-second");D.secondElement=a.childNodes[0],D.secondElement.value=Z(D.latestSelectedDateObj?D.latestSelectedDateObj.getSeconds():D.config.defaultSeconds),D.secondElement.setAttribute("data-step",D.minuteElement.getAttribute("data-step")),D.secondElement.setAttribute("data-min",D.minuteElement.getAttribute("data-min")),D.secondElement.setAttribute("data-max",D.minuteElement.getAttribute("data-max")),D.timeContainer.appendChild(se("span","flatpickr-time-separator",":")),D.timeContainer.appendChild(a)}return D.config.time_24hr||(D.amPM=se("span","flatpickr-am-pm",D.l10n.amPM[Q(11<(D.latestSelectedDateObj?D.hourElement.value:D.config.defaultHour))]),D.amPM.title=D.l10n.toggleTitle,D.amPM.tabIndex=-1,D.timeContainer.appendChild(D.amPM)),D.timeContainer}()),de(D.calendarContainer,"rangeMode","range"===D.config.mode),de(D.calendarContainer,"animate",!0===D.config.animate),de(D.calendarContainer,"multiMonth",1<D.config.showMonths),D.calendarContainer.appendChild(e);var i=void 0!==D.config.appendTo&&void 0!==D.config.appendTo.nodeType;if((D.config.inline||D.config.static)&&(D.calendarContainer.classList.add(D.config.inline?"inline":"static"),D.config.inline&&(!i&&D.element.parentNode?D.element.parentNode.insertBefore(D.calendarContainer,D._input.nextSibling):void 0!==D.config.appendTo&&D.config.appendTo.appendChild(D.calendarContainer)),D.config.static)){var o=se("div","flatpickr-wrapper");D.element.parentNode&&D.element.parentNode.insertBefore(o,D.element),o.appendChild(D.element),D.altInput&&o.appendChild(D.altInput),o.appendChild(D.calendarContainer)}D.config.static||D.config.inline||(void 0!==D.config.appendTo?D.config.appendTo:window.document.body).appendChild(D.calendarContainer)}(),function(){if(D.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(D.element.querySelectorAll("[data-"+t+"]"),function(e){return o(e,"click",D[t])})}),D.isMobile)return function(){var e=D.config.enableTime?D.config.noCalendar?"time":"datetime-local":"date";D.mobileInput=se("input",D.input.className+" flatpickr-mobile"),D.mobileInput.step=D.input.getAttribute("step")||"any",D.mobileInput.tabIndex=1,D.mobileInput.type=e,D.mobileInput.disabled=D.input.disabled,D.mobileInput.required=D.input.required,D.mobileInput.placeholder=D.input.placeholder,D.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",0<D.selectedDates.length&&(D.mobileInput.defaultValue=D.mobileInput.value=D.formatDate(D.selectedDates[0],D.mobileFormatStr)),D.config.minDate&&(D.mobileInput.min=D.formatDate(D.config.minDate,"Y-m-d")),D.config.maxDate&&(D.mobileInput.max=D.formatDate(D.config.maxDate,"Y-m-d")),D.input.type="hidden",void 0!==D.altInput&&(D.altInput.type="hidden");try{D.input.parentNode&&D.input.parentNode.insertBefore(D.mobileInput,D.input.nextSibling)}catch(e){}o(D.mobileInput,"change",function(e){D.setDate(e.target.value,!1,D.mobileFormatStr),U("onChange"),U("onClose")})}();var e=X(N,50);D._debouncedChange=X(p,me),D.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&o(D.daysContainer,"mouseover",function(e){"range"===D.config.mode&&A(e.target)}),o(window.document.body,"keydown",F),D.config.static||o(D._input,"keydown",F),D.config.inline||D.config.static||o(window,"resize",e),void 0!==window.ontouchstart&&o(window.document,"touchstart",O),o(window.document,"mousedown",a(O)),o(window.document,"focus",O,{capture:!0}
20),!0===D.config.clickOpens&&(o(D._input,"focus",D.open),o(D._input,"mousedown",a(D.open))),void 0!==D.daysContainer&&(o(D.monthNav,"mousedown",a(V)),o(D.monthNav,["keyup","increment"],n),o(D.daysContainer,"mousedown",a(R))),void 0!==D.timeContainer&&void 0!==D.minuteElement&&void 0!==D.hourElement&&(o(D.timeContainer,["input","increment"],d),o(D.timeContainer,"mousedown",a(r)),o(D.timeContainer,["input","increment"],D._debouncedChange,{passive:!0}),o([D.hourElement,D.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==D.secondElement&&o(D.secondElement,"focus",function(){return D.secondElement&&D.secondElement.select()}),void 0!==D.amPM&&o(D.amPM,"mousedown",a(function(e){d(e),p()})))}(),(D.selectedDates.length||D.config.noCalendar)&&(D.config.enableTime&&g(D.config.noCalendar?D.latestSelectedDateObj||D.config.minDate:void 0),G(!1)),t(),D.showTimeInput=0<D.selectedDates.length||D.config.noCalendar;var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!D.isMobile&&e&&H(),U("onReady")}(),D}function n(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=r(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)},HTMLElement.prototype.flatpickr=function(e){return n([this],e)});var ge=function(e,t){return e instanceof NodeList?n(e,t):n("string"==typeof e?window.document.querySelectorAll(e):[e],t)};return ge.defaultConfig=b,ge.l10ns={en:Object.assign({},ae),default:Object.assign({},ae)},ge.localize=function(e){ge.l10ns.default=Object.assign({},ge.l10ns.default,e)},ge.setDefaults=function(e){ge.defaultConfig=Object.assign({},ge.defaultConfig,e)},ge.parseDate=oe({}),ge.formatDate=ie({}),ge.compareDates=re,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return n(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},ge});; 21 22// ***************************
23// js.compressed/flatpickr.js 24// *************************** 25/*=======================================================================*\ 26|| ###################################################################### || 27|| # vBulletin 5.6.1 28|| # ------------------------------------------------------------------ # || 29|| # Copyright 2000-2020 MH Sub I, LLC dba vBulletin. All Rights Reserved. # || 30|| # This file may not be redistributed in whole or significant part. # || 31|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # || 32|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || 33|| ###################################################################### || 34\*========================================================================*/ 35window.vBulletin=window.vBulletin||{};window.vBulletin.phrase=window.vBulletin.phrase||{};window.vBulletin.phrase.precache=window.vBulletin.phrase.precache||[];window.vBulletin.phrase.precache=$.merge(window.vBulletin.phrase.precache,["january","february","march","april","may","june","july","august","september","october","november","december","january_short","february_short","march_short","april_short","may_short","june_short","july_short","august_short","september_short","october_short","november_short","december_short","sunday","monday","tuesday","wednesday","thursday","friday","saturday","sunday_short","monday_short","tuesday_short","wednesday_short","thursday_short","friday_short","saturday_short","datepicker_am","datepicker_clicktotoggle","datepicker_pm","datepicker_rangeseparator","datepicker_scrolltoincrement","datepicker_weekabbreviation","datepicker_year",]);window.vBulletin.options=window.vBulletin.options||{};window.vBulletin.options.precache=window.vBulletin.options.precache||[];window.vBulletin.options.precache=$.merge(window.vBulletin.options.precache,["pickerdateformat",]);(function(G){function P(b,Y){var X=["january","february","march","april","may","june","july","august","september","october","november","december"],c=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],Z=(Y=="long")?"":"_short",W=(b=="month")?X:c,a=[];G.each(W,function(d,e){a.push(vBulletin.phrase.get(e+Z))});return a}function M(){var a=vBulletin.options.get("pickerdateformat"),X="",b="";if(pageData.user_lang_pickerdateformatoverride){a=pageData.user_lang_pickerdateformatoverride}var d="",g=null,c=null,Y=null,W=null,Z=false,f=false;G.each(a.split(""),function(h,k){var j=!!k.match(/[GHhiSsK]/),l=!!k.match(/[a-z]/i),i=l&&!j;if(d!="\\"){if(j){if(k==="K"){Z=true}if(k==="h"){f=true}if(g===null){g=h}c=h}else{if(i){if(Y===null){Y=h}W=h}}}d=k});if(c<Y){var e=c+1;b=a.slice(0,e);X=a.slice(e)}else{if(W<g){var e=W+1;X=a.slice(0,e);b=a.slice(e)}else{X=a;b=a}}return{datetime:a,date:X,time:b,use24hour:!(Z||f)}}function K(X){var W="m/d/Y",b="H:i",Z=M(),a;var Y={time_24hr:Z.use24hour,onReady:D,onOpen:H,onChange:Q,onPreCalendarPosition:U,altInput:true,locale:{weekdays:{shorthand:P("weekday","short"),longhand:P("weekday","long"),},months:{shorthand:P("month","short"),longhand:P("month","long"),},rangeSeparator:vBulletin.phrase.get("datepicker_rangeseparator"),weekAbbreviation:vBulletin.phrase.get("datepicker_weekabbreviation"),scrollTitle:vBulletin.phrase.get("datepicker_scrolltoincrement"),toggleTitle:vBulletin.phrase.get("datepicker_clicktotoggle"),amPM:[vBulletin.phrase.get("datepicker_am"),vBulletin.phrase.get("datepicker_pm"),],yearAriaLabel:vBulletin.phrase.get("datepicker_year"),firstDayOfWeek:(parseInt(pageData.user_startofweek,10)||1)-1,},};if(vBulletin.isRtl()){Y.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='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>";Y.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='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>"}switch(X){case"date":Y.enableTime=false;Y.noCalendar=false;Y.dateFormat=W;Y.altFormat=Z.date;break;case"time":Y.enableTime=true;Y.noCalendar=true;Y.dateFormat=b;Y.altFormat=Z.time;break;case"datetime":Y.enableTime=true;Y.noCalendar=false;Y.dateFormat=W+" "+b;Y.altFormat=Z.datetime;break}return Y}function A(Y,X){var W=["onChange","onClose","onOpen","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"];G.each(W,function(Z,a){if(typeof X[a]=="function"){X[a]=[X[a]]}if(typeof Y[a]=="function"){Y[a]=[Y[a]]}});return G.extend(true,{},Y,X)}function E(Y,X,W){X=X||{};X=A(K(W),X);Y.flatpickr(X);Y.attr("data-vb-flatpicker-initialized",W);Y.trigger("vb-flatpicker-initialized")}function B(X,W){var Y=S(X),Z=X.val();if(!Y){return }Y.destroy();E(X,null,W);Y=S(X);Y.setDate(Z)}function F(X,W){E(X,W,"date")}function O(X,W){E(X,W,"time")}function T(X,W){E(X,W,"datetime")}function V(b){var Z=b.find(".js-daterange--min[data-vb-flatpicker-initialized]"),Y=b.find(".js-daterange--max[data-vb-flatpicker-initialized]");
35if(b.data("vb-daterange-initialized")){return true}if(!Z.length){G(".js-daterange--min",b).one("vb-flatpicker-initialized",function(){V(b)});return true}if(!Y.length){G(".js-daterange--max",b).one("vb-flatpicker-initialized",function(){V(b)});return true}if(Z.length&&Y.length){var c=vBulletin.flatpickr.getInstance(Z),d=vBulletin.flatpickr.getInstance(Y);if(!c||!d){return true}var e=c.config.onChange,X=(function(){var f=false;return function(i,h,g,j){if(!f){f=true;if(h){d.set("minDate",h)}f=false}}})(),W=d.config.onChange,a=(function(){var f=false;return function(i,h,g,j){if(!f){f=true;if(h){c.set("maxDate",h)}f=false}}})();e.push(X);c.set("onChange",e);W.push(a);d.set("onChange",W)}b.attr("data-vb-daterange-initialized",1)}function C(){G(".js-datepicker").each(function(){F(G(this))});G(".js-timepicker").each(function(){O(G(this))});G(".js-datetimepicker").each(function(){T(G(this))});G(".js-daterange").each(function(){V(G(this))})}function S(W){try{return W.get(0)._flatpickr}catch(X){}return null}function J(W){var X=S(W);if(X){W.data("vb-flatpickr-disabled","1");X.clear();X.close()}}function L(W){var X=S(W);if(X){W.data("vb-flatpickr-disabled","0")}}function I(d){if(!vBulletin.isRtl()){return }if(!(d&&d.calendarContainer&&d._positionElement)){return }var a=d.calendarContainer,W=d._positionElement,b=a.offsetWidth,Y=W.offsetWidth,Z=W.getBoundingClientRect(),X=window.pageXOffset+Z.left,c=window.document.body.offsetWidth-Z.right,e=X+Y<b;if(!e){G(a).addClass("rightMost").css({left:"auto",right:c+"px"})}}function D(Y,X,W,Z){I(W)}function H(Z,X,W,a){var Y=G(W.element);I(W);if(Y.data("vb-flatpickr-disabled")=="1"){W.close()}}function Q(Z,X,W,a){var Y=G(W.element);Y.change();I(W)}function U(Y,X,W,Z){window.setTimeout(function(){I(W);
35var e=G(W.calendarContainer),b=e.find(".flatpickr-days"),f=b.find(".dayContainer"),d=b.outerWidth(),a=f.outerWidth(),c=e.closest(".flatpickr-calendar");if(d&&a&&d>a){c.width(a-1)}},0)}function N(){C()}function R(){G(N);vBulletin.flatpickr=vBulletin.flatpickr||{};vBulletin.flatpickr.initPickers=C;vBulletin.flatpickr.getInstance=S;vBulletin.flatpickr.disablePicker=J;vBulletin.flatpickr.enablePicker=L;vBulletin.flatpickr.initDatePicker=F;vBulletin.flatpickr.initTimePicker=O;vBulletin.flatpickr.initDateTimePicker=T;vBulletin.flatpickr.changePickerType=B}R()})(jQuery);; 36 37// ***************************
38// js.compressed/sb_search.js 39// *************************** 40/*=======================================================================*\ 41|| ###################################################################### || 42|| # vBulletin 5.6.1 43|| # ------------------------------------------------------------------ # || 44|| # Copyright 2000-2020 MH Sub I, LLC dba vBulletin. All Rights Reserved. # || 45|| # This file may not be redistributed in whole or significant part. # || 46|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # || 47|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || 48|| ###################################################################### || 49\*========================================================================*/ 50window.vBulletin=window.vBulletin||{};window.vBulletin.phrase=window.vBulletin.phrase||{};window.vBulletin.phrase.precache=window.vBulletin.phrase.precache||[];window.vBulletin.phrase.precache=$.merge(window.vBulletin.phrase.precache,["error","error_adding_search_tips_code_x","invalid_json_string","invalid_search_syntax","invalid_server_response_please_try_again","search_tag_cloud","please_select_past_date","please_select_valid_date_range","content_type_Text","content_type_Gallery","content_type_Link","content_type_Photo","content_type_Poll","content_type_PrivateMessage","content_type_Video","save_as_search_module","saved_search_module_as_x","search_module_already_exists","search_module_not_found","please_enter_search_module_name","error_saving_search_module_x"]);(function(A){var B=[".search-fields-widget",".search-results-widget","#search-config-dialog"];if(!vBulletin.pageHasSelectors(B)){return false}window.vBulletin.search=window.vBulletin.search||{};window.vBulletin.search.SearchControl=function(G){var C=A(G),F=false,E=false;function K(){var Q=C.find(".searchSwitchToAdvanced"),O=C.find(".searchSwitchToForm"),M=Q.is(":visible"),P=O.is(":visible");if(M==P){Q.toggle(true);O.toggle(false);C.find(".form_row.form-row-json").addClass("h-hide-imp").nextAll().show()}Q.off("click").on("click",function(){var R=J();if(!R){return false}var S=JSON.stringify(R);C.find(".searchFields_searchJSON").val(S);C.find(".form_row.form-row-json").removeClass("h-hide-imp").nextAll().hide();Q.toggle(false);O.toggle(true)});O.off("click").on("click",function(){if(I(C.find(".searchFields_searchJSON").val())){Q.toggle(true);O.toggle(false);C.find(".form_row.form-row-json").addClass("h-hide-imp").nextAll().show()}});var N=C.find(".advSearchForm");if(N.length>0){N.submit(H)}F=new vBulletin.tagEditor.instance("{0}-searchFields_tag".format(G.replace(/\#/g,".")),true);var L=C.find(".searchFields_author");if(L.length>0){E=new vBulletin_Autocomplete(L,{apiClass:"user",containerClass:"entry-field h-clearfix"})}C.find(".js-search-keywords").off("keydown").on("keydown",function(R){if(R.which==13){if(N.length>0){N.submit()}}});C.find(".searchFields_last_visit").off("click").on("click",function(R){C.find(".datefield").prop("disabled",A(this).prop("checked"));if(A(this).is(":checked")){vBulletin.flatpickr.disablePicker(C.find(".searchFields_from_date"));vBulletin.flatpickr.disablePicker(C.find(".searchFields_to_date"))}else{vBulletin.flatpickr.enablePicker(C.find(".searchFields_from_date"));vBulletin.flatpickr.enablePicker(C.find(".searchFields_to_date"))}});C.find(".searchFields_channel_param").off("click").on("click",function(R){if(A(this).prop("checked")){C.find(".searchFields_channel").selectBox("disable")}else{C.find(".searchFields_channel").selectBox("enable")}});C.find(".search-tips").off("click").on("click",function(R){A(".search-tips-dialog").first().dialog({title:vBulletin.phrase.get("search_tips"),autoOpen:false,modal:true,resizable:false,closeOnEscape:true,showCloseButton:true,width:500,dialogClass:"dialog-container search-tips-dialog-container dialog-box"}).dialog("open");R.stopPropagation();return false});C.find(".searchFields_channel").selectBox();C.find(".searchFields_order_field").selectBox();C.find(".searchFields_order_direction").selectBox();C.find(".searchFields_view").selectBox()}function H(M){if(!C.find(".searchAdvancedFields").is(":visible")){var L=J();if(!L){return false}if(!L.author&&!L.channel&&!L.keywords&&!L.tag&&!L.type&&!L.date&&!L.last_visit&&!L.my_following&&!L.eventstartdate){vBulletin.warning("error","error_no_criteria");return false}C.find(".searchFields_searchJSON").val(JSON.stringify(L));
50C.find("form.advSearchForm").append(A('input[name^="humanverify"]').clone().attr("type","hidden"))}}function J(){var P={};if(C.find(".searchSwitchToForm").is(":visible")){P=JSON.parse(C.find(".searchFields_searchJSON").val()||"{}");if(P.length==0){vBulletin.warning("error","invalid_json_string");return }return P}var q=C.find(".js-search-keywords");if(q.length>0&&A.trim(q.val()).length>0){P.keywords=A.trim(q.val())}if(C.find(".searchFields_title_only:checked").length>0){P.title_only=1}if(C.find(".searchFields_starter_only:checked").length>0){P.starter_only=1}if(C.find(".searchFields_myFriends:checked").length>0){P.author="myFriends"}else{if(C.find(".searchFields_iFollow:checked").length>0){P.author="iFollow"}else{if(E){var p=E.getLabels();if(p.length>0){P.author=p}}}}var Z=C.find(".tag-input");if(Z.length>0){var N=C.find(".tag-input").val();if(N.length>0){var c=N.split(",");if(c.length>0){P.tag=c}}}if(C.find(".searchFields_last_visit:checked").length>0){P.date="lastVisit"}else{var M={},R=C.find(".searchFields_from_days");
50if(R.length>0&&A.trim(R.val()).length>0){M.from=A.trim(R.val())}else{var k=C.find(".searchFields_from_date"),l=Date.now();if(k.length>0&&A.trim(k.val()).length>0){var a=Date.parse(k.val());if(a<=0){vBulletin.warning("error","invalid_start_date");return false}else{if(a>l){vBulletin.warning("error","please_select_past_date");return false}}M.from=A.trim(k.val())}var d=C.find(".searchFields_to_date");if(d.length>0&&A.trim(d.val()).length>0){var X=Date.parse(d.val());if(X<=0){vBulletin.warning("error","invalid_end_date");return false}else{if(X>l){vBulletin.warning("error","please_select_past_date");return false}}if(a&&a>X){vBulletin.warning("error","please_select_valid_date_range");return false}M.to=A.trim(d.val())}}if(!A.isEmptyObject(M)){P.date=M}}var f=["eventstartdate","eventenddate"],j=f.length;for(var h=0;h<j;h++){var O=f[h],W=C.find('[name="searchFields['+O+'][from]"]'),r=W.length&&W.val().trim()||"",m=C.find('[name="searchFields['+O+'][to]"]'),L=m.length&&m.val().trim()||"",Y={};if(r){Y.from=r}if(L){Y.to=L}if(!A.isEmptyObject(Y)){P.eventstartdate=Y}}var e=C.find(".searchFields_featured");if(e.length>0&&e.prop("checked")){P.featured=1}var V=C.find(".searchFields_my_following");if(V.length>0&&V.prop("checked")){P.my_following=1}var b=[];C.find(".searchFields_type:checked").each(function(i,s){b.push(A(s).val())});if(A(b).length>0){P.type=b}if(C.find(".searchFields_channel_param:checked").length>0){P.channel={param:"channelid"}}else{var n=C.find("select.searchFields_channel");if(n.length>0){var S=n.val();if(S){P.channel=S}}}var Q=C.find(".searchFields_order_field"),U=C.find(".searchFields_order_direction");if(Q.length>0&&U.length>0&&Q.val()!=""){P.sort=Q.val();if(U.val()!=""){P.sort={};P.sort[Q.val()]=U.val()}}var T=C.find(".searchFields_view");if(T.length>0){P.view=T.val()}var o=C.find(".searchFields_exclude");if(o.length>0&&A.trim(o.val()).length>0){P.exclude=A.trim(o.val()).split(",")}var g=C.find(".searchFields_exclude_type");if(g.length>0&&A.trim(g.val()).length>0){P.exclude_type=A.trim(g.val()).split(",")}if(C.find('input[name="searchFields[approved_only]"]:checked').length>0){P.approved_only=1}return P}function I(O,Z,L,l){var j=O;if(typeof O=="string"){try{O=JSON.parse(O||"{}");if(O.length==0){vBulletin.warning("error","invalid_json_string");return false}}catch(Q){vBulletin.warning("error","invalid_json_string");return false}}else{j=JSON.stringify(O)}var X=C.find(".js-search-keywords");if(X.length>0){X.val(O.keywords||"");delete O.keywords}var R={".searchFields_myFriends":"myFriends",".searchFields_iFollow":"iFollow"};A.each(R,function(i,r){var s=C.find(i);if(s.length>0){var t=(O.author&&O.author==r);if(t){delete O.author}s.prop("checked",t)}});var P=C.find(".searchFields_author");if(P.length>0){var p=false;if(A.isArray(O.author)){p=O.author}else{if(O.exactname){p=[O.author]}}if(p){E.setElements(p);delete O.author;delete O.exactname}}var q=C.find(".tag-input");if(q.length>0){var a=O.tag||[];if(!Array.isArray(a)){a=[a]}q.val(a);F.setTags(a);C.find(".tag-list span").html(a.join(", "));delete O.tag}var f=C.find(".searchFields_last_visit"),Y=(O.date&&O.date&&O.date=="lastVisit");if(f.length>0){f.prop("checked",Y);if(Y){delete O.date}}var c={".searchFields_from_date":"from",".searchFields_to_date":"to",".searchFields_from_days":"from"};A.each(c,function(i,t){var u=C.find(i);if(u.length>0){if(vBulletin.flatpickr){var s=vBulletin.flatpickr.getInstance(u);if(s){if(f.is(":checked")){vBulletin.flatpickr.disablePicker(u)}else{vBulletin.flatpickr.enablePicker(u)}}}if(!Y){var r="";if(O.date&&O.date[t]){r=O.date[t];delete O.date[t]}u.val(r)}}});if(A.isEmptyObject(O.date)){delete O.date}var e=["eventstartdate","eventenddate"],h=e.length;for(var g=0;g<h;g++){var N=e[g],U=C.find('[name="searchFields['+N+'][from]"]'),m=C.find('[name="searchFields['+N+'][to]"]');if(O[N]){if(O[N]["to"]&&m.length){m.val(O[N]["to"])}if(O[N]["from"]&&U.length){U.val(O[N]["from"])}}delete O[N]}var T={".searchFields_featured":"featured",".searchFields_my_following":"my_following",".searchFields_starter_only":"starter_only",".searchFields_title_only":"title_only",'input[name="searchFields[approved_only]"]':"approved_only",};A.each(T,function(i,r){var s=C.find(i);if(s.length>0){s.prop("checked",(O[r]?true:false));delete O[r]}});var V=C.find(".searchFields_type_container");if(V.length>0){if(Z){var b=V.find(".field-desc");b.prevAll().remove();A.each(Z,function(r,i){if(r!="vBForum_PrivateMessage"){b.before(A('<label><input type="checkbox" name="searchFields[type][]" class="searchFields_type" value="'+r+'" /><span>
50'+vBulletin.phrase.get("content_type_"+i["class"])+"</span></label>"))}})}C.find(".searchFields_type").val(O.type||[]);delete O.type;delete O.exclude_type}var o=C.find(".searchFields_channel");if(o.length>0){if(L){o.selectBox("options",D(L))}if(O.channel){o.selectBox("value",A.makeArray(O.channel))}}delete O.channel;var k=C.find("select.searchFields_order_direction"),S=C.find("select.searchFields_order_field"),M="",d="";if(O.sort){if(typeof O.sort=="string"){M=O.sort}else{if(typeof O.sort=="object"){A.each(O.sort,function(i,r){M=i;d=r})}}delete O.sort}if(k.length>0){k.selectBox("value",d)}if(S.length>0){S.selectBox("value",M)}var W=C.find("select.searchFields_view");if(W.length>0){W.selectBox("value",O.view||"");delete O.view}if(!A.isEmptyObject(O)){var n=C.find(".searchSwitchToAdvanced");if(n.length>0){C.find(".form_row.form-row-json").removeClass("h-hide-imp").nextAll().hide();n.hide();C.find(".searchSwitchToForm").show();C.find(".searchFields_searchJSON").val(j)}return false}return true}function D(L){var M="";A.each(L,function(O,N){M+=A("<option></option>").val(O).html(str_repeat(" ",N.depth*3).concat(N.htmltitle));if(N.channels){M+=addChannels(N.channels)}});return M}this.load=function(){return J()};this.set=function(O,M,L,N){return I(O,M,L,N)};K()};A(document).ready(function(){var D=A("#advancedSearchFields"),J=A(".search-results-widget");vBulletin.truncatePostContent(J);if(D.length>0){var K=D.find(".searchFields_from_date"),C=D.find(".searchFields_to_date"),M=(new Date());if(K.data("vb-flatpicker-initialized")){vBulletin.flatpickr.getInstance(K).set("maxDate",M)}else{K.one("vb-flatpicker-initialized",function(){vBulletin.flatpickr.getInstance(A(this)).set("maxDate",M)})}if(C.data("vb-flatpicker-initialized")){vBulletin.flatpickr.getInstance(C).set("maxDate",M)}else{C.one("vb-flatpicker-initialized",function(){vBulletin.flatpickr.getInstance(A(this)).set("maxDate",M)})}var E=new vBulletin.search.SearchControl(D.selector);searchJSONStr=D.find(".searchFields_searchJSON").val();if(searchJSONStr.length>0){E.set(searchJSONStr,false,false,true)}}var L=A(".sort-controls",J);if(L.length>0){L.find(".searchFields_order_field").selectBox().change(function(){var R=O.find(".searchResults_searchJSON").val()||"{}",Q=JSON.parse(R);Q.sort={};Q.sort[A(this).val()]=L.find(".searchFields_order_direction").selectBox().val();O.find(".searchResults_searchJSON").val(JSON.stringify(Q));A(".resultSearchForm").submit()});L.find(".searchFields_order_direction").selectBox().change(function(){var R=O.find(".searchResults_searchJSON").val()||"{}",Q=JSON.parse(R);Q.sort={};Q.sort[L.find(".searchFields_order_field").selectBox().val()]=A(this).val();O.find(".searchResults_searchJSON").val(JSON.stringify(Q));A(".resultSearchForm").submit()});L.removeClass("h-invisible")}var O=A(".search-controls",J);if(O.length>0){var I=false,P=false,F=O.find(".searchFields_author");if(F.length>0){I=new vBulletin_Autocomplete(F,{apiClass:"user",containerClass:"entry-field h-clearfix"});O.find(".search-controls-members .removable-element .element-text").each(function(R,Q){I.addElement(A(Q).html())})}if(O.find(".searchResultTagEditor").length>0){P=new vBulletin.tagEditor.instance(".search-controls .searchResultTagEditor",true);O.find(".search-controls-tags .removable-element .element-text").each(function(R,Q){P.addTag(A(Q).html())})}O.find("button").off("click").on("click",function(S){var T=O.find(".searchResults_searchJSON").val()||"{}",Q=JSON.parse(T),R=A(this).val();switch(R){case"keywords":Q.keywords=O.find(".js-search-keywords").val();Q.title_only=O.find(".searchFields_title_only").is(":checked");break;case"author":Q.author=I.getLabels();Q.starter_only=O.find(".searchFields_starter_only").is(":checked");break;case"tags":Q.tag=P.getTags();break;default:return ;break}O.find(".searchResults_searchJSON").val(JSON.stringify(Q));A(".resultSearchForm").submit()});O.find(".removable-element .element-x").off("click").on("click",function(U){var V=O.find(".searchResults_searchJSON").val()||"{}",R=JSON.parse(V),T=A(this).parents(".search-control-popup");if(T.hasClass("search-controls-members")){A(this).parents(".removable-element").remove();var Q=[];T.find(".removable-element .element-text").each(function(X,W){Q.push(A(W).html())});R.author=Q;if(Q.length==0){delete R.author}}if(T.hasClass("search-controls-tags")){A(this).parents(".removable-element").remove();var S=[];T.find(".removable-element .element-text").each(function(X,W){S.push(A(W).html())});R.tag=S;if(S.length==0){delete R.tag}}O.find(".searchResults_searchJSON").val(JSON.stringify(R));A(".resultSearchForm").submit()})}if(vBulletin.inlinemod&&typeof vBulletin.inlinemod.init=="function"){vBulletin.inlinemod.init(J)}J.off("click",".js-post-control__ip-address").on("click",".js-post-control__ip-address",vBulletin.conversation.showIp);J.off("click",".js-post-control__vote").on("click",".js-post-control__vote",function(Q){if(A(Q.target).closest(".
50js-bubble-flyout").length==1){vBulletin.conversation.showWhoVoted.apply(Q.target,[Q])}else{vBulletin.conversation.votePost.apply(this,[Q])}return false});J.off("click",".js-post-control__edit").on("click",".js-post-control__edit",vBulletin.conversation.editPost);J.off("click",".js-post-control__flag").on("click",".js-post-control__flag",vBulletin.conversation.flagPost);J.off("click",".js-post-control__comment").on("click",".js-post-control__comment",vBulletin.conversation.toggleCommentBox);J.off("click",".js-comment-entry__post").on("click",".js-comment-entry__post",function(Q){vBulletin.conversation.postComment.apply(this,[Q,function(R){location.reload()}])});var G=(typeof J.data("keywords")!="undefined")?J.data("keywords").toString():"";if(G.length>0){var N;A(G.split(" ")).each(function(R,Q){N=Q.toUpperCase();if(N=="OR"||N=="AND"){return }A(".post-header",J).highlight(Q);if(!A(".searchFields_title_only",J).prop("checked")){A(".post-content",J).highlight(Q)}})}if(J.length==1){var H=A(".pagenav-form",J).attr("action");if(H){A(".js-pagenav .js-pagenav-button",J).each(function(){var R=A(this),Q=R.prop("href");if(!Q||(pageData.baseurl&&Q==pageData.baseurl)){R.prop("href",H+"&p="+parseInt(R.data("page"),10))}})}}})})(jQuery);; 51
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.