datetimepicker/build/jquery.datetimepicker.full.min.js

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 v,s,r,a,n;v=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},s=function(e,t,a){var n=a||"0",r=e.toString();return r.length<t?s(n+r,t):r},r=function(e){var t,a;for(e=e||{},t=1;t<arguments.length;t++)if(a=arguments[t])for(var n in a)a.hasOwnProperty(n)&&("object"==typeof a[n]?r(e[n],a[n]):e[n]=a[n]);return e},a=function(e,t){for(var a=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())return a;return-1},n={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=r(n,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,n,r,o,i,s,d,u,l,f,c=this,h=!1,m=!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(r=parseInt(e))?new Date(1e3*r):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(n=e.replace(c.separators,"\0").split("\0"),r=0;r<n.length;r++)switch(o=n[r],i=parseInt(o),a[r]){case"y":case"Y":if(!i)return null;l=o.length,p.year=2===l?parseInt((i<70?"20":"19")+o):i,h=!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}h=!0;break;case"d":case"j":if(!(1<=i&&i<=31))return null;p.day=i,h=!0;break;case"g":case"h":if(f=n[d=-1<a.indexOf("a")?a.indexOf("a"):-1<a.indexOf("A")?a.indexOf("A"):-1],-1<d)u=v(f,g.meridiem[0])?0:v(f,g.meridiem[1])?12:-1,1<=i&&i<=12&&-1<u?p.hour=i+u-1:0<=i&&i<=23&&(p.hour=i);else{if(!(0<=i&&i<=23))return null;p.hour=i}m=!0;break;case"G":case"H":if(!(0<=i&&i<=23))return null;p.hour=i,m=!0;break;case"i":if(!(0<=i&&i<=59))return null;p.min=i,m=!0;break;case"s":if(!(0<=i&&i<=59))return null;p.sec=i,m=!0}if(!0===h&&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!==m)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,n,r,o,i,s,d=e.replace(this.separators,"\0").split("\0"),u=t.match(this.validParts),l=new Date,f=0;if(!/^[djmn]/g.test(u[0]))return e;for(r=0;r<d.length;r++){if(f=2,i=d[r],s=parseInt(i.substr(0,2)),isNaN(s))return null;switch(r){case 0:"m"===u[0]||"n"===u[0]?l.setMonth(s-1):l.setDate(s);break;case 1:"m"===u[0]||"n"===u[0]?l.setDate(s):l.setMonth(s-1);break;case 2:if(n=l.getFullYear(),f=(a=i.length)<4?a:4,!(n=parseInt(a<4?n.toString().substr(0,4-a)+i:i.substr(0,4))))return null;l.setFullYear(n);break;case 3:l.setHours(s);break;case 4:l.setMinutes(s);break;case 5:l.setSeconds(s)}0<(o=i.substr(f)).length&&d.splice(r+1,0,o)}return l},parseFormat:function(e,n){var a,t=this,r=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 r.daysShort[a.w()]},j:function(){return n.getDate()},l:function(){return r.days[a.w()]},N:function(){return a.w()||7},w:function(){return n.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 r.months[n.getMonth()]},m:function(){return s(a.n(),2)},M:function(){return r.monthsShort[n.getMonth()]},n:function(){return n.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 n.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 r.meridiem[e]},B:function(){var e=3600*n.getUTCHours(),t=60*n.getUTCMinutes(),a=n.getUTCSeconds();return s(Math.floor((e+t+a+3600)/86.4)%1e3,3)},g:function(){return a.G()%12||12},G:function(){return n.getHours()},h:function(){return s(a.g(),2)},H:function(){return s(a.G(),2)},i:function(){return s(n.getMinutes(),2)},s:function(){return s(n.getSeconds(),2)},u:function(){return s(1e3*n.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(n))[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=n.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(n).match(t.tzParts)||[""]).pop().replace(t.tzClip,"")||"UTC"},Z:function(){return 60*-n.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 n.getTime()/1e3||0}},i(e,e)},formatDate:function(e,t){var a,n,r,o,i,s="";if("string"==typeof e&&!(e=this.parseDate(e,t)))return null;if(e instanceof Date){for(r=t.length,a=0;a<r;a++)"S"!==(i=t.charAt(a))&&"\\"!==i&&(0<a&&"\\"===t.charAt(a-1)?s+=i:(o=this.parseFormat(i,e),a!==r-1&&this.intParts.test(i)&&"S"===t.charAt(a+1)&&(n=parseInt(o)||0,o+=this.dateSettings.ordinal(n)),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,disabledMinTime:!1,disabledMaxTime:!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,n=null,X="en",a={meridiem:["AM","PM"]},r=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=n=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 n.parseDate(e,t);var a=moment(e,t);return!!a.isValid()&&a.toDate()},formatDate:function(e,t){return i(t)?n.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,r())},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 h(e,t,a){this.date=e,this.desc=t,this.style=a}U.extend(U.datetimepicker,t),r(),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,n;for(a=t||0,n=this.length;a<n;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,v){return this.each(function(){var o,i,s,d,u,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,n=!1,r=0,c=0,h=0,t=!1,m=0,g=function(){};"hide"!==v?(U(this).hasClass("xdsoft_scroller_box")||(o=l.children().eq(0),i=l[0].clientHeight,s=o[0].offsetHeight,d=U('<div class="xdsoft_scrollbar"></div>'),u=U('<div class="xdsoft_scroller"></div>'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),g=function(e){var t=a(e).y-r+m;t<0&&(t=0),t+u[0].offsetHeight>h&&(t=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[f?t/f:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[v]),r=a(e).y,m=parseInt(u.css("margin-top"),10),h=d[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,m=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,u.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 n,r;i=l[0].clientHeight,s=o[0].offsetHeight,r=(n=i/s)*d[0].offsetHeight,1<n?u.hide():(u.show(),u.css("height",parseInt(10<r?r:10,10)),f=d[0].offsetHeight-u[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){n=a(e),c=Math.abs(parseInt(o.css("marginTop"),10))}),l.on("touchmove",function(e){if(n){e.preventDefault();var t=a(e);l.trigger("scroll_element.xdsoft_scroller",[(c-(t.y-n.y))/(s-i)])}}),l.on("touchend touchcancel",function(){n=!1,c=0})),l.trigger("resize_scroll.xdsoft_scroller",[v])):l.find(".xdsoft_scrollbar").hide()})},U.fn.datetimepicker=function(P,a){var n,r,o=this,p=48,v=57,y=96,D=105,b=17,k=46,x=13,T=27,Y=8,A=37,j=38,H=39,J=40,z=9,I=116,N=65,L=67,E=86,R=90,V=89,B=!1,G=U.isPlainObject(P)||!P?U.extend(!0,{},s,P):U.extend(!0,{},s),i=0;return n=function(S){var t,n,a,r,M,m,w=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>'),O=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>'),W=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>'),u=o.find(".xdsoft_time_box").eq(0),_=U('<div class="xdsoft_time_variant"></div>'),i=U('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),F=U('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),C=U('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),s=!1,d=0;G.id&&w.attr("id",G.id),G.style&&w.attr("style",G.style),G.weeks&&w.addClass("xdsoft_showweeks"),G.rtl&&w.addClass("xdsoft_rtl"),w.addClass("xdsoft_"+G.theme),w.addClass(G.className),O.find(".xdsoft_month span").after(F),O.find(".xdsoft_year span").after(C),O.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,n=U(this).find(".xdsoft_select").eq(0),r=0,o=0,i=n.is(":visible");for(O.find(".xdsoft_select").hide(),M.currentTime&&(r=M.currentTime[U(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[i?"hide":"show"](),t=n.find("div.xdsoft_option"),a=0;a<t.length&&t.eq(a).data("value")!==r;a+=1)o+=t[0].offsetHeight;return n.xdsoftScroller(G,o/(n.children()[0].offsetHeight-n[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),n=Math.abs(this.touchStartPosition.clientY-t.clientY);Math.sqrt(a*a+n*n)>G.touchMovedThreshold&&(this.touchMoved=!0)};function f(){var e,t=!1;return G.startDate?t=M.strToDate(G.startDate):(t=G.value||(S&&S.val&&S.val()?S.val():""))?(t=M.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=M.strToDateTime(G.defaultDate),G.defaultTime&&(e=M.strtotime(G.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&M.isValidDate(t)?w.data("changed",!0):t="",t||0}function c(h){var m=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?h.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)};h.mask&&S.off("keydown.xdsoft"),!0===h.mask&&(q.formatMask?h.mask=q.formatMask(h.format):h.mask=h.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(h.mask)&&(m(h.mask,S.val())||(S.val(h.mask.replace(/[0-9]/g,"_")),g(S[0],0)),S.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,n=this.selectionStart;return a=a.substr(0,n)+t+a.substr(n+t.length),n+=t.length,m(h.mask,a)?(this.value=a,g(this,n)):""===U.trim(a)?this.value=h.mask.replace(/[0-9]/g,"_"):S.trigger("error_input.xdsoft"),e.preventDefault(),!1}),S.on("keydown.xdsoft",function(e){var t,a=this.value,n=e.which,r=this.selectionStart,o=this.selectionEnd,i=r!==o;if(p<=n&&n<=v||y<=n&&n<=D||n===Y||n===k){for(t=n===Y||n===k?"_":String.fromCharCode(y<=n&&n<=D?n-p:n),n===Y&&r&&!i&&(r-=1);;){var s=h.mask.substr(r,1),d=r<h.mask.length,u=0<r;if(!(/[^0-9_]/.test(s)&&d&&u))break;r+=n!==Y||i?1:-1}if(i){var l=o-r,f=h.mask.replace(/[0-9]/g,"_"),c=f.substr(r,l).substr(1);a=a.substr(0,r)+(t+c)+a.substr(r+l)}else{a=a.substr(0,r)+t+a.substr(r+1)}if(""===U.trim(a))a=f;else if(r===h.mask.length)return e.preventDefault(),!1;for(r+=n===Y?0:1;/[^0-9_]/.test(h.mask.substr(r,1))&&r<h.mask.length&&0<r;)r+=n===Y?0:1;m(h.mask,a)?(this.value=a,g(this,r)):""===U.trim(a)?this.value=h.mask.replace(/[0-9]/g,"_"):S.trigger("error_input.xdsoft")}else if(-1!==[N,L,E,R,V].indexOf(n)&&B||-1!==[T,j,J,A,H,I,b,z,x].indexOf(n))return!0;return e.preventDefault(),!1}))}O.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!==M.currentTime&&null!==M.currentTime||(M.currentTime=M.now());var e=M.currentTime.getFullYear();M&&M.currentTime&&M.currentTime[U(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](U(this).data("value")),U(this).parent().parent().hide(),w.trigger("xchange.xdsoft"),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(w,M.currentTime,w.data("input")),e!==M.currentTime.getFullYear()&&U.isFunction(G.onChangeYear)&&G.onChangeYear.call(w,M.currentTime,w.data("input"))}}),w.getValue=function(){return M.getCurrentTime()},w.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,n=U.map(t.split(","),U.trim),r=new h(q.parseDate(n[0],G.formatDate),n[1],n[2]),o=q.formatDate(r.date,G.formatDate);void 0!==l[o]?(a=l[o].desc)&&a.length&&r.desc&&r.desc.length&&(l[o].desc=a+"\n"+r.desc):l[o]=r}),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,n,r,o,i,s,d;if(U.isArray(t))a=t[0],n=t[1],r=t[2],d=t[3];else{var u=U.map(t.split(","),U.trim);a=q.parseDate(u[0],G.formatDate),n=q.parseDate(u[1],G.formatDate),r=u[2],d=u[3]}for(;a<=n;)o=new h(a,r,d),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||S.trigger("open.xdsoft"),G.inline&&(s=!0,w.addClass("xdsoft_inline"),S.after(w).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&&(M.setCurrentTime(G.value),S&&S.val&&S.val(M.str)),isNaN(G.dayOfWeekStart)?G.dayOfWeekStart=0:G.dayOfWeekStart=parseInt(G.dayOfWeekStart,10)%7,G.timepickerScrollbar||u.xdsoftScroller(G,"hide"),G.minDate&&/^[\+\-](.*)$/.test(G.minDate)&&(G.minDate=q.formatDate(M.strToDateTime(G.minDate),G.formatDate)),G.maxDate&&/^[\+\-](.*)$/.test(G.maxDate)&&(G.maxDate=q.formatDate(M.strToDateTime(G.maxDate),G.formatDate)),G.minDateTime&&/^\+(.*)$/.test(G.minDateTime)&&(G.minDateTime=M.strToDateTime(G.minDateTime).dateFormat(G.formatDate)),i.toggle(G.showApplyButton),O.find(".xdsoft_today_button").css("visibility",G.todayButton?"visible":"hidden"),O.find("."+G.prev).css("visibility",G.prevButton?"visible":"hidden"),O.find("."+G.next).css("visibility",G.nextButton?"visible":"hidden"),c(G),G.validateOnBlur&&S.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),w.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(M.now(),G.format))}w.data("xdsoft_datetime").setCurrentTime(U(this).val())}w.trigger("changedatetime.xdsoft"),w.trigger("close.xdsoft")}),G.dayOfWeekStartPrev=0===G.dayOfWeekStart?6:G.dayOfWeekStart-1,w.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},w.data("options",G).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),C.hide(),F.hide(),!1}),u.append(_),u.xdsoftScroller(G),w.on("afterOpen.xdsoft",function(){u.xdsoftScroller(G)}),w.append(g).append(o),!0!==G.withoutCopyright&&w.append(e),g.append(O).append(W).append(i),U(G.parentID).append(w),M=new function(){var r=this;r.now=function(e){var t,a,n=new Date;return!e&&G.defaultDate&&(t=r.strToDateTime(G.defaultDate),n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate())),n.setFullYear(n.getFullYear()),!e&&G.defaultTime&&(a=r.strtotime(G.defaultTime),n.setHours(a.getHours()),n.setMinutes(a.getMinutes()),n.setSeconds(a.getSeconds()),n.setMilliseconds(a.getMilliseconds())),n},r.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},r.setCurrentTime=function(e,t){"string"==typeof e?r.currentTime=r.strToDateTime(e):r.isValidDate(e)?r.currentTime=e:e||t||!G.allowBlank||G.inline?r.currentTime=r.now():r.currentTime=null,w.trigger("xchange.xdsoft")},r.empty=function(){r.currentTime=null},r.getCurrentTime=function(){return r.currentTime},r.nextMonth=function(){void 0!==r.currentTime&&null!==r.currentTime||(r.currentTime=r.now());var e,t=r.currentTime.getMonth()+1;return 12===t&&(r.currentTime.setFullYear(r.currentTime.getFullYear()+1),t=0),e=r.currentTime.getFullYear(),r.currentTime.setDate(Math.min(new Date(r.currentTime.getFullYear(),t+1,0).getDate(),r.currentTime.getDate())),r.currentTime.setMonth(t),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(w,M.currentTime,w.data("input")),e!==r.currentTime.getFullYear()&&U.isFunction(G.onChangeYear)&&G.onChangeYear.call(w,M.currentTime,w.data("input")),w.trigger("xchange.xdsoft"),t},r.prevMonth=function(){void 0!==r.currentTime&&null!==r.currentTime||(r.currentTime=r.now());var e=r.currentTime.getMonth()-1;return-1===e&&(r.currentTime.setFullYear(r.currentTime.getFullYear()-1),e=11),r.currentTime.setDate(Math.min(new Date(r.currentTime.getFullYear(),e+1,0).getDate(),r.currentTime.getDate())),r.currentTime.setMonth(e),G.onChangeMonth&&U.isFunction(G.onChangeMonth)&&G.onChangeMonth.call(w,M.currentTime,w.data("input")),w.trigger("xchange.xdsoft"),e},r.getWeekOfYear=function(e){if(G.onGetWeekOfYear&&U.isFunction(G.onGetWeekOfYear)){var t=G.onGetWeekOfYear.call(w,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)},r.strToDateTime=function(e){var t,a,n=[];return e&&e instanceof Date&&r.isValidDate(e)?e:((n=/^([+-]{1})(.*)$/.exec(e))&&(n[2]=q.parseDate(n[2],G.formatDate)),n&&n[2]?(t=n[2].getTime()-6e4*n[2].getTimezoneOffset(),a=new Date(r.now(!0).getTime()+parseInt(n[1]+"1",10)*t)):a=e?q.parseDate(e,G.format):r.now(),r.isValidDate(a)||(a=r.now()),a)},r.strToDate=function(e){if(e&&e instanceof Date&&r.isValidDate(e))return e;var t=e?q.parseDate(e,G.formatDate):r.now(!0);return r.isValidDate(t)||(t=r.now(!0)),t},r.strtotime=function(e){if(e&&e instanceof Date&&r.isValidDate(e))return e;var t=e?q.parseDate(e,G.formatTime):r.now(!0);return r.isValidDate(t)||(t=r.now(!0)),t},r.str=function(){var e=G.format;return G.yearOffset&&(e=(e=e.replace("Y",r.currentTime.getFullYear()+G.yearOffset)).replace("y",String(r.currentTime.getFullYear()+G.yearOffset).substring(2,4))),q.formatDate(r.currentTime,e)},r.currentTime=this.now()},i.on("touchend click",function(e){e.preventDefault(),w.data("changed",!0),M.setCurrentTime(f()),S.val(M.str()),w.trigger("close.xdsoft")}),O.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){w.data("changed",!0),M.setCurrentTime(0,!0),w.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,t,a=M.getCurrentTime();a=new Date(a.getFullYear(),a.getMonth(),a.getDate()),e=M.strToDate(G.minDate),a<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(t=M.strToDate(G.maxDate),(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))<a||(S.val(M.str()),S.trigger("change"),w.trigger("close.xdsoft")))}),O.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var a=U(this),n=0,r=!1;!function e(t){a.hasClass(G.next)?M.nextMonth():a.hasClass(G.prev)&&M.prevMonth(),G.monthChangeSpinner&&(r||(n=setTimeout(e,t||100)))}(500),U([G.ownerDocument.body,G.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(n),r=!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,d=110;!function e(t){var a=u[0].clientHeight,n=_[0].offsetHeight,r=Math.abs(parseInt(_.css("marginTop"),10));o.hasClass(G.next)&&n-a-G.timeHeightInTimePicker>=r?_.css("marginTop","-"+(r+G.timeHeightInTimePicker)+"px"):o.hasClass(G.prev)&&0<=r-G.timeHeightInTimePicker&&_.css("marginTop","-"+(r-G.timeHeightInTimePicker)+"px"),u.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(_[0].style.marginTop,10)/(n-a))]),d=10<d?10:d-10,s||(i=setTimeout(e,t||d))}(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,w.on("xchange.xdsoft",function(e){clearTimeout(t),t=setTimeout(function(){void 0!==M.currentTime&&null!==M.currentTime||(M.currentTime=M.now());for(var e,t,a,n,r,o,i,s,d,u,l="",f=new Date(M.currentTime.getFullYear(),M.currentTime.getMonth(),1,12,0,0),c=0,h=M.now(),m=!1,g=!1,p=!1,v=[],y=!0,D="";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&&(m=M.strToDate(G.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==G.minDate&&(g=M.strToDate(G.minDate),g=new Date(g.getFullYear(),g.getMonth(),g.getDate())),!1!==G.minDateTime&&(p=M.strToDate(G.minDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds()));c<M.currentTime.countDaysInMonth()||f.getDay()!==G.dayOfWeekStart||M.currentTime.getMonth()===f.getMonth();)v=[],c+=1,a=f.getDay(),n=f.getDate(),r=f.getFullYear(),o=f.getMonth(),i=M.getWeekOfYear(f),u="",v.push("xdsoft_date"),s=G.beforeShowDay&&U.isFunction(G.beforeShowDay.call)?G.beforeShowDay.call(w,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"),(!1!==m&&m<f||!1!==p&&f<p||!1!==g&&f<g||s&&!1===s[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"),S.is("[disabled]")&&v.push("xdsoft_disabled"),s&&""!==s[1]&&v.push(s[1]),M.currentTime.getMonth()!==o&&v.push("xdsoft_other_month"),(G.defaultSelect||w.data("changed"))&&q.formatDate(M.currentTime,G.formatDate)===q.formatDate(f,G.formatDate)&&v.push("xdsoft_current"),q.formatDate(h,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>"+i+"</th>")),l+='<td data-date="'+n+'" data-month="'+o+'" data-year="'+r+'" class="xdsoft_date xdsoft_day_of_week'+f.getDay()+" "+v.join(" ")+'" title="'+u+'"><div>'+n+"</div></td>",f.getDay()===G.dayOfWeekStartPrev&&(l+="</tr>",y=!0),f.setDate(n+1);l+="</tbody></table>",W.html(l),O.find(".xdsoft_label span").eq(0).text(G.i18n[X].months[M.currentTime.getMonth()]),O.find(".xdsoft_label span").eq(1).text(M.currentTime.getFullYear()+G.yearOffset),o=D="";var b=0;if(!1!==G.minTime){var k=M.strtotime(G.minTime);b=60*k.getHours()+k.getMinutes()}var x=1440;if(!1!==G.maxTime){k=M.strtotime(G.maxTime);x=60*k.getHours()+k.getMinutes()}if(d=function(e,t){var a,n,r=M.now(),o=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),(a=new Date(M.currentTime)).setHours(e),a.setMinutes(t),v=[];var i=60*e+t;!1!==G.minDateTime&&G.minDateTime>a||x<=i||i<b?v.push("xdsoft_disabled"):!1!==G.minDateTime&&G.minDateTime>a||!1!==G.disabledMinTime&&r.getTime()>M.strtotime(G.disabledMinTime).getTime()&&!1!==G.disabledMaxTime&&r.getTime()<M.strtotime(G.disabledMaxTime).getTime()?v.push("xdsoft_disabled"):S.is("[disabled]")&&v.push("xdsoft_disabled"),(n=new Date(M.currentTime)).setHours(parseInt(M.currentTime.getHours(),10)),o||n.setMinutes(Math[G.roundTime](M.currentTime.getMinutes()/G.step)*G.step),(G.initTime||G.defaultSelect||w.data("changed"))&&n.getHours()===parseInt(e,10)&&(!o&&59<G.step||n.getMinutes()===parseInt(t,10))&&(G.defaultSelect||w.data("changed")?v.push("xdsoft_current"):G.initTime&&v.push("xdsoft_init_time")),parseInt(h.getHours(),10)===parseInt(e,10)&&parseInt(h.getMinutes(),10)===parseInt(t,10)&&v.push("xdsoft_today"),D+='<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)d(M.strtotime(G.allowTimes[c]).getHours(),o=M.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 T=60*c+e;T<b||(x<=T||d((c<10?"0":"")+c,o=(e<10?"0":"")+e))}for(_.html(D),P="",c=parseInt(G.yearStart,10);c<=parseInt(G.yearEnd,10);c+=1)P+='<div class="xdsoft_option '+(M.currentTime.getFullYear()===c?"xdsoft_current":"")+'" data-value="'+c+'">'+(c+G.yearOffset)+"</div>";for(C.children().eq(0).html(P),c=parseInt(G.monthStart,10),P="";c<=parseInt(G.monthEnd,10);c+=1)P+='<div class="xdsoft_option '+(M.currentTime.getMonth()===c?"xdsoft_current":"")+'" data-value="'+c+'">'+G.i18n[X].months[c]+"</div>";F.children().eq(0).html(P),U(w).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a,n;G.timepicker&&(_.find(".xdsoft_current").length?e=".xdsoft_current":_.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=u[0].clientHeight,(a=_[0].offsetHeight)-t<(n=_.find(e).index()*G.timeHeightInTimePicker+1)&&(n=a-t),u.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(a-t)])):u.trigger("scroll_element.xdsoft_scroller",[0]))}),n=0,W.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),n+=1;var t=U(this),a=M.currentTime;if(null==a&&(M.currentTime=M.now(),a=M.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),w.trigger("select.xdsoft",[a]),S.val(M.str()),G.onSelectDate&&U.isFunction(G.onSelectDate)&&G.onSelectDate.call(w,M.currentTime,w.data("input"),e),w.data("changed",!0),w.trigger("xchange.xdsoft"),w.trigger("changedatetime.xdsoft"),(1<n||!0===G.closeOnDateSelect||!1===G.closeOnDateSelect&&!G.timepicker)&&!G.inline&&w.trigger("close.xdsoft"),setTimeout(function(){n=0},200)}),_.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=M.currentTime;if(null==a&&(M.currentTime=M.now(),a=M.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setHours(t.data("hour")),a.setMinutes(t.data("minute")),w.trigger("select.xdsoft",[a]),w.data("input").val(M.str()),G.onSelectTime&&U.isFunction(G.onSelectTime)&&G.onSelectTime.call(w,M.currentTime,w.data("input"),e),w.data("changed",!0),w.trigger("xchange.xdsoft"),w.trigger("changedatetime.xdsoft"),!0!==G.inline&&!0===G.closeOnTimeSelect&&w.trigger("close.xdsoft")}}),g.on("mousewheel.xdsoft",function(e){return!G.scrollMonth||(e.deltaY<0?M.nextMonth():M.prevMonth(),!1)}),S.on("mousewheel.xdsoft",function(e){return!G.scrollInput||(!G.datepicker&&G.timepicker?(0<=(a=_.find(".xdsoft_current").length?_.find(".xdsoft_current").eq(0).index():0)+e.deltaY&&a+e.deltaY<_.children().length&&(a+=e.deltaY),_.children().eq(a).length&&_.children().eq(a).trigger("mousedown"),!1):G.datepicker&&!G.timepicker?(g.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),S.val&&S.val(M.str()),w.trigger("changedatetime.xdsoft"),!1):void 0)}),w.on("changedatetime.xdsoft",function(e){if(G.onChangeDateTime&&U.isFunction(G.onChangeDateTime)){var t=w.data("input");G.onChangeDateTime.call(w,M.currentTime,t,e),delete G.value,t.trigger("change")}}).on("generate.xdsoft",function(){G.onGenerate&&U.isFunction(G.onGenerate)&&G.onGenerate.call(w,M.currentTime,w.data("input")),s&&(w.trigger("afterOpen.xdsoft"),s=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),a=0,m=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},r=function(){var e,t,a,n,r,o,i,s,d,u,l,f,c;if(e=(s=w.data("input")).offset(),t=s[0],u="top",a=e.top+t.offsetHeight-1,n=e.left,r="absolute",d=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 h=g.parent().outerWidth(!0)-t.offsetWidth;n-=h}"rtl"===s.parent().css("direction")&&(n-=w.outerWidth()-s.outerWidth()),G.fixed?(a-=c,n-=U(G.contentWindow).scrollLeft(),r="fixed"):(i=!1,m(t,function(e){return null!==e&&("fixed"===G.contentWindow.getComputedStyle(e).getPropertyValue("position")?(i=!0,!1):void 0)}),i?(r="fixed",a+w.outerHeight()>f+c?(u="bottom",a=f+c-e.top):a-=c):a+w[0].offsetHeight>f+c&&(a=e.top-w[0].offsetHeight+1),a<0&&(a=0),n+t.offsetWidth>d&&(n=d-t.offsetWidth)),o=w[0],m(o,function(e){if("relative"===G.contentWindow.getComputedStyle(e).getPropertyValue("position")&&d>=e.offsetWidth)return n-=(d-e.offsetWidth)/2,!1}),(l={position:r,left:n,top:"",bottom:""})[u]=a,w.css(l)},w.on("open.xdsoft",function(e){var t=!0;G.onShow&&U.isFunction(G.onShow)&&(t=G.onShow.call(w,M.currentTime,w.data("input"),e)),!1!==t&&(w.show(),r(),U(G.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),G.closeOnWithoutClick&&U([G.ownerDocument.body,G.contentWindow]).on("touchstart mousedown.xdsoft",function e(){w.trigger("close.xdsoft"),U([G.ownerDocument.body,G.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;O.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),G.onClose&&U.isFunction(G.onClose)&&(t=G.onClose.call(w,M.currentTime,w.data("input"),e)),!1===t||G.opened||G.inline||w.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){w.is(":visible")?w.trigger("close.xdsoft"):w.trigger("open.xdsoft")}).data("input",S),d=0,w.data("xdsoft_datetime",M),w.setOptions(G),M.setCurrentTime(f()),S.data("xdsoft_datetimepicker",w).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){S.is(":disabled")||S.data("xdsoft_datetimepicker").is(":visible")&&G.closeOnInputClick||G.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){S.is(":disabled")||(s=!0,M.setCurrentTime(f(),!0),G.mask&&c(G),w.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"),w.trigger("close.xdsoft"),t.eq(t.index(this)+1).focus(),!1):-1!==[z].indexOf(a)?(w.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){w.trigger("close.xdsoft")})},r=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(P))switch(P){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":r(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[P]&&U.isFunction(e[P])&&(o=e[P](a))}else e.setOptions(P);return 0}"string"!==U.type(P)&&(!G.lazyInit||G.open||G.inline?n(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")||n(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 h,m,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],n,!1);else this.onmousewheel=n;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],n,!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 n(e){var t,a=e||window.event,n=g.call(arguments,1),r=0,o=0,i=0,s=0,d=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),r=0===i?o:i,"deltaY"in a&&(r=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(r=-1*o)),0!==i||0!==o){if(1===a.deltaMode){var u=c.data(this,"mousewheel-line-height");r*=u,i*=u,o*=u}else if(2===a.deltaMode){var l=c.data(this,"mousewheel-page-height");r*=l,i*=l,o*=l}if(t=Math.max(Math.abs(i),Math.abs(o)),(!m||t<m)&&y(a,m=t)&&(m/=40),y(a,t)&&(r/=40,o/=40,i/=40),r=Math[1<=r?"floor":"ceil"](r/m),o=Math[1<=o?"floor":"ceil"](o/m),i=Math[1<=i?"floor":"ceil"](i/m),p.settings.normalizeOffset&&this.getBoundingClientRect){var f=this.getBoundingClientRect();s=e.clientX-f.left,d=e.clientY-f.top}return e.deltaX=o,e.deltaY=i,e.deltaFactor=m,e.offsetX=s,e.offsetY=d,e.deltaMode=0,n.unshift(e,r,o,i),h&&clearTimeout(h),h=setTimeout(v,200),(c.event.dispatch||c.event.handle).apply(this,n)}}function v(){m=null}function y(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)}})});