datetimepicker/build/jquery.datetimepicker.full.min.js
HuBandiT d409dfa212 fix minDateTime/maxDateTime
UI FIXME: if you are on the day with the minDateTime/maxDateTime limit and your timebox lists only the times according to the limit, when you click on another day, the timebox is populated with all the newly allowed times, but the scrollbar does not update, so you cannot scroll to them using the scroll bar. if you click again on a day (any day), the scrollbar is updated correctly and you can select all times from the timebox again
2018-03-08 00:12:56 +01:00

1 line
59 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var DateFormatter;!function(){"use strict";var D,s,n,a,r;D=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},s=function(e,t,a){var r=a||"0",n=e.toString();return n.length<t?s(r+n,t):n},n=function(e){var t,a;for(e=e||{},t=1;t<arguments.length;t++)if(a=arguments[t])for(var r in a)a.hasOwnProperty(r)&&("object"==typeof a[r]?n(e[r],a[r]):e[r]=a[r]);return e},a=function(e,t){for(var a=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())return a;return-1},r={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:/[ \-+\/\.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(r,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,getMonth:function(e){var t;return 0===(t=a(e,this.dateSettings.monthsShort)+1)&&(t=a(e,this.dateSettings.months)+1),t},parseDate:function(e,t){var a,r,n,o,i,s,u,d,l,f,c=this,m=!1,h=!1,g=c.dateSettings,p={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===t)return(n=parseInt(e))?new Date(1e3*n):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(a=t.match(c.validParts))||0===a.length)throw new Error("Invalid date format definition.");for(r=e.replace(c.separators,"\0").split("\0"),n=0;n<r.length;n++)switch(o=r[n],i=parseInt(o),a[n]){case"y":case"Y":if(!i)return null;l=o.length,p.year=2===l?parseInt((i<70?"20":"19")+o):i,m=!0;break;case"m":case"n":case"M":case"F":if(isNaN(i)){if(!(0<(s=c.getMonth(o))))return null;p.month=s}else{if(!(1<=i&&i<=12))return null;p.month=i}m=!0;break;case"d":case"j":if(!(1<=i&&i<=31))return null;p.day=i,m=!0;break;case"g":case"h":if(f=r[u=-1<a.indexOf("a")?a.indexOf("a"):-1<a.indexOf("A")?a.indexOf("A"):-1],-1<u)d=D(f,g.meridiem[0])?0:D(f,g.meridiem[1])?12:-1,1<=i&&i<=12&&-1<d?p.hour=i+d-1:0<=i&&i<=23&&(p.hour=i);else{if(!(0<=i&&i<=23))return null;p.hour=i}h=!0;break;case"G":case"H":if(!(0<=i&&i<=23))return null;p.hour=i,h=!0;break;case"i":if(!(0<=i&&i<=59))return null;p.min=i,h=!0;break;case"s":if(!(0<=i&&i<=59))return null;p.sec=i,h=!0}if(!0===m&&p.year&&p.month&&p.day)p.date=new Date(p.year,p.month-1,p.day,p.hour,p.min,p.sec,0);else{if(!0!==h)return null;p.date=new Date(0,0,0,p.hour,p.min,p.sec,0)}return p.date},guessDate:function(e,t){if("string"!=typeof e)return e;var a,r,n,o,i,s,u=e.replace(this.separators,"\0").split("\0"),d=t.match(this.validParts),l=new Date,f=0;if(!/^[djmn]/g.test(d[0]))return e;for(n=0;n<u.length;n++){if(f=2,i=u[n],s=parseInt(i.substr(0,2)),isNaN(s))return null;switch(n){case 0:"m"===d[0]||"n"===d[0]?l.setMonth(s-1):l.setDate(s);break;case 1:"m"===d[0]||"n"===d[0]?l.setDate(s):l.setMonth(s-1);break;case 2:if(r=l.getFullYear(),f=(a=i.length)<4?a:4,!(r=parseInt(a<4?r.toString().substr(0,4-a)+i:i.substr(0,4))))return null;l.setFullYear(r);break;case 3:l.setHours(s);break;case 4:l.setMinutes(s);break;case 5:l.setSeconds(s)}0<(o=i.substr(f)).length&&u.splice(n+1,0,o)}return l},parseFormat:function(e,r){var a,t=this,n=t.dateSettings,o=/\\?(.?)/gi,i=function(e,t){return a[e]?a[e]():t};return a={d:function(){return s(a.j(),2)},D:function(){return n.daysShort[a.w()]},j:function(){return r.getDate()},l:function(){return n.days[a.w()]},N:function(){return a.w()||7},w:function(){return r.getDay()},z:function(){var e=new Date(a.Y(),a.n()-1,a.j()),t=new Date(a.Y(),0,1);return Math.round((e-t)/864e5)},W:function(){var e=new Date(a.Y(),a.n()-1,a.j()-a.N()+3),t=new Date(e.getFullYear(),0,4);return s(1+Math.round((e-t)/864e5/7),2)},F:function(){return n.months[r.getMonth()]},m:function(){return s(a.n(),2)},M:function(){return n.monthsShort[r.getMonth()]},n:function(){return r.getMonth()+1},t:function(){return new Date(a.Y(),a.n(),0).getDate()},L:function(){var e=a.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=a.n(),t=a.W();return a.Y()+(12===e&&t<9?1:1===e&&9<t?-1:0)},Y:function(){return r.getFullYear()},y:function(){return a.Y().toString().slice(-2)},a:function(){return a.A().toLowerCase()},A:function(){var e=a.G()<12?0:1;return n.meridiem[e]},B:function(){var e=3600*r.getUTCHours(),t=60*r.getUTCMinutes(),a=r.getUTCSeconds();return s(Math.floor((e+t+a+3600)/86.4)%1e3,3)},g:function(){return a.G()%12||12},G:function(){return r.getHours()},h:function(){return s(a.g(),2)},H:function(){return s(a.G(),2)},i:function(){return s(r.getMinutes(),2)},s:function(){return s(r.getSeconds(),2)},u:function(){return s(1e3*r.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(r))[1]||"Coordinated Universal Time"},I:function(){return new Date(a.Y(),0)-Date.UTC(a.Y(),0)!=new Date(a.Y(),6)-Date.UTC(a.Y(),6)?1:0},O:function(){var e=r.getTimezoneOffset(),t=Math.abs(e);return(0<e?"-":"+")+s(100*Math.floor(t/60)+t%60,4)},P:function(){var e=a.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return(String(r).match(t.tzParts)||[""]).pop().replace(t.tzClip,"")||"UTC"},Z:function(){return 60*-r.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(o,i)},r:function(){return"D, d M Y H:i:s O".replace(o,i)},U:function(){return r.getTime()/1e3||0}},i(e,e)},formatDate:function(e,t){var a,r,n,o,i,s="";if("string"==typeof e&&!(e=this.parseDate(e,t)))return null;if(e instanceof Date){for(n=t.length,a=0;a<n;a++)"S"!==(i=t.charAt(a))&&"\\"!==i&&(0<a&&"\\"===t.charAt(a-1)?s+=i:(o=this.parseFormat(i,e),a!==n-1&&this.intParts.test(i)&&"S"===t.charAt(a+1)&&(r=parseInt(o)||0,o+=this.dateSettings.ordinal(r)),s+=o));return s}return""}}}();var datetimepickerFactory=function(U){"use strict";var s={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{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","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{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","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,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,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,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},q=null,r=null,X="en",a={meridiem:["AM","PM"]},n=function(){var e=s.i18n[X],t={days:e.dayOfWeek,daysShort:e.dayOfWeekShort,months:e.months,monthsShort:U.map(e.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(q=r=new DateFormatter({dateSettings:U.extend({},a,t)}))},o={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(i(t))return r.parseDate(e,t);var a=moment(e,t);return!!a.isValid()&&a.toDate()},formatDate:function(e,t){return i(t)?r.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.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")}}}};U.datetimepicker={setLocale:function(e){var t=s.i18n[e]?e:"en";X!==t&&(X=t,n())},setDateFormatter:function(e){if("string"==typeof e&&o.hasOwnProperty(e)){var t=o[e];U.extend(s,t.default_options),q=t.formatter}else q=e}};var t={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=function(e){return-1!==Object.values(t).indexOf(e)};function m(e,t,a){this.date=e,this.desc=t,this.style=a}U.extend(U.datetimepicker,t),n(),window.getComputedStyle||(window.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(e){var t=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(e,t,a){return a.toUpperCase()})),a.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,r;for(a=t||0,r=this.length;a<r;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},U.fn.xdsoftScroller=function(p,D){return this.each(function(){var o,i,s,u,d,l=U(this),a=function(e){var t,a={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],a.x=t.clientX,a.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(a.x=e.clientX,a.y=e.clientY),a},f=100,r=!1,n=0,c=0,m=0,t=!1,h=0,g=function(){};"hide"!==D?(U(this).hasClass("xdsoft_scroller_box")||(o=l.children().eq(0),i=l[0].clientHeight,s=o[0].offsetHeight,u=U('<div class="xdsoft_scrollbar"></div>'),d=U('<div class="xdsoft_scroller"></div>'),u.append(d),l.addClass("xdsoft_scroller_box").append(u),g=function(e){var t=a(e).y-n+h;t<0&&(t=0),t+d[0].offsetHeight>m&&(t=m-d[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[f?t/f:0])},d.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),n=a(e).y,h=parseInt(d.css("margin-top"),10),m=u[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(p.ownerDocument&&U(p.ownerDocument.body).addClass("xdsoft_noselect"),U([p.ownerDocument.body,p.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){U([p.ownerDocument.body,p.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",g).removeClass("xdsoft_noselect")}),U(p.ownerDocument.body).on("mousemove.xdsoft_scroller",g)):(t=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){t&&(e.preventDefault(),g(e))}).on("touchend touchcancel",function(){t=!1,h=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1<t?1:t<0||isNaN(t)?0:t,d.css("margin-top",f*t),setTimeout(function(){o.css("marginTop",-parseInt((o[0].offsetHeight-i)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,a){var r,n;i=l[0].clientHeight,s=o[0].offsetHeight,n=(r=i/s)*u[0].offsetHeight,1<r?d.hide():(d.show(),d.css("height",parseInt(10<n?n:10,10)),f=u[0].offsetHeight-d[0].offsetHeight,!0!==a&&l.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(o.css("marginTop"),10))/(s-i)]))}),l.on("mousewheel",function(e){var t=Math.abs(parseInt(o.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),l.trigger("scroll_element.xdsoft_scroller",[t/(s-i)]),e.stopPropagation(),!1}),l.on("touchstart",function(e){r=a(e),c=Math.abs(parseInt(o.css("marginTop"),10))}),l.on("touchmove",function(e){if(r){e.preventDefault();var t=a(e);l.trigger("scroll_element.xdsoft_scroller",[(c-(t.y-r.y))/(s-i)])}}),l.on("touchend touchcancel",function(){r=!1,c=0})),l.trigger("resize_scroll.xdsoft_scroller",[D])):l.find(".xdsoft_scrollbar").hide()})},U.fn.datetimepicker=function(H,a){var r,n,o=this,p=48,D=57,v=96,y=105,b=17,k=46,x=13,T=27,S=8,M=37,w=38,j=39,J=40,z=9,I=116,N=65,L=67,E=86,R=90,V=89,B=!1,G=U.isPlainObject(H)||!H?U.extend(!0,{},s,H):U.extend(!0,{},s),i=0;return r=function(O){var t,r,a,n,W,h,_=U('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),e=U('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),g=U('<div class="xdsoft_datepicker active"></div>'),F=U('<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>'),C=U('<div class="xdsoft_calendar"></div>'),o=U('<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>'),d=o.find(".xdsoft_time_box").eq(0),P=U('<div class="xdsoft_time_variant"></div>'),i=U('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),Y=U('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),A=U('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),s=!1,u=0;G.id&&_.attr("id",G.id),G.style&&_.attr("style",G.style),G.weeks&&_.addClass("xdsoft_showweeks"),G.rtl&&_.addClass("xdsoft_rtl"),_.addClass("xdsoft_"+G.theme),_.addClass(G.className),F.find(".xdsoft_month span").after(Y),F.find(".xdsoft_year span").after(A),F.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,r=U(this).find(".xdsoft_select").eq(0),n=0,o=0,i=r.is(":visible");for(F.find(".xdsoft_select").hide(),W.currentTime&&(n=W.currentTime[U(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[i?"hide":"show"](),t=r.find("div.xdsoft_option"),a=0;a<t.length&&t.eq(a).data("value")!==n;a+=1)o+=t[0].offsetHeight;return r.xdsoftScroller(G,o/(r.children()[0].offsetHeight-r[0].clientHeight)),e.stopPropagation(),!1});var l=function(e){this.touchStartPosition=this.touchStartPosition||e.originalEvent.touches[0];var t=e.originalEvent.touches[0],a=Math.abs(this.touchStartPosition.clientX-t.clientX),r=Math.abs(this.touchStartPosition.clientY-t.clientY);Math.sqrt(a*a+r*r)>G.touchMovedThreshold&&(this.touchMoved=!0)};function f(){var e,t=!1;return G.startDate?t=W.strToDate(G.startDate):(t=G.value||(O&&O.val&&O.val()?O.val():""))?(t=W.strToDateTime(t),G.yearOffset&&(t=new Date(t.getFullYear()-G.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):G.defaultDate&&(t=W.strToDateTime(G.defaultDate),G.defaultTime&&(e=W.strtotime(G.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&W.isValidDate(t)?_.data("changed",!0):t="",t||0}function c(m){var h=function(e,t){var a=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(a).test(t)},g=function(e,t){if(!(e="string"==typeof e||e instanceof String?m.ownerDocument.getElementById(e):e))return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};m.mask&&O.off("keydown.xdsoft"),!0===m.mask&&(q.formatMask?m.mask=q.formatMask(m.format):m.mask=m.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"===U.type(m.mask)&&(h(m.mask,O.val())||(O.val(m.mask.replace(/[0-9]/g,"_")),g(O[0],0)),O.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,r=this.selectionStart;return a=a.substr(0,r)+t+a.substr(r+t.length),r+=t.length,h(m.mask,a)?(this.value=a,g(this,r)):""===U.trim(a)?this.value=m.mask.replace(/[0-9]/g,"_"):O.trigger("error_input.xdsoft"),e.preventDefault(),!1}),O.on("keydown.xdsoft",function(e){var t,a=this.value,r=e.which,n=this.selectionStart,o=this.selectionEnd,i=n!==o;if(p<=r&&r<=D||v<=r&&r<=y||r===S||r===k){for(t=r===S||r===k?"_":String.fromCharCode(v<=r&&r<=y?r-p:r),r===S&&n&&!i&&(n-=1);;){var s=m.mask.substr(n,1),u=n<m.mask.length,d=0<n;if(!(/[^0-9_]/.test(s)&&u&&d))break;n+=r!==S||i?1:-1}if(i){var l=o-n,f=m.mask.replace(/[0-9]/g,"_"),c=f.substr(n,l).substr(1);a=a.substr(0,n)+(t+c)+a.substr(n+l)}else{a=a.substr(0,n)+t+a.substr(n+1)}if(""===U.trim(a))a=f;else if(n===m.mask.length)return e.preventDefault(),!1;for(n+=r===S?0:1;/[^0-9_]/.test(m.mask.substr(n,1))&&n<m.mask.length&&0<n;)n+=r===S?0:1;h(m.mask,a)?(this.value=a,g(this,n)):""===U.trim(a)?this.value=m.mask.replace(/[0-9]/g,"_"):O.trigger("error_input.xdsoft")}else if(-1!==[N,L,E,R,V].indexOf(r)&&B||-1!==[T,w,J,M,j,I,b,z,x].indexOf(r))return!0;return e.preventDefault(),!1}))}F.find(".xdsoft_select").xdsoftScroller(G).on("touchstart mousedown.xdsoft",function(e){this.touchMoved=!1,this.touchStartPosition=e.originalEvent.touches[0],e.stopPropagation(),e.preventDefault()}).on("touchmove",".xdsoft_option",l).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){void 0!==W.currentTime&&null!==W.currentTime||(W.currentTime=W.now());var e=W.currentTime.getFullYear();W&&W.currentTime&&W.currentTime[U(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](U(this).data("value")),U(this).parent().parent().hide(),_.trigger("xchange.xdsoft"),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(_,W.currentTime,_.data("input")),e!==W.currentTime.getFullYear()&&U.isFunction(G.onChangeYear)&&G.onChangeYear.call(_,W.currentTime,_.data("input"))}}),_.getValue=function(){return W.getCurrentTime()},_.setOptions=function(e){var l={};G=U.extend(!0,{},G,e),e.allowTimes&&U.isArray(e.allowTimes)&&e.allowTimes.length&&(G.allowTimes=U.extend(!0,[],e.allowTimes)),e.weekends&&U.isArray(e.weekends)&&e.weekends.length&&(G.weekends=U.extend(!0,[],e.weekends)),e.allowDates&&U.isArray(e.allowDates)&&e.allowDates.length&&(G.allowDates=U.extend(!0,[],e.allowDates)),e.allowDateRe&&"[object String]"===Object.prototype.toString.call(e.allowDateRe)&&(G.allowDateRe=new RegExp(e.allowDateRe)),e.highlightedDates&&U.isArray(e.highlightedDates)&&e.highlightedDates.length&&(U.each(e.highlightedDates,function(e,t){var a,r=U.map(t.split(","),U.trim),n=new m(q.parseDate(r[0],G.formatDate),r[1],r[2]),o=q.formatDate(n.date,G.formatDate);void 0!==l[o]?(a=l[o].desc)&&a.length&&n.desc&&n.desc.length&&(l[o].desc=a+"\n"+n.desc):l[o]=n}),G.highlightedDates=U.extend(!0,[],l)),e.highlightedPeriods&&U.isArray(e.highlightedPeriods)&&e.highlightedPeriods.length&&(l=U.extend(!0,[],G.highlightedDates),U.each(e.highlightedPeriods,function(e,t){var a,r,n,o,i,s,u;if(U.isArray(t))a=t[0],r=t[1],n=t[2],u=t[3];else{var d=U.map(t.split(","),U.trim);a=q.parseDate(d[0],G.formatDate),r=q.parseDate(d[1],G.formatDate),n=d[2],u=d[3]}for(;a<=r;)o=new m(a,n,u),i=q.formatDate(a,G.formatDate),a.setDate(a.getDate()+1),void 0!==l[i]?(s=l[i].desc)&&s.length&&o.desc&&o.desc.length&&(l[i].desc=s+"\n"+o.desc):l[i]=o}),G.highlightedDates=U.extend(!0,[],l)),e.disabledDates&&U.isArray(e.disabledDates)&&e.disabledDates.length&&(G.disabledDates=U.extend(!0,[],e.disabledDates)),e.disabledWeekDays&&U.isArray(e.disabledWeekDays)&&e.disabledWeekDays.length&&(G.disabledWeekDays=U.extend(!0,[],e.disabledWeekDays)),!G.open&&!G.opened||G.inline||O.trigger("open.xdsoft"),G.inline&&(s=!0,_.addClass("xdsoft_inline"),O.after(_).hide()),G.inverseButton&&(G.next="xdsoft_prev",G.prev="xdsoft_next"),G.datepicker?g.addClass("active"):g.removeClass("active"),G.timepicker?o.addClass("active"):o.removeClass("active"),G.value&&(W.setCurrentTime(G.value),O&&O.val&&O.val(W.str)),isNaN(G.dayOfWeekStart)?G.dayOfWeekStart=0:G.dayOfWeekStart=parseInt(G.dayOfWeekStart,10)%7,G.timepickerScrollbar||d.xdsoftScroller(G,"hide"),G.minDate&&/^[\+\-](.*)$/.test(G.minDate)&&(G.minDate=q.formatDate(W.strToDateTime(G.minDate),G.formatDate)),G.maxDate&&/^[\+\-](.*)$/.test(G.maxDate)&&(G.maxDate=q.formatDate(W.strToDateTime(G.maxDate),G.formatDate)),G.minDateTime&&/^\+(.*)$/.test(G.minDateTime)&&(G.minDateTime=W.strToDateTime(G.minDateTime).dateFormat(G.formatDate)),G.maxDateTime&&/^\+(.*)$/.test(G.maxDateTime)&&(G.maxDateTime=W.strToDateTime(G.maxDateTime).dateFormat(G.formatDate)),i.toggle(G.showApplyButton),F.find(".xdsoft_today_button").css("visibility",G.todayButton?"visible":"hidden"),F.find("."+G.prev).css("visibility",G.prevButton?"visible":"hidden"),F.find("."+G.next).css("visibility",G.nextButton?"visible":"hidden"),c(G),G.validateOnBlur&&O.off("blur.xdsoft").on("blur.xdsoft",function(){if(G.allowBlank&&(!U.trim(U(this).val()).length||"string"==typeof G.mask&&U.trim(U(this).val())===G.mask.replace(/[0-9]/g,"_")))U(this).val(null),_.data("xdsoft_datetime").empty();else{var e=q.parseDate(U(this).val(),G.format);if(e)U(this).val(q.formatDate(e,G.format));else{var t=+[U(this).val()[0],U(this).val()[1]].join(""),a=+[U(this).val()[2],U(this).val()[3]].join("");!G.datepicker&&G.timepicker&&0<=t&&t<24&&0<=a&&a<60?U(this).val([t,a].map(function(e){return 9<e?e:"0"+e}).join(":")):U(this).val(q.formatDate(W.now(),G.format))}_.data("xdsoft_datetime").setCurrentTime(U(this).val())}_.trigger("changedatetime.xdsoft"),_.trigger("close.xdsoft")}),G.dayOfWeekStartPrev=0===G.dayOfWeekStart?6:G.dayOfWeekStart-1,_.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},_.data("options",G).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),A.hide(),Y.hide(),!1}),d.append(P),d.xdsoftScroller(G),_.on("afterOpen.xdsoft",function(){d.xdsoftScroller(G)}),_.append(g).append(o),!0!==G.withoutCopyright&&_.append(e),g.append(F).append(C).append(i),U(G.parentID).append(_),W=new function(){var n=this;n.now=function(e){var t,a,r=new Date;return!e&&G.defaultDate&&(t=n.strToDateTime(G.defaultDate),r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate())),r.setFullYear(r.getFullYear()),!e&&G.defaultTime&&(a=n.strtotime(G.defaultTime),r.setHours(a.getHours()),r.setMinutes(a.getMinutes()),r.setSeconds(a.getSeconds()),r.setMilliseconds(a.getMilliseconds())),r},n.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},n.setCurrentTime=function(e,t){"string"==typeof e?n.currentTime=n.strToDateTime(e):n.isValidDate(e)?n.currentTime=e:e||t||!G.allowBlank||G.inline?n.currentTime=n.now():n.currentTime=null,_.trigger("xchange.xdsoft")},n.empty=function(){n.currentTime=null},n.getCurrentTime=function(){return n.currentTime},n.nextMonth=function(){void 0!==n.currentTime&&null!==n.currentTime||(n.currentTime=n.now());var e,t=n.currentTime.getMonth()+1;return 12===t&&(n.currentTime.setFullYear(n.currentTime.getFullYear()+1),t=0),e=n.currentTime.getFullYear(),n.currentTime.setDate(Math.min(new Date(n.currentTime.getFullYear(),t+1,0).getDate(),n.currentTime.getDate())),n.currentTime.setMonth(t),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(_,W.currentTime,_.data("input")),e!==n.currentTime.getFullYear()&&U.isFunction(G.onChangeYear)&&G.onChangeYear.call(_,W.currentTime,_.data("input")),_.trigger("xchange.xdsoft"),t},n.prevMonth=function(){void 0!==n.currentTime&&null!==n.currentTime||(n.currentTime=n.now());var e=n.currentTime.getMonth()-1;return-1===e&&(n.currentTime.setFullYear(n.currentTime.getFullYear()-1),e=11),n.currentTime.setDate(Math.min(new Date(n.currentTime.getFullYear(),e+1,0).getDate(),n.currentTime.getDate())),n.currentTime.setMonth(e),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(_,W.currentTime,_.data("input")),_.trigger("xchange.xdsoft"),e},n.getWeekOfYear=function(e){if(G.onGetWeekOfYear&&U.isFunction(G.onGetWeekOfYear)){var t=G.onGetWeekOfYear.call(_,e);if(void 0!==t)return t}var a=new Date(e.getFullYear(),0,1);return 4!==a.getDay()&&a.setMonth(0,1+(4-a.getDay()+7)%7),Math.ceil(((e-a)/864e5+a.getDay()+1)/7)},n.strToDateTime=function(e){var t,a,r=[];return e&&e instanceof Date&&n.isValidDate(e)?e:((r=/^([+-]{1})(.*)$/.exec(e))&&(r[2]=q.parseDate(r[2],G.formatDate)),r&&r[2]?(t=r[2].getTime()-6e4*r[2].getTimezoneOffset(),a=new Date(n.now(!0).getTime()+parseInt(r[1]+"1",10)*t)):a=e?q.parseDate(e,G.format):n.now(),n.isValidDate(a)||(a=n.now()),a)},n.strToDate=function(e){if(e&&e instanceof Date&&n.isValidDate(e))return e;var t=e?q.parseDate(e,G.formatDate):n.now(!0);return n.isValidDate(t)||(t=n.now(!0)),t},n.strtotime=function(e){if(e&&e instanceof Date&&n.isValidDate(e))return e;var t=e?q.parseDate(e,G.formatTime):n.now(!0);return n.isValidDate(t)||(t=n.now(!0)),t},n.str=function(){var e=G.format;return G.yearOffset&&(e=(e=e.replace("Y",n.currentTime.getFullYear()+G.yearOffset)).replace("y",String(n.currentTime.getFullYear()+G.yearOffset).substring(2,4))),q.formatDate(n.currentTime,e)},n.currentTime=this.now()},i.on("touchend click",function(e){e.preventDefault(),_.data("changed",!0),W.setCurrentTime(f()),O.val(W.str()),_.trigger("close.xdsoft")}),F.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){_.data("changed",!0),W.setCurrentTime(0,!0),_.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,t,a=W.getCurrentTime();a=new Date(a.getFullYear(),a.getMonth(),a.getDate()),e=W.strToDate(G.minDate),a<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(t=W.strToDate(G.maxDate),(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))<a||(O.val(W.str()),O.trigger("change"),_.trigger("close.xdsoft")))}),F.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var a=U(this),r=0,n=!1;!function e(t){a.hasClass(G.next)?W.nextMonth():a.hasClass(G.prev)&&W.prevMonth(),G.monthChangeSpinner&&(n||(r=setTimeout(e,t||100)))}(500),U([G.ownerDocument.body,G.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(r),n=!0,U([G.ownerDocument.body,G.contentWindow]).off("touchend mouseup.xdsoft",e)})}),o.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var o=U(this),i=0,s=!1,u=110;!function e(t){var a=d[0].clientHeight,r=P[0].offsetHeight,n=Math.abs(parseInt(P.css("marginTop"),10));o.hasClass(G.next)&&r-a-G.timeHeightInTimePicker>=n?P.css("marginTop","-"+(n+G.timeHeightInTimePicker)+"px"):o.hasClass(G.prev)&&0<=n-G.timeHeightInTimePicker&&P.css("marginTop","-"+(n-G.timeHeightInTimePicker)+"px"),d.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(P[0].style.marginTop,10)/(r-a))]),u=10<u?10:u-10,s||(i=setTimeout(e,t||u))}(500),U([G.ownerDocument.body,G.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(i),s=!0,U([G.ownerDocument.body,G.contentWindow]).off("touchend mouseup.xdsoft",e)})}),t=0,_.on("xchange.xdsoft",function(e){clearTimeout(t),t=setTimeout(function(){void 0!==W.currentTime&&null!==W.currentTime||(W.currentTime=W.now());for(var e,t,a,r,n,o,i,s,u,d,l="",f=new Date(W.currentTime.getFullYear(),W.currentTime.getMonth(),1,12,0,0),c=0,m=W.now(),h=!1,g=!1,p=!1,D=!1,v=[],y=!0,b="";f.getDay()!==G.dayOfWeekStart;)f.setDate(f.getDate()-1);for(l+="<table><thead><tr>",G.weeks&&(l+="<th></th>"),e=0;e<7;e+=1)l+="<th>"+G.i18n[X].dayOfWeekShort[(e+G.dayOfWeekStart)%7]+"</th>";for(l+="</tr></thead>",l+="<tbody>",!1!==G.maxDate&&(h=W.strToDate(G.maxDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate(),23,59,59,999)),!1!==G.minDate&&(g=W.strToDate(G.minDate),g=new Date(g.getFullYear(),g.getMonth(),g.getDate())),!1!==G.minDateTime&&(p=W.strToDate(G.minDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==G.maxDateTime&&(D=W.strToDate(G.maxDateTime),D=new Date(D.getFullYear(),D.getMonth(),D.getDate(),D.getHours(),D.getMinutes(),D.getSeconds())),!1!==D&&(d=31*(12*D.getFullYear()+D.getMonth())+D.getDate());c<W.currentTime.countDaysInMonth()||f.getDay()!==G.dayOfWeekStart||W.currentTime.getMonth()===f.getMonth();){v=[],c+=1,a=f.getDay(),r=f.getDate(),n=f.getFullYear(),M=f.getMonth(),o=W.getWeekOfYear(f),u="",v.push("xdsoft_date"),i=G.beforeShowDay&&U.isFunction(G.beforeShowDay.call)?G.beforeShowDay.call(_,f):null,G.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(G.allowDateRe)&&(G.allowDateRe.test(q.formatDate(f,G.formatDate))||v.push("xdsoft_disabled")),G.allowDates&&0<G.allowDates.length&&-1===G.allowDates.indexOf(q.formatDate(f,G.formatDate))&&v.push("xdsoft_disabled");var k=31*(12*f.getFullYear()+f.getMonth())+f.getDate();(!1!==h&&h<f||!1!==p&&f<p||!1!==g&&f<g||!1!==D&&d<k||i&&!1===i[0])&&v.push("xdsoft_disabled"),-1!==G.disabledDates.indexOf(q.formatDate(f,G.formatDate))&&v.push("xdsoft_disabled"),-1!==G.disabledWeekDays.indexOf(a)&&v.push("xdsoft_disabled"),O.is("[disabled]")&&v.push("xdsoft_disabled"),i&&""!==i[1]&&v.push(i[1]),W.currentTime.getMonth()!==M&&v.push("xdsoft_other_month"),(G.defaultSelect||_.data("changed"))&&q.formatDate(W.currentTime,G.formatDate)===q.formatDate(f,G.formatDate)&&v.push("xdsoft_current"),q.formatDate(m,G.formatDate)===q.formatDate(f,G.formatDate)&&v.push("xdsoft_today"),0!==f.getDay()&&6!==f.getDay()&&-1===G.weekends.indexOf(q.formatDate(f,G.formatDate))||v.push("xdsoft_weekend"),void 0!==G.highlightedDates[q.formatDate(f,G.formatDate)]&&(t=G.highlightedDates[q.formatDate(f,G.formatDate)],v.push(void 0===t.style?"xdsoft_highlighted_default":t.style),u=void 0===t.desc?"":t.desc),G.beforeShowDay&&U.isFunction(G.beforeShowDay)&&v.push(G.beforeShowDay(f)),y&&(l+="<tr>",y=!1,G.weeks&&(l+="<th>"+o+"</th>")),l+='<td data-date="'+r+'" data-month="'+M+'" data-year="'+n+'" class="xdsoft_date xdsoft_day_of_week'+f.getDay()+" "+v.join(" ")+'" title="'+u+'"><div>'+r+"</div></td>",f.getDay()===G.dayOfWeekStartPrev&&(l+="</tr>",y=!0),f.setDate(r+1)}l+="</tbody></table>",C.html(l),F.find(".xdsoft_label span").eq(0).text(G.i18n[X].months[W.currentTime.getMonth()]),F.find(".xdsoft_label span").eq(1).text(W.currentTime.getFullYear()+G.yearOffset),M=b="";var x=0;if(!1!==G.minTime){var T=W.strtotime(G.minTime);x=60*T.getHours()+T.getMinutes()}var S=1440;if(!1!==G.maxTime){T=W.strtotime(G.maxTime);S=60*T.getHours()+T.getMinutes()}if(!1!==G.minDateTime){T=W.strToDateTime(G.minDateTime);if(q.formatDate(W.currentTime,G.formatDate)===q.formatDate(T,G.formatDate)){var M=60*T.getHours()+T.getMinutes();x<M&&(x=M)}}if(!1!==G.maxDateTime){T=W.strToDateTime(G.maxDateTime);if(q.formatDate(W.currentTime,G.formatDate)===q.formatDate(T,G.formatDate))(M=60*T.getHours()+T.getMinutes())<S&&(S=M)}if(s=function(e,t){var a,r=W.now(),n=G.allowTimes&&U.isArray(G.allowTimes)&&G.allowTimes.length;r.setHours(e),e=parseInt(r.getHours(),10),r.setMinutes(t),t=parseInt(r.getMinutes(),10),v=[];var o=60*e+t;(O.is("[disabled]")||S<=o||o<x)&&v.push("xdsoft_disabled"),(a=new Date(W.currentTime)).setHours(parseInt(W.currentTime.getHours(),10)),n||a.setMinutes(Math[G.roundTime](W.currentTime.getMinutes()/G.step)*G.step),(G.initTime||G.defaultSelect||_.data("changed"))&&a.getHours()===parseInt(e,10)&&(!n&&59<G.step||a.getMinutes()===parseInt(t,10))&&(G.defaultSelect||_.data("changed")?v.push("xdsoft_current"):G.initTime&&v.push("xdsoft_init_time")),parseInt(m.getHours(),10)===parseInt(e,10)&&parseInt(m.getMinutes(),10)===parseInt(t,10)&&v.push("xdsoft_today"),b+='<div class="xdsoft_time '+v.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+q.formatDate(r,G.formatTime)+"</div>"},G.allowTimes&&U.isArray(G.allowTimes)&&G.allowTimes.length)for(c=0;c<G.allowTimes.length;c+=1)s(W.strtotime(G.allowTimes[c]).getHours(),M=W.strtotime(G.allowTimes[c]).getMinutes());else for(e=c=0;c<(G.hours12?12:24);c+=1)for(e=0;e<60;e+=G.step){var w=60*c+e;w<x||(S<=w||s((c<10?"0":"")+c,M=(e<10?"0":"")+e))}for(P.html(b),H="",c=parseInt(G.yearStart,10);c<=parseInt(G.yearEnd,10);c+=1)H+='<div class="xdsoft_option '+(W.currentTime.getFullYear()===c?"xdsoft_current":"")+'" data-value="'+c+'">'+(c+G.yearOffset)+"</div>";for(A.children().eq(0).html(H),c=parseInt(G.monthStart,10),H="";c<=parseInt(G.monthEnd,10);c+=1)H+='<div class="xdsoft_option '+(W.currentTime.getMonth()===c?"xdsoft_current":"")+'" data-value="'+c+'">'+G.i18n[X].months[c]+"</div>";Y.children().eq(0).html(H),U(_).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a,r;G.timepicker&&(P.find(".xdsoft_current").length?e=".xdsoft_current":P.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=d[0].clientHeight,(a=P[0].offsetHeight)-t<(r=P.find(e).index()*G.timeHeightInTimePicker+1)&&(r=a-t),d.trigger("scroll_element.xdsoft_scroller",[parseInt(r,10)/(a-t)])):d.trigger("scroll_element.xdsoft_scroller",[0]))}),r=0,C.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),r+=1;var t=U(this),a=W.currentTime;if(null==a&&(W.currentTime=W.now(),a=W.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")),_.trigger("select.xdsoft",[a]),O.val(W.str()),G.onSelectDate&&U.isFunction(G.onSelectDate)&&G.onSelectDate.call(_,W.currentTime,_.data("input"),e),_.data("changed",!0),_.trigger("xchange.xdsoft"),_.trigger("changedatetime.xdsoft"),(1<r||!0===G.closeOnDateSelect||!1===G.closeOnDateSelect&&!G.timepicker)&&!G.inline&&_.trigger("close.xdsoft"),setTimeout(function(){r=0},200)}),P.on("touchstart","div",function(e){this.touchMoved=!1}).on("touchmove","div",l).on("touchend click.xdsoft","div",function(e){if(!this.touchMoved){e.stopPropagation();var t=U(this),a=W.currentTime;if(null==a&&(W.currentTime=W.now(),a=W.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setHours(t.data("hour")),a.setMinutes(t.data("minute")),_.trigger("select.xdsoft",[a]),_.data("input").val(W.str()),G.onSelectTime&&U.isFunction(G.onSelectTime)&&G.onSelectTime.call(_,W.currentTime,_.data("input"),e),_.data("changed",!0),_.trigger("xchange.xdsoft"),_.trigger("changedatetime.xdsoft"),!0!==G.inline&&!0===G.closeOnTimeSelect&&_.trigger("close.xdsoft")}}),g.on("mousewheel.xdsoft",function(e){return!G.scrollMonth||(e.deltaY<0?W.nextMonth():W.prevMonth(),!1)}),O.on("mousewheel.xdsoft",function(e){return!G.scrollInput||(!G.datepicker&&G.timepicker?(0<=(a=P.find(".xdsoft_current").length?P.find(".xdsoft_current").eq(0).index():0)+e.deltaY&&a+e.deltaY<P.children().length&&(a+=e.deltaY),P.children().eq(a).length&&P.children().eq(a).trigger("mousedown"),!1):G.datepicker&&!G.timepicker?(g.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),O.val&&O.val(W.str()),_.trigger("changedatetime.xdsoft"),!1):void 0)}),_.on("changedatetime.xdsoft",function(e){if(G.onChangeDateTime&&U.isFunction(G.onChangeDateTime)){var t=_.data("input");G.onChangeDateTime.call(_,W.currentTime,t,e),delete G.value,t.trigger("change")}}).on("generate.xdsoft",function(){G.onGenerate&&U.isFunction(G.onGenerate)&&G.onGenerate.call(_,W.currentTime,_.data("input")),s&&(_.trigger("afterOpen.xdsoft"),s=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),a=0,h=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},n=function(){var e,t,a,r,n,o,i,s,u,d,l,f,c;if(e=(s=_.data("input")).offset(),t=s[0],d="top",a=e.top+t.offsetHeight-1,r=e.left,n="absolute",u=U(G.contentWindow).width(),f=U(G.contentWindow).height(),c=U(G.contentWindow).scrollTop(),G.ownerDocument.documentElement.clientWidth-e.left<g.parent().outerWidth(!0)){var m=g.parent().outerWidth(!0)-t.offsetWidth;r-=m}"rtl"===s.parent().css("direction")&&(r-=_.outerWidth()-s.outerWidth()),G.fixed?(a-=c,r-=U(G.contentWindow).scrollLeft(),n="fixed"):(i=!1,h(t,function(e){return null!==e&&("fixed"===G.contentWindow.getComputedStyle(e).getPropertyValue("position")?(i=!0,!1):void 0)}),i?(n="fixed",a+_.outerHeight()>f+c?(d="bottom",a=f+c-e.top):a-=c):a+_[0].offsetHeight>f+c&&(a=e.top-_[0].offsetHeight+1),a<0&&(a=0),r+t.offsetWidth>u&&(r=u-t.offsetWidth)),o=_[0],h(o,function(e){if("relative"===G.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return r-=(u-e.offsetWidth)/2,!1}),(l={position:n,left:r,top:"",bottom:""})[d]=a,_.css(l)},_.on("open.xdsoft",function(e){var t=!0;G.onShow&&U.isFunction(G.onShow)&&(t=G.onShow.call(_,W.currentTime,_.data("input"),e)),!1!==t&&(_.show(),n(),U(G.contentWindow).off("resize.xdsoft",n).on("resize.xdsoft",n),G.closeOnWithoutClick&&U([G.ownerDocument.body,G.contentWindow]).on("touchstart mousedown.xdsoft",function e(){_.trigger("close.xdsoft"),U([G.ownerDocument.body,G.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;F.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),G.onClose&&U.isFunction(G.onClose)&&(t=G.onClose.call(_,W.currentTime,_.data("input"),e)),!1===t||G.opened||G.inline||_.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){_.is(":visible")?_.trigger("close.xdsoft"):_.trigger("open.xdsoft")}).data("input",O),u=0,_.data("xdsoft_datetime",W),_.setOptions(G),W.setCurrentTime(f()),O.data("xdsoft_datetimepicker",_).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){O.is(":disabled")||O.data("xdsoft_datetimepicker").is(":visible")&&G.closeOnInputClick||G.openOnFocus&&(clearTimeout(u),u=setTimeout(function(){O.is(":disabled")||(s=!0,W.setCurrentTime(f(),!0),G.mask&&c(G),_.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t,a=e.which;return-1!==[x].indexOf(a)&&G.enterLikeTab?(t=U("input:visible,textarea:visible,button:visible,a:visible"),_.trigger("close.xdsoft"),t.eq(t.index(this)+1).focus(),!1):-1!==[z].indexOf(a)?(_.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){_.trigger("close.xdsoft")})},n=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),U(G.contentWindow).off("resize.xdsoft"),U([G.contentWindow,G.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())},U(G.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===b&&(B=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===b&&(B=!1)}),this.each(function(){var t,e=U(this).data("xdsoft_datetimepicker");if(e){if("string"===U.type(H))switch(H){case"show":U(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":n(U(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(q.parseDate(this.value,G.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[H]&&U.isFunction(e[H])&&(o=e[H](a))}else e.setOptions(H);return 0}"string"!==U.type(H)&&(!G.lazyInit||G.open||G.inline?r(U(this)):(t=U(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(i),i=setTimeout(function(){t.data("xdsoft_datetimepicker")||r(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),o},U.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(c){var m,h,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(c.event.fixHooks)for(var a=e.length;a;)c.event.fixHooks[e[--a]]=c.event.mouseHooks;var p=c.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],r,!1);else this.onmousewheel=r;c.data(this,"mousewheel-line-height",p.getLineHeight(this)),c.data(this,"mousewheel-page-height",p.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],r,!1);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height"),c.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=c(e),a=t["offsetParent"in c.fn?"offsetParent":"parent"]();return a.length||(a=c("body")),parseInt(a.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return c(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function r(e){var t,a=e||window.event,r=g.call(arguments,1),n=0,o=0,i=0,s=0,u=0;if((e=c.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),n=0===i?o:i,"deltaY"in a&&(n=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(n=-1*o)),0!==i||0!==o){if(1===a.deltaMode){var d=c.data(this,"mousewheel-line-height");n*=d,i*=d,o*=d}else if(2===a.deltaMode){var l=c.data(this,"mousewheel-page-height");n*=l,i*=l,o*=l}if(t=Math.max(Math.abs(i),Math.abs(o)),(!h||t<h)&&v(a,h=t)&&(h/=40),v(a,t)&&(n/=40,o/=40,i/=40),n=Math[1<=n?"floor":"ceil"](n/h),o=Math[1<=o?"floor":"ceil"](o/h),i=Math[1<=i?"floor":"ceil"](i/h),p.settings.normalizeOffset&&this.getBoundingClientRect){var f=this.getBoundingClientRect();s=e.clientX-f.left,u=e.clientY-f.top}return e.deltaX=o,e.deltaY=i,e.deltaFactor=h,e.offsetX=s,e.offsetY=u,e.deltaMode=0,r.unshift(e,n,o,i),m&&clearTimeout(m),m=setTimeout(D,200),(c.event.dispatch||c.event.handle).apply(this,r)}}function D(){h=null}function v(e,t){return p.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}c.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});