PageSourceSearch

https://calendar.dppl.org/js/lib/bootstrap-datepicker.min.js?v=1480

js dppl.org collected 2026-09-24 20:15:36 UTC 38,979 bytes, 19 lines download raw bytes

vendor: 4,914 bytes, lines 1-19
1/* =========================================================
2 * bootstrap-datepicker.js
3 * Repo: https://github.com/uxsolutions/bootstrap-datepicker/
4 * Demo: https://uxsolutions.github.io/bootstrap-datepicker/
5 * Docs: https://bootstrap-datepicker.readthedocs.org/
6 * =========================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * https://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ========================================================= */
19(function(i){typeof define=="function"&&define.amd?define(["jquery"],i):i(typeof exports=="object"?require("jquery"):jQuery)})(function(i,T){function I(){return new Date(Date.UTC.apply(Date,arguments))}function S(){var t=new Date;return I(t.getFullYear(),t.getMonth(),t.getDate())}function W(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function N(t,e){return function(){return e!==T&&i.fn.datepicker.deprecated(e),this[t].apply(this,arguments)}}function H(t){return t&&!isNaN(t.getTime())}var P=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var a=e&&e.valueOf(),s=0,n=this.length;s<n;s++)if(0<=this[s].valueOf()-a&&this[s].valueOf()-a<864e5)return s;return-1},remove:function(e){this.splice(e,1)},replace:function(e){e&&(Array.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var e=new P;return e.replace(this),e}};return function(){var e=[];return e.push.apply(e,arguments),i.extend(e,t),e}}(),x=function(t,e){i.data(t,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(e),this.dates=new P,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this._focusPickerOnFill=!1,this._leavingPicker=!1,this.element=i(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"):!1,this.component&&this.component.length===0&&(this.component=!1),this.o.isInline===null?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=i(c.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(a,s){return Number(s)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this._configureAccessibility(),this.isInline&&this.show()};x.prototype={constructor:x,_resolveViewName:function(t){return i.each(c.viewModes,function(e,a){if(t===e||i.inArray(t,a.names)!==-1)return t=e,!1}),t},_resolveDaysOfWeek:function(t){return Array.isArray(t)||(t=t.split(/[,\s]*/)),i.map(t,Number)},_check_template:function(t){try{if(t===T||t==="")return!1;if((t.match(/[<>]/g)||[]).length<=0)return!0;var e=i(t);return e.length>0}catch(a){return!1}},_process_options:function(t){this._o=i.extend({},this._o,t);var e=this.o=i.extend({},this._o),a=e.language;D[a]||(a=a.split("-")[0],D[a]||(a=V.language)),e.language=a,e.startView=this._resolveViewName(e.startView),e.minViewMode=this._resolveViewName(e.minViewMode),e.maxViewMode=this._resolveViewName(e.maxViewMode),e.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,e.startView)),e.multidate!==!0&&(e.multidate=Number(e.multidate)||!1,e.multidate!==!1&&(e.multidate=Math.max(0,e.multidate))),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var s=c.parseFormat(e.format);e.startDate!==-1/0&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=c.parseDate(e.startDate,
19s,e.language,e.assumeNearbyYear):e.startDate=-1/0),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=c.parseDate(e.endDate,s,e.language,e.assumeNearbyYear):e.endDate=1/0),e.daysOfWeekDisabled=this._resolveDaysOfWeek(e.daysOfWeekDisabled||[]),e.daysOfWeekHighlighted=this._resolveDaysOfWeek(e.daysOfWeekHighlighted||[]),e.datesDisabled=e.datesDisabled||[],Array.isArray(e.datesDisabled)||(e.datesDisabled=e.datesDisabled.split(",")),e.datesDisabled=i.map(e.datesDisabled,function(o){return c.parseDate(o,s,e.language,e.assumeNearbyYear)});var n=String(e.orientation).toLowerCase().split(/\s+/g),r=e.orientation.toLowerCase();if(n=i.grep(n,function(o){return/^auto|left|right|top|bottom$/.test(o)}),e.orientation={x:"auto",y:"auto"},!(!r||r==="auto"))if(n.length===1)switch(n[0]){case"top":case"bottom":e.orientation.y=n[0];break;case"left":case"right":e.orientation.x=n[0];break}else r=i.grep(n,function(o){return/^left|right$/.test(o)}),e.orientation.x=r[0]||"auto",r=i.grep(n,function(o){return/^top|bottom$/.test(o)}),e.orientation.y=r[0]||"auto";if(e.defaultViewDate instanceof Date||typeof e.defaultViewDate=="string")e.defaultViewDate=c.parseDate(e.defaultViewDate,s,e.language,e.assumeNearbyYear);else if(e.defaultViewDate){var h=e.defaultViewDate.year||new Date().getFullYear(),l=e.defaultViewDate.month||0,u=e.defaultViewDate.day||1;e.defaultViewDate=I(h,l,u)}else e.defaultViewDate=S()},_applyEvents:function(t){for(var e=0,a,s,n;e<t.length;e++)a=t[e][0],t[e].length===2?(s=T,n=t[e][1]):t[e].length===3&&(s=t[e][1],n=t[e][2]),a.on(n,s)},_unapplyEvents:function(t){for(var e=0,a,s,n;e<t.length;e++)a=t[e][0],t[e].length===2?(n=T,s=t[e][1]):t[e].length===3&&(n=t[e][1],s=t[e][2]),a.off(s,n)},_buildEvents:function(){var t={keyup:i.proxy(function(e){i.inArray(e.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:i.proxy(this.keydown,this),paste:i.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=i.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:i.proxy(this.show,this)}]]:this._events=[[this.element,{click:i.proxy(this.show,this),keydown:i.proxy(this.keydown,this),focusin:i.proxy(this._handleInlineFocus,this)}]],this._events.push([this.element,"*",{blur:i.proxy(function(e){this._focused_from=e.target,this.isInline&&this._leavingPicker&&(this.element.attr("tabindex","0"),this._leavingPicker=!1)},this)}],[this.element,{blur:i.proxy(function(e){this._focused_from=e.target,this.isInline&&this._leavingPicker&&(this.element.attr("tabindex","0"),this._leavingPicker=!1)},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":i.proxy(function(e){this.update(e.date)},this)}]),this._secondaryEvents=[[this.picker,{click:i.proxy(this.click,this)}],[this.picker,".prev, .next",{click:i.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:i.proxy(this.dayCellClick,this)}],[i(window),{resize:i.proxy(this.place,this)}],[i(document),{"mousedown touchstart":i.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_configureAccessibility:function(){this.picker.attr("role","group"),this.picker.attr("aria-label")||this.picker.attr("aria-label","Date picker"),this.picker.attr("aria-live","polite"),this.picker.attr("aria-atomic","true");var t=this.picker.find(".datepicker-days table");t.length&&(t.attr("role","presentation"),t.removeAttr("aria-readonly")),this.isInline&&(typeof this.element.attr("tabindex")=="undefined"&&this.element.attr("tabindex","0"),this.element.attr("role")||this.element.attr("role","group")),this._srAnnouncer||(this._srAnnouncer=i("<span/>",{class:"datepicker-sr-announcer","aria-live":"polite","aria-atomic":"true"}).css({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}).appendTo(this.picker)),this._updateDayCellA11y(!1),this._announceFocusedDate(this.dates.get(-1)||this.viewDate)},_handleInlineFocus:function(t){if(this.isInline){var e=i(t.target);e.closest(".datepicker").length&&!e.hasClass("datepicker")||this._leavingPicker||(this._ensureFocusDate(),this._focusPickerOnFill=!0,this.fill(),this._announceFocusedDate(this.focusDate))}},_ensureFocusDate:function(){if(!this.focusDate){var t=this.dates.get(-1);t?this.focusDate=new Date(t):this.focusDate=new Date(this.viewDate)}},_updateDayCellA11y:function(t){var e=this.picker.find(".datepicker-days");if(e.length){var a=e.find("table");a.attr("role","presentation");var s=e.find("thead tr");s.attr("role","presentation");var n=e.find("tbody tr");n.attr("role","presentation");var r=n.find("td.day");r.attr("role","button"),r.attr("tabindex",-1),r.removeAttr("aria-current"),r.removeAttr("aria-disabled"),r.filter(".disabled").attr("aria-disabled","true"),r.filter(".today").attr("aria-current","date"),r.attr("aria-pressed","fal
19se"),r.filter(".active").attr("aria-pressed","true");var h=this;r.each(function(){var w=i(this),_=Number(w.data("date"));if(!isNaN(_)){var y=h._formatAriaDate(new Date(_));if(y){var f=[];w.hasClass("disabled")&&f.push("Unavailable"),w.hasClass("today")&&f.push("Today"),w.hasClass("active")&&f.push("Selected"),w.attr("aria-label",f.length?y+". "+f.join(". "):y)}}});var l=r.filter(".focused:not(.disabled)").first();if(l.length||(l=r.filter(".active:not(.disabled)").first()),!l.length&&this.viewDate){var u=this.viewDate.valueOf();l=r.filter(function(){return Number(i(this).data("date"))===u&&!i(this).hasClass("disabled")}).first()}if(!l.length){var o=S().valueOf();l=r.filter(function(){return Number(i(this).data("date"))===o&&!i(this).hasClass("disabled")}).first()}l.length||(l=r.filter(":not(.disabled)").first()),l.length&&(r.removeClass("focused"),l.addClass("focused"),l.attr("tabindex",0),this.isInline&&(this._focusPickerOnFill||!this.focusDate)&&(this.focusDate=new Date(Number(l.data("date")))),t&&this.isInline&&l.focus()),this._focusPickerOnFill=!1}},_formatAriaDate:function(t){if(!t)return"";var e=this._utc_to_local(new Date(t));if(!e)return"";var a=D[this.o.language]?this.o.language:"en",s=D[a]||D.en,n=s.days[e.getDay()],r=s.months[e.getMonth()];return n+", "+r+" "+e.getDate()+", "+e.getFullYear()},_announce:function(t){this._srAnnouncer&&t&&this._srAnnouncer.text(t)},_announceFocusedDate:function(t){var e=this._formatAriaDate(t);e&&this._announce("Focused "+e)},_announceSelectedDate:function(t){if(!t){this._announce("Date selection cleared");return}var e=this._formatAriaDate(t);e&&this._announce("Selected "+e)},_trigger:function(t,e){var a=e||this.dates.get(-1),s=this._utc_to_local(a);this.element.trigger({type:t,date:s,viewMode:this.viewMode,dates:i.map(this.dates,this._utc_to_local),format:i.proxy(function(n,r){arguments.length===0?(n=this.dates.length-1,r=this.o.format):typeof n=="string"&&(r=n,n=this.dates.length-1),r=r||this.o.format;var h=this.dates.get(n);return c.formatDate(h,r,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&i(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var e;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&i.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)e=t.originalEvent.clipboardData.getData("text/plain");else if(window.clipboardData)e=window.clipboardData.getData("Text");else return;this.setDate(e),this.update(),t.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+t.getTimezoneOffset()*6e4);return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+e.getTimezoneOffset()*6e4)),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-t.getTimezoneOffset()*6e4)},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&I(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return i.map(this.dates,this._utc_to_local)},getUTCDates:function(){return i.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==T?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this._announceSelectedDate(null),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,i.map(t,this._utc_to_local)),this},setDate:N("setDates"),setUTCDate:N("setUTCDates"),remove:N("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(t){t===T&&(t=this.o.format);var e=this.o.language;return i.map(this.dates,function(a){return c.formatDate(a,t,e)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),e=this.picker.outerHeight(),a=10,s=i(this.o.container),n=s.width(),r=this.o.container==="body"?i(document).scrollTop():s.scrollTop(),h=s.offset(),l=[0];this.element.parents().each(function(){var g=i(this).css("z-index");g!=="auto"&&Number(g)!==0&&l.push(Number(g))});var u=Math.max.apply(Math,l)+this.o.zIndexOffset,o=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),_=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),y=o.left-h.left,f=o.top-h.top;this.o.container!=="body"&&(f+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(y-=t-_)):o.left<0?(this.picker.addClass("datepicker-orient-left"),y-=o.left-a):y+t>n?(this.picker.addClass("datepicker-orient-right"),y+=_-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var d=this.o.orientation.y,k;if(d==="auto"&&(k=-r+f-e,d=k<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+d),d==="top"?f-=e+parseInt(this.picker.css("padding-top")):f+=w,this.o.rtl){var p=n-(y+_);this.picker.css({top:f,right:p,zIndex:u})}else this.picker.css({top:f,left:y,zIndex:u});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),e=[],a=!1;return arguments.length?(i.each(arguments,i.proxy(function(s,n){n instanceof Date&&(n=this._local_to_utc(n)),e.push(n)},this)),a=!0):(e=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),e&&this.o.multidate?e=e.split(this.o.multidateSeparator):e=[e],delete this.element.data().date),e=i.map(e,i.proxy(function(s){return c.parseDate(s,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),e=i.grep(e,i.proxy(function(s){return!this.dateWithinRange(s)||!s},this),!0),this.dates.replace(e),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),a?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&a&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="<tr>";for(this.o.calendarWeeks&&(e+='<th class="cw">&#160;</th>');t<this.o.weekStart+7;)e+='<th class="dow',i.inArray(t,this.o.daysOfWeekDisabled)!==-1&&(e+=" disabled"),e+='">'+D[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",a,s=0;s<12;s++)a=t&&t.getMonth()===s?" focused":"",e+='<span class="month'+a+'">'+D[this.o.language].monthsShort[s]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){!t||!t.length?delete this.range:this.range=i.map(t,function(e){return e.valueOf()}),this.fill()},getClassNames:function(t){var e=[],a=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),n=S();return t.getUTCFullYear()<a||t.getUTCFullYear()===a&&t.getUTCMonth()<s?e.push("old"):(t.getUTCFullYear()>a||t.getUTCFullYear()===a&&t.getUTCMonth()>s)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&W(t,n)&&e.push("today"),this.dates.contains(t)!==-1&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),i.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&e.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&e.push("range"),i.inArray(t.valueOf(),this.range)!==-1&&e.push("selected"),t.valueOf()===this.range[0]&&e.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&e.push("range-end")),e},_fill_yearsView:function(t,e,a,s,n,r,h){for(var l="",u=a/10,o=this.picker.find(t),w=Math.floor(s/a)*a,_=w+u*9,y=Math.floor(this.viewDate.getFullYear()/u)*u,f=i.map(this.dates,function(M){return Math.floor(M.getUTCFullYear()/u)*u}),d,k,p,g=w-u;g<=_+u;g+=u)d=[e],k=null,g===w-u?d.push("old"):g===_+u&&d.push("new"),i.inArray(g,f)!==-1&&d.push("active"),(g<n||g>r)&&d.push("disabled"),g===y&&d.push("focused"),h!==i.noop&&(p=h(new Date(g,0,1)),p===T?p={}:typeof p=="boolean"?p={enabled:p}:typeof p=="string"&&(p={classes:p}),p.enabled===!1&&d.push("disabled"),p.classes&&(d=d.concat(p.classes.split(/\s+/))),p.tooltip&&(k=p.tooltip)),l+='<sp
19an class="'+d.join(" ")+'"'+(k?' title="'+k+'"':"")+">"+g+"</span>";o.find(".datepicker-switch").text(w+"-"+_),o.find("td").html(l)},fill:function(){var t=new Date(this.viewDate),e=t.getUTCFullYear(),a=t.getUTCMonth(),s=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,n=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=D[this.o.language].today||D.en.today||"",u=D[this.o.language].clear||D.en.clear||"",o=D[this.o.language].titleFormat||D.en.titleFormat,w=S(),_=(this.o.todayBtn===!0||this.o.todayBtn==="linked")&&w>=this.o.startDate&&w<=this.o.endDate&&!this.weekOfDateIsDisabled(w),y,f;if(!(isNaN(e)||isNaN(a))){this.picker.find(".datepicker-days .datepicker-switch").text(c.formatDate(t,o,this.o.language)),this.picker.find("tfoot .today").text(l).css("display",_?"table-cell":"none"),this.picker.find("tfoot .clear").text(u).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display",typeof this.o.title=="string"&&this.o.title!==""?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var d=I(e,a,0),k=d.getUTCDate();d.setUTCDate(k-(d.getUTCDay()-this.o.weekStart+7)%7);var p=new Date(d);d.getUTCFullYear()<100&&p.setUTCFullYear(d.getUTCFullYear()),p.setUTCDate(p.getUTCDate()+42),p=p.valueOf();for(var g=[],M,b;d.valueOf()<p;){if(M=d.getUTCDay(),M===this.o.weekStart&&(g.push("<tr>"),this.o.calendarWeeks)){var F=new Date(+d+(this.o.weekStart-M-7)%7*864e5),U=new Date(Number(F)+(11-F.getUTCDay())%7*864e5),v=new Date(Number(v=I(U.getUTCFullYear(),0,1))+(11-v.getUTCDay())%7*864e5),m=(U-v)/864e5/7+1;g.push('<td class="cw">'+m+"</td>")}b=this.getClassNames(d),b.push("day");var z=d.getUTCDate();this.o.beforeShowDay!==i.noop&&(f=this.o.beforeShowDay(this._utc_to_local(d)),f===T?f={}:typeof f=="boolean"?f={enabled:f}:typeof f=="string"&&(f={classes:f}),f.enabled===!1&&b.push("disabled"),f.classes&&(b=b.concat(f.classes.split(/\s+/))),f.tooltip&&(y=f.tooltip),f.content&&(z=f.content)),typeof i.uniqueSort=="function"?b=i.uniqueSort(b):b=i.unique(b),g.push('<td class="'+b.join(" ")+'"'+(y?' title="'+y+'"':"")+' data-date="'+d.getTime().toString()+'">'+z+"</td>"),y=null,M===this.o.weekEnd&&g.push("</tr>"),d.setUTCDate(d.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(g.join(""));var J=D[this.o.language].monthsTitle||D.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?J:e).end().find("tbody span").removeClass("active");if(i.each(this.dates,function(R,A){A.getUTCFullYear()===e&&O.eq(A.getUTCMonth()).addClass("active")}),(e<s||e>r)&&O.addClass("disabled"),e===s&&O.slice(0,n).addClass("disabled"),e===r&&O.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==i.noop){var K=this;i.each(O,function(R,A){var Z=new Date(e,R,1),C=K.o.beforeShowMonth(Z);C===T?C={}:typeof C=="boolean"?C={enabled:C}:typeof C=="string"&&(C={classes:C}),C.enabled===!1&&!i(A).hasClass("disabled")&&i(A).addClass("disabled"),C.classes&&i(A).addClass(C.classes),C.tooltip&&i(A).prop("title",C.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,e,s,r,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,e,s,r,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,e,s,r,this.o.beforeShowCentury),this._updateDayCellA11y(this._focusPickerOnFill&&this.isInline)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),a=t.getUTCMonth(),s=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,n=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l,u,o=1;switch(this.viewMode){case 4:o*=10;case 3:o*=10;case 2:o*=10;case 1:l=Math.floor(e/o)*o<=s,u=Math.floor(e/o)*o+o>r;break;case 0:l=e<=s&&a<=n,u=e>=r&&a>=h;break}this.picker.find(".prev").toggleClass("disabled",l),this.picker.find(".next").toggleClass("disabled",u)}},click:function(t){t.preventDefault(),t.stopPropagation();var e,a,s,n,r;e=i(t.target),e.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),e.hasClass("today")&&!e.hasClass("day")&&(this.setViewMode(0),this._setDate(S(),this.o.todayBtn==="linked"?null:"view")),e.hasClass("clear")&&this.clearDates(),e.hasClass("disabled")||(e.hasClass("month")||e.hasClass("year")||e.hasClass("decade")||e.hasClass("century"))&&(this.viewDate.setUTCDate(1),s=1,this.viewMode===1?(r=e.parent().find("span").index(e),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r)):(r=0,n=Number(e.text()),this.viewDate.setUTCFullYear(n)),this._trigger(c.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(I(n,r,s)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var e=i(t.currentTarget),a=e.data("date"),s=new Date(a);this.o.updateViewDate&&(s.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),s.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(s)},navArrowsClick:function(t){var e=i(t.currentTarget),a=e.hasClass("prev")?-1:1;this.viewMode!==0&&(a*=c.viewModes[this.viewMode].navStep*12),this.viewDate=this.moveMonth(this.viewDate,a),this._trigger(c.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),e!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):this.o.multidate===!1?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),typeof this.o.multidate=="number")for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){(!e||e==="date")&&this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||e==="view")&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),(!e||e!=="view")&&this._trigger("changeDate"),(!e||e==="date")&&this._announceSelectedDate(this.dates.get(-1)),this.inputField.trigger("change"),this.o.autoclose&&(!e||e==="date")&&this.hide()},moveDay:function(t,e){var a=new Date(t);return a.setUTCDate(t.getUTCDate()+e),a},moveWeek:function(t,e){return this.moveDay(t,e*7)},moveMonth:function(t,e){if(!H(t))return this.o.defaultViewDate;if(!e)return t;var a=new Date(t.valueOf()),s=a.getUTCDate(),n=a.getUTCMonth(),r=M
19ath.abs(e),h,l;if(e=e>0?1:-1,r===1)l=e===-1?function(){return a.getUTCMonth()===n}:function(){return a.getUTCMonth()!==h},h=n+e,a.setUTCMonth(h),h=(h+12)%12;else{for(var u=0;u<r;u++)a=this.moveMonth(a,e);h=a.getUTCMonth(),a.setUTCDate(s),l=function(){return h!==a.getUTCMonth()}}for(;l();)a.setUTCDate(--s),a.setUTCMonth(h);return a},moveYear:function(t,e){return this.moveMonth(t,e*12)},moveAvailableDate:function(t,e,a){do{if(t=this[a](t,e),!this.dateWithinRange(t))return!1;a="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(t){return i.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||i.grep(this.o.datesDisabled,function(e){return W(t,e)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible")){(t.keyCode===40||t.keyCode===27)&&(this.show(),t.stopPropagation());return}var e=!1,a,s,n=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this._focusPickerOnFill=this.isInline,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||this.o.daysOfWeekDisabled.length===7)break;a=t.keyCode===37||t.keyCode===38?-1:1,this.viewMode===0?t.ctrlKey?(s=this.moveAvailableDate(n,a,"moveYear"),s&&this._trigger("changeYear",this.viewDate)):t.shiftKey?(s=this.moveAvailableDate(n,a,"moveMonth"),s&&this._trigger("changeMonth",this.viewDate)):t.keyCode===37||t.keyCode===39?s=this.moveAvailableDate(n,a,"moveDay"):this.weekOfDateIsDisabled(n)||(s=this.moveAvailableDate(n,a,"moveWeek")):this.viewMode===1?((t.keyCode===38||t.keyCode===40)&&(a=a*4),s=this.moveAvailableDate(n,a,"moveMonth")):this.viewMode===2&&((t.keyCode===38||t.keyCode===40)&&(a=a*4),s=this.moveAvailableDate(n,a,"moveYear")),s&&(this.focusDate=this.viewDate=s,this.setValue(),this._focusPickerOnFill=this.isInline,this.fill(),this._announceFocusedDate(this.focusDate),t.preventDefault());break;case 13:if(!this.o.forceParse)break;n=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(n),e=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this._focusPickerOnFill=this.isInline,this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide()),this._announceSelectedDate(n);break;case 9:if(this.isInline){t.shiftKey&&(this._leavingPicker=!0,this.element.attr("tabindex","-1")),this.focusDate=null,this._focusPickerOnFill=!1;return}this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this._focusPickerOnFill=!1,this.fill(),this.hide();break}e&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+c.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var E=function(t,e){i.data(t,"datepicker",this),this.element=i(t),this.inputs=i.map(e.inputs,function(a){return a.jquery?a[0]:a}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,Y.call(i(this.inputs),e).on("changeDate",i.proxy(this.dateUpdated,this)),this.pickers=i.map(this.inputs,function(a){return i.data(a,"datepicker")}),this.updateDates()};E.prototype={updateDates:function(){this.dates=i.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=i.map(this.dates,function(e){return e.valueOf()});i.each(this.pickers,function(e,a){a.setRange(t)})},clearDates:function(){i.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=i.data(t.target,"datepicker");if(e!==T){var a=e.getUTCDate(),s=this.keepEmptyValues,n=i.inArray(t.target,this.inputs),r=n-1,h=n+1,l=this.inputs.length;if(n!==-1){if(i.each(this.pickers,function(u,o){!o.getUTCDate()&&(o===e||!s)&&o.setUTCDate(
19a)}),a<this.dates[r])for(;r>=0&&a<this.dates[r]&&(this.pickers[r].element.val()||"").length>0;)this.pickers[r--].setUTCDate(a);else if(a>this.dates[h])for(;h<l&&a>this.dates[h]&&(this.pickers[h].element.val()||"").length>0;)this.pickers[h++].setUTCDate(a);this.updateDates(),delete this.updating}}}},destroy:function(){i.map(this.pickers,function(t){t.destroy()}),i(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:N("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};function j(t,e){var a=i(t).data(),s={},n,r=new RegExp("^"+e.toLowerCase()+"([A-Z])");e=new RegExp("^"+e.toLowerCase());function h(u,o){return o.toLowerCase()}for(var l in a)e.test(l)&&(n=l.replace(r,h),s[n]=a[l]);return s}function B(t){var e={};if(!(!D[t]&&(t=t.split("-")[0],!D[t]))){var a=D[t];return i.each(L,function(s,n){n in a&&(e[n]=a[n])}),e}}var q=i.fn.datepicker,Y=function(t){var e=Array.apply(null,arguments);e.shift();var a;if(this.each(function(){var s=i(this),n=s.data("datepicker"),r=typeof t=="object"&&t;if(!n){var h=j(this,"date"),l=i.extend({},V,h,r),u=B(l.language),o=i.extend({},V,u,h,r);s.hasClass("input-daterange")||o.inputs?(i.extend(o,{inputs:o.inputs||s.find("input").toArray()}),n=new E(this,o)):n=new x(this,o),s.data("datepicker",n)}typeof t=="string"&&typeof n[t]=="function"&&(a=n[t].apply(n,e))}),a===T||a instanceof x||a instanceof E)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+t+" function)");return a};i.fn.datepicker=Y;var V=i.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:i.noop,beforeShowMonth:i.noop,beforeShowYear:i.noop,beforeShowDecade:i.noop,beforeShowCentury:i.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,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:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},L=i.fn.datepicker.locale_opts=["format","rtl","weekStart"];i.fn.datepicker.Constructor=x;var D=i.fn.datepicker.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"}},c={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(t){if(typeof t.toValue=="function"&&typeof t.toDisplay=="function")return t;var e=t.replace(this.validParts,"\0").split("\0"),a=t.match(this.validParts);if(!e||!e.length||!a||a.length===0)throw new Error("Invalid date format.");return{separators:e,parts:a}},parseDate:function(t,e,a,s){if(!t)return T;if(t instanceof Date)return t;if(typeof e=="string"&&(e=c.parseFormat(e)),e.toValue)return e.toValue(t,e,a);var n={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},r={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},h,l,u,o,w;if(t in r&&(t=r[t]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(t)){for(h=t.match(/([\-+]\d+)([dmwy])/gi),t=new Date,o=0;o<h.length;o++)l=h[o].match(/([\-+]\d+)([dmwy])/i),u=Number(l[1]),w=n[l[2].toLowerCase()],t=x.prototype[w](t,u);return x.prototype._zero_utc_time(t)}h=t&&t.match(this.nonpunctuation)||[];function _(v,m){return m===!0&&(m=10),v<100&&(v+=2e3,v>
vendor: 3,118 bytes, line 19
19new Date().getFullYear()+m&&(v-=100)),v}var y={},f=["yyyy","yy","M","MM","m","mm","d","dd"],d={yyyy:function(v,m){return v.setUTCFullYear(s?_(m,s):m)},m:function(v,m){if(isNaN(v))return v;for(m-=1;m<0;)m+=12;for(m%=12,v.setUTCMonth(m);v.getUTCMonth()!==m;)v.setUTCDate(v.getUTCDate()-1);return v},d:function(v,m){return v.setUTCDate(m)}},k,p;d.yy=d.yyyy,d.M=d.MM=d.mm=d.m,d.dd=d.d,t=S();var g=e.parts.slice();h.length!==g.length&&(g=i(g).filter(function(v,m){return i.inArray(m,f)!==-1}).toArray());function M(){var v=this.slice(0,h[o].length),m=h[o].slice(0,v.length);return v.toLowerCase()===m.toLowerCase()}if(h.length===g.length){var b;for(o=0,b=g.length;o<b;o++){if(k=parseInt(h[o],10),l=g[o],isNaN(k))switch(l){case"MM":p=i(D[a].months).filter(M),k=i.inArray(p[0],D[a].months)+1;break;case"M":p=i(D[a].monthsShort).filter(M),k=i.inArray(p[0],D[a].monthsShort)+1;break}y[l]=k}var F,U;for(o=0;o<f.length;o++)U=f[o],U in y&&!isNaN(y[U])&&(F=new Date(t),d[U](F,y[U]),isNaN(F)||(t=F))}return t},formatDate:function(t,e,a){if(!t)return"";if(typeof e=="string"&&(e=c.parseFormat(e)),e.toDisplay)return e.toDisplay(t,e,a);var s={d:t.getUTCDate(),D:D[a].daysShort[t.getUTCDay()],DD:D[a].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:D[a].monthsShort[t.getUTCMonth()],MM:D[a].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,t=[];for(var n=i.extend([],e.separators),r=0,h=e.parts.length;r<=h;r++)n.length&&t.push(n.shift()),t.push(s[e.parts[r]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+V.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+V.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};c.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+c.headTemplate+"<tbody></tbody>"+c.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+"</table></div></div>",i.fn.datepicker.DPGlobal=c,i.fn.datepicker.noConflict=function(){return i.fn.datepicker=q,this},i.fn.datepicker.version="1.10.0",i.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},i(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=i(this);e.data("datepicker")||(t.preventDefault(),Y.call(e,"show"))}),i(function(){Y.call(i('[data-provide="datepicker-inline"]'))})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.