994. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:43 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

994.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\Areas\Service311\js jquery-ui-1.10.4.datepicker.min.js Tue Dec 20 19:50:52 2016 UTC
2 Wed Feb 1 19:57:42 2017 UTC

994.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 14

994.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

994.4 Active regular expressions

No regular expressions were active.

994.5 Comparison detail

1   /*        
2   Copyright  (c) jQuery  Foundatio n and othe r contribu tors, http s://jquery .org/        
3          
4   This softw are consis ts of volu ntary cont ributions  made by ma ny individ uals. For  exact cont ribution h istory, se e the revi sion histo ry availab le at http s://github .com/jquer y/jquery-u i        
5          
6   Permission  is hereby  granted,  free of ch arge, to a ny person  obtaining  a copy of  this softw are and as sociated d ocumentati on files ( the "Softw are"), to  deal in th e Software  without r estriction , includin g without  limitation  the right s to use,  copy, modi fy, merge,  publish,  distribute , sublicen se, and/or  sell copi es of the  Software,  and to per mit person s to whom  the Softwa re is furn ished to d o so, subj ect to the  following  condition s:        
7          
8   The above  copyright  notice and  this perm ission not ice shall  be include d in all c opies or s ubstantial  portions  of the Sof tware.        
9          
10   THE SOFTWA RE IS PROV IDED "AS I S", WITHOU T WARRANTY  OF ANY KI ND, EXPRES S OR IMPLI ED, INCLUD ING BUT NO T LIMITED  TO THE WAR RANTIES OF  MERCHANTA BILITY, FI TNESS FOR  A PARTICUL AR PURPOSE  AND NONIN FRINGEMENT . IN NO EV ENT SHALL  THE AUTHOR S OR COPYR IGHT HOLDE RS BE LIAB LE FOR ANY  CLAIM, DA MAGES OR O THER LIABI LITY, WHET HER IN AN  ACTION OF  CONTRACT,  TORT OR OT HERWISE, A RISING FRO M, OUT OF  OR IN CONN ECTION WIT H THE SOFT WARE OR TH E USE OR O THER DEALI NGS IN THE  SOFTWARE.        
11   */        
12          
13   (function( e,t){funct ion i(t,i) {var s,a,o ,r=t.nodeN ame.toLowe rCase();re turn"area" ===r?(s=t. parentNode ,a=s.name, t.href&&a& &"map"===s .nodeName. toLowerCas e()?(o=e(" img[usemap =#"+a+"]") [0],!!o&&n (o)):!1):( /input|sel ect|textar ea|button| object/.te st(r)?!t.d isabled:"a "===r?t.hr ef||i:i)&& n(t)}funct ion n(t){r eturn e.ex pr.filters .visible(t )&&!e(t).p arents().a ddBack().f ilter(func tion(){ret urn"hidden "===e.css( this,"visi bility")}) .length}va r s=0,a=/^ ui-id-\d+$ /;e.ui=e.u i||{},e.ex tend(e.ui, {version:" 1.10.4",ke yCode:{BAC KSPACE:8,C OMMA:188,D ELETE:46,D OWN:40,END :35,ENTER: 13,ESCAPE: 27,HOME:36 ,LEFT:37,N UMPAD_ADD: 107,NUMPAD _DECIMAL:1 10,NUMPAD_ DIVIDE:111 ,NUMPAD_EN TER:108,NU MPAD_MULTI PLY:106,NU MPAD_SUBTR ACT:109,PA GE_DOWN:34 ,PAGE_UP:3 3,PERIOD:1 90,RIGHT:3 9,SPACE:32 ,TAB:9,UP: 38}}),e.fn .extend({f ocus:funct ion(t){ret urn functi on(i,n){re turn"numbe r"==typeof  i?this.ea ch(functio n(){var t= this;setTi meout(func tion(){e(t ).focus(), n&&n.call( t)},i)}):t .apply(thi s,argument s)}}(e.fn. focus),scr ollParent: function() {var t;ret urn t=e.ui .ie&&/(sta tic|relati ve)/.test( this.css(" position") )||/absolu te/.test(t his.css("p osition")) ?this.pare nts().filt er(functio n(){return /(relative |absolute| fixed)/.te st(e.css(t his,"posit ion"))&&/( auto|scrol l)/.test(e .css(this, "overflow" )+e.css(th is,"overfl ow-y")+e.c ss(this,"o verflow-x" ))}).eq(0) :this.pare nts().filt er(functio n(){return /(auto|scr oll)/.test (e.css(thi s,"overflo w")+e.css( this,"over flow-y")+e .css(this, "overflow- x"))}).eq( 0),/fixed/ .test(this .css("posi tion"))||! t.length?e (document) :t},zIndex :function( i){if(i!== t)return t his.css("z Index",i); if(this.le ngth)for(v ar n,s,a=e (this[0]); a.length&& a[0]!==doc ument;){if (n=a.css(" position") ,("absolut e"===n||"r elative"== =n||"fixed "===n)&&(s =parseInt( a.css("zIn dex"),10), !isNaN(s)& &0!==s))re turn s;a=a .parent()} return 0}, uniqueId:f unction(){ return thi s.each(fun ction(){th is.id||(th is.id="ui- id-"+ ++s) })},remove UniqueId:f unction(){ return thi s.each(fun ction(){a. test(this. id)&&e(thi s).removeA ttr("id")} )}}),e.ext end(e.expr [":"],{dat a:e.expr.c reatePseud o?e.expr.c reatePseud o(function (t){return  function( i){return! !e.data(i, t)}}):func tion(t,i,n ){return!! e.data(t,n [3])},focu sable:func tion(t){re turn i(t,! isNaN(e.at tr(t,"tabi ndex")))}, tabbable:f unction(t) {var n=e.a ttr(t,"tab index"),s= isNaN(n);r eturn(s||n >=0)&&i(t, !s)}}),e(" <a>").oute rWidth(1). jquery||e. each(["Wid th","Heigh t"],functi on(i,n){fu nction s(t ,i,n,s){re turn e.eac h(a,functi on(){i-=pa rseFloat(e .css(t,"pa dding"+thi s))||0,n&& (i-=parseF loat(e.css (t,"border "+this+"Wi dth"))||0) ,s&&(i-=pa rseFloat(e .css(t,"ma rgin"+this ))||0)}),i }var a="Wi dth"===n?[ "Left","Ri ght"]:["To p","Bottom "],o=n.toL owerCase() ,r={innerW idth:e.fn. innerWidth ,innerHeig ht:e.fn.in nerHeight, outerWidth :e.fn.oute rWidth,out erHeight:e .fn.outerH eight};e.f n["inner"+ n]=functio n(i){retur n i===t?r[ "inner"+n] .call(this ):this.eac h(function (){e(this) .css(o,s(t his,i)+"px ")})},e.fn ["outer"+n ]=function (t,i){retu rn"number" !=typeof t ?r["outer" +n].call(t his,t):thi s.each(fun ction(){e( this).css( o,s(this,t ,!0,i)+"px ")})}}),e. fn.addBack ||(e.fn.ad dBack=func tion(e){re turn this. add(null== e?this.pre vObject:th is.prevObj ect.filter (e))}),e(" <a>").data ("a-b","a" ).removeDa ta("a-b"). data("a-b" )&&(e.fn.r emoveData= function(t ){return f unction(i) {return ar guments.le ngth?t.cal l(this,e.c amelCase(i )):t.call( this)}}(e. fn.removeD ata)),e.ui .ie=!!/msi e [\w.]+/. exec(navig ator.userA gent.toLow erCase()), e.support. selectstar t="onselec tstart"in  document.c reateEleme nt("div"), e.fn.exten d({disable Selection: function() {return th is.bind((e .support.s electstart ?"selectst art":"mous edown")+". ui-disable Selection" ,function( e){e.preve ntDefault( )})},enabl eSelection :function( ){return t his.unbind (".ui-disa bleSelecti on")}}),e. extend(e.u i,{plugin: {add:funct ion(t,i,n) {var s,a=e .ui[t].pro totype;for (s in n)a. plugins[s] =a.plugins [s]||[],a. plugins[s] .push([i,n [s]])},cal l:function (e,t,i){va r n,s=e.pl ugins[t];i f(s&&e.ele ment[0].pa rentNode&& 11!==e.ele ment[0].pa rentNode.n odeType)fo r(n=0;s.le ngth>n;n++ )e.options [s[n][0]]& &s[n][1].a pply(e.ele ment,i)}}, hasScroll: function(t ,i){if("hi dden"===e( t).css("ov erflow"))r eturn!1;va r n=i&&"le ft"===i?"s crollLeft" :"scrollTo p",s=!1;re turn t[n]> 0?!0:(t[n] =1,s=t[n]> 0,t[n]=0,s )}})})(jQu ery);(func tion(e,t){ function i (){this._c urInst=nul l,this._ke yEvent=!1, this._disa bledInputs =[],this._ datepicker Showing=!1 ,this._inD ialog=!1,t his._mainD ivId="ui-d atepicker- div",this. _inlineCla ss="ui-dat epicker-in line",this ._appendCl ass="ui-da tepicker-a ppend",thi s._trigger Class="ui- datepicker -trigger", this._dial ogClass="u i-datepick er-dialog" ,this._dis ableClass= "ui-datepi cker-disab led",this. _unselecta bleClass=" ui-datepic ker-unsele ctable",th is._curren tClass="ui -datepicke r-current- day",this. _dayOverCl ass="ui-da tepicker-d ays-cell-o ver",this. regional=[ ],this.reg ional[""]= {closeText :"Done",pr evText:"Pr ev",nextTe xt:"Next", currentTex t:"Today", monthNames :["January ","Februar y","March" ,"April"," May","June ","July"," August","S eptember", "October", "November" ,"December "],monthNa mesShort:[ "Jan","Feb ","Mar","A pr","May", "Jun","Jul ","Aug","S ep","Oct", "Nov","Dec "],dayName s:["Sunday ","Monday" ,"Tuesday" ,"Wednesda y","Thursd ay","Frida y","Saturd ay"],dayNa mesShort:[ "Sun","Mon ","Tue","W ed","Thu", "Fri","Sat "],dayName sMin:["Su" ,"Mo","Tu" ,"We","Th" ,"Fr","Sa" ],weekHead er:"Wk",da teFormat:" mm/dd/yy", firstDay:0 ,isRTL:!1, showMonthA fterYear:! 1,yearSuff ix:""},thi s._default s={showOn: "focus",sh owAnim:"fa deIn",show Options:{} ,defaultDa te:null,ap pendText:" ",buttonTe xt:"...",b uttonImage :"",button ImageOnly: !1,hideIfN oPrevNext: !1,navigat ionAsDateF ormat:!1,g otoCurrent :!1,change Month:!1,c hangeYear: !1,yearRan ge:"c-10:c +10",showO therMonths :!1,select OtherMonth s:!1,showW eek:!1,cal culateWeek :this.iso8 601Week,sh ortYearCut off:"+10", minDate:nu ll,maxDate :null,dura tion:"fast ",beforeSh owDay:null ,beforeSho w:null,onS elect:null ,onChangeM onthYear:n ull,onClos e:null,num berOfMonth s:1,showCu rrentAtPos :0,stepMon ths:1,step BigMonths: 12,altFiel d:"",altFo rmat:"",co nstrainInp ut:!0,show ButtonPane l:!1,autoS ize:!1,dis abled:!1}, e.extend(t his._defau lts,this.r egional["" ]),this.dp Div=a(e("< div id='"+ this._main DivId+"' c lass='ui-d atepicker  ui-widget  ui-widget- content ui -helper-cl earfix ui- corner-all '></div>") )}function  a(t){var  i="button,  .ui-datep icker-prev , .ui-date picker-nex t, .ui-dat epicker-ca lendar td  a";return  t.delegate (i,"mouseo ut",functi on(){e(thi s).removeC lass("ui-s tate-hover "),-1!==th is.classNa me.indexOf ("ui-datep icker-prev ")&&e(this ).removeCl ass("ui-da tepicker-p rev-hover" ),-1!==thi s.classNam e.indexOf( "ui-datepi cker-next" )&&e(this) .removeCla ss("ui-dat epicker-ne xt-hover") }).delegat e(i,"mouse over",func tion(){e.d atepicker. _isDisable dDatepicke r(n.inline ?t.parent( )[0]:n.inp ut[0])||(e (this).par ents(".ui- datepicker -calendar" ).find("a" ).removeCl ass("ui-st ate-hover" ),e(this). addClass(" ui-state-h over"),-1! ==this.cla ssName.ind exOf("ui-d atepicker- prev")&&e( this).addC lass("ui-d atepicker- prev-hover "),-1!==th is.classNa me.indexOf ("ui-datep icker-next ")&&e(this ).addClass ("ui-datep icker-next -hover"))} )}function  s(t,i){e. extend(t,i );for(var  a in i)nul l==i[a]&&( t[a]=i[a]) ;return t} e.extend(e .ui,{datep icker:{ver sion:"1.10 .4"}});var  n,r="date picker";e. extend(i.p rototype,{ markerClas sName:"has Datepicker ",maxRows: 4,_widgetD atepicker: function() {return th is.dpDiv}, setDefault s:function (e){return  s(this._d efaults,e| |{}),this} ,_attachDa tepicker:f unction(t, i){var a,s ,n;a=t.nod eName.toLo werCase(), s="div"=== a||"span"= ==a,t.id|| (this.uuid +=1,t.id=" dp"+this.u uid),n=thi s._newInst (e(t),s),n .settings= e.extend({ },i||{})," input"===a ?this._con nectDatepi cker(t,n): s&&this._i nlineDatep icker(t,n) },_newInst :function( t,i){var s =t[0].id.r eplace(/([ ^A-Za-z0-9 _\-])/g,"\ \\\$1");re turn{id:s, input:t,se lectedDay: 0,selected Month:0,se lectedYear :0,drawMon th:0,drawY ear:0,inli ne:i,dpDiv :i?a(e("<d iv class=' "+this._in lineClass+ " ui-datep icker ui-w idget ui-w idget-cont ent ui-hel per-clearf ix ui-corn er-all'></ div>")):th is.dpDiv}} ,_connectD atepicker: function(t ,i){var a= e(t);i.app end=e([]), i.trigger= e([]),a.ha sClass(thi s.markerCl assName)|| (this._att achments(a ,i),a.addC lass(this. markerClas sName).key down(this. _doKeyDown ).keypress (this._doK eyPress).k eyup(this. _doKeyUp), this._auto Size(i),e. data(t,r,i ),i.settin gs.disable d&&this._d isableDate picker(t)) },_attachm ents:funct ion(t,i){v ar a,s,n,r =this._get (i,"append Text"),o=t his._get(i ,"isRTL"); i.append&& i.append.r emove(),r& &(i.append =e("<span  class='"+t his._appen dClass+"'> "+r+"</spa n>"),t[o?" before":"a fter"](i.a ppend)),t. unbind("fo cus",this. _showDatep icker),i.t rigger&&i. trigger.re move(),a=t his._get(i ,"showOn") ,("focus"= ==a||"both "===a)&&t. focus(this ._showDate picker),(" button"=== a||"both"= ==a)&&(s=t his._get(i ,"buttonTe xt"),n=thi s._get(i," buttonImag e"),i.trig ger=e(this ._get(i,"b uttonImage Only")?e(" <img/>").a ddClass(th is._trigge rClass).at tr({src:n, alt:s,titl e:s}):e("< button typ e='button' ></button> ").addClas s(this._tr iggerClass ).html(n?e ("<img/>") .attr({src :n,alt:s,t itle:s}):s )),t[o?"be fore":"aft er"](i.tri gger),i.tr igger.clic k(function (){return  e.datepick er._datepi ckerShowin g&&e.datep icker._las tInput===t [0]?e.date picker._hi deDatepick er():e.dat epicker._d atepickerS howing&&e. datepicker ._lastInpu t!==t[0]?( e.datepick er._hideDa tepicker() ,e.datepic ker._showD atepicker( t[0])):e.d atepicker. _showDatep icker(t[0] ),!1}))},_ autoSize:f unction(e) {if(this._ get(e,"aut oSize")&&! e.inline){ var t,i,a, s,n=new Da te(2009,11 ,20),r=thi s._get(e," dateFormat ");r.match (/[DM]/)&& (t=functio n(e){for(i =0,a=0,s=0 ;e.length> s;s++)e[s] .length>i& &(i=e[s].l ength,a=s) ;return a} ,n.setMont h(t(this._ get(e,r.ma tch(/MM/)? "monthName s":"monthN amesShort" ))),n.setD ate(t(this ._get(e,r. match(/DD/ )?"dayName s":"dayNam esShort")) +20-n.getD ay())),e.i nput.attr( "size",thi s._formatD ate(e,n).l ength)}},_ inlineDate picker:fun ction(t,i) {var a=e(t );a.hasCla ss(this.ma rkerClassN ame)||(a.a ddClass(th is.markerC lassName). append(i.d pDiv),e.da ta(t,r,i), this._setD ate(i,this ._getDefau ltDate(i), !0),this._ updateDate picker(i), this._upda teAlternat e(i),i.set tings.disa bled&&this ._disableD atepicker( t),i.dpDiv .css("disp lay","bloc k"))},_dia logDatepic ker:functi on(t,i,a,n ,o){var u, c,h,l,d,p= this._dial ogInst;ret urn p||(th is.uuid+=1 ,u="dp"+th is.uuid,th is._dialog Input=e("< input type ='text' id ='"+u+"' s tyle='posi tion: abso lute; top:  -100px; w idth: 0px; '/>"),this ._dialogIn put.keydow n(this._do KeyDown),e ("body").a ppend(this ._dialogIn put),p=thi s._dialogI nst=this._ newInst(th is._dialog Input,!1), p.settings ={},e.data (this._dia logInput[0 ],r,p)),s( p.settings ,n||{}),i= i&&i.const ructor===D ate?this._ formatDate (p,i):i,th is._dialog Input.val( i),this._p os=o?o.len gth?o:[o.p ageX,o.pag eY]:null,t his._pos|| (c=documen t.document Element.cl ientWidth, h=document .documentE lement.cli entHeight, l=document .documentE lement.scr ollLeft||d ocument.bo dy.scrollL eft,d=docu ment.docum entElement .scrollTop ||document .body.scro llTop,this ._pos=[c/2 -100+l,h/2 -150+d]),t his._dialo gInput.css ("left",th is._pos[0] +20+"px"). css("top", this._pos[ 1]+"px"),p .settings. onSelect=a ,this._inD ialog=!0,t his.dpDiv. addClass(t his._dialo gClass),th is._showDa tepicker(t his._dialo gInput[0]) ,e.blockUI &&e.blockU I(this.dpD iv),e.data (this._dia logInput[0 ],r,p),thi s},_destro yDatepicke r:function (t){var i, a=e(t),s=e .data(t,r) ;a.hasClas s(this.mar kerClassNa me)&&(i=t. nodeName.t oLowerCase (),e.remov eData(t,r) ,"input"== =i?(s.appe nd.remove( ),s.trigge r.remove() ,a.removeC lass(this. markerClas sName).unb ind("focus ",this._sh owDatepick er).unbind ("keydown" ,this._doK eyDown).un bind("keyp ress",this ._doKeyPre ss).unbind ("keyup",t his._doKey Up)):("div "===i||"sp an"===i)&& a.removeCl ass(this.m arkerClass Name).empt y())},_ena bleDatepic ker:functi on(t){var  i,a,s=e(t) ,n=e.data( t,r);s.has Class(this .markerCla ssName)&&( i=t.nodeNa me.toLower Case(),"in put"===i?( t.disabled =!1,n.trig ger.filter ("button") .each(func tion(){thi s.disabled =!1}).end( ).filter(" img").css( {opacity:" 1.0",curso r:""})):(" div"===i|| "span"===i )&&(a=s.ch ildren("." +this._inl ineClass), a.children ().removeC lass("ui-s tate-disab led"),a.fi nd("select .ui-datepi cker-month , select.u i-datepick er-year"). prop("disa bled",!1)) ,this._dis abledInput s=e.map(th is._disabl edInputs,f unction(e) {return e= ==t?null:e }))},_disa bleDatepic ker:functi on(t){var  i,a,s=e(t) ,n=e.data( t,r);s.has Class(this .markerCla ssName)&&( i=t.nodeNa me.toLower Case(),"in put"===i?( t.disabled =!0,n.trig ger.filter ("button") .each(func tion(){thi s.disabled =!0}).end( ).filter(" img").css( {opacity:" 0.5",curso r:"default "})):("div "===i||"sp an"===i)&& (a=s.child ren("."+th is._inline Class),a.c hildren(). addClass(" ui-state-d isabled"), a.find("se lect.ui-da tepicker-m onth, sele ct.ui-date picker-yea r").prop(" disabled", !0)),this. _disabledI nputs=e.ma p(this._di sabledInpu ts,functio n(e){retur n e===t?nu ll:e}),thi s._disable dInputs[th is._disabl edInputs.l ength]=t)} ,_isDisabl edDatepick er:functio n(e){if(!e )return!1; for(var t= 0;this._di sabledInpu ts.length> t;t++)if(t his._disab ledInputs[ t]===e)ret urn!0;retu rn!1},_get Inst:funct ion(t){try {return e. data(t,r)} catch(i){t hrow"Missi ng instanc e data for  this date picker"}}, _optionDat epicker:fu nction(i,a ,n){var r, o,u,c,h=th is._getIns t(i);retur n 2===argu ments.leng th&&"strin g"==typeof  a?"defaul ts"===a?e. extend({}, e.datepick er._defaul ts):h?"all "===a?e.ex tend({},h. settings): this._get( h,a):null: (r=a||{}," string"==t ypeof a&&( r={},r[a]= n),h&&(thi s._curInst ===h&&this ._hideDate picker(),o =this._get DateDatepi cker(i,!0) ,u=this._g etMinMaxDa te(h,"min" ),c=this._ getMinMaxD ate(h,"max "),s(h.set tings,r),n ull!==u&&r .dateForma t!==t&&r.m inDate===t &&(h.setti ngs.minDat e=this._fo rmatDate(h ,u)),null! ==c&&r.dat eFormat!== t&&r.maxDa te===t&&(h .settings. maxDate=th is._format Date(h,c)) ,"disabled "in r&&(r. disabled?t his._disab leDatepick er(i):this ._enableDa tepicker(i )),this._a ttachments (e(i),h),t his._autoS ize(h),thi s._setDate (h,o),this ._updateAl ternate(h) ,this._upd ateDatepic ker(h)),t) },_changeD atepicker: function(e ,t,i){this ._optionDa tepicker(e ,t,i)},_re freshDatep icker:func tion(e){va r t=this._ getInst(e) ;t&&this._ updateDate picker(t)} ,_setDateD atepicker: function(e ,t){var i= this._getI nst(e);i&& (this._set Date(i,t), this._upda teDatepick er(i),this ._updateAl ternate(i) )},_getDat eDatepicke r:function (e,t){var  i=this._ge tInst(e);r eturn i&&! i.inline&& this._setD ateFromFie ld(i,t),i? this._getD ate(i):nul l},_doKeyD own:functi on(t){var  i,a,s,n=e. datepicker ._getInst( t.target), r=!0,o=n.d pDiv.is(". ui-datepic ker-rtl"); if(n._keyE vent=!0,e. datepicker ._datepick erShowing) switch(t.k eyCode){ca se 9:e.dat epicker._h ideDatepic ker(),r=!1 ;break;cas e 13:retur n s=e("td. "+e.datepi cker._dayO verClass+" :not(."+e. datepicker ._currentC lass+")",n .dpDiv),s[ 0]&&e.date picker._se lectDay(t. target,n.s electedMon th,n.selec tedYear,s[ 0]),i=e.da tepicker._ get(n,"onS elect"),i? (a=e.datep icker._for matDate(n) ,i.apply(n .input?n.i nput[0]:nu ll,[a,n])) :e.datepic ker._hideD atepicker( ),!1;case  27:e.datep icker._hid eDatepicke r();break; case 33:e. datepicker ._adjustDa te(t.targe t,t.ctrlKe y?-e.datep icker._get (n,"stepBi gMonths"): -e.datepic ker._get(n ,"stepMont hs"),"M"); break;case  34:e.date picker._ad justDate(t .target,t. ctrlKey?+e .datepicke r._get(n," stepBigMon ths"):+e.d atepicker. _get(n,"st epMonths") ,"M");brea k;case 35: (t.ctrlKey ||t.metaKe y)&&e.date picker._cl earDate(t. target),r= t.ctrlKey| |t.metaKey ;break;cas e 36:(t.ct rlKey||t.m etaKey)&&e .datepicke r._gotoTod ay(t.targe t),r=t.ctr lKey||t.me taKey;brea k;case 37: (t.ctrlKey ||t.metaKe y)&&e.date picker._ad justDate(t .target,o? 1:-1,"D"), r=t.ctrlKe y||t.metaK ey,t.origi nalEvent.a ltKey&&e.d atepicker. _adjustDat e(t.target ,t.ctrlKey ?-e.datepi cker._get( n,"stepBig Months"):- e.datepick er._get(n, "stepMonth s"),"M");b reak;case  38:(t.ctrl Key||t.met aKey)&&e.d atepicker. _adjustDat e(t.target ,-7,"D"),r =t.ctrlKey ||t.metaKe y;break;ca se 39:(t.c trlKey||t. metaKey)&& e.datepick er._adjust Date(t.tar get,o?-1:1 ,"D"),r=t. ctrlKey||t .metaKey,t .originalE vent.altKe y&&e.datep icker._adj ustDate(t. target,t.c trlKey?+e. datepicker ._get(n,"s tepBigMont hs"):+e.da tepicker._ get(n,"ste pMonths"), "M");break ;case 40:( t.ctrlKey| |t.metaKey )&&e.datep icker._adj ustDate(t. target,7," D"),r=t.ct rlKey||t.m etaKey;bre ak;default :r=!1}else  36===t.ke yCode&&t.c trlKey?e.d atepicker. _showDatep icker(this ):r=!1;r&& (t.prevent Default(), t.stopProp agation()) },_doKeyPr ess:functi on(i){var  a,s,n=e.da tepicker._ getInst(i. target);re turn e.dat epicker._g et(n,"cons trainInput ")?(a=e.da tepicker._ possibleCh ars(e.date picker._ge t(n,"dateF ormat")),s =String.fr omCharCode (null==i.c harCode?i. keyCode:i. charCode), i.ctrlKey| |i.metaKey ||" ">s||! a||a.index Of(s)>-1): t},_doKeyU p:function (t){var i, a=e.datepi cker._getI nst(t.targ et);if(a.i nput.val() !==a.lastV al)try{i=e .datepicke r.parseDat e(e.datepi cker._get( a,"dateFor mat"),a.in put?a.inpu t.val():nu ll,e.datep icker._get FormatConf ig(a)),i&& (e.datepic ker._setDa teFromFiel d(a),e.dat epicker._u pdateAlter nate(a),e. datepicker ._updateDa tepicker(a ))}catch(s ){}return! 0},_showDa tepicker:f unction(t) {if(t=t.ta rget||t,"i nput"!==t. nodeName.t oLowerCase ()&&(t=e(" input",t.p arentNode) [0]),!e.da tepicker._ isDisabled Datepicker (t)&&e.dat epicker._l astInput!= =t){var i, a,n,r,o,u, c;i=e.date picker._ge tInst(t),e .datepicke r._curInst &&e.datepi cker._curI nst!==i&&( e.datepick er._curIns t.dpDiv.st op(!0,!0), i&&e.datep icker._dat epickerSho wing&&e.da tepicker._ hideDatepi cker(e.dat epicker._c urInst.inp ut[0])),a= e.datepick er._get(i, "beforeSho w"),n=a?a. apply(t,[t ,i]):{},n! ==!1&&(s(i .settings, n),i.lastV al=null,e. datepicker ._lastInpu t=t,e.date picker._se tDateFromF ield(i),e. datepicker ._inDialog &&(t.value =""),e.dat epicker._p os||(e.dat epicker._p os=e.datep icker._fin dPos(t),e. datepicker ._pos[1]+= t.offsetHe ight),r=!1 ,e(t).pare nts().each (function( ){return r |="fixed"= ==e(this). css("posit ion"),!r}) ,o={left:e .datepicke r._pos[0], top:e.date picker._po s[1]},e.da tepicker._ pos=null,i .dpDiv.emp ty(),i.dpD iv.css({po sition:"ab solute",di splay:"blo ck",top:"- 1000px"}), e.datepick er._update Datepicker (i),o=e.da tepicker._ checkOffse t(i,o,r),i .dpDiv.css ({position :e.datepic ker._inDia log&&e.blo ckUI?"stat ic":r?"fix ed":"absol ute",displ ay:"none", left:o.lef t+"px",top :o.top+"px "}),i.inli ne||(u=e.d atepicker. _get(i,"sh owAnim"),c =e.datepic ker._get(i ,"duration "),i.dpDiv .zIndex(e( t).zIndex( )+1),e.dat epicker._d atepickerS howing=!0, e.effects& &e.effects .effect[u] ?i.dpDiv.s how(u,e.da tepicker._ get(i,"sho wOptions") ,c):i.dpDi v[u||"show "](u?c:nul l),e.datep icker._sho uldFocusIn put(i)&&i. input.focu s(),e.date picker._cu rInst=i))} },_updateD atepicker: function(t ){this.max Rows=4,n=t ,t.dpDiv.e mpty().app end(this._ generateHT ML(t)),thi s._attachH andlers(t) ,t.dpDiv.f ind("."+th is._dayOve rClass+" a ").mouseov er();var i ,a=this._g etNumberOf Months(t), s=a[1],r=1 7;t.dpDiv. removeClas s("ui-date picker-mul ti-2 ui-da tepicker-m ulti-3 ui- datepicker -multi-4") .width("") ,s>1&&t.dp Div.addCla ss("ui-dat epicker-mu lti-"+s).c ss("width" ,r*s+"em") ,t.dpDiv[( 1!==a[0]|| 1!==a[1]?" add":"remo ve")+"Clas s"]("ui-da tepicker-m ulti"),t.d pDiv[(this ._get(t,"i sRTL")?"ad d":"remove ")+"Class" ]("ui-date picker-rtl "),t===e.d atepicker. _curInst&& e.datepick er._datepi ckerShowin g&&e.datep icker._sho uldFocusIn put(t)&&t. input.focu s(),t.year shtml&&(i= t.yearshtm l,setTimeo ut(functio n(){i===t. yearshtml& &t.yearsht ml&&t.dpDi v.find("se lect.ui-da tepicker-y ear:first" ).replaceW ith(t.year shtml),i=t .yearshtml =null},0)) },_shouldF ocusInput: function(e ){return e .input&&e. input.is(" :visible") &&!e.input .is(":disa bled")&&!e .input.is( ":focus")} ,_checkOff set:functi on(t,i,a){ var s=t.dp Div.outerW idth(),n=t .dpDiv.out erHeight() ,r=t.input ?t.input.o uterWidth( ):0,o=t.in put?t.inpu t.outerHei ght():0,u= document.d ocumentEle ment.clien tWidth+(a? 0:e(docume nt).scroll Left()),c= document.d ocumentEle ment.clien tHeight+(a ?0:e(docum ent).scrol lTop());re turn i.lef t-=this._g et(t,"isRT L")?s-r:0, i.left-=a& &i.left=== t.input.of fset().lef t?e(docume nt).scroll Left():0,i .top-=a&&i .top===t.i nput.offse t().top+o? e(document ).scrollTo p():0,i.le ft-=Math.m in(i.left, i.left+s>u &&u>s?Math .abs(i.lef t+s-u):0), i.top-=Mat h.min(i.to p,i.top+n> c&&c>n?Mat h.abs(n+o) :0),i},_fi ndPos:func tion(t){fo r(var i,a= this._getI nst(t),s=t his._get(a ,"isRTL"); t&&("hidde n"===t.typ e||1!==t.n odeType||e .expr.filt ers.hidden (t));)t=t[ s?"previou sSibling": "nextSibli ng"];retur n i=e(t).o ffset(),[i .left,i.to p]},_hideD atepicker: function(t ){var i,a, s,n,o=this ._curInst; !o||t&&o!= =e.data(t, r)||this._ datepicker Showing&&( i=this._ge t(o,"showA nim"),a=th is._get(o, "duration" ),s=functi on(){e.dat epicker._t idyDialog( o)},e.effe cts&&(e.ef fects.effe ct[i]||e.e ffects[i]) ?o.dpDiv.h ide(i,e.da tepicker._ get(o,"sho wOptions") ,a,s):o.dp Div["slide Down"===i? "slideUp": "fadeIn"== =i?"fadeOu t":"hide"] (i?a:null, s),i||s(), this._date pickerShow ing=!1,n=t his._get(o ,"onClose" ),n&&n.app ly(o.input ?o.input[0 ]:null,[o. input?o.in put.val(): "",o]),thi s._lastInp ut=null,th is._inDial og&&(this. _dialogInp ut.css({po sition:"ab solute",le ft:"0",top :"-100px"} ),e.blockU I&&(e.unbl ockUI(),e( "body").ap pend(this. dpDiv))),t his._inDia log=!1)},_ tidyDialog :function( e){e.dpDiv .removeCla ss(this._d ialogClass ).unbind(" .ui-datepi cker-calen dar")},_ch eckExterna lClick:fun ction(t){i f(e.datepi cker._curI nst){var i =e(t.targe t),a=e.dat epicker._g etInst(i[0 ]);(i[0].i d!==e.date picker._ma inDivId&&0 ===i.paren ts("#"+e.d atepicker. _mainDivId ).length&& !i.hasClas s(e.datepi cker.marke rClassName )&&!i.clos est("."+e. datepicker ._triggerC lass).leng th&&e.date picker._da tepickerSh owing&&(!e .datepicke r._inDialo g||!e.bloc kUI)||i.ha sClass(e.d atepicker. markerClas sName)&&e. datepicker ._curInst! ==a)&&e.da tepicker._ hideDatepi cker()}},_ adjustDate :function( t,i,a){var  s=e(t),n= this._getI nst(s[0]); this._isDi sabledDate picker(s[0 ])||(this. _adjustIns tDate(n,i+ ("M"===a?t his._get(n ,"showCurr entAtPos") :0),a),thi s._updateD atepicker( n))},_goto Today:func tion(t){va r i,a=e(t) ,s=this._g etInst(a[0 ]);this._g et(s,"goto Current")& &s.current Day?(s.sel ectedDay=s .currentDa y,s.drawMo nth=s.sele ctedMonth= s.currentM onth,s.dra wYear=s.se lectedYear =s.current Year):(i=n ew Date,s. selectedDa y=i.getDat e(),s.draw Month=s.se lectedMont h=i.getMon th(),s.dra wYear=s.se lectedYear =i.getFull Year()),th is._notify Change(s), this._adju stDate(a)} ,_selectMo nthYear:fu nction(t,i ,a){var s= e(t),n=thi s._getInst (s[0]);n[" selected"+ ("M"===a?" Month":"Ye ar")]=n["d raw"+("M"= ==a?"Month ":"Year")] =parseInt( i.options[ i.selected Index].val ue,10),thi s._notifyC hange(n),t his._adjus tDate(s)}, _selectDay :function( t,i,a,s){v ar n,r=e(t );e(s).has Class(this ._unselect ableClass) ||this._is DisabledDa tepicker(r [0])||(n=t his._getIn st(r[0]),n .selectedD ay=n.curre ntDay=e("a ",s).html( ),n.select edMonth=n. currentMon th=i,n.sel ectedYear= n.currentY ear=a,this ._selectDa te(t,this. _formatDat e(n,n.curr entDay,n.c urrentMont h,n.curren tYear)))}, _clearDate :function( t){var i=e (t);this._ selectDate (i,"")},_s electDate: function(t ,i){var a, s=e(t),n=t his._getIn st(s[0]);i =null!=i?i :this._for matDate(n) ,n.input&& n.input.va l(i),this. _updateAlt ernate(n), a=this._ge t(n,"onSel ect"),a?a. apply(n.in put?n.inpu t[0]:null, [i,n]):n.i nput&&n.in put.trigge r("change" ),n.inline ?this._upd ateDatepic ker(n):(th is._hideDa tepicker() ,this._las tInput=n.i nput[0],"o bject"!=ty peof n.inp ut[0]&&n.i nput.focus (),this._l astInput=n ull)},_upd ateAlterna te:functio n(t){var i ,a,s,n=thi s._get(t," altField") ;n&&(i=thi s._get(t," altFormat" )||this._g et(t,"date Format"),a =this._get Date(t),s= this.forma tDate(i,a, this._getF ormatConfi g(t)),e(n) .each(func tion(){e(t his).val(s )}))},noWe ekends:fun ction(e){v ar t=e.get Day();retu rn[t>0&&6> t,""]},iso 8601Week:f unction(e) {var t,i=n ew Date(e. getTime()) ;return i. setDate(i. getDate()+ 4-(i.getDa y()||7)),t =i.getTime (),i.setMo nth(0),i.s etDate(1), Math.floor (Math.roun d((t-i)/86 4e5)/7)+1} ,parseDate :function( i,a,s){if( null==i||n ull==a)thr ow"Invalid  arguments ";if(a="ob ject"==typ eof a?""+a :a+"",""== =a)return  null;var n ,r,o,u,c=0 ,h=(s?s.sh ortYearCut off:null)| |this._def aults.shor tYearCutof f,l="strin g"!=typeof  h?h:(new  Date).getF ullYear()% 100+parseI nt(h,10),d =(s?s.dayN amesShort: null)||thi s._default s.dayNames Short,p=(s ?s.dayName s:null)||t his._defau lts.dayNam es,g=(s?s. monthNames Short:null )||this._d efaults.mo nthNamesSh ort,m=(s?s .monthName s:null)||t his._defau lts.monthN ames,f=-1, _=-1,v=-1, k=-1,y=!1, b=function (e){var t= i.length>n +1&&i.char At(n+1)=== e;return t &&n++,t},D =function( e){var t=b (e),i="@"= ==e?14:"!" ===e?20:"y "===e&&t?4 :"o"===e?3 :2,s=RegEx p("^\\d{1, "+i+"}"),n =a.substri ng(c).matc h(s);if(!n )throw"Mis sing numbe r at posit ion "+c;re turn c+=n[ 0].length, parseInt(n [0],10)},w =function( i,s,n){var  r=-1,o=e. map(b(i)?n :s,functio n(e,t){ret urn[[t,e]] }).sort(fu nction(e,t ){return-( e[1].lengt h-t[1].len gth)});if( e.each(o,f unction(e, i){var s=i [1];return  a.substr( c,s.length ).toLowerC ase()===s. toLowerCas e()?(r=i[0 ],c+=s.len gth,!1):t} ),-1!==r)r eturn r+1; throw"Unkn own name a t position  "+c},M=fu nction(){i f(a.charAt (c)!==i.ch arAt(n))th row"Unexpe cted liter al at posi tion "+c;c ++};for(n= 0;i.length >n;n++)if( y)"'"!==i. charAt(n)| |b("'")?M( ):y=!1;els e switch(i .charAt(n) ){case"d": v=D("d");b reak;case" D":w("D",d ,p);break; case"o":k= D("o");bre ak;case"m" :_=D("m"); break;case "M":_=w("M ",g,m);bre ak;case"y" :f=D("y"); break;case "@":u=new  Date(D("@" )),f=u.get FullYear() ,_=u.getMo nth()+1,v= u.getDate( );break;ca se"!":u=ne w Date((D( "!")-this. _ticksTo19 70)/1e4),f =u.getFull Year(),_=u .getMonth( )+1,v=u.ge tDate();br eak;case"' ":b("'")?M ():y=!0;br eak;defaul t:M()}if(a .length>c& &(o=a.subs tr(c),!/^\ s+/.test(o )))throw"E xtra/unpar sed charac ters found  in date:  "+o;if(-1= ==f?f=(new  Date).get FullYear() :100>f&&(f +=(new Dat e).getFull Year()-(ne w Date).ge tFullYear( )%100+(l>= f?0:-100)) ,k>-1)for( _=1,v=k;;) {if(r=this ._getDaysI nMonth(f,_ -1),r>=v)b reak;_++,v -=r}if(u=t his._dayli ghtSavingA djust(new  Date(f,_-1 ,v)),u.get FullYear() !==f||u.ge tMonth()+1 !==_||u.ge tDate()!== v)throw"In valid date ";return u },ATOM:"yy -mm-dd",CO OKIE:"D, d d M yy",IS O_8601:"yy -mm-dd",RF C_822:"D,  d M y",RFC _850:"DD,  dd-M-y",RF C_1036:"D,  d M y",RF C_1123:"D,  d M yy",R FC_2822:"D , d M yy", RSS:"D, d  M y",TICKS :"!",TIMES TAMP:"@",W 3C:"yy-mm- dd",_ticks To1970:1e7 *60*60*24* (718685+Ma th.floor(4 92.5)-Math .floor(19. 7)+Math.fl oor(4.925) ),formatDa te:functio n(e,t,i){i f(!t)retur n"";var a, s=(i?i.day NamesShort :null)||th is._defaul ts.dayName sShort,n=( i?i.dayNam es:null)|| this._defa ults.dayNa mes,r=(i?i .monthName sShort:nul l)||this._ defaults.m onthNamesS hort,o=(i? i.monthNam es:null)|| this._defa ults.month Names,u=fu nction(t){ var i=e.le ngth>a+1&& e.charAt(a +1)===t;re turn i&&a+ +,i},c=fun ction(e,t, i){var a=" "+t;if(u(e ))for(;i>a .length;)a ="0"+a;ret urn a},h=f unction(e, t,i,a){ret urn u(e)?a [t]:i[t]}, l="",d=!1; if(t)for(a =0;e.lengt h>a;a++)if (d)"'"!==e .charAt(a) ||u("'")?l +=e.charAt (a):d=!1;e lse switch (e.charAt( a)){case"d ":l+=c("d" ,t.getDate (),2);brea k;case"D": l+=h("D",t .getDay(), s,n);break ;case"o":l +=c("o",Ma th.round(( new Date(t .getFullYe ar(),t.get Month(),t. getDate()) .getTime() -new Date( t.getFullY ear(),0,0) .getTime() )/864e5),3 );break;ca se"m":l+=c ("m",t.get Month()+1, 2);break;c ase"M":l+= h("M",t.ge tMonth(),r ,o);break; case"y":l+ =u("y")?t. getFullYea r():(10>t. getYear()% 100?"0":"" )+t.getYea r()%100;br eak;case"@ ":l+=t.get Time();bre ak;case"!" :l+=1e4*t. getTime()+ this._tick sTo1970;br eak;case"' ":u("'")?l +="'":d=!0 ;break;def ault:l+=e. charAt(a)} return l}, _possibleC hars:funct ion(e){var  t,i="",a= !1,s=funct ion(i){var  a=e.lengt h>t+1&&e.c harAt(t+1) ===i;retur n a&&t++,a };for(t=0; e.length>t ;t++)if(a) "'"!==e.ch arAt(t)||s ("'")?i+=e .charAt(t) :a=!1;else  switch(e. charAt(t)) {case"d":c ase"m":cas e"y":case" @":i+="012 3456789";b reak;case" D":case"M" :return nu ll;case"'" :s("'")?i+ ="'":a=!0; break;defa ult:i+=e.c harAt(t)}r eturn i},_ get:functi on(e,i){re turn e.set tings[i]!= =t?e.setti ngs[i]:thi s._default s[i]},_set DateFromFi eld:functi on(e,t){if (e.input.v al()!==e.l astVal){va r i=this._ get(e,"dat eFormat"), a=e.lastVa l=e.input? e.input.va l():null,s =this._get DefaultDat e(e),n=s,r =this._get FormatConf ig(e);try{ n=this.par seDate(i,a ,r)||s}cat ch(o){a=t? "":a}e.sel ectedDay=n .getDate() ,e.drawMon th=e.selec tedMonth=n .getMonth( ),e.drawYe ar=e.selec tedYear=n. getFullYea r(),e.curr entDay=a?n .getDate() :0,e.curre ntMonth=a? n.getMonth ():0,e.cur rentYear=a ?n.getFull Year():0,t his._adjus tInstDate( e)}},_getD efaultDate :function( e){return  this._rest rictMinMax (e,this._d etermineDa te(e,this. _get(e,"de faultDate" ),new Date ))},_deter mineDate:f unction(t, i,a){var s =function( e){var t=n ew Date;re turn t.set Date(t.get Date()+e), t},n=funct ion(i){try {return e. datepicker .parseDate (e.datepic ker._get(t ,"dateForm at"),i,e.d atepicker. _getFormat Config(t)) }catch(a){ }for(var s =(i.toLowe rCase().ma tch(/^c/)? e.datepick er._getDat e(t):null) ||new Date ,n=s.getFu llYear(),r =s.getMont h(),o=s.ge tDate(),u= /([+\-]?[0 -9]+)\s*(d |D|w|W|m|M |y|Y)?/g,c =u.exec(i) ;c;){switc h(c[2]||"d "){case"d" :case"D":o +=parseInt (c[1],10); break;case "w":case"W ":o+=7*par seInt(c[1] ,10);break ;case"m":c ase"M":r+= parseInt(c [1],10),o= Math.min(o ,e.datepic ker._getDa ysInMonth( n,r));brea k;case"y": case"Y":n+ =parseInt( c[1],10),o =Math.min( o,e.datepi cker._getD aysInMonth (n,r))}c=u .exec(i)}r eturn new  Date(n,r,o )},r=null= =i||""===i ?a:"string "==typeof  i?n(i):"nu mber"==typ eof i?isNa N(i)?a:s(i ):new Date (i.getTime ());return  r=r&&"Inv alid Date" ==""+r?a:r ,r&&(r.set Hours(0),r .setMinute s(0),r.set Seconds(0) ,r.setMill iseconds(0 )),this._d aylightSav ingAdjust( r)},_dayli ghtSavingA djust:func tion(e){re turn e?(e. setHours(e .getHours( )>12?e.get Hours()+2: 0),e):null },_setDate :function( e,t,i){var  a=!t,s=e. selectedMo nth,n=e.se lectedYear ,r=this._r estrictMin Max(e,this ._determin eDate(e,t, new Date)) ;e.selecte dDay=e.cur rentDay=r. getDate(), e.drawMont h=e.select edMonth=e. currentMon th=r.getMo nth(),e.dr awYear=e.s electedYea r=e.curren tYear=r.ge tFullYear( ),s===e.se lectedMont h&&n===e.s electedYea r||i||this ._notifyCh ange(e),th is._adjust InstDate(e ),e.input& &e.input.v al(a?"":th is._format Date(e))}, _getDate:f unction(e) {var t=!e. currentYea r||e.input &&""===e.i nput.val() ?null:this ._daylight SavingAdju st(new Dat e(e.curren tYear,e.cu rrentMonth ,e.current Day));retu rn t},_att achHandler s:function (t){var i= this._get( t,"stepMon ths"),a="# "+t.id.rep lace(/\\\\ /g,"\\");t .dpDiv.fin d("[data-h andler]"). map(functi on(){var t ={prev:fun ction(){e. datepicker ._adjustDa te(a,-i,"M ")},next:f unction(){ e.datepick er._adjust Date(a,+i, "M")},hide :function( ){e.datepi cker._hide Datepicker ()},today: function() {e.datepic ker._gotoT oday(a)},s electDay:f unction(){ return e.d atepicker. _selectDay (a,+this.g etAttribut e("data-mo nth"),+thi s.getAttri bute("data -year"),th is),!1},se lectMonth: function() {return e. datepicker ._selectMo nthYear(a, this,"M"), !1},select Year:funct ion(){retu rn e.datep icker._sel ectMonthYe ar(a,this, "Y"),!1}}; e(this).bi nd(this.ge tAttribute ("data-eve nt"),t[thi s.getAttri bute("data -handler") ])})},_gen erateHTML: function(e ){var t,i, a,s,n,r,o, u,c,h,l,d, p,g,m,f,_, v,k,y,b,D, w,M,C,x,I, N,T,A,E,S, Y,F,P,O,j, K,R,H=new  Date,W=thi s._dayligh tSavingAdj ust(new Da te(H.getFu llYear(),H .getMonth( ),H.getDat e())),L=th is._get(e, "isRTL"),U =this._get (e,"showBu ttonPanel" ),B=this._ get(e,"hid eIfNoPrevN ext"),z=th is._get(e, "navigatio nAsDateFor mat"),q=th is._getNum berOfMonth s(e),G=thi s._get(e," showCurren tAtPos"),J =this._get (e,"stepMo nths"),Q=1 !==q[0]||1 !==q[1],V= this._dayl ightSaving Adjust(e.c urrentDay? new Date(e .currentYe ar,e.curre ntMonth,e. currentDay ):new Date (9999,9,9) ),$=this._ getMinMaxD ate(e,"min "),X=this. _getMinMax Date(e,"ma x"),Z=e.dr awMonth-G, et=e.drawY ear;if(0>Z &&(Z+=12,e t--),X)for (t=this._d aylightSav ingAdjust( new Date(X .getFullYe ar(),X.get Month()-q[ 0]*q[1]+1, X.getDate( ))),t=$&&$ >t?$:t;thi s._dayligh tSavingAdj ust(new Da te(et,Z,1) )>t;)Z--,0 >Z&&(Z=11, et--);for( e.drawMont h=Z,e.draw Year=et,i= this._get( e,"prevTex t"),i=z?th is.formatD ate(i,this ._daylight SavingAdju st(new Dat e(et,Z-J,1 )),this._g etFormatCo nfig(e)):i ,a=this._c anAdjustMo nth(e,-1,e t,Z)?"<a c lass='ui-d atepicker- prev ui-co rner-all'  data-handl er='prev'  data-event ='click' t itle='"+i+ "'><span c lass='ui-i con ui-ico n-circle-t riangle-"+ (L?"e":"w" )+"'>"+i+" </span></a >":B?"":"< a class='u i-datepick er-prev ui -corner-al l ui-state -disabled'  title='"+ i+"'><span  class='ui -icon ui-i con-circle -triangle- "+(L?"e":" w")+"'>"+i +"</span>< /a>",s=thi s._get(e," nextText") ,s=z?this. formatDate (s,this._d aylightSav ingAdjust( new Date(e t,Z+J,1)), this._getF ormatConfi g(e)):s,n= this._canA djustMonth (e,1,et,Z) ?"<a class ='ui-datep icker-next  ui-corner -all' data -handler=' next' data -event='cl ick' title ='"+s+"'>< span class ='ui-icon  ui-icon-ci rcle-trian gle-"+(L?" w":"e")+"' >"+s+"</sp an></a>":B ?"":"<a cl ass='ui-da tepicker-n ext ui-cor ner-all ui -state-dis abled' tit le='"+s+"' ><span cla ss='ui-ico n ui-icon- circle-tri angle-"+(L ?"w":"e")+ "'>"+s+"</ span></a>" ,r=this._g et(e,"curr entText"), o=this._ge t(e,"gotoC urrent")&& e.currentD ay?V:W,r=z ?this.form atDate(r,o ,this._get FormatConf ig(e)):r,u =e.inline? "":"<butto n type='bu tton' clas s='ui-date picker-clo se ui-stat e-default  ui-priorit y-primary  ui-corner- all' data- handler='h ide' data- event='cli ck'>"+this ._get(e,"c loseText") +"</button >",c=U?"<d iv class=' ui-datepic ker-button pane ui-wi dget-conte nt'>"+(L?u :"")+(this ._isInRang e(e,o)?"<b utton type ='button'  class='ui- datepicker -current u i-state-de fault ui-p riority-se condary ui -corner-al l' data-ha ndler='tod ay' data-e vent='clic k'>"+r+"</ button>":" ")+(L?"":u )+"</div>" :"",h=pars eInt(this. _get(e,"fi rstDay"),1 0),h=isNaN (h)?0:h,l= this._get( e,"showWee k"),d=this ._get(e,"d ayNames"), p=this._ge t(e,"dayNa mesMin"),g =this._get (e,"monthN ames"),m=t his._get(e ,"monthNam esShort"), f=this._ge t(e,"befor eShowDay") ,_=this._g et(e,"show OtherMonth s"),v=this ._get(e,"s electOther Months"),k =this._get DefaultDat e(e),y="", D=0;q[0]>D ;D++){for( w="",this. maxRows=4, M=0;q[1]>M ;M++){if(C =this._day lightSavin gAdjust(ne w Date(et, Z,e.select edDay)),x= " ui-corne r-all",I=" ",Q){if(I+ ="<div cla ss='ui-dat epicker-gr oup",q[1]> 1)switch(M ){case 0:I +=" ui-dat epicker-gr oup-first" ,x=" ui-co rner-"+(L? "right":"l eft");brea k;case q[1 ]-1:I+=" u i-datepick er-group-l ast",x=" u i-corner-" +(L?"left" :"right"); break;defa ult:I+=" u i-datepick er-group-m iddle",x=" "}I+="'>"} for(I+="<d iv class=' ui-datepic ker-header  ui-widget -header ui -helper-cl earfix"+x+ "'>"+(/all |left/.tes t(x)&&0=== D?L?n:a:"" )+(/all|ri ght/.test( x)&&0===D? L?a:n:"")+ this._gene rateMonthY earHeader( e,Z,et,$,X ,D>0||M>0, g,m)+"</di v><table c lass='ui-d atepicker- calendar'> <thead>"+" <tr>",N=l? "<th class ='ui-datep icker-week -col'>"+th is._get(e, "weekHeade r")+"</th> ":"",b=0;7 >b;b++)T=( b+h)%7,N+= "<th"+((b+ h+6)%7>=5? " class='u i-datepick er-week-en d'":"")+"> "+"<span t itle='"+d[ T]+"'>"+p[ T]+"</span ></th>";fo r(I+=N+"</ tr></thead ><tbody>", A=this._ge tDaysInMon th(et,Z),e t===e.sele ctedYear&& Z===e.sele ctedMonth& &(e.select edDay=Math .min(e.sel ectedDay,A )),E=(this ._getFirst DayOfMonth (et,Z)-h+7 )%7,S=Math .ceil((E+A )/7),Y=Q?t his.maxRow s>S?this.m axRows:S:S ,this.maxR ows=Y,F=th is._daylig htSavingAd just(new D ate(et,Z,1 -E)),P=0;Y >P;P++){fo r(I+="<tr> ",O=l?"<td  class='ui -datepicke r-week-col '>"+this._ get(e,"cal culateWeek ")(F)+"</t d>":"",b=0 ;7>b;b++)j =f?f.apply (e.input?e .input[0]: null,[F]): [!0,""],K= F.getMonth ()!==Z,R=K &&!v||!j[0 ]||$&&$>F| |X&&F>X,O+ ="<td clas s='"+((b+h +6)%7>=5?"  ui-datepi cker-week- end":"")+( K?" ui-dat epicker-ot her-month" :"")+(F.ge tTime()=== C.getTime( )&&Z===e.s electedMon th&&e._key Event||k.g etTime()== =F.getTime ()&&k.getT ime()===C. getTime()? " "+this._ dayOverCla ss:"")+(R? " "+this._ unselectab leClass+"  ui-state-d isabled":" ")+(K&&!_? "":" "+j[1 ]+(F.getTi me()===V.g etTime()?"  "+this._c urrentClas s:"")+(F.g etTime()== =W.getTime ()?" ui-da tepicker-t oday":"")) +"'"+(K&&! _||!j[2]?" ":" title= '"+j[2].re place(/'/g ,"&#39;")+ "'")+(R?"" :" data-ha ndler='sel ectDay' da ta-event=' click' dat a-month='" +F.getMont h()+"' dat a-year='"+ F.getFullY ear()+"'") +">"+(K&&! _?"&#xa0;" :R?"<span  class='ui- state-defa ult'>"+F.g etDate()+" </span>":" <a class=' ui-state-d efault"+(F .getTime() ===W.getTi me()?" ui- state-high light":"") +(F.getTim e()===V.ge tTime()?"  ui-state-a ctive":"") +(K?" ui-p riority-se condary":" ")+"' href ='#'>"+F.g etDate()+" </a>")+"</ td>",F.set Date(F.get Date()+1), F=this._da ylightSavi ngAdjust(F );I+=O+"</ tr>"}Z++,Z >11&&(Z=0, et++),I+=" </tbody></ table>"+(Q ?"</div>"+ (q[0]>0&&M ===q[1]-1? "<div clas s='ui-date picker-row -break'></ div>":""): ""),w+=I}y +=w}return  y+=c,e._k eyEvent=!1 ,y},_gener ateMonthYe arHeader:f unction(e, t,i,a,s,n, r,o){var u ,c,h,l,d,p ,g,m,f=thi s._get(e," changeMont h"),_=this ._get(e,"c hangeYear" ),v=this._ get(e,"sho wMonthAfte rYear"),k= "<div clas s='ui-date picker-tit le'>",y="" ;if(n||!f) y+="<span  class='ui- datepicker -month'>"+ r[t]+"</sp an>";else{ for(u=a&&a .getFullYe ar()===i,c =s&&s.getF ullYear()= ==i,y+="<s elect clas s='ui-date picker-mon th' data-h andler='se lectMonth'  data-even t='change' >",h=0;12> h;h++)(!u| |h>=a.getM onth())&&( !c||s.getM onth()>=h) &&(y+="<op tion value ='"+h+"'"+ (h===t?" s elected='s elected'": "")+">"+o[ h]+"</opti on>");y+=" </select>" }if(v||(k+ =y+(!n&&f& &_?"":"&#x a0;")),!e. yearshtml) if(e.years html="",n| |!_)k+="<s pan class= 'ui-datepi cker-year' >"+i+"</sp an>";else{ for(l=this ._get(e,"y earRange") .split(":" ),d=(new D ate).getFu llYear(),p =function( e){var t=e .match(/c[ +\-].*/)?i +parseInt( e.substrin g(1),10):e .match(/[+ \-].*/)?d+ parseInt(e ,10):parse Int(e,10);        
14   return isN aN(t)?d:t} ,g=p(l[0]) ,m=Math.ma x(g,p(l[1] ||"")),g=a ?Math.max( g,a.getFul lYear()):g ,m=s?Math. min(m,s.ge tFullYear( )):m,e.yea rshtml+="< select cla ss='ui-dat epicker-ye ar' data-h andler='se lectYear'  data-event ='change'> ";m>=g;g++ )e.yearsht ml+="<opti on value=' "+g+"'"+(g ===i?" sel ected='sel ected'":"" )+">"+g+"< /option>"; e.yearshtm l+="</sele ct>",k+=e. yearshtml, e.yearshtm l=null}ret urn k+=thi s._get(e," yearSuffix "),v&&(k+= (!n&&f&&_? "":"&#xa0; ")+y),k+=" </div>"},_ adjustInst Date:funct ion(e,t,i) {var a=e.d rawYear+(" Y"===i?t:0 ),s=e.draw Month+("M" ===i?t:0), n=Math.min (e.selecte dDay,this. _getDaysIn Month(a,s) )+("D"===i ?t:0),r=th is._restri ctMinMax(e ,this._day lightSavin gAdjust(ne w Date(a,s ,n)));e.se lectedDay= r.getDate( ),e.drawMo nth=e.sele ctedMonth= r.getMonth (),e.drawY ear=e.sele ctedYear=r .getFullYe ar(),("M"= ==i||"Y"== =i)&&this. _notifyCha nge(e)},_r estrictMin Max:functi on(e,t){va r i=this._ getMinMaxD ate(e,"min "),a=this. _getMinMax Date(e,"ma x"),s=i&&i >t?i:t;ret urn a&&s>a ?a:s},_not ifyChange: function(e ){var t=th is._get(e, "onChangeM onthYear") ;t&&t.appl y(e.input? e.input[0] :null,[e.s electedYea r,e.select edMonth+1, e])},_getN umberOfMon ths:functi on(e){var  t=this._ge t(e,"numbe rOfMonths" );return n ull==t?[1, 1]:"number "==typeof  t?[1,t]:t} ,_getMinMa xDate:func tion(e,t){ return thi s._determi neDate(e,t his._get(e ,t+"Date") ,null)},_g etDaysInMo nth:functi on(e,t){re turn 32-th is._daylig htSavingAd just(new D ate(e,t,32 )).getDate ()},_getFi rstDayOfMo nth:functi on(e,t){re turn new D ate(e,t,1) .getDay()} ,_canAdjus tMonth:fun ction(e,t, i,a){var s =this._get NumberOfMo nths(e),n= this._dayl ightSaving Adjust(new  Date(i,a+ (0>t?t:s[0 ]*s[1]),1) );return 0 >t&&n.setD ate(this._ getDaysInM onth(n.get FullYear() ,n.getMont h())),this ._isInRang e(e,n)},_i sInRange:f unction(e, t){var i,a ,s=this._g etMinMaxDa te(e,"min" ),n=this._ getMinMaxD ate(e,"max "),r=null, o=null,u=t his._get(e ,"yearRang e");return  u&&(i=u.s plit(":"), a=(new Dat e).getFull Year(),r=p arseInt(i[ 0],10),o=p arseInt(i[ 1],10),i[0 ].match(/[ +\-].*/)&& (r+=a),i[1 ].match(/[ +\-].*/)&& (o+=a)),(! s||t.getTi me()>=s.ge tTime())&& (!n||t.get Time()<=n. getTime()) &&(!r||t.g etFullYear ()>=r)&&(! o||o>=t.ge tFullYear( ))},_getFo rmatConfig :function( e){var t=t his._get(e ,"shortYea rCutoff"); return t=" string"!=t ypeof t?t: (new Date) .getFullYe ar()%100+p arseInt(t, 10),{short YearCutoff :t,dayName sShort:thi s._get(e," dayNamesSh ort"),dayN ames:this. _get(e,"da yNames"),m onthNamesS hort:this. _get(e,"mo nthNamesSh ort"),mont hNames:thi s._get(e," monthNames ")}},_form atDate:fun ction(e,t, i,a){t||(e .currentDa y=e.select edDay,e.cu rrentMonth =e.selecte dMonth,e.c urrentYear =e.selecte dYear);var  s=t?"obje ct"==typeo f t?t:this ._daylight SavingAdju st(new Dat e(a,i,t)): this._dayl ightSaving Adjust(new  Date(e.cu rrentYear, e.currentM onth,e.cur rentDay)); return thi s.formatDa te(this._g et(e,"date Format"),s ,this._get FormatConf ig(e))}}), e.fn.datep icker=func tion(t){if (!this.len gth)return  this;e.da tepicker.i nitialized ||(e(docum ent).mouse down(e.dat epicker._c heckExtern alClick),e .datepicke r.initiali zed=!0),0= ==e("#"+e. datepicker ._mainDivI d).length& &e("body") .append(e. datepicker .dpDiv);va r i=Array. prototype. slice.call (arguments ,1);return "string"!= typeof t|| "isDisable d"!==t&&"g etDate"!== t&&"widget "!==t?"opt ion"===t&& 2===argume nts.length &&"string" ==typeof a rguments[1 ]?e.datepi cker["_"+t +"Datepick er"].apply (e.datepic ker,[this[ 0]].concat (i)):this. each(funct ion(){"str ing"==type of t?e.dat epicker["_ "+t+"Datep icker"].ap ply(e.date picker,[th is].concat (i)):e.dat epicker._a ttachDatep icker(this ,t)}):e.da tepicker[" _"+t+"Date picker"].a pply(e.dat epicker,[t his[0]].co ncat(i))}, e.datepick er=new i,e .datepicke r.initiali zed=!1,e.d atepicker. uuid=(new  Date).getT ime(),e.da tepicker.v ersion="1. 10.4"})(jQ uery);