!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.DateFormatter=t()}("undefined"!=typeof self?self:this,function(){var g={DAY:864e5,HOUR:3600,defaults:{dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/.:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},getInt:function(e,t){return parseInt(e,t||10)},compare:function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},lpad:function(e,t,a){e=e.toString();return a=a||"0",e.length'),u=N('
'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&N(y.ownerDocument.body).addClass("xdsoft_noselect"),N([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){N([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),N(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1'),e=N(''),m=N('
'),_=N('
'),C=N('
'),o=N('
'),l=o.find(".xdsoft_time_box").eq(0),P=N('
'),i=N(''),A=N('
'),Y=N('
'),s=!1,d=0;I.id&&W.attr("id",I.id),I.style&&W.attr("style",I.style),I.weeks&&W.addClass("xdsoft_showweeks"),I.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+I.theme),W.addClass(I.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(Y),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,n=N(this).find(".xdsoft_select").eq(0),r=0,o=0,i=n.is(":visible");for(_.find(".xdsoft_select").hide(),O.currentTime&&(r=O.currentTime[N(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[i?"hide":"show"](),t=n.find("div.xdsoft_option"),a=0;aI.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return I.startDate?t=O.strToDate(I.startDate):(t=I.value||(w&&w.val&&w.val()?w.val():""))?(t=O.strToDateTime(t),I.yearOffset&&(t=new Date(t.getFullYear()-I.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):I.defaultDate&&(t=O.strToDateTime(I.defaultDate),I.defaultTime&&(e=O.strtotime(I.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&O.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&w.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,w.val())||(w.val(c.mask.replace(/[0-9]/g,"_")),h(w[0],0)),w.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,n=this.selectionStart,a=a.substr(0,n)+t+a.substr(n+t.length);return n+=t.length,m(c.mask,a)?(this.value=a,h(this,n)):""===N.trim(a)?this.value=c.mask.replace(/[0-9]/g,"_"):w.trigger("error_input.xdsoft"),e.preventDefault(),!1}),w.on("keydown.xdsoft",function(e){var t,a,n,r=this.value,o=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=o&&o<=57||96<=o&&o<=105||8===o||46===o){for(t=8===o||46===o?"_":String.fromCharCode(96<=o&&o<=105?o-48:o),8===o&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i",I.weeks&&(u+=""),e=0;e<7;e+=1)u+=""+I.i18n[E].dayOfWeekShort[(e+I.dayOfWeekStart)%7]+"";for(u+="",u+="",!1!==I.maxDate&&(m=O.strToDate(I.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==I.minDate&&(h=O.strToDate(I.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==I.minDateTime&&(g=O.strToDate(I.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==I.maxDateTime&&(p=O.strToDate(I.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f"+r+"")),u+='
'+a+"
",l.getDay()===I.dayOfWeekStartPrev&&(u+="",D=!0),l.setDate(a+1)}u+="",C.html(u),_.find(".xdsoft_label span").eq(0).text(I.i18n[E].months[O.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+I.yearOffset),T=v="";var b=0;!1!==I.minTime&&(b=60*(x=O.strtotime(I.minTime)).getHours()+x.getMinutes());var x,T,S=1440;if(!1!==I.maxTime&&(S=60*(x=O.strtotime(I.maxTime)).getHours()+x.getMinutes()),!1!==I.minDateTime&&(x=O.strToDateTime(I.minDateTime),L.formatDate(O.currentTime,I.formatDate)===L.formatDate(x,I.formatDate)&&(T=60*x.getHours()+x.getMinutes(),b'+L.formatDate(a,I.formatTime)+""},I.allowTimes&&Array.isArray(I.allowTimes)&&I.allowTimes.length)for(f=0;f'+(f+I.yearOffset)+"";for(Y.children().eq(0).html(F),f=parseInt(I.monthStart,10),F="";f<=parseInt(I.monthEnd,10);f+=1)F+='
'+I.i18n[E].months[f]+"
";A.children().eq(0).html(F),N(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;I.timepicker&&(P.find(".xdsoft_current").length?a=".xdsoft_current":P.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=P[0].offsetHeight)-e<(a=P.find(a).index()*I.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),n=0,C.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),n+=1;var t=N(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),w.val(O.str()),I.onSelectDate&&"function"==typeof I.onSelectDate&&I.onSelectDate.call(W,O.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1l+f?(o="bottom",i=l+f-n.top):i-=f):i+W[0].offsetHeight>l+f&&(i=n.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),n=W[0],c(n,function(e){if("relative"===I.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:I.insideParent?r.offsetLeft:s,top:"",bottom:""},I.insideParent?d[o]=r.offsetTop+r.offsetHeight:d[o]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;I.onShow&&"function"==typeof I.onShow&&(t=I.onShow.call(W,O.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),N(I.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),I.closeOnWithoutClick&&N([I.ownerDocument.body,I.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),N([I.ownerDocument.body,I.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),I.onClose&&"function"==typeof I.onClose&&(t=I.onClose.call(W,O.currentTime,W.data("input"),e)),!1===t||I.opened||I.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",w),d=0,W.data("xdsoft_datetime",O),W.setOptions(I),O.setCurrentTime(f()),w.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){w.is(":disabled")||w.data("xdsoft_datetimepicker").is(":visible")&&I.closeOnInputClick||I.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){w.is(":disabled")||(s=!0,O.setCurrentTime(f(),!0),I.mask&&h(I),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&I.enterLikeTab?(e=N("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[x].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),N(I.contentWindow).off("resize.xdsoft"),N([I.contentWindow,I.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return N(I.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=N(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof F)switch(F){case"show":N(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(N(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,I.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[F]&&"function"==typeof e[F]&&(n=e[F](a))}else e.setOptions(F);return 0}"string"!=typeof F&&(!I.lazyInit||I.open||I.inline?o(N(this)):(t=N(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||o(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),n},N.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(l){var f,c,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(l.event.fixHooks)for(var a=e.length;a;)l.event.fixHooks[e[--a]]=l.event.mouseHooks;var h=l.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,!1);else this.onmousewheel=n;l.data(this,"mousewheel-line-height",h.getLineHeight(this)),l.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=l(e),e=t["offsetParent"in l.fn?"offsetParent":"parent"]();return e.length||(e=l("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return l(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,a=e||window.event,n=m.call(arguments,1),r=0,o=0,i=0,s=0,d=0,u=0;if((e=l.event.fix(a)).type="mousewheel","detail"in a&&(i=-1*a.detail),"wheelDelta"in a&&(i=a.wheelDelta),"wheelDeltaY"in a&&(i=a.wheelDeltaY),"wheelDeltaX"in a&&(o=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(o=-1*i,i=0),r=0===i?o:i,"deltaY"in a&&(r=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(r=-1*o)),0!==i||0!==o)return 1===a.deltaMode?(r*=t=l.data(this,"mousewheel-line-height"),i*=t,o*=t):2===a.deltaMode&&(r*=t=l.data(this,"mousewheel-page-height"),i*=t,o*=t),s=Math.max(Math.abs(i),Math.abs(o)),(!c||s