芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/the-events-calendar/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js
/*! * Datepicker for Bootstrap v1.7.0 (https://github.com/uxsolutions/bootstrap-datepicker) * * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function($,h){function i(){return new Date(Date.UTC.apply(Date,arguments))}function j(){var a=new Date;return i(a.getFullYear(),a.getMonth(),a.getDate())}function k(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function b(a,b){return function(){return b!==h&&$.fn.bootstrapDatepicker.deprecated(b),this[a].apply(this,arguments)}}var e,l=(e={get:function(a){return this.slice(a)[0]},contains:function(b){for(var c=b&&b.valueOf(),a=0,d=this.length;a
]/g)||[]).length<=0)return!0;return $(a).length>0}catch(b){return!1}},_process_options:function(h){this._o=$.extend({},this._o,h);var b=this.o=$.extend({},this._o),f=b.language;o[f]||o[f=f.split("-")[0]]||(f=d.language),b.language=f,b.startView=this._resolveViewName(b.startView),b.minViewMode=this._resolveViewName(b.minViewMode),b.maxViewMode=this._resolveViewName(b.maxViewMode),b.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,b.startView)),!0!==b.multidate&&(b.multidate=Number(b.multidate)||!1,!1!==b.multidate&&(b.multidate=Math.max(0,b.multidate))),b.multidateSeparator=String(b.multidateSeparator),b.weekStart%=7,b.weekEnd=(b.weekStart+6)%7;var g=a.parseFormat(b.format);b.startDate!== -1/0&&(b.startDate?b.startDate instanceof Date?b.startDate=this._local_to_utc(this._zero_time(b.startDate)):b.startDate=a.parseDate(b.startDate,g,b.language,b.assumeNearbyYear):b.startDate=-1/0),b.endDate!==1/0&&(b.endDate?b.endDate instanceof Date?b.endDate=this._local_to_utc(this._zero_time(b.endDate)):b.endDate=a.parseDate(b.endDate,g,b.language,b.assumeNearbyYear):b.endDate=1/0),b.daysOfWeekDisabled=this._resolveDaysOfWeek(b.daysOfWeekDisabled||[]),b.daysOfWeekHighlighted=this._resolveDaysOfWeek(b.daysOfWeekHighlighted||[]),b.datesDisabled=b.datesDisabled||[],Array.isArray(b.datesDisabled)||(b.datesDisabled=b.datesDisabled.split(",")),b.datesDisabled=$.map(b.datesDisabled,function(c){return a.parseDate(c,g,b.language,b.assumeNearbyYear)});var c=String(b.orientation).toLowerCase().split(/\s+/g),e=b.orientation.toLowerCase();if(c=$.grep(c,function(a){return/^auto|left|right|top|bottom$/.test(a)}),b.orientation={x:"auto",y:"auto"},e&&"auto"!==e){if(1===c.length)switch(c[0]){case"top":case"bottom":b.orientation.y=c[0];break;case"left":case"right":b.orientation.x=c[0]}else e=$.grep(c,function(a){return/^left|right$/.test(a)}),b.orientation.x=e[0]||"auto",e=$.grep(c,function(a){return/^top|bottom$/.test(a)}),b.orientation.y=e[0]||"auto"}if(b.defaultViewDate instanceof Date||"string"==typeof b.defaultViewDate)b.defaultViewDate=a.parseDate(b.defaultViewDate,g,b.language,b.assumeNearbyYear);else if(b.defaultViewDate){var k=b.defaultViewDate.year||new Date().getFullYear(),l=b.defaultViewDate.month||0,m=b.defaultViewDate.day||1;b.defaultViewDate=i(k,l,m)}else b.defaultViewDate=j()},_events:[],_secondaryEvents:[],_applyEvents:function(b){for(var e,c,d,a=0;a
i?(this.picker.addClass("datepicker-orient-right"),a+=g-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var d=this.o.orientation.y;if("auto"===d&&(d=-j+b-h<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+d),"top"===d?b-=h+parseInt(this.picker.css("padding-top")):b+=o,this.o.rtl){var p=i-(a+g);this.picker.css({top:b,right:p,zIndex:l})}else this.picker.css({top:b,left:a,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var d=this.dates.copy(),b=[],c=!1;return arguments.length?($.each(arguments,$.proxy(function(c,a){a instanceof Date&&(a=this._local_to_utc(a)),b.push(a)},this)),c=!0):(b=(b=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?b.split(this.o.multidateSeparator):[b],delete this.element.data().date),b=$.map(b,$.proxy(function(b){return a.parseDate(b,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),b=$.grep(b,$.proxy(function(a){return!this.dateWithinRange(a)||!a},this),!0),this.dates.replace(b),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate
this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),c?(this.setValue(),this.element.trigger("change")):this.dates.length&&String(d)!==String(this.dates)&&c&&(this._trigger("changeDate"),this.element.trigger("change")),!this.dates.length&&d.length&&(this._trigger("clearDate"),this.element.trigger("change")),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var b=this.o.weekStart,a="
";for(this.o.calendarWeeks&&(a+='
');b
'+o[this.o.language].daysMin[(b++)%7]+"";a+="
",this.picker.find(".datepicker-days thead").append(a)}},fillMonths:function(){for(var b=this._utc_to_local(this.viewDate),c="",a=0;a<12;a++)c+='
'+o[this.o.language].monthsShort[a]+"
";this.picker.find(".datepicker-months td").html(c)},setRange:function(a){a&&a.length?this.range=$.map(a,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(a){var b=[],c=this.viewDate.getUTCFullYear(),d=this.viewDate.getUTCMonth(),e=j();return a.getUTCFullYear()
c||a.getUTCFullYear()===c&&a.getUTCMonth()>d)&&b.push("new"),this.focusDate&&a.valueOf()===this.focusDate.valueOf()&&b.push("focused"),this.o.todayHighlight&&k(a,e)&&b.push("today"),-1!==this.dates.contains(a)&&b.push("active"),this.dateWithinRange(a)||b.push("disabled"),this.dateIsDisabled(a)&&b.push("disabled","disabled-date"),-1!==$.inArray(a.getUTCDay(),this.o.daysOfWeekHighlighted)&&b.push("highlighted"),this.range&&(a>this.range[0]&&a
q)&&b.push("disabled"),c===r&&b.push("focused"),j!==$.noop&&(h===(a=j(new Date(c,0,1)))?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1===a.enabled&&b.push("disabled"),a.classes&&(b=b.concat(a.classes.split(/\s+/))),a.tooltip&&(e=a.tooltip)),k+='
"+c+"
";l.find(".datepicker-switch").text(f+"-"+i),l.find("td").html(k)},fill:function(){var n,e,l,b,p=new Date(this.viewDate),d=p.getUTCFullYear(),r=p.getUTCMonth(),g=this.o.startDate!== -1/0?this.o.startDate.getUTCFullYear():-1/0,v=this.o.startDate!== -1/0?this.o.startDate.getUTCMonth():-1/0,j=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,w=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,x=o[this.o.language].today||o.en.today||"",y=o[this.o.language].clear||o.en.clear||"",z=o[this.o.language].titleFormat||o.en.titleFormat;if(!(isNaN(d)||isNaN(r))){this.picker.find(".datepicker-days .datepicker-switch").text(a.formatDate(p,z,this.o.language)),this.picker.find("tfoot .today").text(x).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(y).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var c=i(d,r,0),A=c.getUTCDate();c.setUTCDate(A-(c.getUTCDay()-this.o.weekStart+7)%7);var f=new Date(c);100>c.getUTCFullYear()&&f.setUTCFullYear(c.getUTCFullYear()),f.setUTCDate(f.getUTCDate()+42),f=f.valueOf();for(var k=[];c.valueOf()
"),this.o.calendarWeeks)){var s=new Date(+c+(this.o.weekStart-n-7)%7*864e5),t=new Date(Number(s)+(11-s.getUTCDay())%7*864e5),q=new Date(Number(q=i(t.getUTCFullYear(),0,1))+(11-q.getUTCDay())%7*864e5),B=(t-q)/864e5/7+1;k.push('
'+B+"
")}(e=this.getClassNames(c)).push("day");var u=c.getUTCDate();this.o.beforeShowDay!==$.noop&&(h===(b=this.o.beforeShowDay(this._utc_to_local(c)))?b={}:"boolean"==typeof b?b={enabled:b}:"string"==typeof b&&(b={classes:b}),!1===b.enabled&&e.push("disabled"),b.classes&&(e=e.concat(b.classes.split(/\s+/))),b.tooltip&&(l=b.tooltip),b.content&&(u=b.content)),e="function"==typeof $.uniqueSort?$.uniqueSort(e):$.unique(e),k.push('
'+u+"
"),l=null,n===this.o.weekEnd&&k.push(""),c.setUTCDate(c.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(k.join(""));var C=o[this.o.language].monthsTitle||o.en.monthsTitle||"Months",m=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?C:d).end().find("tbody span").removeClass("active");if($.each(this.dates,function(b,a){a.getUTCFullYear()===d&&m.eq(a.getUTCMonth()).addClass("active")}),(d
j)&&m.addClass("disabled"),d===g&&m.slice(0,v).addClass("disabled"),d===j&&m.slice(w+1).addClass("disabled"),this.o.beforeShowMonth!==$.noop){var D=this;$.each(m,function(c,b){var e=new Date(d,c,1),a=D.o.beforeShowMonth(e);a===h?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1!==a.enabled||$(b).hasClass("disabled")||$(b).addClass("disabled"),a.classes&&$(b).addClass(a.classes),a.tooltip&&$(b).prop("title",a.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,d,g,j,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,d,g,j,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,d,g,j,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var c,d,e=new Date(this.viewDate),b=e.getUTCFullYear(),f=e.getUTCMonth(),g=this.o.startDate!== -1/0?this.o.startDate.getUTCFullYear():-1/0,i=this.o.startDate!== -1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,j=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,a=1;switch(this.viewMode){case 0:c=b<=g&&f<=i,d=b>=h&&f>=j;break;case 4:a*=10;case 3:a*=10;case 2:a*=10;case 1:c=Math.floor(b/a)*a<=g,d=Math.floor(b/a)*a+a>=h}this.picker.find(".prev").toggleClass("disabled",c),this.picker.find(".next").toggleClass("disabled",d)}},click:function(e){var b,f,c,d;e.preventDefault(),e.stopPropagation(),(b=$(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),b.hasClass("today")&&!b.hasClass("day")&&(this.setViewMode(0),this._setDate(j(),"linked"===this.o.todayBtn?null:"view")),b.hasClass("clear")&&this.clearDates(),!b.hasClass("disabled")&&(b.hasClass("month")||b.hasClass("year")||b.hasClass("decade")||b.hasClass("century"))&&(this.viewDate.setUTCDate(1),f=1,1===this.viewMode?(d=b.parent().find("span").index(b),c=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(d)):(d=0,c=Number(b.text()),this.viewDate.setUTCFullYear(c)),this._trigger(a.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(c,d,f)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(b){var c=$(b.currentTarget).data("date"),a=new Date(c);this.o.updateViewDate&&(a.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),a.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(a)},navArrowsClick:function(c){var b=$(c.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(b*=12*a.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,b),this._trigger(a.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),-1!==b?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):(!1===this.o.multidate&&this.dates.clear(),this.dates.push(a)),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(b,a){a&&"date"!==a||this._toggle_multidate(b&&new Date(b)),(!a&&this.o.updateViewDate||"view"===a)&&(this.viewDate=b&&new Date(b)),this.fill(),this.setValue(),a&&"view"===a||this._trigger("changeDate"),this.inputField.trigger("change"),this.o.autoclose&&(!a||"date"===a)&&this.hide()},moveDay:function(a,c){var b=new Date(a);return b.setUTCDate(a.getUTCDate()+c),b},moveWeek:function(a,b){return this.moveDay(a,7*b)},moveMonth:function(d,b){if(!(j=d)||isNaN(j.getTime()))return this.o.defaultViewDate;if(!b)return d;var j,c,e,a=new Date(d.valueOf()),f=a.getUTCDate(),i=a.getUTCMonth(),g=Math.abs(b);if(b=b>0?1:-1,1===g)e=-1===b?function(){return a.getUTCMonth()===i}:function(){return a.getUTCMonth()!==c},c=i+b,a.setUTCMonth(c),c=(c+12)%12;else{for(var h=0;h
0},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible")){(40===a.keyCode||27===a.keyCode)&&(this.show(),a.stopPropagation());return}var b,d,e=!1,c=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault(),a.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;b=37===a.keyCode||38===a.keyCode?-1:1,0===this.viewMode?a.ctrlKey?(d=this.moveAvailableDate(c,b,"moveYear"))&&this._trigger("changeYear",this.viewDate):a.shiftKey?(d=this.moveAvailableDate(c,b,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===a.keyCode||39===a.keyCode?d=this.moveAvailableDate(c,b,"moveDay"):this.weekOfDateIsDisabled(c)||(d=this.moveAvailableDate(c,b,"moveWeek")):1===this.viewMode?((38===a.keyCode||40===a.keyCode)&&(b*=4),d=this.moveAvailableDate(c,b,"moveMonth")):2===this.viewMode&&((38===a.keyCode||40===a.keyCode)&&(b*=4),d=this.moveAvailableDate(c,b,"moveYear")),d&&(this.focusDate=this.viewDate=d,this.setValue(),this.fill(),a.preventDefault());break;case 13:if(!this.o.forceParse)break;c=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(c),e=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),a.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}e&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(b){this.viewMode=b,this.picker.children("div").hide().filter(".datepicker-"+a.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var f=function(b,a){$.data(b,"datepicker",this),this.element=$(b),this.inputs=$.map(a.inputs,function(a){return a.jquery?a[0]:a}),delete a.inputs,this.keepEmptyValues=a.keepEmptyValues,delete a.keepEmptyValues,g.call($(this.inputs),a).on("changeDate",$.proxy(this.dateUpdated,this)),this.pickers=$.map(this.inputs,function(a){return $.data(a,"datepicker")}),this.updateDates()};f.prototype={updateDates:function(){this.dates=$.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var a=$.map(this.dates,function(a){return a.valueOf()});$.each(this.pickers,function(c,b){b.setRange(a)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var f=$.data(e.target,"datepicker");if(f!==h){var a=f.getUTCDate(),i=this.keepEmptyValues,d=$.inArray(e.target,this.inputs),b=d-1,c=d+1,g=this.inputs.length;if(-1!==d){if($.each(this.pickers,function(c,b){b.getUTCDate()||b!==f&&i||b.setUTCDate(a)}),a
=0&&a
this.dates[c])for(;c
this.dates[c];)this.pickers[c++].setUTCDate(a);this.updateDates(),delete this.updating}}}},destroy:function(){$.map(this.pickers,function(a){a.destroy()}),$(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:b("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var m=$.fn.bootstrapDatepicker,g=function(b){var a,e=Array.apply(null,arguments);if(e.shift(),this.each(function(){var i=$(this),g=i.data("datepicker"),j="object"==typeof b&&b;if(!g){var k=function(e,a){var c=$(e).data(),d={},f=new RegExp("^"+a.toLowerCase()+"([A-Z])");function g(_,a){return a.toLowerCase()}for(var b in a=new RegExp("^"+a.toLowerCase()),c)a.test(b)&&(d[b.replace(f,g)]=c[b]);return d}(this,"date"),l=function(a){var b={};if(o[a]||o[a=a.split("-")[0]]){var c=o[a];return $.each(n,function(d,a){a in c&&(b[a]=c[a])}),b}}($.extend({},d,k,j).language),h=$.extend({},d,l,k,j);i.hasClass("input-daterange")||h.inputs?($.extend(h,{inputs:h.inputs||i.find("input").toArray()}),g=new f(this,h)):g=new c(this,h),i.data("datepicker",g)}"string"==typeof b&&"function"==typeof g[b]&&(a=g[b].apply(g,e))}),a===h||a instanceof c||a instanceof f)return this;if(!(this.length>1))return a;throw new Error("Using only allowed for the collection of a single element ("+b+" function)")};$.fn.bootstrapDatepicker=g;var d=$.fn.bootstrapDatepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:$.noop,beforeShowMonth:$.noop,beforeShowYear:$.noop,beforeShowDecade:$.noop,beforeShowCentury:$.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},n=$.fn.bootstrapDatepicker.locale_opts=["format","rtl","weekStart"];$.fn.bootstrapDatepicker.Constructor=c;var o=$.fn.bootstrapDatepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],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"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},a={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(a){if("function"==typeof a.toValue&&"function"==typeof a.toDisplay)return a;var b=a.replace(this.validParts,"\0").split("\0"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(b,f,i,x){if(b){if(b instanceof Date)return b;if("string"==typeof f&&(f=a.parseFormat(f)),f.toValue)return f.toValue(b,f,i);var r,m,n,g,k,s,d,t,w={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},u={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(b in u&&(b=u[b]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(b)){for(d=0,g=b.match(/([\-+]\d+)([dmwy])/gi),b=new Date;d
new Date().getFullYear()+b&&(a-=100),a}function z(){var a=this.slice(0,g[d].length),b=g[d].slice(0,a.length);return a.toLowerCase()===b.toLowerCase()}},formatDate:function(b,c,e){if(!b)return"";if("string"==typeof c&&(c=a.parseFormat(c)),c.toDisplay)return c.toDisplay(b,c,e);var d={d:b.getUTCDate(),D:o[e].daysShort[b.getUTCDay()],DD:o[e].days[b.getUTCDay()],m:b.getUTCMonth()+1,M:o[e].monthsShort[b.getUTCMonth()],MM:o[e].months[b.getUTCMonth()],yy:b.getUTCFullYear().toString().substring(2),yyyy:b.getUTCFullYear()};d.dd=(d.d<10?"0":"")+d.d,d.mm=(d.m<10?"0":"")+d.m,b=[];for(var g=$.extend([],c.separators),f=0,h=c.parts.length;f<=h;f++)g.length&&b.push(g.shift()),b.push(d[c.parts[f]]);return b.join("")},headTemplate:'
'+d.templates.leftArrow+'
'+d.templates.rightArrow+"
",contTemplate:'
',footTemplate:'
'};a.template='
'+a.headTemplate+"
"+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+"
",$.fn.bootstrapDatepicker.DPGlobal=a,$.fn.bootstrapDatepicker.noConflict=function(){return $.fn.bootstrapDatepicker=m,this},$.fn.bootstrapDatepicker.version="1.7.0",$.fn.bootstrapDatepicker.deprecated=function(b){var a=window.console;a&&a.warn&&a.warn("DEPRECATED: "+b)},$(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var a=$(this);a.data("datepicker")||(b.preventDefault(),g.call(a,"show"))}),$(function(){g.call($('[data-provide="datepicker-inline"]'))})})