2016-05-23 20:26:56 +00:00
/*! Attendize - v0.6.0 - 2016-05-22 */ function changeQuestionType ( a ) { var a = $ ( a ) , b = a . find ( ":selected" ) ; "1" == b . data ( "has-options" ) ? $ ( "#question-options" ) . removeClass ( "hide" ) : $ ( "#question-options" ) . addClass ( "hide" ) } function addQuestionOption ( ) { var a = $ ( "#question-options tbody" ) , b = $ ( "#question-option-template" ) . html ( ) ; a . append ( b ) } function removeQuestionOption ( a ) { var a = $ ( a ) , b = a . parents ( "tbody" ) ; b . find ( "tr" ) . length > 1 ? a . parents ( "tr" ) . remove ( ) : alert ( "You must have at least one option." ) } function processFormErrors ( a , b ) { $ . each ( b , function ( b , c ) { var d = $ ( ":input[name=" + b + "]" , a ) ; "file" === d . prop ( "type" ) ? $ ( "#input-" + d . prop ( "name" ) ) . append ( '<div class="help-block error">' + c + "</div>" ) . parent ( ) . addClass ( "has-error" ) : d . after ( '<div class="help-block error">' + c + "</div>" ) . parent ( ) . addClass ( "has-error" ) } ) ; var c = a . find ( "input[type=submit]" ) ; toggleSubmitDisabled ( c ) } function toggleSubmitDisabled ( a ) { return a . hasClass ( "disabled" ) ? void a . attr ( "disabled" , ! 1 ) . removeClass ( "disabled" ) . val ( a . data ( "original-text" ) ) : void a . data ( "original-text" , a . val ( ) ) . attr ( "disabled" , ! 0 ) . addClass ( "disabled" ) . val ( "Working..." ) } function showMessage ( a ) { humane . log ( a , { timeout : 3500 } ) } function showHelp ( a ) { humane . log ( a , { timeout : 12e3 } ) } function hideMessage ( ) { humane . remove ( ) } if ( window . Modernizr = function ( a , b , c ) { function d ( a ) { t . cssText = a } function e ( a , b ) { return d ( x . join ( a + ";" ) + ( b || "" ) ) } function f ( a , b ) { return typeof a === b } function g ( a , b ) { return ! ! ~ ( "" + a ) . indexOf ( b ) } function h ( a , b ) { for ( var d in a ) { var e = a [ d ] ; if ( ! g ( e , "-" ) && t [ e ] !== c ) return "pfx" == b ? e : ! 0 } return ! 1 } function i ( a , b , d ) { for ( var e in a ) { var g = b [ a [ e ] ] ; if ( g !== c ) return d === ! 1 ? a [ e ] : f ( g , "function" ) ? g . bind ( d || b ) : g } return ! 1 } function j ( a , b , c ) { var d = a . charAt ( 0 ) . toUpperCase ( ) + a . slice ( 1 ) , e = ( a + " " + z . join ( d + " " ) + d ) . split ( " " ) ; return f ( b , "string" ) || f ( b , "undefined" ) ? h ( e , b ) : ( e = ( a + " " + A . join ( d + " " ) + d ) . split ( " " ) , i ( e , b , c ) ) } function k ( ) { o . input = function ( c ) { for ( var d = 0 , e = c . length ; e > d ; d ++ ) E [ c [ d ] ] = ! ! ( c [ d ] in u ) ; return E . list && ( E . list = ! ( ! b . createElement ( "datalist" ) || ! a . HTMLDataListElement ) ) , E } ( "autocomplete autofocus list placeholder max min multiple pattern required step" . split ( " " ) ) , o . inputtypes = function ( a ) { for ( var d , e , f , g = 0 , h = a . length ; h > g ; g ++ ) u . setAttribute ( "type" , e = a [ g ] ) , d = "text" !== u . type , d && ( u . value = v , u . style . cssText = "position:absolute;visibility:hidden;" , /^range$/ . test ( e ) && u . style . WebkitAppearance !== c ? ( q . appendChild ( u ) , f = b . defaultView , d = f . getComputedStyle && "textfield" !== f . getComputedStyle ( u , null ) . WebkitAppearance && 0 !== u . offsetHeight , q . removeChild ( u ) ) : /^(search|tel)$/ . test ( e ) || ( d = /^(url|email)$/ . test ( e ) ? u . checkValidity && u . checkValidity ( ) === ! 1 : u . value != v ) ) , D [ a [ g ] ] = ! ! d ; return D } ( "search tel url email datetime date month week time datetime-local number range color" . split ( " " ) ) } var l , m , n = "2.8.3" , o = { } , p = ! 0 , q = b . documentElement , r = "modernizr" , s = b . createElement ( r ) , t = s . style , u = b . createElement ( "input" ) , v = ":)" , w = { } . toString , x = " -webkit- -moz- -o- -ms- " . split ( " " ) , y = "Webkit Moz O ms" , z = y . split ( " " ) , A = y . toLowerCase ( ) . split ( " " ) , B = { svg : "http://www.w3.org/2000/svg" } , C = { } , D = { } , E = { } , F = [ ] , G = F . slice , H = function ( a , c , d , e ) { var f , g , h , i , j = b . createElement ( "div" ) , k = b . body , l = k || b . createElement ( "body" ) ; if ( parseInt ( d , 10 ) ) for ( ; d -- ; ) h = b . createElement ( "div" ) , h . id = e ? e [ d ] : r + ( d + 1 ) , j . appendChild ( h ) ; return f = [ "­" , '<style id="s' , r , '">' , a , "</style>" ] . join ( "" ) , j . id = r , ( k ? j : l ) . innerHTML += f , l . appendChild ( j ) , k || ( l . style . background = "" , l . style . overflow = "hidden" , i = q . style . overflow , q . style . overflow = "hidden" , q . appendChild ( l ) ) , g = c ( j , a ) , k ? j . parentNode . removeChild ( j ) : ( l . parentNode . removeChild ( l ) , q . style . overflow = i ) , ! ! g } , I = function ( b ) { var c = a . matchMedia || a . msMatchMedia ; if ( c ) return c ( b ) && c ( b ) . matches || ! 1 ; var d ; return H ( "@media " + b + " { #" + r + " { position: absolute; } }" , function ( b ) { d = "absolute" == ( a . getComputedStyle ? getComputedStyle ( b , null ) : b . currentStyle ) . position } ) , d } , J = function ( ) { function a ( a , e ) { e = e || b . createElement ( d [ a ] || "div" ) , a = "on" + a ; var g = a in e ; return g || ( e . setAttribute || ( e = b . createElement ( "div" ) ) , e . setAttribute && e . removeAttribute && ( e . setAttribute ( a , "" ) , g = f ( e [ a ] , "function" ) , f ( e [ a ] , "undefined" ) || ( e [ a ] = c ) , e . removeAttribute ( a ) ) ) , e = null , g } var d = { select : "input" , change : "input" , submit : "form" , reset : " fo
2016-05-21 16:16:01 +00:00
} ; a . support . transition && this . $element . hasClass ( "fade" ) ? this . $backdrop . one ( "bsTransitionEnd" , f ) . emulateTransitionEnd ( 150 ) : f ( ) } else b && b ( ) } , c . prototype . checkScrollbar = function ( ) { document . body . clientWidth >= window . innerWidth || ( this . scrollbarWidth = this . scrollbarWidth || this . measureScrollbar ( ) ) } , c . prototype . setScrollbar = function ( ) { var a = parseInt ( this . $body . css ( "padding-right" ) || 0 , 10 ) ; this . scrollbarWidth && this . $body . css ( "padding-right" , a + this . scrollbarWidth ) } , c . prototype . resetScrollbar = function ( ) { this . $body . css ( "padding-right" , "" ) } , c . prototype . measureScrollbar = function ( ) { var a = document . createElement ( "div" ) ; a . className = "modal-scrollbar-measure" , this . $body . append ( a ) ; var b = a . offsetWidth - a . clientWidth ; return this . $body [ 0 ] . removeChild ( a ) , b } ; var d = a . fn . modal ; a . fn . modal = b , a . fn . modal . Constructor = c , a . fn . modal . noConflict = function ( ) { return a . fn . modal = d , this } , a ( document ) . on ( "click.bs.modal.data-api" , '[data-toggle="modal"]' , function ( c ) { var d = a ( this ) , e = d . attr ( "href" ) , f = a ( d . attr ( "data-target" ) || e && e . replace ( /.*(?=#[^\s]+$)/ , "" ) ) , g = f . data ( "bs.modal" ) ? "toggle" : a . extend ( { remote : ! /#/ . test ( e ) && e } , f . data ( ) , d . data ( ) ) ; d . is ( "a" ) && c . preventDefault ( ) , f . one ( "show.bs.modal" , function ( a ) { a . isDefaultPrevented ( ) || f . one ( "hidden.bs.modal" , function ( ) { d . is ( ":visible" ) && d . trigger ( "focus" ) } ) } ) , b . call ( f , g , this ) } ) } ( jQuery ) , + function ( a ) { "use strict" ; function b ( b ) { return this . each ( function ( ) { var d = a ( this ) , e = d . data ( "bs.tooltip" ) , f = "object" == typeof b && b ; ( e || "destroy" != b ) && ( e || d . data ( "bs.tooltip" , e = new c ( this , f ) ) , "string" == typeof b && e [ b ] ( ) ) } ) } var c = function ( a , b ) { this . type = this . options = this . enabled = this . timeout = this . hoverState = this . $element = null , this . init ( "tooltip" , a , b ) } ; c . VERSION = "3.2.0" , c . DEFAULTS = { animation : ! 0 , placement : "top" , selector : ! 1 , template : '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>' , trigger : "hover focus" , title : "" , delay : 0 , html : ! 1 , container : ! 1 , viewport : { selector : "body" , padding : 0 } } , c . prototype . init = function ( b , c , d ) { this . enabled = ! 0 , this . type = b , this . $element = a ( c ) , this . options = this . getOptions ( d ) , this . $viewport = this . options . viewport && a ( this . options . viewport . selector || this . options . viewport ) ; for ( var e = this . options . trigger . split ( " " ) , f = e . length ; f -- ; ) { var g = e [ f ] ; if ( "click" == g ) this . $element . on ( "click." + this . type , this . options . selector , a . proxy ( this . toggle , this ) ) ; else if ( "manual" != g ) { var h = "hover" == g ? "mouseenter" : "focusin" , i = "hover" == g ? "mouseleave" : "focusout" ; this . $element . on ( h + "." + this . type , this . options . selector , a . proxy ( this . enter , this ) ) , this . $element . on ( i + "." + this . type , this . options . selector , a . proxy ( this . leave , this ) ) } } this . options . selector ? this . _options = a . extend ( { } , this . options , { trigger : "manual" , selector : "" } ) : this . fixTitle ( ) } , c . prototype . getDefaults = function ( ) { return c . DEFAULTS } , c . prototype . getOptions = function ( b ) { return b = a . extend ( { } , this . getDefaults ( ) , this . $element . data ( ) , b ) , b . delay && "number" == typeof b . delay && ( b . delay = { show : b . delay , hide : b . delay } ) , b } , c . prototype . getDelegateOptions = function ( ) { var b = { } , c = this . getDefaults ( ) ; return this . _options && a . each ( this . _options , function ( a , d ) { c [ a ] != d && ( b [ a ] = d ) } ) , b } , c . prototype . enter = function ( b ) { var c = b instanceof this . constructor ? b : a ( b . currentTarget ) . data ( "bs." + this . type ) ; return c || ( c = new this . constructor ( b . currentTarget , this . getDelegateOptions ( ) ) , a ( b . currentTarget ) . data ( "bs." + this . type , c ) ) , clearTimeout ( c . timeout ) , c . hoverState = "in" , c . options . delay && c . options . delay . show ? void ( c . timeout = setTimeout ( function ( ) { "in" == c . hoverState && c . show ( ) } , c . options . delay . show ) ) : c . show ( ) } , c . prototype . leave = function ( b ) { var c = b instanceof this . constructor ? b : a ( b . currentTarget ) . data ( "bs." + this . type ) ; return c || ( c = new this . constructor ( b . currentTarget , this . getDelegateOptions ( ) ) , a ( b . currentTarget ) . data ( "bs." + this . type , c ) ) , clearTimeout ( c . timeout ) , c . hoverState = "out" , c . options . delay && c . options . delay . hide ? void ( c . timeout = setTimeout ( function ( ) { "out" == c . hoverState && c . hide ( ) } , c . options . delay . hide ) ) : c . hide ( ) } , c . prototype . show = function ( ) { var b = a . Event ( "show.bs." + this . type ) ; if ( this . hasContent ( ) && this . enabled ) { this . $element . trigger ( b ) ; var c = a . contains ( document . documentElement , this . $element [ 0 ] ) ; if ( b . isDefaultPrevented ( )
ms : "MS" } ; for ( var c in b ) c + "Transition" in a . style && ( this . vendorPrefix = b [ c ] , this . transSupport = ! 0 ) } } ; e . _checkTransition ( ) ; var f = function ( a ) { a || ( a = { } ) , this . queue = [ ] , this . baseCls = a . baseCls || "humane" , this . addnCls = a . addnCls || "" , this . timeout = "timeout" in a ? a . timeout : 2500 , this . waitForMove = a . waitForMove || ! 1 , this . clickToClose = a . clickToClose || ! 1 , this . timeoutAfterMove = a . timeoutAfterMove || ! 1 , this . container = a . container ; try { this . _setupEl ( ) } catch ( b ) { e . on ( c , "load" , e . bind ( this . _setupEl , this ) ) } } ; return f . prototype = { constructor : f , _setupEl : function ( ) { var a = d . createElement ( "div" ) ; if ( a . style . display = "none" , ! this . container ) { if ( ! d . body ) throw "document.body is null" ; this . container = d . body } this . container . appendChild ( a ) , this . el = a , this . removeEvent = e . bind ( function ( ) { var a = e . config ( this . currentMsg . timeoutAfterMove , this . timeoutAfterMove ) ; a ? setTimeout ( e . bind ( this . remove , this ) , a ) : this . remove ( ) } , this ) , this . transEvent = e . bind ( this . _afterAnimation , this ) , this . _run ( ) } , _afterTimeout : function ( ) { e . config ( this . currentMsg . waitForMove , this . waitForMove ) ? this . removeEventsSet || ( e . on ( d . body , "mousemove" , this . removeEvent ) , e . on ( d . body , "click" , this . removeEvent ) , e . on ( d . body , "keypress" , this . removeEvent ) , e . on ( d . body , "touchstart" , this . removeEvent ) , this . removeEventsSet = ! 0 ) : this . remove ( ) } , _run : function ( ) { if ( ! this . _animating && this . queue . length && this . el ) { this . _animating = ! 0 , this . currentTimer && ( clearTimeout ( this . currentTimer ) , this . currentTimer = null ) ; var a = this . queue . shift ( ) , b = e . config ( a . clickToClose , this . clickToClose ) ; b && ( e . on ( this . el , "click" , this . removeEvent ) , e . on ( this . el , "touchstart" , this . removeEvent ) ) ; var c = e . config ( a . timeout , this . timeout ) ; c > 0 && ( this . currentTimer = setTimeout ( e . bind ( this . _afterTimeout , this ) , c ) ) , e . isArray ( a . html ) && ( a . html = "<ul><li>" + a . html . join ( "<li>" ) + "</ul>" ) , this . el . innerHTML = a . html , this . currentMsg = a , this . el . className = this . baseCls , e . transSupport ? ( this . el . style . display = "block" , setTimeout ( e . bind ( this . _showMsg , this ) , 50 ) ) : this . _showMsg ( ) } } , _setOpacity : function ( a ) { if ( e . useFilter ) try { this . el . filters . item ( "DXImageTransform.Microsoft.Alpha" ) . Opacity = 100 * a } catch ( b ) { } else this . el . style . opacity = String ( a ) } , _showMsg : function ( ) { var a = e . config ( this . currentMsg . addnCls , this . addnCls ) ; if ( e . transSupport ) this . el . className = this . baseCls + " " + a + " " + this . baseCls + "-animate" ; else { var b = 0 ; this . el . className = this . baseCls + " " + a + " " + this . baseCls + "-js-animate" , this . _setOpacity ( 0 ) , this . el . style . display = "block" ; var c = this , d = setInterval ( function ( ) { 1 > b ? ( b += . 1 , b > 1 && ( b = 1 ) , c . _setOpacity ( b ) ) : clearInterval ( d ) } , 30 ) } } , _hideMsg : function ( ) { var a = e . config ( this . currentMsg . addnCls , this . addnCls ) ; if ( e . transSupport ) this . el . className = this . baseCls + " " + a , e . on ( this . el , e . vendorPrefix ? e . vendorPrefix + "TransitionEnd" : "transitionend" , this . transEvent ) ; else var b = 1 , c = this , d = setInterval ( function ( ) { b > 0 ? ( b -= . 1 , 0 > b && ( b = 0 ) , c . _setOpacity ( b ) ) : ( c . el . className = c . baseCls + " " + a , clearInterval ( d ) , c . _afterAnimation ( ) ) } , 30 ) } , _afterAnimation : function ( ) { e . transSupport && e . off ( this . el , e . vendorPrefix ? e . vendorPrefix + "TransitionEnd" : "transitionend" , this . transEvent ) , this . currentMsg . cb && this . currentMsg . cb ( ) , this . el . style . display = "none" , this . _animating = ! 1 , this . _run ( ) } , remove : function ( a ) { var b = "function" == typeof a ? a : null ; e . off ( d . body , "mousemove" , this . removeEvent ) , e . off ( d . body , "click" , this . removeEvent ) , e . off ( d . body , "keypress" , this . removeEvent ) , e . off ( d . body , "touchstart" , this . removeEvent ) , e . off ( this . el , "click" , this . removeEvent ) , e . off ( this . el , "touchstart" , this . removeEvent ) , this . removeEventsSet = ! 1 , b && this . currentMsg && ( this . currentMsg . cb = b ) , this . _animating ? this . _hideMsg ( ) : b && b ( ) } , log : function ( a , b , c , d ) { var e = { } ; if ( d ) for ( var f in d ) e [ f ] = d [ f ] ; if ( "function" == typeof b ) c = b ; else if ( b ) for ( var f in b ) e [ f ] = b [ f ] ; return e . html = a , c && ( e . cb = c ) , this . queue . push ( e ) , this . _run ( ) , this } , spawn : function ( a ) { var b = this ; return function ( c , d , e ) { return b . log . call ( b , c , d , e , a ) , b } } , create : function ( a ) { return new f ( a ) } } , new f } ) , + function ( a , b , c ) { "use strict" ; var d = { calc : ! 1 } ; b . fn . rrssb = function ( a ) { var d = b . extend ( { description : c , emailAddress : c , emailBody : c , emailSubject : c , image : c , title : c , url : c } , a ) ; d . emailSubject = d . emailSubject || d . title , d . emailBody = d . emailBody || ( d . description ? d . description : "" ) + ( d . url ? " \
h = g . oData . bArrMatchFormat [ 0 ] || g . oData . bArrMatchFormat [ 1 ] || g . oData . bArrMatchFormat [ 2 ] || g . oData . bArrMatchFormat [ 3 ] || g . oData . bArrMatchFormat [ 4 ] || g . oData . bArrMatchFormat [ 5 ] || g . oData . bArrMatchFormat [ 6 ] || g . oData . bArrMatchFormat [ 7 ] , o = d ? h ? m . hh + g . settings . timeSeparator + m . mm + g . settings . timeSeparator + m . ss + g . settings . timeMeridiemSeparator + m . ME : m . hh + g . settings . timeSeparator + m . mm + g . settings . timeMeridiemSeparator + m . ME : h ? m . HH + g . settings . timeSeparator + m . mm + g . settings . timeSeparator + m . ss : m . HH + g . settings . timeSeparator + m . mm , "" !== n && "" !== o && ( j = n + g . settings . dateTimeSeparator + o ) ) , g . _setMatchFormat ( p ) ) , j } , _clearButtonAction : function ( ) { var a = this ; null !== a . oData . oInputElement && a . _setValueOfElement ( "" ) , a . _hidePicker ( "" ) } , _setOutputOnIncrementOrDecrement : function ( ) { var b = this ; a . cf . _isValid ( b . oData . oInputElement ) && b . settings . setValueInTextboxOnEveryClick && b . _setValueOfElement ( b . _setOutput ( ) ) } , _showPicker : function ( b ) { var c = this ; if ( null === c . oData . oInputElement ) { c . oData . oInputElement = b , c . oData . iTabIndex = parseInt ( a ( b ) . attr ( "tabIndex" ) ) ; var d = a ( b ) . data ( "field" ) || "" , e = a ( b ) . data ( "min" ) || "" , f = a ( b ) . data ( "max" ) || "" , g = a ( b ) . data ( "format" ) || "" , h = a ( b ) . data ( "view" ) || "" , i = a ( b ) . data ( "startend" ) || "" , j = a ( b ) . data ( "startendelem" ) || "" , k = c . _getValueOfElement ( b ) || "" ; if ( "" !== h && ( a . cf . _compare ( h , "Popup" ) ? c . setIsPopup ( ! 0 ) : c . setIsPopup ( ! 1 ) ) , ! c . settings . isPopup ) { c . _createPicker ( ) ; var l = a ( c . oData . oInputElement ) . offset ( ) . top + a ( c . oData . oInputElement ) . outerHeight ( ) , m = a ( c . oData . oInputElement ) . offset ( ) . left , n = a ( c . oData . oInputElement ) . outerWidth ( ) ; a ( c . element ) . css ( { position : "absolute" , top : l , left : m , width : n , height : "auto" } ) } c . settings . beforeShow && c . settings . beforeShow . call ( c , b ) , d = a . cf . _isValid ( d ) ? d : c . settings . mode , c . settings . mode = d , a . cf . _isValid ( g ) || ( a . cf . _compare ( d , "date" ) ? g = c . settings . dateFormat : a . cf . _compare ( d , "time" ) ? g = c . settings . timeFormat : a . cf . _compare ( d , "datetime" ) && ( g = c . settings . dateTimeFormat ) ) , c . _matchFormat ( d , g ) , c . oData . dMinValue = null , c . oData . dMaxValue = null , c . oData . bIs12Hour = ! 1 ; var o , p , q , r , s , t , u , v ; c . oData . bDateMode ? ( o = e || c . settings . minDate , p = f || c . settings . maxDate , c . oData . sDateFormat = g , a . cf . _isValid ( o ) && ( c . oData . dMinValue = c . _parseDate ( o ) ) , a . cf . _isValid ( p ) && ( c . oData . dMaxValue = c . _parseDate ( p ) ) , "" !== i && ( a . cf . _compare ( i , "start" ) || a . cf . _compare ( i , "end" ) ) && "" !== j && a ( j ) . length >= 1 && ( q = c . _getValueOfElement ( a ( j ) ) , "" !== q && ( r = c . settings . parseDateTimeString ? c . settings . parseDateTimeString . call ( c , q , d , a ( j ) ) : c . _parseDate ( q ) , a . cf . _compare ( i , "start" ) ? a . cf . _isValid ( p ) ? c . _compareDates ( r , c . oData . dMaxValue ) < 0 && ( c . oData . dMaxValue = new Date ( r ) ) : c . oData . dMaxValue = new Date ( r ) : a . cf . _compare ( i , "end" ) && ( a . cf . _isValid ( o ) ? c . _compareDates ( r , c . oData . dMinValue ) > 0 && ( c . oData . dMinValue = new Date ( r ) ) : c . oData . dMinValue = new Date ( r ) ) ) ) , c . settings . parseDateTimeString ? c . oData . dCurrentDate = c . settings . parseDateTimeString . call ( c , k , d , a ( b ) ) : c . oData . dCurrentDate = c . _parseDate ( k ) , c . oData . dCurrentDate . setHours ( 0 ) , c . oData . dCurrentDate . setMinutes ( 0 ) , c . oData . dCurrentDate . setSeconds ( 0 ) ) : c . oData . bTimeMode ? ( o = e || c . settings . minTime , p = f || c . settings . maxTime , c . oData . sTimeFormat = g , c . oData . bIs12Hour = c . getIs12Hour ( ) , a . cf . _isValid ( o ) && ( c . oData . dMinValue = c . _parseTime ( o ) ) , a . cf . _isValid ( p ) && ( c . oData . dMaxValue = c . _parseTime ( p ) ) , "" !== i && ( a . cf . _compare ( i , "start" ) || a . cf . _compare ( i , "end" ) ) && "" !== j && a ( j ) . length >= 1 && ( s = c . _getValueOfElement ( a ( j ) ) , "" !== s && ( c . settings . parseDateTimeString ? r = c . settings . parseDateTimeString . call ( c , s , d , a ( j ) ) : t = c . _parseTime ( s ) , a . cf . _compare ( i , "start" ) ? ( t . setMinutes ( t . getMinutes ( ) - 1 ) , a . cf . _isValid ( p ) ? 2 === c . _compareTime ( t , c . oData . dMaxValue ) && ( c . oData . dMaxValue = new Date ( t ) ) : c . oData . dMaxValue = new Date ( t ) ) : a . cf . _compare ( i , "end" ) && ( t . setMinutes ( t . getMinutes ( ) + 1 ) , a . cf . _isValid ( o ) ? 3 === c . _compareTime ( t , c . oData . dMinValue ) && ( c . oData . dMinValue = new Date ( t ) ) : c . oData . dMinValue = new Date ( t ) ) ) ) , c . settings . parseDateTimeString ? c . oData . dCurrentDate = c . settings . parseDateTimeString . call ( c , k , d , a ( b ) ) : c . oData . dCurrentDate = c . _parseTime ( k ) ) : c . oData . bDateTimeMode && ( o = e || c . settings . minDateTime , p = f || c . settings . maxDateTime , c . oData . sDateTimeFormat = g , c . oData . bIs12Hour = c . getIs12Hour ( ) , a . cf . _isValid ( o ) && ( c . oData . dMinValue = c . _parseDateTime ( o ) ) , a . cf . _isValid ( p ) && ( c . oDat
( d < b . oData . dMinValue . getHours ( ) || d === b . oData . dMinValue . getHours ( ) && e < b . oData . dMinValue . getMinutes ( ) ) && a ( b . element ) . find ( ".meridiem .dtpicker-compButton" ) . removeClass ( "dtpicker-compButtonEnable" ) . addClass ( "dtpicker-compButtonDisable" ) ) : c . getTime ( ) < b . oData . dMinValue . getTime ( ) && a ( b . element ) . find ( ".meridiem .dtpicker-compButton" ) . removeClass ( "dtpicker-compButtonEnable" ) . addClass ( "dtpicker-compButtonDisable" ) ) ) } } , setIsPopup : function ( b ) { var c = this ; if ( c . settings . isPopup = b , "none" !== a ( c . element ) . css ( "display" ) && c . _hidePicker ( 0 ) , c . settings . isPopup ) a ( c . element ) . addClass ( "dtpicker-mobile" ) , a ( c . element ) . css ( { position : "fixed" , top : 0 , left : 0 , width : "100%" , height : "100%" } ) ; else if ( a ( c . element ) . removeClass ( "dtpicker-mobile" ) , null !== c . oData . oInputElement ) { var d = a ( c . oData . oInputElement ) . offset ( ) . top + a ( c . oData . oInputElement ) . outerHeight ( ) , e = a ( c . oData . oInputElement ) . offset ( ) . left , f = a ( c . oData . oInputElement ) . outerWidth ( ) ; a ( c . element ) . css ( { position : "absolute" , top : d , left : e , width : f , height : "auto" } ) } } , _compareDates : function ( a , b ) { a = new Date ( a . getDate ( ) , a . getMonth ( ) , a . getFullYear ( ) , 0 , 0 , 0 , 0 ) , a = new Date ( a . getDate ( ) , a . getMonth ( ) , a . getFullYear ( ) , 0 , 0 , 0 , 0 ) ; var c = ( a . getTime ( ) - b . getTime ( ) ) / 864e5 ; return 0 === c ? c : c / Math . abs ( c ) } , _compareTime : function ( a , b ) { var c = 0 ; return a . getHours ( ) === b . getHours ( ) && a . getMinutes ( ) === b . getMinutes ( ) ? c = 1 : a . getHours ( ) < b . getHours ( ) ? c = 2 : a . getHours ( ) > b . getHours ( ) ? c = 3 : a . getHours ( ) === b . getHours ( ) && ( a . getMinutes ( ) < b . getMinutes ( ) ? c = 2 : a . getMinutes ( ) > b . getMinutes ( ) && ( c = 3 ) ) , c } , _compareDateTime : function ( a , b ) { var c = ( a . getTime ( ) - b . getTime ( ) ) / 6e4 ; return 0 === c ? c : c / Math . abs ( c ) } , _determineMeridiemFromHourAndMinutes : function ( a , b ) { return a > 12 ? "PM" : 12 === a && b >= 0 ? "PM" : "AM" } , setLanguage : function ( b ) { var c = this ; return c . settings = a . extend ( { } , a . DateTimePicker . defaults , a . DateTimePicker . i18n [ b ] , c . options ) , c . _setDateFormatArray ( ) , c . _setTimeFormatArray ( ) , c . _setDateTimeFormatArray ( ) , c } } } ) , ! function ( a ) { "function" == typeof define && define . amd ? define ( [ "jquery" ] , a ) : "object" == typeof exports ? module . exports = a ( require ( "jquery" ) ) : a ( jQuery ) } ( function ( a ) { "use strict" ; function b ( b , c ) { var d , e , f , g , h , j = a ( '<div class="minicolors" />' ) , k = a . minicolors . defaults ; if ( ! b . data ( "minicolors-initialized" ) ) { if ( c = a . extend ( ! 0 , { } , k , c ) , j . addClass ( "minicolors-theme-" + c . theme ) . toggleClass ( "minicolors-with-opacity" , c . opacity ) . toggleClass ( "minicolors-no-data-uris" , c . dataUris !== ! 0 ) , void 0 !== c . position && a . each ( c . position . split ( " " ) , function ( ) { j . addClass ( "minicolors-position-" + this ) } ) , d = "rgb" === c . format ? c . opacity ? "25" : "20" : c . keywords ? "11" : "7" , b . addClass ( "minicolors-input" ) . data ( "minicolors-initialized" , ! 1 ) . data ( "minicolors-settings" , c ) . prop ( "size" , d ) . wrap ( j ) . after ( '<div class="minicolors-panel minicolors-slider-' + c . control + '"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>' ) , c . inline || ( b . after ( '<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"></span></span>' ) , b . next ( ".minicolors-input-swatch" ) . on ( "click" , function ( a ) { a . preventDefault ( ) , b . focus ( ) } ) ) , g = b . parent ( ) . find ( ".minicolors-panel" ) , g . on ( "selectstart" , function ( ) { return ! 1 } ) . end ( ) , c . swatches && 0 !== c . swatches . length ) for ( c . swatches . length > 7 && ( c . swatches . length = 7 ) , g . addClass ( "minicolors-with-swatches" ) , e = a ( '<ul class="minicolors-swatches"></ul>' ) . appendTo ( g ) , h = 0 ; h < c . swatches . length ; ++ h ) f = c . swatches [ h ] , f = r ( f ) ? o ( f , ! 0 ) : z ( n ( f , ! 0 ) ) , a ( '<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>' ) . appendTo ( e ) . data ( "swatch-color" , c . swatches [ h ] ) . find ( ".minicolors-swatch-color" ) . css ( { backgroundColor : v ( f ) , opacity : f . a } ) , c . swatches [ h ] = f ; c . inline && b . parent ( ) . addClass ( "minicolors-inline" ) , i ( b , ! 1 ) , b . data ( "minicolors-initialized" , ! 0 ) } } function c ( a ) { var b = a . parent ( ) ; a . removeData ( "minicolors-initialized" ) . removeData ( "minicolors-settings" ) . removeProp ( "size" ) . removeClass ( "minicolors-input" ) , b . b