var DateFormatter,datetimepickerFactory;!function(){"use strict";var t,n,i,r,e,u,f;u=864e5;f=3600;t=function(n,t){return"string"==typeof n&&"string"==typeof t&&n.toLowerCase()===t.toLowerCase()};n=function(t,i,r){var f=r||"0",u=t.toString();return u.length<i?n(f+u,i):u};i=function(n){var u,r,t;for(n=n||{},u=1;u<arguments.length;u++)if(r=arguments[u])for(t in r)r.hasOwnProperty(t)&&("object"==typeof r[t]?i(n[t],r[t]):n[t]=r[t]);return n};r=function(n,t){for(var i=0;i<t.length;i++)if(t[i].toLowerCase()===n.toLowerCase())return i;return-1};e={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(n){var t=n%10,i={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(n%100/10)&&i[t]?i[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(n){var t=this,r=i(e,n);t.dateSettings=r.dateSettings;t.separators=r.separators;t.validParts=r.validParts;t.intParts=r.intParts;t.tzParts=r.tzParts;t.tzClip=r.tzClip};DateFormatter.prototype={constructor:DateFormatter,getMonth:function(n){var t,i=this;return t=r(n,i.dateSettings.monthsShort)+1,0===t&&(t=r(n,i.dateSettings.months)+1),t},parseDate:function(n,i){var f,h,e,o,r,v,y,c,w,p,l=this,a=!1,s=!1,b=l.dateSettings,u={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!n)return null;if(n instanceof Date)return n;if("U"===i)return e=parseInt(n),e?new Date(1e3*e):n;switch(typeof n){case"number":return new Date(n);case"string":break;default:return null}if(f=i.match(l.validParts),!f||0===f.length)throw new Error("Invalid date format definition.");for(h=n.replace(l.separators,"\x00").split("\x00"),e=0;e<h.length;e++)switch(o=h[e],r=parseInt(o),f[e]){case"y":case"Y":if(!r)return null;w=o.length;u.year=2===w?parseInt((70>r?"20":"19")+o):r;a=!0;break;case"m":case"n":case"M":case"F":if(isNaN(r)){if(v=l.getMonth(o),!(v>0))return null;u.month=v}else{if(!(r>=1&&12>=r))return null;u.month=r}a=!0;break;case"d":case"j":if(!(r>=1&&31>=r))return null;u.day=r;a=!0;break;case"g":case"h":if(y=f.indexOf("a")>-1?f.indexOf("a"):f.indexOf("A")>-1?f.indexOf("A"):-1,p=h[y],-1!==y)c=t(p,b.meridiem[0])?0:t(p,b.meridiem[1])?12:-1,r>=1&&12>=r&&-1!==c?u.hour=r%12==0?c:r+c:r>=0&&23>=r&&(u.hour=r);else{if(!(r>=0&&23>=r))return null;u.hour=r}s=!0;break;case"G":case"H":if(!(r>=0&&23>=r))return null;u.hour=r;s=!0;break;case"i":if(!(r>=0&&59>=r))return null;u.min=r;s=!0;break;case"s":if(!(r>=0&&59>=r))return null;u.sec=r;s=!0}if(a===!0&&u.year&&u.month&&u.day)u.date=new Date(u.year,u.month-1,u.day,u.hour,u.min,u.sec,0);else{if(s!==!0)return null;u.date=new Date(0,0,0,u.hour,u.min,u.sec,0)}return u.date},guessDate:function(n,t){if("string"!=typeof n)return n;var e,o,u,h,f,r,a=this,c=n.replace(a.separators,"\x00").split("\x00"),s=t.match(a.validParts),i=new Date,l=0;if(!/^[djmn]/g.test(s[0]))return n;for(u=0;u<c.length;u++){if(l=2,f=c[u],r=parseInt(f.substr(0,2)),isNaN(r))return null;switch(u){case 0:"m"===s[0]||"n"===s[0]?i.setMonth(r-1):i.setDate(r);break;case 1:"m"===s[0]||"n"===s[0]?i.setDate(r):i.setMonth(r-1);break;case 2:if(o=i.getFullYear(),e=f.length,l=4>e?e:4,o=parseInt(4>e?o.toString().substr(0,4-e)+f:f.substr(0,4)),!o)return null;i.setFullYear(o);break;case 3:i.setHours(r);break;case 4:i.setMinutes(r);break;case 5:i.setSeconds(r)}h=f.substr(l);h.length>0&&c.splice(u+1,0,h)}return i},parseFormat:function(t,i){var r,o=this,e=o.dateSettings,h=/\\?(.?)/gi,s=function(n,t){return r[n]?r[n]():t};return r={d:function(){return n(r.j(),2)},D:function(){return e.daysShort[r.w()]},j:function(){return i.getDate()},l:function(){return e.days[r.w()]},N:function(){return r.w()||7},w:function(){return i.getDay()},z:function(){var n=new Date(r.Y(),r.n()-1,r.j()),t=new Date(r.Y(),0,1);return Math.round((n-t)/u)},W:function(){var t=new Date(r.Y(),r.n()-1,r.j()-r.N()+3),i=new Date(t.getFullYear(),0,4);return n(1+Math.round((t-i)/u/7),2)},F:function(){return e.months[i.getMonth()]},m:function(){return n(r.n(),2)},M:function(){return e.monthsShort[i.getMonth()]},n:function(){return i.getMonth()+1},t:function(){return new Date(r.Y(),r.n(),0).getDate()},L:function(){var n=r.Y();return n%4==0&&n%100!=0||n%400==0?1:0},o:function(){var n=r.n(),t=r.W(),i=r.Y();return i+(12===n&&9>t?1:1===n&&t>9?-1:0)},Y:function(){return i.getFullYear()},y:function(){return r.Y().toString().slice(-2)},a:function(){return r.A().toLowerCase()},A:function(){var n=r.G()<12?0:1;return e.meridiem[n]},B:function(){var t=i.getUTCHours()*f,r=60*i.getUTCMinutes(),u=i.getUTCSeconds();return n(Math.floor((t+r+u+f)/86.4)%1e3,3)},g:function(){return r.G()%12||12},G:function(){return i.getHours()},h:function(){return n(r.g(),2)},H:function(){return n(r.G(),2)},i:function(){return n(i.getMinutes(),2)},s:function(){return n(i.getSeconds(),2)},u:function(){return n(1e3*i.getMilliseconds(),6)},e:function(){var n=/\((.*)\)/.exec(String(i))[1];return n||"Coordinated Universal Time"},I:function(){var n=new Date(r.Y(),0),t=Date.UTC(r.Y(),0),i=new Date(r.Y(),6),u=Date.UTC(r.Y(),6);return n-t!=i-u?1:0},O:function(){var t=i.getTimezoneOffset(),r=Math.abs(t);return(t>0?"-":"+")+n(100*Math.floor(r/60)+r%60,4)},P:function(){var n=r.O();return n.substr(0,3)+":"+n.substr(3,2)},T:function(){var n=(String(i).match(o.tzParts)||[""]).pop().replace(o.tzClip,"");return n||"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(h,s)},r:function(){return"D, d M Y H:i:s O".replace(h,s)},U:function(){return i.getTime()/1e3||0}},s(t,t)},formatDate:function(n,t){var i,s,e,u,r,f=this,o="",h="\\";if("string"==typeof n&&(n=f.parseDate(n,t),!n))return null;if(n instanceof Date){for(e=t.length,i=0;e>i;i++)r=t.charAt(i),"S"!==r&&r!==h&&(i>0&&t.charAt(i-1)===h?o+=r:(u=f.parseFormat(r,n),i!==e-1&&f.intParts.test(r)&&"S"===t.charAt(i+1)&&(s=parseInt(u)||0,u+=f.dateSettings.ordinal(s)),o+=u));return o}return""}}}();datetimepickerFactory=function(n){"use strict";function h(n,t,i){this.date=n;this.desc=t;this.style=i}var i={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,insideParent:!1},t=null,u=null,c="en",r="en",l={meridiem:["AM","PM"]},o=function(){var f=i.i18n[r],e={days:f.dayOfWeek,daysShort:f.dayOfWeekShort,months:f.months,monthsShort:n.map(f.months,function(n){return n.substring(0,3)})};typeof DateFormatter=="function"&&(t=u=new DateFormatter({dateSettings:n.extend({},l,e)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(n,t){if(e(t))return u.parseDate(n,t);var i=moment(n,t);return i.isValid()?i.toDate():!1},formatDate:function(n,t){return e(t)?u.formatDate(n,t):moment(n).format(t)},formatMask:function(n){return n.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")}}}},f,e;n.datetimepicker={setLocale:function(n){var t=i.i18n[n]?n:c;r!==t&&(r=t,o())},setDateFormatter:function(r){if(typeof r=="string"&&s.hasOwnProperty(r)){var u=s[r];n.extend(i,u.default_options);t=u.formatter}else t=r}};f={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"};e=function(n){return Object.values(f).indexOf(n)===-1?!1:!0};n.extend(n.datetimepicker,f);o();window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(-([a-z]))/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(n,t,i){return i.toUpperCase()})),n.currentStyle[t]||null},this});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i+=1)if(this[i]===n)return i;return-1});Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()};n.fn.xdsoftScroller=function(t,i){return this.each(function(){var r=n(this),h=function(n){var t={x:0,y:0},i;return n.type==="touchstart"||n.type==="touchmove"||n.type==="touchend"||n.type==="touchcancel"?(i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0],t.x=i.clientX,t.y=i.clientY):(n.type==="mousedown"||n.type==="mouseup"||n.type==="mousemove"||n.type==="mouseover"||n.type==="mouseout"||n.type==="mouseenter"||n.type==="mouseleave")&&(t.x=n.clientX,t.y=n.clientY),t},e,f,o,s,u,c=100,l=!1,b=0,v=0,y=0,p=!1,w=0,a=function(){};if(i==="hide"){r.find(".xdsoft_scrollbar").hide();return}if(!n(this).hasClass("xdsoft_scroller_box")){e=r.children().eq(0);f=r[0].clientHeight;o=e[0].offsetHeight;s=n('<div class="xdsoft_scrollbar"><\/div>');u=n('<div class="xdsoft_scroller"><\/div>');s.append(u);r.addClass("xdsoft_scroller_box").append(s);a=function(n){var t=h(n).y-b+w;t<0&&(t=0);t+u[0].offsetHeight>y&&(t=y-u[0].offsetHeight);r.trigger("scroll_element.xdsoft_scroller",[c?t/c:0])};u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){if(f||r.trigger("resize_scroll.xdsoft_scroller",[i]),b=h(e).y,w=parseInt(u.css("margin-top"),10),y=s[0].offsetHeight,e.type==="mousedown"||e.type==="touchstart"){t.ownerDocument&&n(t.ownerDocument.body).addClass("xdsoft_noselect");n([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",function o(){n([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",o).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")});n(t.ownerDocument.body).on("mousemove.xdsoft_scroller",a)}else p=!0,e.stopPropagation(),e.preventDefault()}).on("touchmove",function(n){p&&(n.preventDefault(),a(n))}).on("touchend touchcancel",function(){p=!1;w=0});r.on("scroll_element.xdsoft_scroller",function(n,t){f||r.trigger("resize_scroll.xdsoft_scroller",[t,!0]);t=t>1?1:t<0||isNaN(t)?0:t;u.css("margin-top",c*t);setTimeout(function(){e.css("marginTop",-parseInt((e[0].offsetHeight-f)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(n,t,i){var h,l;f=r[0].clientHeight;o=e[0].offsetHeight;h=f/o;l=h*s[0].offsetHeight;h>1?u.hide():(u.show(),u.css("height",parseInt(l>10?l:10,10)),c=s[0].offsetHeight-u[0].offsetHeight,i!==!0&&r.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(e.css("marginTop"),10))/(o-f)]))});r.on("mousewheel",function(n){var t=Math.abs(parseInt(e.css("marginTop"),10));return t=t-n.deltaY*20,t<0&&(t=0),r.trigger("scroll_element.xdsoft_scroller",[t/(o-f)]),n.stopPropagation(),!1});r.on("touchstart",function(n){l=h(n);v=Math.abs(parseInt(e.css("marginTop"),10))});r.on("touchmove",function(n){if(l){n.preventDefault();var t=h(n);r.trigger("scroll_element.xdsoft_scroller",[(v-(t.y-l.y))/(o-f)])}});r.on("touchend touchcancel",function(){l=!1;v=0})}r.trigger("resize_scroll.xdsoft_scroller",[i])})};n.fn.datetimepicker=function(u,f){var a=this,v=48,it=57,y=96,p=105,s=17,w=91,b=46,k=13,rt=27,o=8,ut=37,ft=38,et=39,ot=40,d=9,st=116,ht=65,ct=67,lt=86,at=90,vt=89,c=!1,g=!1,e=n.isPlainObject(u)||!u?n.extend(!0,{},i,u):n.extend(!0,{},i),nt=0,l,tt,yt=function(n){n.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){n.is(":disabled")||n.data("xdsoft_datetimepicker")||(clearTimeout(nt),nt=setTimeout(function(){n.data("xdsoft_datetimepicker")||l(n);n.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};l=function(i){function fi(){var n=!1,t;return e.startDate?n=l.strToDate(e.startDate):(n=e.value||(i&&i.val&&i.val()?i.val():""),n?(n=l.strToDateTime(n),e.yearOffset&&(n=new Date(n.getFullYear()-e.yearOffset,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))):e.defaultDate&&(n=l.strToDateTime(e.defaultDate),e.defaultTime&&(t=l.strtotime(e.defaultTime),n.setHours(t.getHours()),n.setMinutes(t.getMinutes())))),n&&l.isValidDate(n)?f.data("changed",!0):n="",n||0}function oi(r){var u=function(n,t){var i=n.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(i).test(t)},e=function(n){try{if(r.ownerDocument.selection&&r.ownerDocument.selection.createRange){var t=r.ownerDocument.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(n.setSelectionRange)return n.selectionStart}catch(i){return 0}},f=function(n,t){if(n=typeof n=="string"||n instanceof String?r.ownerDocument.getElementById(n):n,!n)return!1;if(n.createTextRange){var i=n.createTextRange();return i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select(),!0}return n.setSelectionRange?(n.setSelectionRange(t,t),!0):!1};if(r.mask&&i.off("keydown.xdsoft"),r.mask===!0&&(r.mask=t.formatMask?t.formatMask(r.format):r.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")),n.type(r.mask)==="string"){u(r.mask,i.val())||(i.val(r.mask.replace(/[0-9]/g,"_")),f(i[0],0));i.on("paste.xdsoft",function(t){var h=t.clipboardData||t.originalEvent.clipboardData||window.clipboardData,s=h.getData("text"),e=this.value,o=this.selectionStart,c=e.substr(0,o),l=e.substr(o+s.length);return e=c+s+l,o+=s.length,u(r.mask,e)?(this.value=e,f(this,o)):n.trim(e)===""?this.value=r.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft"),t.preventDefault(),!1});i.on("keydown.xdsoft",function(t){var l=this.value,h=t.which,e=this.selectionStart,g=this.selectionEnd,a=e!==g,w;if(h>=v&&h<=it||h>=y&&h<=p||h===o||h===b){for(w=h===o||h===b?"_":String.fromCharCode(y<=h&&h<=p?h-v:h),h===o&&e&&!a&&(e-=1);;){var yt=r.mask.substr(e,1),pt=e<r.mask.length,wt=e>0,bt=/[^0-9_]/.test(yt),kt=bt&&pt&&wt;if(!kt)break;e+=h===o&&!a?-1:1}if(t.metaKey&&(e=0,a=!0),a){var nt=g-e,tt=r.mask.replace(/[0-9]/g,"_"),dt=tt.substr(e,nt),gt=dt.substr(1),ni=l.substr(0,e),ti=w+gt,ii=l.substr(e+nt);l=ni+ti+ii}else{var ri=l.substr(0,e),ui=w,fi=l.substr(e+1);l=ri+ui+fi}if(n.trim(l)==="")l=tt;else if(e===r.mask.length)return t.preventDefault(),!1;for(e+=h===o?0:1;/[^0-9_]/.test(r.mask.substr(e,1))&&e<r.mask.length&&e>0;)e+=h===o?0:1;u(r.mask,l)?(this.value=l,f(this,e)):n.trim(l)===""?this.value=r.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft")}else if([ht,ct,lt,at,vt].indexOf(h)!==-1&&c||[rt,ft,ot,ut,et,st,s,d,k].indexOf(h)!==-1)return!0;return t.preventDefault(),!1})}}var f=n('<div class="xdsoft_datetimepicker xdsoft_noselect"><\/div>'),si=n('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net<\/a><\/div>'),nt=n('<div class="xdsoft_datepicker active"><\/div>'),w=n('<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>'),kt=n('<div class="xdsoft_calendar"><\/div>'),yt=n('<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>'),g=yt.find(".xdsoft_time_box").eq(0),a=n('<div class="xdsoft_time_variant"><\/div>'),dt=n('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected<\/button>'),gt=n('<div class="xdsoft_select xdsoft_monthselect"><div><\/div><\/div>'),ni=n('<div class="xdsoft_select xdsoft_yearselect"><div><\/div><\/div>'),pt=!1,ei,ti,wt,tt,bt,ii=0,l,ri,ui;e.id&&f.attr("id",e.id);e.style&&f.attr("style",e.style);e.weeks&&f.addClass("xdsoft_showweeks");e.rtl&&f.addClass("xdsoft_rtl");f.addClass("xdsoft_"+e.theme);f.addClass(e.className);w.find(".xdsoft_month span").after(gt);w.find(".xdsoft_year span").after(ni);w.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var i=n(this).find(".xdsoft_select").eq(0),f=0,o=0,s=i.is(":visible"),r,u;for(w.find(".xdsoft_select").hide(),l.currentTime&&(f=l.currentTime[n(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),i[s?"hide":"show"](),r=i.find("div.xdsoft_option"),u=0;u<r.length;u+=1)if(r.eq(u).data("value")===f)break;else o+=r[0].offsetHeight;return i.xdsoftScroller(e,o/(i.children()[0].offsetHeight-i[0].clientHeight)),t.stopPropagation(),!1});ui=function(n){var t=n.originalEvent,i=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||i;var r=Math.abs(this.touchStartPosition.clientX-i.clientX),u=Math.abs(this.touchStartPosition.clientY-i.clientY),f=Math.sqrt(r*r+u*u);f>e.touchMovedThreshold&&(this.touchMoved=!0)};w.find(".xdsoft_select").xdsoftScroller(e).on("touchstart mousedown.xdsoft",function(n){var t=n.originalEvent;this.touchMoved=!1;this.touchStartPosition=t.touches?t.touches[0]:t;n.stopPropagation();n.preventDefault()}).on("touchmove",".xdsoft_option",ui).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){(l.currentTime===undefined||l.currentTime===null)&&(l.currentTime=l.now());var t=l.currentTime.getFullYear();l&&l.currentTime&&l.currentTime[n(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](n(this).data("value"));n(this).parent().parent().hide();f.trigger("xchange.xdsoft");e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input"));t!==l.currentTime.getFullYear()&&n.isFunction(e.onChangeYear)&&e.onChangeYear.call(f,l.currentTime,f.data("input"))}});f.getValue=function(){return l.getCurrentTime()};f.setOptions=function(r){var u={};if(e=n.extend(!0,{},e,r),r.allowTimes&&n.isArray(r.allowTimes)&&r.allowTimes.length&&(e.allowTimes=n.extend(!0,[],r.allowTimes)),r.weekends&&n.isArray(r.weekends)&&r.weekends.length&&(e.weekends=n.extend(!0,[],r.weekends)),r.allowDates&&n.isArray(r.allowDates)&&r.allowDates.length&&(e.allowDates=n.extend(!0,[],r.allowDates)),r.allowDateRe&&Object.prototype.toString.call(r.allowDateRe)==="[object String]"&&(e.allowDateRe=new RegExp(r.allowDateRe)),r.highlightedDates&&n.isArray(r.highlightedDates)&&r.highlightedDates.length&&(n.each(r.highlightedDates,function(i,r){var c=n.map(r.split(","),n.trim),o,f=new h(t.parseDate(c[0],e.formatDate),c[1],c[2]),s=t.formatDate(f.date,e.formatDate);u[s]!==undefined?(o=u[s].desc,o&&o.length&&f.desc&&f.desc.length&&(u[s].desc=o+"\n"+f.desc)):u[s]=f}),e.highlightedDates=n.extend(!0,[],u)),r.highlightedPeriods&&n.isArray(r.highlightedPeriods)&&r.highlightedPeriods.length&&(u=n.extend(!0,[],e.highlightedDates),n.each(r.highlightedPeriods,function(i,r){var f,a,v,o,s,l,y,c;for(n.isArray(r)?(f=r[0],a=r[1],v=r[2],y=r[3]):(c=n.map(r.split(","),n.trim),f=t.parseDate(c[0],e.formatDate),a=t.parseDate(c[1],e.formatDate),v=c[2],y=c[3]);f<=a;)o=new h(f,v,y),s=t.formatDate(f,e.formatDate),f.setDate(f.getDate()+1),u[s]!==undefined?(l=u[s].desc,l&&l.length&&o.desc&&o.desc.length&&(u[s].desc=l+"\n"+o.desc)):u[s]=o}),e.highlightedDates=n.extend(!0,[],u)),r.disabledDates&&n.isArray(r.disabledDates)&&r.disabledDates.length&&(e.disabledDates=n.extend(!0,[],r.disabledDates)),r.disabledWeekDays&&n.isArray(r.disabledWeekDays)&&r.disabledWeekDays.length&&(e.disabledWeekDays=n.extend(!0,[],r.disabledWeekDays)),(e.open||e.opened)&&!e.inline&&i.trigger("open.xdsoft"),e.inline&&(pt=!0,f.addClass("xdsoft_inline"),i.after(f).hide()),e.inverseButton&&(e.next="xdsoft_prev",e.prev="xdsoft_next"),e.datepicker?nt.addClass("active"):nt.removeClass("active"),e.timepicker?yt.addClass("active"):yt.removeClass("active"),e.value&&(l.setCurrentTime(e.value),i&&i.val&&i.val(l.str)),e.dayOfWeekStart=isNaN(e.dayOfWeekStart)?0:parseInt(e.dayOfWeekStart,10)%7,e.timepickerScrollbar||g.xdsoftScroller(e,"hide"),e.minDate&&/^[\+\-](.*)$/.test(e.minDate)&&(e.minDate=t.formatDate(l.strToDateTime(e.minDate),e.formatDate)),e.maxDate&&/^[\+\-](.*)$/.test(e.maxDate)&&(e.maxDate=t.formatDate(l.strToDateTime(e.maxDate),e.formatDate)),e.minDateTime&&/^\+(.*)$/.test(e.minDateTime)&&(e.minDateTime=l.strToDateTime(e.minDateTime).dateFormat(e.formatDate)),e.maxDateTime&&/^\+(.*)$/.test(e.maxDateTime)&&(e.maxDateTime=l.strToDateTime(e.maxDateTime).dateFormat(e.formatDate)),dt.toggle(e.showApplyButton),w.find(".xdsoft_today_button").css("visibility",e.todayButton?"visible":"hidden"),w.find("."+e.prev).css("visibility",e.prevButton?"visible":"hidden"),w.find("."+e.next).css("visibility",e.nextButton?"visible":"hidden"),oi(e),e.validateOnBlur)i.off("blur.xdsoft").on("blur.xdsoft",function(){var u,i,r;e.allowBlank&&(!n.trim(n(this).val()).length||typeof e.mask=="string"&&n.trim(n(this).val())===e.mask.replace(/[0-9]/g,"_"))?(n(this).val(null),f.data("xdsoft_datetime").empty()):(u=t.parseDate(n(this).val(),e.format),u?n(this).val(t.formatDate(u,e.format)):(i=+[n(this).val()[0],n(this).val()[1]].join(""),r=+[n(this).val()[2],n(this).val()[3]].join(""),!e.datepicker&&e.timepicker&&i>=0&&i<24&&r>=0&&r<60?n(this).val([i,r].map(function(n){return n>9?n:"0"+n}).join(":")):n(this).val(t.formatDate(l.now(),e.format))),f.data("xdsoft_datetime").setCurrentTime(n(this).val()));f.trigger("changedatetime.xdsoft");f.trigger("close.xdsoft")});e.dayOfWeekStartPrev=e.dayOfWeekStart===0?6:e.dayOfWeekStart-1;f.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")};f.data("options",e).on("touchstart mousedown.xdsoft",function(n){return n.stopPropagation(),n.preventDefault(),ni.hide(),gt.hide(),!1});g.append(a);g.xdsoftScroller(e);f.on("afterOpen.xdsoft",function(){g.xdsoftScroller(e)});f.on("RefreshTheInputDateTime",function(n,t){i.val(l.str());t&&f.trigger("changedatetime.xdsoft")});f.append(nt).append(yt);e.withoutCopyright!==!0&&f.append(si);nt.append(w).append(kt).append(dt);e.insideParent?n(i).parent().append(f):n(e.parentID).append(f);ei=function(){var i=this;i.now=function(n){var t=new Date,u,r;return!n&&e.defaultDate&&(u=i.strToDateTime(e.defaultDate),t.setFullYear(u.getFullYear()),t.setMonth(u.getMonth()),t.setDate(u.getDate())),t.setFullYear(t.getFullYear()),!n&&e.defaultTime&&(r=i.strtotime(e.defaultTime),t.setHours(r.getHours()),t.setMinutes(r.getMinutes()),t.setSeconds(r.getSeconds()),t.setMilliseconds(r.getMilliseconds())),t};i.isValidDate=function(n){return Object.prototype.toString.call(n)!=="[object Date]"?!1:!isNaN(n.getTime())};i.setCurrentTime=function(n,t){i.currentTime=typeof n=="string"?i.strToDateTime(n):i.isValidDate(n)?n:n||t||!e.allowBlank||e.inline?i.now():null;f.trigger("xchange.xdsoft")};i.empty=function(){i.currentTime=null};i.getCurrentTime=function(){return i.currentTime};i.nextMonth=function(){(i.currentTime===undefined||i.currentTime===null)&&(i.currentTime=i.now());var t=i.currentTime.getMonth()+1,r;return t===12&&(i.currentTime.setFullYear(i.currentTime.getFullYear()+1),t=0),r=i.currentTime.getFullYear(),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input")),r!==i.currentTime.getFullYear()&&n.isFunction(e.onChangeYear)&&e.onChangeYear.call(f,l.currentTime,f.data("input")),f.trigger("xchange.xdsoft"),t};i.prevMonth=function(){(i.currentTime===undefined||i.currentTime===null)&&(i.currentTime=i.now());var t=i.currentTime.getMonth()-1;return t===-1&&(i.currentTime.setFullYear(i.currentTime.getFullYear()-1),t=11),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input")),f.trigger("xchange.xdsoft"),t};i.getWeekOfYear=function(t){var r,i;return e.onGetWeekOfYear&&n.isFunction(e.onGetWeekOfYear)&&(r=e.onGetWeekOfYear.call(f,t),typeof r!="undefined")?r:(i=new Date(t.getFullYear(),0,1),i.getDay()!==4&&i.setMonth(0,1+(11-i.getDay())%7),Math.ceil(((t-i)/864e5+i.getDay()+1)/7))};i.strToDateTime=function(n){var r=[],f,u;return n&&n instanceof Date&&i.isValidDate(n)?n:(r=/^([+-]{1})(.*)$/.exec(n),r&&(r[2]=t.parseDate(r[2],e.formatDate)),r&&r[2]?(f=r[2].getTime()-r[2].getTimezoneOffset()*6e4,u=new Date(i.now(!0).getTime()+parseInt(r[1]+"1",10)*f)):u=n?t.parseDate(n,e.format):i.now(),i.isValidDate(u)||(u=i.now()),u)};i.strToDate=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,e.formatDate):i.now(!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.strtotime=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,e.formatTime):i.now(!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.str=function(){var n=e.format;return e.yearOffset&&(n=n.replace("Y",i.currentTime.getFullYear()+e.yearOffset),n=n.replace("y",String(i.currentTime.getFullYear()+e.yearOffset).substring(2,4))),t.formatDate(i.currentTime,n)};i.currentTime=this.now()};l=new ei;dt.on("touchend click",function(n){n.preventDefault();f.data("changed",!0);l.setCurrentTime(fi());i.val(l.str());f.trigger("close.xdsoft")});w.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){f.data("changed",!0);l.setCurrentTime(0,!0);f.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var n=l.getCurrentTime(),t,r;(n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=l.strToDate(e.minDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n<t)||(r=l.strToDate(e.maxDate),r=new Date(r.getFullYear(),r.getMonth(),r.getDate()),n>r)||(i.val(l.str()),i.trigger("change"),f.trigger("close.xdsoft"))});w.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=n(this),i=0,r=!1;(function u(n){t.hasClass(e.next)?l.nextMonth():t.hasClass(e.prev)&&l.prevMonth();e.monthChangeSpinner&&(r||(i=setTimeout(u,n||100)))})(500);n([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft",function f(){clearTimeout(i);r=!0;n([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft",f)})});yt.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var i=n(this),r=0,u=!1,t=110;(function f(n){var s=g[0].clientHeight,h=a[0].offsetHeight,o=Math.abs(parseInt(a.css("marginTop"),10));i.hasClass(e.next)&&h-s-e.timeHeightInTimePicker>=o?a.css("marginTop","-"+(o+e.timeHeightInTimePicker)+"px"):i.hasClass(e.prev)&&o-e.timeHeightInTimePicker>=0&&a.css("marginTop","-"+(o-e.timeHeightInTimePicker)+"px");g.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(a[0].style.marginTop,10)/(h-s))]);t=t>10?10:t-10;u||(r=setTimeout(f,n||t))})(500);n([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft",function o(){clearTimeout(r);u=!0;n([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft",o)})});ti=0;f.on("xchange.xdsoft",function(o){clearTimeout(ti);ti=setTimeout(function(){var pt,wt,tt,it,bt,c,dt,v,lt;(l.currentTime===undefined||l.currentTime===null)&&(l.currentTime=l.now());for(var p="",o=new Date(l.currentTime.getFullYear(),l.currentTime.getMonth(),1,23,59,59),s=0,b,et=l.now(),d=!1,g=!1,k=!1,y=!1,rt,at,ft,vt,v,yt,h=[],nt,ot=!0,st="",ut,ht,ct;o.getDay()!==e.dayOfWeekStart;)o.setDate(o.getDate()-1);for(p+="<table><thead><tr>",e.weeks&&(p+="<th><\/th>"),b=0;b<7;b+=1)p+="<th>"+e.i18n[r].dayOfWeekShort[(b+e.dayOfWeekStart)%7]+"<\/th>";for(p+="<\/tr><\/thead>",p+="<tbody>",e.maxDate!==!1&&(d=l.strToDate(e.maxDate),d=new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59,999)),e.minDate!==!1&&(g=l.strToDate(e.minDate),g=new Date(g.getFullYear(),g.getMonth(),g.getDate())),e.minDateTime!==!1&&(k=l.strToDate(e.minDateTime),k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds())),e.maxDateTime!==!1&&(y=l.strToDate(e.maxDateTime),y=new Date(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds())),y!==!1&&(pt=(y.getFullYear()*12+y.getMonth())*31+y.getDate());s<l.currentTime.countDaysInMonth()||o.getDay()!==e.dayOfWeekStart||l.currentTime.getMonth()===o.getMonth();)h=[],s+=1,at=o.getDay(),ft=o.getDate(),vt=o.getFullYear(),v=o.getMonth(),yt=l.getWeekOfYear(o),ct="",h.push("xdsoft_date"),nt=e.beforeShowDay&&n.isFunction(e.beforeShowDay.call)?e.beforeShowDay.call(f,o):null,e.allowDateRe&&Object.prototype.toString.call(e.allowDateRe)==="[object RegExp]"&&(e.allowDateRe.test(t.formatDate(o,e.formatDate))||h.push("xdsoft_disabled")),e.allowDates&&e.allowDates.length>0&&e.allowDates.indexOf(t.formatDate(o,e.formatDate))===-1&&h.push("xdsoft_disabled"),wt=(o.getFullYear()*12+o.getMonth())*31+o.getDate(),(d!==!1&&o>d||k!==!1&&o<k||g!==!1&&o<g||y!==!1&&wt>pt||nt&&nt[0]===!1)&&h.push("xdsoft_disabled"),e.disabledDates.indexOf(t.formatDate(o,e.formatDate))!==-1&&h.push("xdsoft_disabled"),e.disabledWeekDays.indexOf(at)!==-1&&h.push("xdsoft_disabled"),i.is("[disabled]")&&h.push("xdsoft_disabled"),nt&&nt[1]!==""&&h.push(nt[1]),l.currentTime.getMonth()!==v&&h.push("xdsoft_other_month"),(e.defaultSelect||f.data("changed"))&&t.formatDate(l.currentTime,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_current"),t.formatDate(et,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_today"),(o.getDay()===0||o.getDay()===6||e.weekends.indexOf(t.formatDate(o,e.formatDate))!==-1)&&h.push("xdsoft_weekend"),e.highlightedDates[t.formatDate(o,e.formatDate)]!==undefined&&(rt=e.highlightedDates[t.formatDate(o,e.formatDate)],h.push(rt.style===undefined?"xdsoft_highlighted_default":rt.style),ct=rt.desc===undefined?"":rt.desc),e.beforeShowDay&&n.isFunction(e.beforeShowDay)&&h.push(e.beforeShowDay(o)),ot&&(p+="<tr>",ot=!1,e.weeks&&(p+="<th>"+yt+"<\/th>")),p+='<td data-date="'+ft+'" data-month="'+v+'" data-year="'+vt+'" class="xdsoft_date xdsoft_day_of_week'+o.getDay()+" "+h.join(" ")+'" title="'+ct+'"><div>'+ft+"<\/div><\/td>",o.getDay()===e.dayOfWeekStartPrev&&(p+="<\/tr>",ot=!0),o.setDate(ft+1);if(p+="<\/tbody><\/table>",kt.html(p),w.find(".xdsoft_label span").eq(0).text(e.i18n[r].months[l.currentTime.getMonth()]),w.find(".xdsoft_label span").eq(1).text(l.currentTime.getFullYear()+e.yearOffset),st="",ut="",v="",tt=0,e.minTime!==!1&&(c=l.strtotime(e.minTime),tt=60*c.getHours()+c.getMinutes()),it=1440,e.maxTime!==!1&&(c=l.strtotime(e.maxTime),it=60*c.getHours()+c.getMinutes()),e.minDateTime!==!1&&(c=l.strToDateTime(e.minDateTime),bt=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(c,e.formatDate),bt&&(v=60*c.getHours()+c.getMinutes(),v>tt&&(tt=v))),e.maxDateTime!==!1&&(c=l.strToDateTime(e.maxDateTime),dt=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(c,e.formatDate),dt&&(v=60*c.getHours()+c.getMinutes(),v<it&&(it=v))),ht=function(r,u){var o=l.now(),s,a=e.allowTimes&&n.isArray(e.allowTimes)&&e.allowTimes.length,c;o.setHours(r);r=parseInt(o.getHours(),10);o.setMinutes(u);u=parseInt(o.getMinutes(),10);h=[];c=60*r+u;(i.is("[disabled]")||c>=it||c<tt)&&h.push("xdsoft_disabled");s=new Date(l.currentTime);s.setHours(parseInt(l.currentTime.getHours(),10));a||s.setMinutes(Math[e.roundTime](l.currentTime.getMinutes()/e.step)*e.step);(e.initTime||e.defaultSelect||f.data("changed"))&&s.getHours()===parseInt(r,10)&&(!a&&e.step>59||s.getMinutes()===parseInt(u,10))&&(e.defaultSelect||f.data("changed")?h.push("xdsoft_current"):e.initTime&&h.push("xdsoft_init_time"));parseInt(et.getHours(),10)===parseInt(r,10)&&parseInt(et.getMinutes(),10)===parseInt(u,10)&&h.push("xdsoft_today");st+='<div class="xdsoft_time '+h.join(" ")+'" data-hour="'+r+'" data-minute="'+u+'">'+t.formatDate(o,e.formatTime)+"<\/div>"},e.allowTimes&&n.isArray(e.allowTimes)&&e.allowTimes.length)for(s=0;s<e.allowTimes.length;s+=1)ut=l.strtotime(e.allowTimes[s]).getHours(),v=l.strtotime(e.allowTimes[s]).getMinutes(),ht(ut,v);else for(s=0,b=0;s<(e.hours12?12:24);s+=1)for(b=0;b<60;b+=e.step)(lt=s*60+b,lt<tt)||lt>=it||(ut=(s<10?"0":"")+s,v=(b<10?"0":"")+b,ht(ut,v));for(a.html(st),u="",s=parseInt(e.yearStart,10);s<=parseInt(e.yearEnd,10);s+=1)u+='<div class="xdsoft_option '+(l.currentTime.getFullYear()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+(s+e.yearOffset)+"<\/div>";for(ni.children().eq(0).html(u),s=parseInt(e.monthStart,10),u="";s<=parseInt(e.monthEnd,10);s+=1)u+='<div class="xdsoft_option '+(l.currentTime.getMonth()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+e.i18n[r].months[s]+"<\/div>";gt.children().eq(0).html(u);n(f).trigger("generate.xdsoft")},10);o.stopPropagation()}).on("afterOpen.xdsoft",function(){if(e.timepicker){var t,i,r,u;if(a.find(".xdsoft_current").length?t=".xdsoft_current":a.find(".xdsoft_init_time").length&&(t=".xdsoft_init_time"),t)if(e.SelectFirstAvailableTime){let t=n(".xdsoft_time_variant .xdsoft_time"),i=FindSelectedTimeScrollPercentage(t);g.trigger("scroll_element.xdsoft_scroller",[i])}else i=g[0].clientHeight,r=a[0].offsetHeight,u=a.find(t).index()*e.timeHeightInTimePicker+1,r-i<u&&(u=r-i),g.trigger("scroll_element.xdsoft_scroller",[parseInt(u,10)/(r-i)]);else g.trigger("scroll_element.xdsoft_scroller",[0])}});wt=0;kt.on("touchend click.xdsoft","td",function(t){t.stopPropagation();wt+=1;var r=n(this),i=l.currentTime;if((i===undefined||i===null)&&(l.currentTime=l.now(),i=l.currentTime),r.hasClass("xdsoft_disabled"))return!1;i.setDate(1);i.setFullYear(r.data("year"));i.setMonth(r.data("month"));i.setDate(r.data("date"));f.trigger("select.xdsoft",[i]);e.onSelectDate&&n.isFunction(e.onSelectDate)&&e.onSelectDate.call(f,l.currentTime,f.data("input"),t);f.data("changed",!0);f.trigger("xchange.xdsoft");f.trigger("changedatetime.xdsoft");(wt>100||e.closeOnDateSelect===!0||e.closeOnDateSelect===!1&&!e.timepicker)&&!e.inline&&f.trigger("close.xdsoft");setTimeout(function(){if(e.SelectFirstAvailableTime){let t=n(".xdsoft_time_variant .xdsoft_time"),i=FindSelectedTimeScrollPercentage(t);g.trigger("scroll_element.xdsoft_scroller",[i])}wt=0},200)});a.on("touchstart","div",function(){this.touchMoved=!1}).on("touchmove","div",ui).on("touchend click.xdsoft","div",function(t){if(!this.touchMoved){t.stopPropagation();var r=n(this),i=l.currentTime;if((i===undefined||i===null)&&(l.currentTime=l.now(),i=l.currentTime),r.hasClass("xdsoft_disabled"))return!1;i.setHours(r.data("hour"));i.setMinutes(r.data("minute"));f.trigger("select.xdsoft",[i]);f.data("input").val(l.str());e.onSelectTime&&n.isFunction(e.onSelectTime)&&e.onSelectTime.call(f,l.currentTime,f.data("input"),t);f.data("changed",!0);f.trigger("xchange.xdsoft");f.trigger("changedatetime.xdsoft");e.inline!==!0&&e.closeOnTimeSelect===!0&&f.trigger("close.xdsoft")}});nt.on("mousewheel.xdsoft",function(n){return e.scrollMonth?(n.deltaY<0?l.nextMonth():l.prevMonth(),!1):!0});i.on("mousewheel.xdsoft",function(n){return e.scrollInput?!e.datepicker&&e.timepicker?(tt=a.find(".xdsoft_current").length?a.find(".xdsoft_current").eq(0).index():0,tt+n.deltaY>=0&&tt+n.deltaY<a.children().length&&(tt+=n.deltaY),a.children().eq(tt).length&&a.children().eq(tt).trigger("mousedown"),!1):e.datepicker&&!e.timepicker?(nt.trigger(n,[n.deltaY,n.deltaX,n.deltaY]),i.val&&i.val(l.str()),f.trigger("changedatetime.xdsoft"),!1):void 0:!0});f.on("changedatetime.xdsoft",function(t){if(e.onChangeDateTime&&n.isFunction(e.onChangeDateTime)){var i=f.data("input");e.onChangeDateTime.call(f,l.currentTime,i,t);delete e.value;i.trigger("change")}}).on("generate.xdsoft",function(){e.onGenerate&&n.isFunction(e.onGenerate)&&e.onGenerate.call(f,l.currentTime,f.data("input"));pt&&(f.trigger("afterOpen.xdsoft"),pt=!1)}).on("click.xdsoft",function(n){n.stopPropagation()});tt=0;ri=function(n,t){do if(n=n.parentNode,!n||t(n)===!1)break;while(n.nodeName!=="HTML")};bt=function(){var u,r,t,i,c,p,a,s,h,v,y,l,o,w;s=f.data("input");u=s.offset();r=s[0];v="top";t=u.top+r.offsetHeight-1;i=u.left;c="absolute";h=n(e.contentWindow).width();l=n(e.contentWindow).height();o=n(e.contentWindow).scrollTop();e.ownerDocument.documentElement.clientWidth-u.left<nt.parent().outerWidth(!0)&&(w=nt.parent().outerWidth(!0)-r.offsetWidth,i=i-w);s.parent().css("direction")==="rtl"&&(i-=f.outerWidth()-s.outerWidth());e.fixed?(t-=o,i-=n(e.contentWindow).scrollLeft(),c="fixed"):(a=!1,ri(r,function(n){return n===null?!1:e.contentWindow.getComputedStyle(n).getPropertyValue("position")==="fixed"?(a=!0,!1):void 0}),a&&!e.insideParent?(c="fixed",t+f.outerHeight()>l+o?(v="bottom",t=l+o-u.top):t-=o):t+f[0].offsetHeight>l+o&&(t=u.top-f[0].offsetHeight+1),t<0&&(t=0),i+r.offsetWidth>h&&(i=h-r.offsetWidth));p=f[0];ri(p,function(n){var t;return t=e.contentWindow.getComputedStyle(n).getPropertyValue("position"),t==="relative"&&h>=n.offsetWidth?(i=i-(h-n.offsetWidth)/2,!1):void 0});y={position:c,left:e.insideParent?r.offsetLeft:i,top:"",bottom:""};y[v]=e.insideParent?r.offsetTop+r.offsetHeight:t;f.css(y)};f.on("open.xdsoft",function(t){var i=!0;if(e.onShow&&n.isFunction(e.onShow)&&(i=e.onShow.call(f,l.currentTime,f.data("input"),t)),i!==!1){f.show();bt();n(e.contentWindow).off("resize.xdsoft",bt).on("resize.xdsoft",bt);if(e.closeOnWithoutClick)n([e.ownerDocument.body,e.contentWindow]).on("touchstart mousedown.xdsoft",function r(){f.trigger("close.xdsoft");n([e.ownerDocument.body,e.contentWindow]).off("touchstart mousedown.xdsoft",r)})}}).on("close.xdsoft",function(t){var i=!0;w.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide();e.onClose&&n.isFunction(e.onClose)&&(i=e.onClose.call(f,l.currentTime,f.data("input"),t));i===!1||e.opened||e.inline||f.hide();t.stopPropagation()}).on("toggle.xdsoft",function(){f.is(":visible")?f.trigger("close.xdsoft"):f.trigger("open.xdsoft")}).data("input",i);ii=0;f.data("xdsoft_datetime",l);f.setOptions(e);l.setCurrentTime(fi());i.data("xdsoft_datetimepicker",f).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){i.is(":disabled")||i.data("xdsoft_datetimepicker").is(":visible")&&e.closeOnInputClick||e.openOnFocus&&(clearTimeout(ii),ii=setTimeout(function(){i.is(":disabled")||(pt=!0,l.setCurrentTime(fi(),!0),e.mask&&oi(e),f.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var i,r=t.which;return[k].indexOf(r)!==-1&&e.enterLikeTab?(i=n("input:visible,textarea:visible,button:visible,a:visible"),f.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):[d].indexOf(r)!==-1?(f.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){f.trigger("close.xdsoft")})};tt=function(t){var i=t.data("xdsoft_datetimepicker");i&&(i.data("xdsoft_datetime",null),i.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),n(e.contentWindow).off("resize.xdsoft"),n([e.contentWindow,e.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())};n(e.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(n){n.keyCode===s&&(c=!0)}).on("keyup.xdsoftctrl",function(n){n.keyCode===s&&(c=!1)}).on("keydown.xdsoftcmd",function(n){n.keyCode===w&&(g=!0)}).on("keyup.xdsoftcmd",function(n){n.keyCode===w&&(g=!1)});return this.each(function(){var i=n(this).data("xdsoft_datetimepicker"),r;if(i){if(n.type(u)==="string")switch(u){case"show":n(this).select().focus();i.trigger("open.xdsoft");break;case"hide":i.trigger("close.xdsoft");break;case"toggle":i.trigger("toggle.xdsoft");break;case"destroy":tt(n(this));break;case"reset":this.value=this.defaultValue;this.value&&i.data("xdsoft_datetime").isValidDate(t.parseDate(this.value,e.format))||i.data("changed",!1);i.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r=i.data("input");r.trigger("blur.xdsoft");break;default:i[u]&&n.isFunction(i[u])&&(a=i[u](f))}else i.setOptions(u);return 0}n.type(u)!=="string"&&(!e.lazyInit||e.open||e.inline?l(n(this)):yt(n(this)))}),a};n.fn.datetimepicker.defaults=i},function(n){typeof define=="function"&&define.amd?define(["jquery","jquery-mousewheel"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(datetimepickerFactory),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function e(r){var f=r||window.event,w=h.call(arguments,1),l=0,o=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(e=f.detail*-1),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=f.wheelDeltaX*-1),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=e*-1,e=0),l=e===0?o:e,"deltaY"in f&&(e=f.deltaY*-1,l=e),"deltaX"in f&&(o=f.deltaX,e===0&&(l=o*-1)),e!==0||o!==0)return f.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,o*=v):f.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,o*=y),a=Math.max(Math.abs(e),Math.abs(o)),(!t||a<t)&&(t=a,s(f,a)&&(t/=40)),s(f,a)&&(l/=40,o/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=o,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,o,e),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}function c(){t=null}function s(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,i;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],e,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})})