PageSourceSearch

https://cdink.ru/bitrix/templates/concept_kraken_s1/lang/ru/jquery.datetimepicker.full.min.js?169132316839852

js cdink.ru collected 2026-09-28 23:02:53 UTC 39,852 bytes, 1 lines download raw bytes

1var DateFormatter;!function(){"use strict";var e,t,n,o,a,r;a=864e5,r=3600,e=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},t=function(e,n,o){var a=o||"0",r=e.toString();return r.length<n?t(a+r,n):r},n=function(e){var t,o;for(e=e||{},t=1;t<arguments.length;t++)if(o=arguments[t])for(var a in o)o.hasOwnProperty(a)&&("object"==typeof o[a]?n(e[a],o[a]):e[a]=o[a]);return e},o={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,n={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&n[t]?n[t]:"th"}},separators:/[ \-+\/\.T:@]/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},(DateFormatter=function(e){var t=this,a=n(o,e);t.dateSettings=a.dateSettings,t.separators=a.separators,t.validParts=a.validParts,t.intParts=a.intParts,t.tzParts=a.tzParts,t.tzClip=a.tzClip}).prototype={constructor:DateFormatter,parseDate:function(t,n){var o,a,r,i,s,d,l,u,f,c,h=this,m=!1,g=!1,p=h.dateSettings,x={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(t){if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);if("U"===n)return r=parseInt(t),r?new Date(1e3*r):t;if("string"!=typeof t)return"";if(!(o=n.match(h.validParts))||0===o.length)throw new Error("Invalid date format definition.");for(a=t.replace(h.separators,"\0").split("\0"),r=0;r<a.length;r++)switch(i=a[r],s=parseInt(i),o[r]){case"y":case"Y":2===(f=i.length)?x.year=parseInt((70>s?"20":"19")+i):4===f&&(x.year=s),m=!0;break;case"m":case"n":case"M":case"F":isNaN(i)?((d=p.monthsShort.indexOf(i))>-1&&(x.month=d+1),(d=p.months.indexOf(i))>-1&&(x.month=d+1)):s>=1&&12>=s&&(x.month=s),m=!0;break;case"d":case"j":s>=1&&31>=s&&(x.day=s),m=!0;break;case"g":case"h":c=a[l=o.indexOf("a")>-1?o.indexOf("a"):o.indexOf("A")>-1?o.indexOf("A"):-1],l>-1?(u=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&u>-1?x.hour=s+u:s>=0&&23>=s&&(x.hour=s)):s>=0&&23>=s&&(x.hour=s),g=!0;break;case"G":case"H":s>=0&&23>=s&&(x.hour=s),g=!0;break;case"i":s>=0&&59>=s&&(x.min=s),g=!0;break;case"s":s>=0&&59>=s&&(x.sec=s),g=!0}if(!0===m&&x.year&&x.month&&x.day)x.date=new Date(x.year,x.month-1,x.day,x.hour,x.min,x.sec,0);else{if(!0!==g)return!1;x.date=new Date(0,0,0,x.hour,x.min,x.sec,0)}return x.date}},guessDate:function(e,t){if("string"!=typeof e)return e;var n,o,a,r,i=this,s=e.replace(i.separators,"\0").split("\0"),d=/^[djmn]/g,l=t.match(i.validParts),u=new Date,f=0;if(!d.test(l[0]))return e;for(o=0;o<s.length;o++){switch(f=2,a=s[o],r=parseInt(a.substr(0,2)),o){case 0:"m"===l[0]||"n"===l[0]?u.setMonth(r-1):u.setDate(r);break;case 1:"m"===l[0]||"n"===l[0]?u.setDate(r):u.setMonth(r-1);break;case 2:n=u.getFullYear(),a.length<4?(u.setFullYear(parseInt(n.toString().substr(0,4-a.length)+a)),f=a.length):(u.setFullYear=parseInt(a.substr(0,4)),f=4);break;case 3:u.setHours(r);break;case 4:u.setMinutes(r);break;case 5:u.setSeconds(r)}a.substr(f).length>0&&s.splice(o+1,0,a.substr(f))}return u},parseFormat:function(e,n){var o,i=this,s=i.dateSettings,d=/\\?(.?)/gi,l=function(e,t){return o[e]?o[e]():t};return o={d:function(){return t(o.j(),2)},D:function(){return s.daysShort[o.w()]},j:function(){return n.getDate()},l:function(){return s.days[o.w()]},N:function(){return o.w()||7},w:function(){return n.getDay()},z:function(){var e=new Date(o.Y(),o.n()-1,o.j()),t=new Date(o.Y(),0,1);return Math.round((e-t)/a)},W:function(){var e=new Date(o.Y(),o.n()-1,o.j()-o.N()+3),n=new Date(e.getFullYear(),0,4);return t(1+Math.round((e-n)/a/7),2)},F:function(){return s.months[n.getMonth()]},m:function(){return t(o.n(),2)},M:function(){return s.monthsShort[n.getMonth()]},n:function(){return n.getMonth()+1},t:function(){return new Date(o.Y(),o.n(),0).getDate()},L:function(){var e=o.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=o.n(),t=o.W();return o.Y()+(12===e&&9>t?1:1===e&&t>9?-1:0)},Y:function(){return n.getFullYear()},y:function(){return o.Y().toString().slice(-2)},a:function(){return o.A().toLowerCase()},A:function(){var e=o.G()<12?0:1;return s.meridiem[e]},B:function(){var e=n.getUTCHours()*r,o=60*n.getUTCMinutes(),a=n.getUTCSeconds();return t(Math.floor((e+o+a+r)/86.4)%1e3,3)},g:function(){return o.G()%12||12},G:function(){return n.getHours()},h:function(){return t(o.g(),2)},H:function(){return t(o.G(),2)},i:function(){return t(n.getMinutes(),2)},s:function(){return t(n.getSeconds(),2)},u:function(){return t(1e3*n.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(n))[1]||"Coordinated Universal Time"},T:function(){return(String(n).match(i.tzParts)||[""]).pop().replace(i.tzClip,"")||"UTC"},I:function(){return new Date(o.Y(),0)-Date.UTC(o.Y(),0)!=new Date(o.Y(),6)-Date.UTC(o.Y(),6)?1:0},O:function(){var e=n.getTimezoneOffset(),o=Math.abs(e);return(e>0?"-":"+")+t(100*Math.floor(o/60)+o%60,4)},P:function(){var e=o.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(d,l)},r:function(){return"D, d M Y H:i:s O".replace(d,l)},U:function(){return n.getTime()/1e3||0}},l(e,e)},formatDate:function(e,t){var n,o,a,r,i,s=this,d="";if("string"==typeof e&&!1===(e=s.parseDate(e,t)))return!1;if(e instanceof Date){for(a=t.length,n=0;a>n;n++)"S"!==(i=t.charAt(n))&&(r=s.parseFormat(i,e),n!==a-1&&s.intParts.test(i)&&"S"===t.charAt(n+1)&&(o=parseInt(r),r+=s.dateSettings.ordinal(o)),d+=r);return d}return""}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){"use strict";function t(e,t,n){this.date=e,this.desc=t,this.style=n}var n={i18n:{ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]}},value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,disabledMinTime:!1,disabledMaxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},o=null,a="en",r={meridiem:["AM","PM"]},i=function(){var t=n.i18n[a],i={days:t.dayOfWeek,daysShort:t.dayOfWeekShort,months:t.months,monthsShort:e.map(t.months,function(e){return e.substring(0,3)})};o=new DateFormatter({dateSettings:e.extend({},r,i)})};e.datetimepicker={setLocale:function(e){var t=n.i18n[e]?e:"en";a!=t&&(a=t,i())},setDateFormatter:function(e){o=e},RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},i(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(e,t,n){return n.toUpperCase()})),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n,o;for(n=t||0,o=this.length;o>n;n+=1)if(this[n]===e)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t){return this.each(function(){var n,o,a,r,i,s=e(this),d=function(e){var t,n={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n.x=t.clientX,n.y=t.clientY):("mousedown"===e.type||"mouseup"===e.type||"mousemove"===e.type||"mouseover"===e.type||"mouseout"===e.type||"mouseenter"===e.type||"mouseleave"===e.type)&&(n.x=e.clientX,n.y=e.clientY),n},l=100,u=!1,f=0,c=0,h=0,m=!1,g=0,p=function(){};return"hide"===t?void s.find(".xdsoft_scrollbar").hide():(e(this).hasClass("xdsoft_scroller_box")||(n=s.children().eq(0),o=s[0].clientHeight,a=n[0].offsetHeight,r=e('<div class="xdsoft_scrollbar"></div>'),i=e('<div class="xdsoft_scroller"></div>'),r.append(i),s.addClass("xdsoft_scroller_box").append(r),p=function(e){var t=d(e).y-f+g;0>t&&(t=0),t+i[0].offsetHeight>h&&(t=h-i[0].offsetHeight),s.trigger("scroll_element.xdsoft_scroller",[l?t/l:0])},i.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){o||s.trigger("resize_scroll.xdsoft_scroller",[t]),f=d(n).y,g=parseInt(i.css("margin-top"),10),h=r[0].offsetHeight,"mousedown"===n.type||"touchstart"===n.type?(document&&e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("touchend mouseup.xdsoft_scroller",function t(){e([document.body,window]).off("touchend mouseup.xdsoft_scroller",t).off("mousemove.xdsoft_scroller",p).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",p)):(m=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(e){m&&(e.preventDefault(),p(e))}).on("touchend touchcancel",function(){m=!1,g=0}),s.on("scroll_element.xdsoft_scroller",function(e,t){o||s.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:0>t||isNaN(t)?0:t,i.css("margin-top",l*t),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-o)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,d){var u,f;o=s[0].clientHeight,a=n[0].offsetHeight,f=(u=o/a)*r[0].offsetHeight,u>1?i.hide():(i.show(),i.css("height",parseInt(f>10?f:10,10)),l=r[0].offsetHeight-i[0].offsetHeight,!0!==d&&s.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(n.css("marginTop"),10))/(a-o)]))}),s.on("mousewheel",function(e){var t=Math.abs(parseInt(n.css("marginTop"),10));return 0>(t-=20*e.deltaY)&&(t=0),s.trigger("scroll_element.xdsoft_scroller",[t/(a-o)]),e.stopPropagation(),!1}),s.on("touchstart",function(e){u=d(e),c=Math.abs(parseInt(n.css("marginTop"),10))}),s.on("touchmove",function(e){if(u){e.preventDefault();var t=d(e);s.trigger("scroll_element.xdsoft_scroller",[(c-(t.y-u.y))/(a-o)])}}),s.on("touchend touchcancel",function(){u=!1,c=0})),void s.trigger("resize_scroll.xdsoft_scroller",[t]))})},e.fn.datetimepicker=function(r,i){var s,d,l=this,u=48,f=57,c=96,h=105,m=17,g=46,p=13,x=27,v=8,D=37,y=38,w=39,T=40,b=9,_=116,k=65,M=67,S=86,C=90,O=89,Y=!1,F=e.isPlainObject(r)||!r?e.extend(!0,{},n,r):e.extend(!0,{},n),H=0,P=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){e.is(":disabled")||e.data("xdsoft_datetimepicker")||(clearTimeout(H),H=setTimeout(function(){e.data("xdsoft_datetimepicker")||s(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};return s=function(n){function i(){var e,t=!1;return F.startDate?t=I.strToDate(F.startDate):(t=F.value||(n&&n.val&&n.val()?n.val():""),t?t=I.strToDateTime(t):F.defaultDate&&(t=I.strToDateTime(F.defaultDate),F.defaultTime&&(e=I.strtotime(F.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes())))),t&&I.isValidDate(t)?A.data("changed",!0):t="",t||0}function s(t){var o=function(e,t){var n=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}");return new RegExp(n).test(t)},a=function(e){try{if(document.selection&&document.selection.createRange)return document.selection.createRange().getBookmark().charCo
vendor: 18,394 bytes, line 1
1deAt(2)-2;if(e.setSelectionRange)return e.selectionStart}catch(e){return 0}},r=function(e,t){if(!(e="string"==typeof e||e instanceof String?document.getElementById(e):e))return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};t.mask&&n.off("keydown.xdsoft"),!0===t.mask&&(t.mask="undefined"!=typeof moment?t.format.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59"):t.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"===e.type(t.mask)&&(o(t.mask,n.val())||(n.val(t.mask.replace(/[0-9]/g,"_")),r(n[0],0)),n.on("keydown.xdsoft",function(i){var s,d,l=this.value,F=i.which;if(F>=u&&f>=F||F>=c&&h>=F||F===v||F===g){for(s=a(this),d=F!==v&&F!==g?String.fromCharCode(F>=c&&h>=F?F-u:F):"_",F!==v&&F!==g||!s||(s-=1,d="_");/[^0-9_]/.test(t.mask.substr(s,1))&&s<t.mask.length&&s>0;)s+=F===v||F===g?-1:1;if(l=l.substr(0,s)+d+l.substr(s+1),""===e.trim(l))l=t.mask.replace(/[0-9]/g,"_");else if(s===t.mask.length)return i.preventDefault(),!1;for(s+=F===v||F===g?0:1;/[^0-9_]/.test(t.mask.substr(s,1))&&s<t.mask.length&&s>0;)s+=F===v||F===g?-1:1;o(t.mask,l)?(this.value=l,r(this,s)):""===e.trim(l)?this.value=t.mask.replace(/[0-9]/g,"_"):n.trigger("error_input.xdsoft")}else if(-1!==[k,M,S,C,O].indexOf(F)&&Y||-1!==[x,y,T,D,w,_,m,b,p].indexOf(F))return!0;return i.preventDefault(),!1}))}var d,l,H,P,I,W,A=e('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),j=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),z=e('<div class="xdsoft_datepicker active"></div>'),R=e('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),B=e('<div class="xdsoft_calendar"></div>'),N=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),E=N.find(".xdsoft_time_box").eq(0),L=e('<div class="xdsoft_time_variant"></div>'),q=e('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),G=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),V=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),U=!1,X=0;F.id&&A.attr("id",F.id),F.style&&A.attr("style",F.style),F.weeks&&A.addClass("xdsoft_showweeks"),F.rtl&&A.addClass("xdsoft_rtl"),A.addClass("xdsoft_"+F.theme),A.addClass(F.className),R.find(".xdsoft_month span").after(G),R.find(".xdsoft_year span").after(V),R.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var n,o,a=e(this).find(".xdsoft_select").eq(0),r=0,i=0,s=a.is(":visible");for(R.find(".xdsoft_select").hide(),I.currentTime&&(r=I.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),a[s?"hide":"show"](),n=a.find("div.xdsoft_option"),o=0;o<n.length&&n.eq(o).data("value")!==r;o+=1)i+=n[0].offsetHeight;return a.xdsoftScroller(i/(a.children()[0].offsetHeight-a[0].clientHeight)),t.stopPropagation(),!1}),R.find(".xdsoft_select").xdsoftScroller().on("touchstart mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("touchstart mousedown.xdsoft",".xdsoft_option",function(){(void 0===I.currentTime||null===I.currentTime)&&(I.currentTime=I.now());var t=I.currentTime.getFullYear();I&&I.currentTime&&I.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),A.trigger("xchange.xdsoft"),F.onChangeMonth&&e.isFunction(F.onChangeMonth)&&F.onChangeMonth.call(A,I.currentTime,A.data("input")),t!==I.currentTime.getFullYear()&&e.isFunction(F.onChangeYear)&&F.onChangeYear.call(A,I.currentTime,A.data("input"))}),A.getValue=function(){return I.getCurrentTime()},A.setOptions=function(a){var r={};F=e.extend(!0,{},F,a),a.allowTimes&&e.isArray(a.allowTimes)&&a.allowTimes.length&&(F.allowTimes=e.extend(!0,[],a.allowTimes)),a.weekends&&e.isArray(a.weekends)&&a.weekends.length&&(F.weekends=e.extend(!0,[],a.weekends)),a.allowDates&&e.isArray(a.allowDates)&&a.allowDates.length&&(F.allowDates=e.extend(!0,[],a.allowDates)),a.allowDateRe&&"[object String]"===Object.prototype.toString.call(a.allowDateRe)&&(F.allowDateRe=new RegExp(a.allowDateRe)),a.highlightedDates&&e.isArray(a.highlightedDates)&&a.highlightedDates.length&&(e.each(a.highlightedDates,function(n,a){var i,s=e.map(a.split(","),e.trim),d=new t(o.parseDate(s[0],F.formatDate),s[1],s[2]),l=o.formatDate(d.date,F.formatDate);void 0!==r[l]?(i=r[l].desc)&&i.length&&d.desc&&d.desc.length&&(r[l].desc=i+"\n"+d.desc):r[l]=d}),F.highlightedDates=e.extend(!0,[],r)),a.highlightedPeriods&&e.isArray(a.highlightedPeriods)&&a.highlightedPeriods.length&&(r=e.extend(!0,[],F.highlightedDates),e.each(a.highlightedPeriods,function(n,a){var i,s,d,l,u,f,c;if(e.isArray(a))i=a[0],s=a[1],d=a[2],c=a[3];else{var h=e.map(a.split(","),e.trim);i=o.parseDate(h[0],F.formatDate),s=o.parseDate(h[1],F.formatDate),d=h[2],c=h[3]}for(;s>=i;)l=new t(i,d,c),u=o.formatDate(i,F.formatDate),i.setDate(i.getDate()+1),void 0!==r[u]?(f=r[u].desc)&&f.length&&l.desc&&l.desc.length&&(r[u].desc=f+"\n"+l.desc):r[u]=l}),F.highlightedDates=e.extend(!0,[],r)),a.disabledDates&&e.isArray(a.disabledDates)&&a.disabledDates.length&&(F.disabledDates=e.extend(!0,[],a.disabledDates)),a.disabledWeekDays&&e.isArray(a.disabledWeekDays)&&a.disabledWeekDays.length&&(F.disabledWeekDays=e.extend(!0,[],a.disabledWeekDays)),!F.open&&!F.opened||F.inline||n.trigger("open.xdsoft"),F.inline&&(U=!0,A.addClass("xdsoft_inline"),n.after(A).hide()),F.inverseButton&&(F.next="xdsoft_prev",F.prev="xdsoft_next"),F.datepicker?z.addClass("active"):z.removeClass("active"),F.timepicker?N.addClass("active"):N.removeClass("active"),F.value&&(I.setCurrentTime(F.value),n&&n.val&&n.val(I.str)),F.dayOfWeekStart=isNaN(F.dayOfWeekStart)?0:parseInt(F.dayOfWeekStart,10)%7,F.timepickerScrollbar||E.xdsoftScroller("hide"),F.minDate&&/^[\+\-](.*)$/.test(F.minDate)&&(F.minDate=o.formatDate(I.strToDateTime(F.minDate),F.formatDate)),F.maxDate&&/^[\+\-](.*)$/.test(F.maxDate)&&(F.maxDate=o.formatDate(I.strToDateTime(F.maxDate),F.formatDate)),q.toggle(F.showApplyButton),R.find(".xdsoft_today_button").css("visibility",F.todayButton?"visible":"hidden"),R.find("."+F.prev).css("visibility",F.prevButton?"visible":"hidden"),R.find("."+F.next).css("visibility",F.nextButton?"visible":"hidden"),s(F),F.validateOnBlur&&n.off("blur.xdsoft").on("blur.xdsoft",function(){if(F.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof F.mask&&e.trim(e(this).val())===F.mask.replace(/[0-9]/g,"_")))e(this).val(null),A.data("xdsoft_datetime").empty();else{var t=o.parseDate(e(this).val(),F.format);if(t)e(this).val(o.formatDate(t,F.format));else{var n=+[e(this).val()[0],e(this).val()[1]].join(""),a=+[e(this).val()[2],e(this).val()[3]].join("");e(this).val(!F.datepicker&&F.timepicker&&n>=0&&24>n&&a>=0&&60>a?[n,a].map(function(e){return e>9?e:"0"+e}).join(":"):o.formatDate(I.now(),F.format))}A.data("xdsoft_datetime").setCurrentTime(e(this).val())}A.trigger("changedatetime.xdsoft"),A.trigger("close.xdsoft")}),F.dayOfWeekStartPrev=0===F.dayOfWeekStart?6:F.dayOfWeekStart-1,A.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},A.data("options",F).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),V.hide(),G.hide(),!1}),E.append(L),E.xdsoftScroller(),A.on("afterOpen.xdsoft",function(){E.xdsoftScroller()}),A.append(z).append(N),!0!==F.withoutCopyright&&A.append(j),z.append(R).append(B).append(q),e(F.parentID).append(A),I=new function(){var t=this;t.now=function(e){var n,o,a=new Date;return!e&&F.defaultDate&&(n=t.strToDateTime(F.defaultDate),a.setFullYear(n.getFullYear()),a.setMonth(n.getMonth()),a.setDate(n.getDate())),F.yearOffset&&a.setFullYear(a.getFullYear()+F.yearOffset),!e&&F.defaultTime&&(o=t.strtotime(F.defaultTime),a.setHours(o.getHours()),a.setMinutes(o.getMinutes())),a},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e,n){t.currentTime="string"==typeof e?t.strToDateTime(e):t.isValidDate(e)?e:e||n||!F.allowBlank?t.now():null,A.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var n,o=t.currentTime.getMonth()+1;return 12===o&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),o=0),n=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),o+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(o),F.onChangeMonth&&e.isFunction(F.onChangeMonth)&&F.onChangeMonth.call(A,I.currentTime,A.data("input")),n!==t.currentTime.getFullYear()&&e.isFunction(F.onChangeYear)&&F.onChangeYear.call(A,I.currentTime,A.data("input")),A.trigger("xchange.xdsoft"),o},t.prevMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var n=t.currentTime.getMonth()-1;return-1===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),n=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),F.onChangeMonth&&e.isFunction(F.onChangeMonth)&&F.onChangeMonth.call(A,I.currentTime,A.data("input")),A.trigger("xchange.xdsoft"),n},t.getWeekOfYear=function(t){if(F.onGetWeekOfYear&&e.isFunction(F.onGetWeekOfYear)){var n=F.onGetWeekOfYear.call(A,t);if(void 0!==n)return n}var o=new Date(t.getFullYear(),0,1);return 4!=o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),Math.ceil(((t-o)/864e5+o.getDay()+1)/7)},t.strToDateTime=function(e){var n,a,r=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((r=/^(\+|\-)(.*)$/.exec(e))&&(r[2]=o.parseDate(r[2],F.formatDate)),r&&r[2]?(n=r[2].getTime()-6e4*r[2].getTimezoneOffset(),a=new Date(t.now(!0).getTime()+parseInt(r[1]+"1",10)*n)):a=e?o.parseDate(e,F.format):t.now(),t.isValidDate(a)||(a=t.now()),a)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?o.parseDate(e,F.formatDate):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?o.parseDate(e,F.formatTime):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.str=function(){return o.formatDate(t.currentTime,F.format)},t.currentTime=this.now()},q.on("touchend click",function(e){e.preventDefault(),A.data("changed",!0),I.setCurrentTime(i()),n.val(I.str()),A.trigger("close.xdsoft")}),R.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){A.data("changed",!0),I.setCurrentTime(0,!0),A.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,t,o=I.getCurrentTime();o=new Date(o.getFullYear(),o.getMonth(),o.getDate()),e=I.strToDate(F.minDate),(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))>o||(t=I.strToDate(F.maxDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),o>t||(n.val(I.str()),n.trigger("change"),A.trigger("close.xdsoft")))}),R.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),n=0,o=!1;!function e(a){t.hasClass(F.next)?I.nextMonth():t.hasClass(F.prev)&&I.prevMonth(),F.monthChangeSpinner&&(o||(n=setTimeout(e,a||100)))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function t(){clearTimeout(n),o=!0,e([document.body,window]).off("touchend mouseup.xdsoft",t)})}),N.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),n=0,o=!1,a=110;!function e(r){var i=E[0].clientHeight,s=L[0].offsetHeight,d=Math.abs(parseInt(L.css("marginTop"),10));t.hasClass(F.next)&&s-i-F.timeHeightInTimePicker>=d?L.css("marginTop","-"+(d+F.timeHeightInTimePicker)+"px"):t.hasClass(F.prev)&&d-F.timeHeightInTimePicker>=0&&L.css("marginTop","-"+(d-F.timeHeightInTimePicker)+"px"),E.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(L[0].style.marginTop,10)/(s-i))]),a=a>10?10:a-10,o||(n=setTimeout(e,r||a))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function t(){clearTimeout(n),o=!0,e([document.body,window]).off("touchend mouseup.xdsoft",t)})}),d=0,A.on("xchange.xdsoft",function(t){clearTimeout(d),d=setTimeout(function(){if(void 0===I.currentTime||null===I.currentTime){if(F.allowBlank)return;I.currentTime=I.now()}for(var t,i,s,d,l,u,f,c,h,m,g="",p=new Date(I.currentTime.getFullYear(),I.currentTime.getMonth(),1,12,0,0),x=0,v=I.now(),D=!1,y=!1,w=[],T=!0,b="",_="";p.getDay()!==F.dayOfWeekStart;)p.setDate(p.getDate()-1);for(g+="<table><thead><tr>",F.weeks&&(g+="<th></th>"),t=0;7>t;t+=1)g+="<th>"+F.i18n[a].dayOfWeekShort[(t+F.dayOfWeekStart)%7]+"</th>";for(g+="</tr></thead>",g+="<tbody>",!1!==F.maxDate&&(D=I.strToDate(F.maxDate),D=new Date(D.getFullYear(),D.getMonth(),D.getDate(),23,59,59,999)),!1!==F.minDate&&(y=I.strToDate(F.minDate),y=new Date(y.getFullYear(),y.getMonth(),y.getDate()));x<I.currentTime.countDaysInMonth()||p.getDay()!==F.dayOfWeekStart||I.currentTime.getMonth()===p.getMonth();)w=[],x+=1,s=p.getDay(),d=p.getDate(),l=p.getFullYear(),u=p.getMonth(),f=I.getWeekOfYear(p),m="",w.push("xdsoft_date"),c=F.beforeShowDay&&e.isFunction(F.beforeShowDay.call)?F.beforeShowDay.call(A,p):null,F.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(F.allowDateRe)?F.allowDateRe.test(o.formatDate(p,F.formatDate))||w.push("xdsoft_disabled"):F.allowDates&&F.allowDates.length>0?-1===F.allowDates.indexOf(o.formatDate(p,F.formatDate))&&w.push("xdsoft_disabled"):!1!==D&&p>D||!1!==y&&y>p||c&&!1===c[0]?w.push("xdsoft_disabled"):-1!==F.disabledDates.indexOf(o.formatDate(p,F.formatDate))?w.push("xdsoft_disabled"):-1!==F.disabledWeekDays.indexOf(s)?w.push("xdsoft_disabled"):n.is("[readonly]")&&w.push("xdsoft_disabled"),c&&""!==c[1]&&w.push(c[1]),I.currentTime.getMonth()!==u&&w.push("xdsoft_other_month"),(F.defaultSelect||A.data("changed"))&&o.formatDate(I.currentTime,F.formatDate)===o.formatDate(p,F.formatDate)&&w.push("xdsoft_current"),o.formatDate(v,F.formatDate)===o.formatDate(p,F.formatDate)&&w.push("xdsoft_today"),(0===p.getDay()||6===p.getDay()||-1!==F.weekends.indexOf(o.formatDate(p,F.formatDate)))&&w.push("xdsoft_weekend"),void 0!==F.highlightedDates[o.formatDate(p,F.formatDate)]&&(i=F.highlightedDates[o.formatDate(p,F.formatDate)],w.push(void 0===i.style?"xdsoft_highlighted_default":i.style),m=void 0===i.desc?"":i.desc),F.beforeShowDay&&e.isFunction(F.beforeShowDay)&&w.push(F.beforeShowDay(p)),T&&(g+="<tr>",T=!1,F.weeks&&(g+="<th>"+f+"</th>")),g+='<td data-date="'+d+'" data-month="'+u+'" data-year="'+l+'" class="xdsoft_date xdsoft_day_of_week'+p.getDay()+" "+w.join(" ")+'" title="'+m+'"><div>'+d+"</div></td>",p.getDay()===F.dayOfWeekStartPrev&&(g+="</tr>",T=!0),p.setDate(d+1);if(g+="</tbody></table>",B.html(g),R.find(".xdsoft_label span").eq(0).text(F.i18n[a].months[I.currentTime.getMonth()]),R.find(".xdsoft_label span").eq(1).text(I.currentTime.getFullYear()),b="",_="",u="",h=function(t,a){var r,i,s=I.now(),d=F.allowTimes&&e.isArray(F.allowTimes)&&F.allowTimes.length;s.setHours(t),t=parseInt(s.getHours(),10),s.setMinutes(a),a=parseInt(s.getMinutes(),10),(r=new Date(I.currentTime)).setHours(t),r.setMinutes(a),w=[],!1!==F.minDateTime&&F.minDateTime>r||!1!==F.maxTime&&I.strtotime(F.maxTime).getTime()<s.getTime()||!1!==F.minTime&&I.strtotime(F.minTime).getTime()>s.getTime()?w.push("xdsoft_disabled"):!1!==F.minDateTime&&F.minDateTime>r||!1!==F.disabledMinTime&&s.getTime()>I.strtotime(F.disabledMinTime).getTime()&&!1!==F.disabledMaxTime&&s.getTime()<I.strtotime(F.disabledMaxTime).getTime()?w.push("xdsoft_disabled"):n.is("[readonly]")&&w.push("xdsoft_disabled"),(i=new Date(I.currentTime)).setHours(parseInt(I.currentTime.getHours(),10)),d||i.setMinutes(Math[F.roundTime](I.currentTime.getMinutes()/F.step)*F.step),(F.initTime||F.defaultSelect||A.data("changed"))&&i.getHours()===parseInt(t,10)&&(!d&&F.step>59||i.getMinutes()===parseInt(a,10))&&(F.defaultSelect||A.data("changed")?w.push("xdsoft_current"):F.initTime&&w.push("xdsoft_init_time")),parseInt(v.getHours(),10)===parseInt(t,10)&&parseInt(v.getMinutes(),10)===parseInt(a,10)&&w.push("xdsoft_today"),b+='<div class="xdsoft_time '+w.join(" ")+'" data-hour="'+t+'" data-minute="'+a+'">'+o.formatDate(s,F.formatTime)+"</div>"},F.allowTimes&&e.isArray(F.allowTimes)&&F.allowTimes.length)for(x=0;x<F.allowTimes.length;x+=1)_=I.strtotime(F.allowTimes[x]).getHours(),u=I.strtotime(F.allowTimes[x]).getMinutes(),h(_,u);else for(x=0,t=0;x<(F.hours12?12:24);x+=1)for(t=0;60>t;t+=F.step)_=(10>x?"0":"")+x,u=(10>t?"0":"")+t,h(_,u);for(L.html(b),r="",x=0,x=parseInt(F.yearStart,10)+F.yearOffset;x<=parseInt(F.yearEnd,10)+F.yearOffset;x+=1)r+='<div class="xdsoft_option '+(I.currentTime.getFullYear()===x?"xdsoft_current":"")+'" data-value="'+x+'">'+x+"</div>";for(V.children().eq(0).html(r),x=parseInt(F.monthStart,10),r="";x<=parseInt(F.monthEnd,10);x+=1)r+='<div class="xdsoft_option '+(I.currentTime.getMonth()===x?"xdsoft_current":"")+'" data-value="'+x+'">'+F.i18n[a].months[x]+"</div>";G.children().eq(0).html(r),e(A).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){if(F.timepicker){var e,t,n,o;L.find(".xdsoft_current").length?e=".xdsoft_current":L.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=E[0].clientHeight,n=L[0].offsetHeight,(o=L.find(e).index()*F.timeHeightInTimePicker+1)>n-t&&(o=n-t),E.trigger("scroll_element.xdsoft_scroller",[parseInt(o,10)/(n-t)])):E.trigger("scroll_element.xdsoft_scroller",[0])}}),l=0,B.on("touchend click.xdsoft","td",function(t){t.stopPropagation(),l+=1;var o=e(this),a=I.currentTime;return(void 0===a||null===a)&&(I.currentTime=I.now(),a=I.currentTime),!o.hasClass("xdsoft_disabled")&&(a.setDate(1),a.setFullYear(o.data("year")),a.setMonth(o.data("month")),a.setDate(o.data("date")),A.trigger("select.xdsoft",[a]),n.val(
1I.str()),F.onSelectDate&&e.isFunction(F.onSelectDate)&&F.onSelectDate.call(A,I.currentTime,A.data("input"),t),A.data("changed",!0),A.trigger("xchange.xdsoft"),A.trigger("changedatetime.xdsoft"),(l>1||!0===F.closeOnDateSelect||!1===F.closeOnDateSelect&&!F.timepicker)&&!F.inline&&A.trigger("close.xdsoft"),void setTimeout(function(){l=0},200))}),L.on("touchend click.xdsoft","div",function(t){t.stopPropagation();var n=e(this),o=I.currentTime;return(void 0===o||null===o)&&(I.currentTime=I.now(),o=I.currentTime),!n.hasClass("xdsoft_disabled")&&(o.setHours(n.data("hour")),o.setMinutes(n.data("minute")),A.trigger("select.xdsoft",[o]),A.data("input").val(I.str()),F.onSelectTime&&e.isFunction(F.onSelectTime)&&F.onSelectTime.call(A,I.currentTime,A.data("input"),t),A.data("changed",!0),A.trigger("xchange.xdsoft"),A.trigger("changedatetime.xdsoft"),void(!0!==F.inline&&!0===F.closeOnTimeSelect&&A.trigger("close.xdsoft")))}),z.on("mousewheel.xdsoft",function(e){return!F.scrollMonth||(e.deltaY<0?I.nextMonth():I.prevMonth(),!1)}),n.on("mousewheel.xdsoft",function(e){return!F.scrollInput||(!F.datepicker&&F.timepicker?((H=L.find(".xdsoft_current").length?L.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&H+e.deltaY<L.children().length&&(H+=e.deltaY),L.children().eq(H).length&&L.children().eq(H).trigger("mousedown"),!1):F.datepicker&&!F.timepicker?(z.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),n.val&&n.val(I.str()),A.trigger("changedatetime.xdsoft"),!1):void 0)}),A.on("changedatetime.xdsoft",function(t){if(F.onChangeDateTime&&e.isFunction(F.onChangeDateTime)){var n=A.data("input");F.onChangeDateTime.call(A,I.currentTime,n,t),delete F.value,n.trigger("change")}}).on("generate.xdsoft",function(){F.onGenerate&&e.isFunction(F.onGenerate)&&F.onGenerate.call(A,I.currentTime,A.data("input")),U&&(A.trigger("afterOpen.xdsoft"),U=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),H=0,W=function(e,t){do{if(e=e.parentNode,!1===t(e))break}while("HTML"!==e.nodeName)},P=function(){var t,n,o,a,r,i,s,d,l,u,f,c,h;if(d=A.data("input"),t=d.offset(),n=d[0],u="top",o=t.top+n.offsetHeight-1,a=t.left,r="absolute",l=e(window).width(),c=e(window).height(),h=e(window).scrollTop(),document.documentElement.clientWidth-t.left<z.parent().outerWidth(!0)){var m=z.parent().outerWidth(!0)-n.offsetWidth;a-=m}"rtl"===d.parent().css("direction")&&(a-=A.outerWidth()-d.outerWidth()),F.fixed?(o-=h,a-=e(window).scrollLeft(),r="fixed"):(s=!1,W(n,function(e){return"fixed"===window.getComputedStyle(e).getPropertyValue("position")?(s=!0,!1):void 0}),s?(r="fixed",o+A.outerHeight()>c+h?(u="bottom",o=c+h-t.top):o-=h):o+n.offsetHeight>c+h&&(o=t.top-n.offsetHeight+1),0>o&&(o=0),a+n.offsetWidth>l&&(a=l-n.offsetWidth)),i=A[0],W(i,function(e){var t;return t=window.getComputedStyle(e).getPropertyValue("position"),"relative"===t&&l>=e.offsetWidth?(a-=(l-e.offsetWidth)/2,!1):void 0}),(f={position:r,left:a,top:"",bottom:""})[u]=o,A.css(f)},A.on("open.xdsoft",function(t){var n=!0;F.onShow&&e.isFunction(F.onShow)&&(n=F.onShow.call(A,I.currentTime,A.data("input"),t)),!1!==n&&(A.show(),P(),e(window).off("resize.xdsoft",P).on("resize.xdsoft",P),F.closeOnWithoutClick&&e([document.body,window]).on("touchstart mousedown.xdsoft",function t(){A.trigger("close.xdsoft"),e([document.body,window]).off("touchstart mousedown.xdsoft",t)}))}).on("close.xdsoft",function(t){var n=!0;R.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),F.onClose&&e.isFunction(F.onClose)&&(n=F.onClose.call(A,I.currentTime,A.data("input"),t)),!1===n||F.opened||F.inline||A.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){A.trigger(A.is(":visible")?"close.xdsoft":"open.xdsoft")}).data("input",n),X=0,A.data("xdsoft_datetime",I),A.setOptions(F),I.setCurrentTime(i()),n.data("xdsoft_datetimepicker",A).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){n.is(":disabled")||n.data("xdsoft_datetimepicker").is(":visible")&&F.closeOnInputClick||(clearTimeout(X),X=setTimeout(function(){n.is(":disabled")||(U=!0,I.setCurrentTime(i(),!0),F.mask&&s(F),A.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var n,o=t.which;return-1!==[p].indexOf(o)&&F.enterLikeTab?(n=e("input:visible,textarea:visible,button:visible,a:visible"),A.trigger("close.xdsoft"),n.eq(n.index(this)+1).focus(),!1):-1!==[b].indexOf(o)?(A.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){A.trigger("close.xdsoft")})},d=function(t){var n=t.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===m&&(Y=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===m&&(Y=!1)}),this.each(function(){var t=e(this).data("xdsoft_datetimepicker");if(t){if("string"===e.type(r))switch(r){case"show":e(this).select().focus(),t.trigger("open.xdsoft");break;case"hide":t.trigger("close.xdsoft");break;case"toggle":t.trigger("toggle.xdsoft");break;
vendor: 3,094 bytes, line 1
1case"destroy":d(e(this));break;case"reset":this.value=this.defaultValue,this.value&&t.data("xdsoft_datetime").isValidDate(o.parseDate(this.value,F.format))||t.data("changed",!1),t.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":t.data("input").trigger("blur.xdsoft");break;default:t[r]&&e.isFunction(t[r])&&(l=t[r](i))}else t.setOptions(r);return 0}"string"!==e.type(r)&&(!F.lazyInit||F.open||F.inline?s(e(this)):P(e(this)))}),l},e.fn.datetimepicker.defaults=n}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var i=t||window.event,s=d.call(arguments,1),l=0,f=0,c=0,h=0,m=0,g=0;if(t=e.event.fix(i),t.type="mousewheel","detail"in i&&(c=-1*i.detail),"wheelDelta"in i&&(c=i.wheelDelta),"wheelDeltaY"in i&&(c=i.wheelDeltaY),"wheelDeltaX"in i&&(f=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(f=-1*c,c=0),l=0===c?f:c,"deltaY"in i&&(c=-1*i.deltaY,l=c),"deltaX"in i&&(f=i.deltaX,0===c&&(l=-1*f)),0!==c||0!==f){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");l*=p,c*=p,f*=p}else if(2===i.deltaMode){var x=e.data(this,"mousewheel-page-height");l*=x,c*=x,f*=x}if(h=Math.max(Math.abs(c),Math.abs(f)),(!r||r>h)&&(r=h,o(i,h)&&(r/=40)),o(i,h)&&(l/=40,f/=40,c/=40),l=Math[l>=1?"floor":"ceil"](l/r),f=Math[f>=1?"floor":"ceil"](f/r),c=Math[c>=1?"floor":"ceil"](c/r),u.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,g=t.clientY-v.top}return t.deltaX=f,t.deltaY=c,t.deltaFactor=r,t.offsetX=m,t.offsetY=g,t.deltaMode=0,s.unshift(t,l,f,c),a&&clearTimeout(a),a=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function n(){r=null}function o(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var a,r,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],d=Array.prototype.slice;if(e.event.fixHooks)for(var l=i.length;l;)e.event.fixHooks[i[--l]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=s.length;n;)this.addEventListener(s[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=s.length;n;)this.removeEventListener(s[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),o=n["offsetParent"in e.fn?"offsetParent":"parent"]();return o.length||(o=e("body")),parseInt(o.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});

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.