/* b04e1ae4-b5cb-47e5-baaa-f1f05be774bd 破解*/ (function(a,t){function j(a){for(var b in a)if(O[a[b]]!==t)return!0;return!1}function u(b,c,d){var g=b;if("object"===typeof c)return b.each(function(){n[this.id]&&n[this.id].destroy();new a.mobiscroll.classes[c.component||"Scroller"](this,c)});"string"===typeof c&&b.each(function(){var a;if((a=n[this.id])&&a[c])if(a=a[c].apply(this,Array.prototype.slice.call(d,1)),a!==t)return g=a,!1});return g}function f(a){if(d.tapped&&!a.tap&&!("TEXTAREA"==a.target.nodeName&&"mousedown"==a.type))return a.stopPropagation(), a.preventDefault(),!1}var d,y=+new Date,n={},m=a.extend,O=document.createElement("modernizr").style,b=j(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]),c=j(["flex","msFlex","WebkitBoxDirection"]),da=function(){var a=["Webkit","Moz","O","ms"],b;for(b in a)if(j([a[b]+"Transform"]))return"-"+a[b].toLowerCase()+"-";return""}(),Q=da.replace(/^\-/,"").replace(/\-$/,"").replace("moz","Moz");a.fn.mobiscroll=function(b){m(this,a.mobiscroll.components);return u(this, b,arguments)};d=a.mobiscroll=a.mobiscroll||{version:"2.17.1",running:1,util:{prefix:da,jsPrefix:Q,has3d:b,hasFlex:c,isOldAndroid:/android [1-3]/i.test(navigator.userAgent),preventClick:function(){d.tapped++;setTimeout(function(){d.tapped--},500)},testTouch:function(b,c){if("touchstart"==b.type)a(c).attr("data-touch","1");else if(a(c).attr("data-touch"))return a(c).removeAttr("data-touch"),!1;return!0},objectToArray:function(a){var b=[],c;for(c in a)b.push(a[c]);return b},arrayToObject:function(a){var b={}, c;if(a)for(c=0;c').insertAfter(b).append(b);q&&g.find(".mbsc-input-wrap").append(q);k&&(-1!==k.indexOf("{")?d=JSON.parse(k):d[f]=k,m(d,c),g.addClass((d.right?"mbsc-ic-right ":"")+(d.left?" mbsc-ic-left":"")).find(".mbsc-input-wrap").append(d.left?'':"").append(d.right?'':""))},constrain:function(a,b,c){return Math.max(b,Math.min(a,c))},vibrate:function(a){"vibrate"in navigator&&navigator.vibrate(a||50)}},tapped:0,autoTheme:"mobiscroll",presets:{scroller:{},numpad:{},listview:{},menustrip:{}},themes:{form:{},frame:{},listview:{},menustrip:{},progress:{}},i18n:{},instances:n,classes:{},components:{},defaults:{context:"body",mousewheel:!0,vibrate:!0}, setDefaults:function(a){m(this.defaults,a)},presetShort:function(a,b,c){this.components[a]=function(g){return u(this,m(g,{component:b,preset:!1===c?t:a}),arguments)}}};a.mobiscroll.classes.Base=function(b,c){var d,g,q,f,k,i,j=a.mobiscroll,u=j.util,r=u.getCoord,h=this;h.settings={};h._presetLoad=function(){};h._init=function(a){q=h.settings;m(c,a);h._hasDef&&(i=j.defaults);m(q,h._defaults,i,c);if(h._hasTheme){k=q.theme;if("auto"==k||!k)k=j.autoTheme;"default"==k&&(k="mobiscroll");c.theme=k;f=j.themes[h._class]? j.themes[h._class][k]:{}}h._hasLang&&(d=j.i18n[q.lang]);h._hasTheme&&h.trigger("onThemeLoad",[d,c]);m(q,f,d,i,c);if(h._hasPreset&&(h._presetLoad(q),g=j.presets[h._class][q.preset]))g=g.call(b,h),m(q,g,c)};h._destroy=function(){h.trigger("onDestroy",[]);delete n[b.id];h=null};h.tap=function(b,c,g){function i(b){if(!e&&(g&&b.preventDefault(),e=this,m=r(b,"X"),n=r(b,"Y"),j=!1,"pointerdown"==b.type))a(document).on("pointermove",d).on("pointerup",k)}function d(a){if(e&&!j&&9w?D.addClass("dw-liq"):D.removeClass("dw-liq"));!l._isFullScreen&&/modal|bubble/.test(x.display)&&(R.width(""),a(".mbsc-w-p",D).each(function(){g=a(this).outerWidth(!0);v+=g;m=g>m?g:m}),g=v>w?m:v,R.width(g+1).css("white-space",v>w?"":"nowrap"));K=e.outerWidth();P=e.outerHeight(!0);Z=P<=n&&K<=w;(l.scrollLock=Z)?ba.addClass("mbsc-fr-lock"):ba.removeClass("mbsc-fr-lock");"modal"==x.display?(d=Math.max(0,d+(w-K)/2),s=c+(n-P)/2):"bubble"== x.display?(f=fa!==w,q=a(".dw-arrw-i",D),s=i.offset(),k=Math.abs(ba.offset().top-s.top),X=Math.abs(ba.offset().left-s.left),J=i.outerWidth(),i=i.outerHeight(),d=b(X-(e.outerWidth(!0)-J)/2,d+3,d+w-K-3),s=k-P,sc+n?(e.removeClass("dw-bubble-top").addClass("dw-bubble-bottom"),s=k+i):e.removeClass("dw-bubble-bottom").addClass("dw-bubble-top"),q=q.outerWidth(),J=b(X+J/2-(d+(K-q)/2),0,q),a(".dw-arr",D).css({left:J})):"top"==x.display?s=c:"bottom"==x.display&&(s=c+n-P);s=0>s?0:s;h.top=s;h.left=d;e.css(h); W.height(0);h=Math.max(s+P,"body"==x.context?a(j).height():ba[0].scrollHeight);W.css({height:h});if(f&&(s+P>c+n||k>c+n))H=!0,setTimeout(function(){H=false},300),E.scrollTop(Math.min(k,s+P-n,h-n));fa=w;la=n;a(".mbsc-comp",D).each(function(){var b=a(this).mobiscroll("getInst");b!==l&&b.position&&b.position()})}};l.attachShow=function(a,b){ia.push({readOnly:a.prop("readonly"),el:a});if("inline"!==x.display){if(ha&&a.is("input"))a.prop("readonly",!0).on("mousedown.dw",function(a){a.preventDefault()}); if(x.showOnFocus)a.on("focus.dw",function(){d||h(b,a)});x.showOnTap&&(a.on("keydown.dw",function(c){if(32==c.keyCode||13==c.keyCode)c.preventDefault(),c.stopPropagation(),h(b,a)}),l.tap(a,function(){h(b,a)}))}};l.select=function(){S?l.hide(!1,"set",!1,A):A()};l.cancel=function(){S?l.hide(!1,"cancel",!1,B):A()};l.clear=function(){T("onClear",[D]);S&&l._isVisible&&!l.live?l.hide(!1,"clear",!1,ja):ja()};l.enable=function(){x.disabled=!1;l._isInput&&M.prop("disabled",!1)};l.disable=function(){x.disabled= !0;l._isInput&&M.prop("disabled",!0)};l.show=function(b,d){var g;if(!x.disabled&&!l._isVisible){l._readValue();if(!1===T("onBeforeShow",[]))return!1;Y=da?!1:x.animate;!1!==Y&&("top"==x.display&&(Y="slidedown"),"bottom"==x.display&&(Y="slideup"));g='
'+(S?'
':"")+"'+("bubble"===x.display?'
':"")+'
'+(x.headerText?'
'+(c(x.headerText)?x.headerText:"")+"
":"")+'
';g+=l._generateContent();g+="
";z&&(g+='
',a.each(ga,function(a,b){b=c(b)?l.buttons[b]:b;if(b.handler=== "set")b.parentClass="dwb-s";if(b.handler==="cancel")b.parentClass="dwb-c";g=g+("
'+(b.text||"")+"
")}),g+="
");g+="
";D=a(g);W=a(".dw-persp",D);w=a(".dwo",D);R=a(".dwwr",D);v=a(".dwv",D);e=a(".dw",D);ea=a(".dw-aria",D);l._markup= D;l._header=v;l._isVisible=!0;$="orientationchange resize";l._markupReady(D);T("onMarkupReady",[D]);if(S){a(t).on("keydown",k);if(x.scrollLock)D.on("touchmove mousewheel wheel",function(a){Z&&a.preventDefault()});"Moz"!==m&&a("input,select,button",ba).each(function(){this.disabled||a(this).addClass("dwtd").prop("disabled",true)});y.activeInstance&&y.activeInstance.hide();$+=" scroll";y.activeInstance=l;D.appendTo(ba);if(x.focusTrap)E.on("focusin",F);O&&Y&&!b&&D.addClass("dw-in dw-trans").on("webkitAnimationEnd animationend", function(){D.off("webkitAnimationEnd animationend").removeClass("dw-in dw-trans").find(".dw").removeClass("dw-"+Y);d||e.focus();l.ariaMessage(x.ariaMessage)}).find(".dw").addClass("dw-"+Y)}else M.is("div")&&!l._hasContent?M.html(D):D.insertAfter(M);l._markupInserted(D);T("onMarkupInserted",[D]);l.position();E.on($,N);D.on("selectstart mousedown",ca).on("click",".dwb-e",ca).on("keydown",".dwb-e",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();a(this).click()}}).on("keydown",function(b){if(b.keyCode== 32)b.preventDefault();else if(b.keyCode==9&&S&&x.focusTrap){var c=D.find('[tabindex="0"]').filter(function(){return this.offsetWidth>0||this.offsetHeight>0}),J=c.index(a(":focus",D)),e=c.length-1,g=0;if(b.shiftKey){e=0;g=-1}if(J===e){c.eq(g).focus();b.preventDefault()}}});a("input,select,textarea",D).on("selectstart mousedown",function(a){a.stopPropagation()}).on("keydown",function(a){a.keyCode==32&&a.stopPropagation()});a.each(ga,function(b,e){l.tap(a(".dwb"+b,D),function(a){e=c(e)?l.buttons[e]: e;(c(e.handler)?l.handlers[e.handler]:e.handler).call(this,a,l)},true)});x.closeOnOverlay&&l.tap(w,function(){l.cancel()});S&&!Y&&(d||e.focus(),l.ariaMessage(x.ariaMessage));D.on("touchstart mousedown pointerdown",".dwb-e",q).on("touchend",".dwb-e",aa);l._attachEvents(D);T("onShow",[D,l._tempValue])}};l.hide=function(b,c,e,g){if(!l._isVisible||!e&&!l._isValid&&"set"==c||!e&&!1===T("onBeforeClose",[l._tempValue,c]))return!1;D&&("Moz"!==m&&a(".dwtd",ba).each(function(){a(this).prop("disabled",!1).removeClass("dwtd")}), O&&S&&Y&&!b&&!D.hasClass("dw-trans")?D.addClass("dw-out dw-trans").on("webkitAnimationEnd animationend",function(){i(b)}).find(".dw").addClass("dw-"+Y):i(b),E.off($,N).off("focusin",F));S&&(ba.removeClass("mbsc-fr-lock"),a(t).off("keydown",k),delete y.activeInstance);g&&g();T("onClosed",[l._value])};l.ariaMessage=function(a){ea.html("");setTimeout(function(){ea.html(a)},100)};l.isVisible=function(){return l._isVisible};l.setVal=Q;l.getVal=Q;l._generateContent=Q;l._attachEvents=Q;l._readValue=Q;l._fillValue= Q;l._markupReady=Q;l._markupInserted=Q;l._markupRemove=Q;l._processSettings=Q;l._presetLoad=function(a){a.buttons=a.buttons||("inline"!==a.display?["set","cancel"]:[]);a.headerText=a.headerText===u?"inline"!==a.display?"{value}":!1:a.headerText};l.destroy=function(){l.hide(!0,!1,!0);a.each(ia,function(a,b){b.el.off(".dw").prop("readonly",b.readOnly)});l._destroy()};l.init=function(b){b.onClose&&(b.onBeforeClose=b.onClose);l._init(b);l._isLiquid="liquid"===(x.layout||(/top|bottom/.test(x.display)? "liquid":""));l._processSettings();M.off(".dw");ga=x.buttons||[];S="inline"!==x.display;ha=x.showOnFocus||x.showOnTap;l._window=E=a("body"==x.context?t:x.context);l._context=ba=a(x.context);l.live=!0;a.each(ga,function(a,b){if(b=="ok"||b=="set"||b.handler=="set")return l.live=false});l.buttons.set={text:x.setText,handler:"set"};l.buttons.cancel={text:l.live?x.closeText:x.cancelText,handler:"cancel"};l.buttons.clear={text:x.clearText,handler:"clear"};l._isInput=M.is("input");z=0mb?b=!0:Ma+Ea-Ea/4+d>mb&&(Ia=va.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+d>mb&&(va.hasClass("mbsc-lv-back")?I.sortable.multiLevel&&(pa=va.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertAfter(va),Pa=va,va=ha(va,"next"),nb=mb,mb=va.length&& va[0].offsetTop,Ba++;if(!b&&nb&&(I.sortable.multiLevel&&Pa.hasClass("mbsc-lv-parent")?Ma+Ea-Ea/4+dMath.abs(na)&&5>Math.abs(Ga)&&(Ca.tap&&(e=Ca.tap.call(Ra,L,ua,b,I)),Wb&&("touchend"===b.type&&m.preventClick(),L.addClass("mbsc-lv-item-active"),Aa("onItemActivate", [L,b])),e=Aa("onItemTap",[L,ua,b]),!1!==e&&ia(L));clearTimeout(sa);setTimeout(function(){L.removeClass("mbsc-lv-item-active");Aa("onItemDeactivate",[L])},100);vb=!1;Ja=null}}function B(){if(lb=P(Ca.swipe,[L,ua,0J?"right":"left"));else if(sb&&J<=sb.percent?(Sa--,tb= sb,sb=Eb[Sa],a=!0):tb&&J>=tb.percent&&(Sa++,sb=tb,tb=Eb[Sa],a=!0),a)if(Ja=0J?-s:s,200),f=d=!0,X=L,La=ua,a(j).on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();R(L,!0,b)}));else if(U.quickSwipe&&!xb&&(g=new Date-fc,c=300>g&&-50>na,g=300>g&&50J?-1:1)*Fa.outerWidth(!0)/bb,200,!0),e(Ja,L,ua,!1,b)):W(Ja,L,ua,b));d||R(L,!0,b);lb=!1}function ba(){Xa=!0;pa=Ia=!1;wb=0;Ba=ua;U.vibrate&&ca();va=ha(L,"next");mb=va.length&&va[0].offsetTop;Pa=ha(L,"prev");nb=Pa.length&&Pa[0].offsetTop+Pa.outerHeight();db.height(Ea).insertAfter(L);L.css({top:Ma}).addClass("mbsc-lv-item-dragging").removeClass("mbsc-lv-item-active").appendTo(Ua);Aa("onSortStart", [L,Ba])}function v(a,b,c,e){a.removeClass("mbsc-lv-item-dragging");db.remove();Aa("onSortStop",[a,Ba]);U.vibrate&&ca();e&&(I.addUndoAction(function(e){I.move(a,b,null,e,c,!0)},!0),Aa("onSortUpdate",[a,Ba]))}function D(){Lb||(clearTimeout(Gb),f&&a(j).trigger("touchstart"),yb&&(I.close(Ha,Ya),yb=!1,Ha=null))}function w(b,c){P(c.disabled,[L,ua,I])&&a(".mbsc-ic-"+c.icon,Da).addClass("mbsc-lv-ic-disabled")}function W(b,c,g,J){var d,s={icon:"undo2",text:U.undoText,color:"#b1b1b1",action:function(){I.undo()}}; b.undo&&(I.startActionTrack(),a.isFunction(b.undo)&&I.addUndoAction(function(){b.undo.call(Ra,c,I,g)}),Sb=c.attr("data-ref"));d=b.action.call(Ra,c,I,g);b.undo?(I.endActionTrack(),!1!==d&&ga(c,0>+c.attr("data-pos")?-100:100,200),db.height(Ea).insertAfter(c),c.css("top",Ma).addClass("mbsc-lv-item-undo"),Qa.hide(),Fa.show(),Da.append(Fa),T(s),e(s,c,g,!0,J)):R(c,d,J)}function e(b,c,e,g,J){var d,s;f=!0;a(j).off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault(); g&&S(c);R(c,!0,J)});if(!Za)Fa.off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.stopPropagation();d=da(a,"X");s=da(a,"Y")}).on("touchend.mbsc-lv-conf mouseup.mbsc-lv-conf",function(a){a.preventDefault();"touchend"===a.type&&m.preventClick();10>Math.abs(da(a,"X")-d)&&10>Math.abs(da(a,"Y")-s)&&(W(b,c,e,J),g&&(Tb=null,S(c)))})}function E(){ga(L,ec+100*na/bb);Rb=!1}function R(b,c,e){a(j).off(".mbsc-lv-conf");Fa.off(".mbsc-lv-conf");!1!==c?ga(b,0,"0"!==b.attr("data-pos")? 200:0,!1,function(){z(b,e);K(b)}):z(b,e);f=!1}function ga(a,e,g,d,s){e=Math.max("right"==lb?0:-100,Math.min(e,"left"==lb?0:100));$a=a[0].style;a.attr("data-pos",e);c?($a[b+"Transform"]="translate3d("+(d?bb*e/100+"px":e+"%")+",0,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms"):$a.left=e+"%";s&&(jb++,setTimeout(function(){s();jb--},g));J=e}function p(a,e,g,J){e=Math.max(qb,Math.min(e,kb));$a=a[0].style;c?($a[b+"Transform"]="translate3d(0,"+e+"px,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms ease-out"): $a.top=Ma+e+"px";J&&(jb++,setTimeout(function(){J();jb--},g))}function Y(){clearTimeout(Pb);!qa&&I.sortable&&U.fillAnimation&&(qa=!0,xa.remove())}function T(a,b){var c=P(a.text,[L,ua,I])||"";P(a.disabled,[L,ua,I])?Da.addClass("mbsc-lv-ic-disabled"):Da.removeClass("mbsc-lv-ic-disabled");Da.css("background-color",a.color||(0===a.percent?(0J?"right":"left"));ra.attr("class"," mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-"+ (a.icon||"none"));Qb.attr("class","mbsc-lv-ic-text"+(a.icon?"":" mbsc-lv-ic-text-only")+(c?"":" mbsc-lv-ic-only")).html(c||" ");U.animateIcons&&(Kb?ra.addClass("mbsc-lv-ic-v"):setTimeout(function(){ra.addClass("mbsc-lv-ic-a")},10))}function z(a,b){ka||(ra.attr("class","mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"),Da.attr("style","").removeClass("mbsc-lv-stage-c-v"),Qb.html(""));Da.removeClass("mbsc-lv-left mbsc-lv-right");a&&(Aa("onSlideEnd",[a,ua]),b&&b())}function S(a){a.css("top","").removeClass("mbsc-lv-item-undo"); Tb?I.animate(db,"collapse",function(){db.remove()}):db.remove();z();Tb=Sb=null}function K(a){$a=a[0].style;$a[b+"Transform"]="";$a[b+"Transition"]="";$a.top="";a.removeClass("mbsc-lv-item-swiping")}function P(b,c){return a.isFunction(b)?b.apply(this,c):b}function $(b){var c;b.attr("data-ref")||(c=V++,b.attr("data-ref",c),eb[c]={item:b,child:b.children("ul,ol"),parent:b.parent(),ref:b.parent()[0]===Ra?null:b.parent().parent().attr("data-ref")});b.addClass("mbsc-lv-item");I.sortable.handle&&"list-divider"!= b.attr("data-role")&&!b.children(".mbsc-lv-handle-c").length&&b.append(ob);if(U.enhance&&!b.hasClass("mbsc-lv-item-enhanced")){c=b.attr("data-icon");var e=b.find("img").eq(0).addClass("mbsc-lv-img");e.is(":first-child")?b.addClass("mbsc-lv-img-"+(U.rtl?"right":"left")):e.length&&b.addClass("mbsc-lv-img-"+(U.rtl?"left":"right"));b.addClass("mbsc-lv-item-enhanced").children().each(function(b,c){c=a(c);c.is("p, h1, h2, h3, h4, h5, h6")&&c.addClass("mbsc-lv-txt")});c&&b.addClass("mbsc-lv-item-ic-"+(b.attr("data-icon-align")|| (U.rtl?"right":"left"))).append('
na?fa((a.actionsWidth||0).right)||fa(a.actionsWidth)|| fa(U.actionsWidth.right)||fa(U.actionsWidth):fa((a.actionsWidth||0).left)||fa(a.actionsWidth)||fa(U.actionsWidth.left)||fa(U.actionsWidth))}function l(a){a&&Oa.scrollTop(Wa?a.offset().top-Oa.offset().top+Oa.scrollTop():a.offset().top)}function M(a,b,c,e){var g=b.parent(),J=b.prev(),e=e||G;J[0]===Fa[0]&&(J=Fa.prev());ma[0]!==b[0]?(Aa("onNavStart",[zb,a,b]),$b.prepend(b.addClass("mbsc-lv-v mbsc-lv-sl-new")),l(ya),oa($b,"mbsc-lv-sl-"+a,function(){ma.removeClass("mbsc-lv-sl-curr");b.removeClass("mbsc-lv-sl-new").addClass("mbsc-lv-sl-curr"); hb&&hb.length?ma.removeClass("mbsc-lv-v").insertAfter(hb):ib.append(ma.removeClass("mbsc-lv-v"));hb=J;ib=g;ma=b;l(c);e.call(Ra,c);Aa("onNavEnd",[zb,a,b])})):(l(c),e.call(Ra,c))}function ia(a,b){jb||(a.hasClass("mbsc-lv-parent")?(zb++,M("r",eb[a.attr("data-ref")].child,null,b)):a.hasClass("mbsc-lv-back")&&(zb--,M("l",eb[a.attr("data-back")].parent,eb[a.attr("data-back")].item,b)))}function oa(a,b,e){function g(){clearTimeout(J);jb--;a.off(aa,g).removeClass(b);e.call(Ra,a)}var J,e=e||G;c&&U.animation&& "mbsc-lv-item-none"!==b?(jb++,a.on(aa,g).addClass(b),J=setTimeout(g,500)):e.call(Ra,a)}function C(a,b){var c,e=a.attr("data-ref");c=ac[e]=ac[e]||[];b&&c.push(b);a.attr("data-action")||(b=c.shift(),a.attr("data-action",1),b(function(){a.removeAttr("data-action");c.length?C(a):delete ac[e]}))}function za(b,c,e){var g,J;b&&b.length&&(g=100/(b.length+2),a.each(b,function(a,s){s.key===u&&(s.key=bc++);s.percent===u&&(s.percent=c*g*(a+1),e&&(J=d({},s),J.key=bc++,J.percent=-g*(a+1),b.push(J),Ub[J.key]=J)); Ub[s.key]=s}))}var ka,s,sa,J,qa,X,La,ya,Ba,ta,ma,hb,ib,Db,Ja,Sa,Va,Za,Ta,na,Ga,Ia,pa,Xa,Ua,cb,rb,Fb,Aa,xa,fb,wa,Ab,Bb,Vb,o,Wa,ob,Hb,Ha,yb,Ya,gb,Gb,Ka,ab,ra,Fa,Da,bb,L,Ea,ua,pb,kb,qb,Qa,va,mb,tb,Xb,Jb,Lb,gc,Yb,db,Pa,nb,sb,Kb,ic,Rb,U,vb,xb,$b,bc,Eb,ec,fc,Nb,Ob,$a,lb,cc,jc,Wb,Qb,Pb,Ca,ub,Sb,Tb,Oa,Zb,wb,hc,I=this,Ra=i,Na=a(Ra),jb=0,zb=0,Ma=0,Ub={},ac={},eb={};n.Base.call(this,i,y,!0);I.animate=function(a,b,c){oa(a,"mbsc-lv-item-"+b,c)};I.add=function(b,c,e,g,J,d){var s,i,l,k,h,q,X="",f=J===u?Na:Z(J),qa=f,v="object"!==typeof c?a('
  • '+c+"
  • "):c,m=0>v.attr("data-pos")?"left":"right",w=v.attr("data-ref"),g=g||G;w||(w=V++,v.addClass("mbsc-lv-item").attr("data-ref",w));$(v);d||I.addUndoAction(function(a){k? I.navigate(f,function(){qa.remove();f.removeClass("mbsc-lv-parent").children(".mbsc-lv-arr").remove();h.child=f.children("ul,ol");I.remove(v,null,a,true)}):I.remove(v,null,a,true)},!0);C(v,function(b){K(v.css("top","").removeClass("mbsc-lv-item-undo"));if(f.is("li")){q=f.attr("data-ref");if(!f.children("ul,ol").length){k=true;f.append("
      ")}}else q=f.children(".mbsc-lv-back").attr("data-back");if(h=eb[q])if(h.child.length)qa=h.child;else{f.addClass("mbsc-lv-parent").prepend(ab);qa=f.children("ul,ol").prepend(Ka).addClass("mbsc-lv"); h.child=qa;a(".mbsc-lv-back",f).attr("data-back",q)}eb[w]={item:v,child:v.children("ul,ol"),parent:qa,ref:q};l=x(qa);i=l.length;if(e===u||e===null)e=i;d&&(X="mbsc-lv-item-new-"+(d?m:""));H(v.addClass(X));if(e!==false)if(i)e=zb?"r":"l",c.parent,a,b),zb=e)};I.init=function(b){var e=Na.find("ul,ol").length? "left":"right",g=0,d="",s="",i="";I._init(b);b=U.sort||U.sortable;"group"===b&&(b={group:!1,multiLevel:!0});!0===b&&(b={group:!0,multiLevel:!0,handle:U.sortHandle});b&&b.handle===u&&(b.handle=U.sortHandle);I.sortable=b||!1;d+='
      ';Na.addClass("mbsc-lv mbsc-lv-v mbsc-lv-root").show();Da=a('
      '+d+"
      ");Fa=a(".mbsc-lv-ic-c", Da);Qa=a(".mbsc-lv-multi-c",Da);ra=a(".mbsc-lv-ic-s",Da);Qb=a(".mbsc-lv-ic-text",Da);db=a('
    • ');xa=a('
      ');ya=a('
        ');Wa="body"!==U.context;Oa=a(Wa?U.context:t);Ua=a(".mbsc-lv-dummy", ya);ya.insertAfter(Na);I.sortable.handle&&(o=!0===I.sortable.handle?e:I.sortable.handle,ob='
        '+U.handleMarkup+"
        ",ya.addClass("mbsc-lv-handle-"+o));Oa.on("orientationchange.mbsc-lv resize.mbsc-lv",function(){clearTimeout(Va);Va=setTimeout(function(){Zb=Oa[0].innerHeight||Oa.innerHeight();hc=Wa?Oa.offset().top:0;if(ka){Ma=L[0].offsetTop;Ea=L.outerHeight();Da.css({top:Ma, height:Ea})}},200)}).trigger("resize.mbsc-lv");ya.on("touchstart mousedown",".mbsc-lv-item",r).on("touchmove",".mbsc-lv-item",h).on("touchend touchcancel",".mbsc-lv-item",A);Ra.addEventListener&&Ra.addEventListener("click",function(a){if(Jb){a.stopPropagation();a.preventDefault();Jb=false}},!0);ya.on("touchstart mousedown",".mbsc-lv-ic-m",function(a){if(!Za){a.stopPropagation();a.preventDefault()}Nb=da(a,"X");Ob=da(a,"Y")}).on("touchend mouseup",".mbsc-lv-ic-m",function(b){if(!Za){b.type==="touchend"&& m.preventClick();f&&!a(this).hasClass("mbsc-lv-ic-disabled")&&Math.abs(da(b,"X")-Nb)<10&&Math.abs(da(b,"Y")-Ob)<10&&W((J<0?Ca.rightMenu:Ca.leftMenu)[a(this).index()],X,La)}});$b=a(".mbsc-lv-sl-c",ya).append(Na.addClass("mbsc-lv-sl-curr")).attr("data-ref",V++);ma=Na;ib=ya;Ka='
      • '+U.backText+'
      • ';ab='
        ';H(Na);bc=0;ub=U.itemGroups|| {};ub.defaults={swipeleft:U.swipeleft,swiperight:U.swiperight,stages:U.stages,actions:U.actions,actionsWidth:U.actionsWidth};a.each(ub,function(b,c){c.swipe=c.swipe||U.swipe;c.stages=c.stages||[];za(c.stages,1,true);za(c.stages.left,1);za(c.stages.right,-1);if(c.stages.left||c.stages.right)c.stages=[].concat(c.stages.left||[],c.stages.right||[]);fb=false;if(!c.stages.length){c.swipeleft&&c.stages.push({percent:-30,action:c.swipeleft});c.swiperight&&c.stages.push({percent:30,action:c.swiperight})}a.each(c.stages, function(a,b){if(b.percent===0){fb=true;return false}});fb||c.stages.push({percent:0});c.stages.sort(function(a,b){return a.percent-b.percent});a.each(c.stages,function(a,b){if(b.percent===0){c.start=a;return false}});if(fb)c.left=c.right=c.stages[c.start];else{c.left=c.stages[c.start-1]||{};c.right=c.stages[c.start+1]||{}}if(c.actions){c.leftMenu=c.actions.left||c.actions;c.rightMenu=c.actions.right||c.leftMenu;i=s="";for(g=0;g
        ');for(g=0;g');if(c.actions.left)c.swipe=c.actions.right?c.swipe:"right";if(c.actions.right)c.swipe=c.actions.left?c.swipe:"left";c.icons='
        '+s+'
        '+i+"
        "}});U.fixedHeader&&(wa=a('
        '),Ab=a(".mbsc-lv-gr-title",Na),Wa? (Oa.before(wa),wa.addClass("mbsc-lv-fixed-header-ctx mbsc-lv-"+U.theme+(U.baseTheme?" mbsc-lv-"+U.baseTheme:""))):ya.prepend(wa),Oa.on("scroll.mbsc-lv touchmove.mbsc-lv",function(){if(Xa||!ka){var b=a(this).scrollTop(),c=Na.offset().top;Ab.each(function(e,g){if(a(g).offset().top-(Wa?c:0)U.undoLimit&&Cb.shift())};I.undo=function(){function a(){0>e?(Mb=!1,b()):(c=g[e],e--,c.async?c.action(a):(c.action(),a()))}function b(){if(g=kc.shift())Mb=!0,e=g.length-1,a()}var c,e,g;Cb.length&&kc.push(Cb.pop());Mb||b()};U=I.settings; Aa=I.trigger;I.init(y)};n.ListView.prototype={_class:"listview",_hasDef:!0,_hasTheme:!0,_hasLang:!0,_defaults:{actionsWidth:90,sortDelay:250,undoLimit:10,swipe:!0,quickSwipe:!0,animateIcons:!0,fillAnimation:!0,animation:!0,revert:!0,handleClass:"",handleMarkup:'
        ',leftArrowClass:"mbsc-ic-arrow-left4",rightArrowClass:"mbsc-ic-arrow-right4",backText:"Back", undoText:"Undo",stages:[]}};y.themes.listview.mobiscroll={leftArrowClass:"mbsc-ic-arrow-left5",rightArrowClass:"mbsc-ic-arrow-right5"};y.presetShort("listview","ListView")})(jQuery,window,document);(function(a){a.mobiscroll.themes.listview.jqm={handleClass:"ui-btn ui-icon-bars ui-btn-up-c ui-btn-icon-notext ui-icon-shadow ui-corner-all ui-btn-corner-all",handleMarkup:' ',leftArrowClass:"ui-btn-icon-left ui-icon-carat-l",rightArrowClass:"ui-btn-icon-right ui-icon-carat-r",onInit:function(){a(this).closest(".mbsc-lv-cont").addClass(a(this).data("inset")?"mbsc-lv-jqm-inset": "").find(".mbsc-lv-dummy, .mbsc-lv-fixed-header").addClass("ui-listview");a("ul,ol",this).listview("refresh")},onItemAdd:function(a){a=a.parent();a.hasClass("ui-listview")?a.listview("refresh"):a.listview()},onSortUpdate:function(a){a.parent().listview("refresh")}}})(jQuery);(function(a,t){var j=a.mobiscroll,u=j.util.isNumeric,f=function(){},d=j.classes;d.Numpad=function(f,n,m){function j(c){var d,w=(d=q.validate.call(f,k.slice(0),ja,h)||[])&&d.disabled||[];h._isValid=d.invalid?!1:!0;h._tempValue=q.formatValue.call(f,k.slice(0),ja,h);g=k.length;i=d.length||N;if(h._isVisible&&a.mobiscroll.running){a(".mbsc-np-ph",ca).each(function(b){a(this).html("ltr"==q.fill?b>=g?G:aa||k[b]:b>=N-i?b+g=d;d++)w.push(d);a(".mbsc-np-btn",ca).removeClass(V);for(d=0;d
        ');b=q.template.replace(/d/g,''+G+"").replace(/d/g,"d");b=b.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g,'$2');e=e+b+'
        ';for(b=0;4>b;b++){e+='
        ';for(c=0;3>c;c++)g=d,10==d||12==d?g="":11==d&&(g=0),e= ""===g?10==d&&q.leftButton?e+('
        '+q.leftButton.text+"
        "):12==d&&q.rightButton?e+('
        '+q.rightButton.text+"
        "):e+'
        ': e+('
        '+g+"
        "),d++;e+="
        "}return e+"
        "};h._markupReady=function(){ca=h._markup;j()};h._attachEvents=function(b){b.on("keydown",function(b){ba[b.keyCode]!==t?da(a('.mbsc-np-btn[data-val="'+ba[b.keyCode]+'"]'),ba[b.keyCode]):8==b.keyCode&&(b.preventDefault(),Q())});h.tap(a(".mbsc-np-btn",b),function(){var b=a(this);if(b.hasClass("mbsc-np-btn-custom")){var c=b.attr("data-val"),d=b.attr("data-var"); if(!b.hasClass("dwb-d")){d&&(b=d.split(":"),B.push(b[0]),ja[b[0]]=b[1]);if(c.length+g<=i)for(b=0;b"+t+"").text()}})};j.themes.numpad=j.themes.frame;j.presetShort("numpad","Numpad",!1)})(jQuery); (function(a){var t=a.mobiscroll,j={min:0,max:99.99,scale:2,prefix:"",suffix:"",returnAffix:!1};t.presets.numpad.decimal=function(u){function f(a){var d;d=a.slice(0);for(a=0;d.length;)a=10*a+d.shift();for(d=0;dn.max||b";9'+(639'+O.m+""+n);6039'+(38439'+O.h+""+n);d.setVal=function(a,c,f,n){j.util.isNumeric(a)&&(a=y(a));return d._setVal(a, c,f,n)};d.getVal=function(a){return d._hasValue||a?t(d.getArrayVal(a)):null};return{template:n,parseValue:function(b){var c,d=b||y(m.defaultValue),f=[];d&&a(u).each(function(a,b){(c=RegExp("(\\d+)"+O[b],"gi").exec(d))?(c=+c[1],9m.max|| cd.min.getMinutes()?"0"+d.min.getMinutes():d.min.getMinutes()):"",ca=d.max?""+(10>d.max.getMinutes()?"0"+d.max.getMinutes():d.max.getMinutes()):"",V=d.min?""+(10>d.min.getSeconds()?"0"+d.min.getSeconds():d.min.getSeconds()):"",G=d.max?""+(10>d.max.getSeconds()?"0"+d.max.getSeconds():d.max.getSeconds()):"";d.min&&d.min.setFullYear(2014,7,20);d.max&&d.max.setFullYear(2014,7,20);return{placeholder:"-",allowLeadingZero:!0,template:(3==y.length?"dd:dd:dd": 2==y.length?"dd:dd":"dd")+(n?'{ampm:--}':""),leftButton:n?{text:m,variable:"ampm:"+m,value:"00"}:{text:":00",value:"00"},rightButton:n?{text:O,variable:"ampm:"+O,value:"00"}:{text:":30",value:"30"},parseValue:function(a){var b,c=a||d.defaultValue,f=[];if(c){c+="";if(b=c.match(/\d/g))for(a=0;ai-a.length||1!=a[0]&&(2=i-a.length))B.push("30"),B.push("00");if((n?1=i;++i)B.push(i);else if(1==a.length&&n&&1==a[0]||a.length&&0===a.length%2||!n&&2==a[0]&& 3=i;++i)B.push(i);F=void 0!==a[1]?""+a[0]+a[1]:"";r=+ca==+(void 0!==a[3]?""+a[2]+a[3]:0);if(d.invalid)for(i=0;ih?0:+(""+h)[0])==+a[2]){B.push(10>h?h:+(""+h)[1]);break}else if((10>A?0:+(""+A)[0])==+a[4]){B.push(10>A?A:+(""+A)[1]);break}if(d.min||d.max){t=+c==+F;h=(F=+da==+F)&&r;r=t&&r;if(0===a.length){for(i=n?2:19=i;++i)B.push(i);if(da&&10>da||c&&10<=c)for(i=da&&10>da?+da[0]+1:0;i<(c&&10<=c?c[0]:10);++i)B.push(i)}if(1==a.length){if(0===a[0])for(i=0;i=i;++i)B.push(i);if(a[0]==c[0])for(i=0;i=i;++i)B.push(i)}if(2==a.length&&(t||F))for(i=F?+ca[0]+1:0;i<(t?+Q[0]:10);++i)B.push(i);if(3==a.length&&(F&&a[2]==ca[0]||t&&a[2]==Q[0]))for(i= F&&a[2]==ca[0]?+ca[1]+1:0;i<(t&&a[2]==Q[0]?+Q[1]:10);++i)B.push(i);if(4==a.length&&(r||h))for(i=h?+G[0]+1:0;i<(r?+V[0]:10);++i)B.push(i);if(5==a.length&&(r&&a[4]==V[0]||h&&a[4]==G[0]))for(i=h&&a[4]==G[0]?+G[1]+1:0;i<(r&&a[4]==V[0]?+V[1]:10);++i)B.push(i)}return{disabled:B,length:b,invalid:(n?!RegExp("^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9]) (?:"+d.amText+"|"+d.pmText+")$","i").test(m):!/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(m))||(d.invalid?-1!=j._indexOf(d.invalid,k):!1)||!((d.min? d.min<=k:1)&&(d.max?k<=d.max:1))}}}}})(jQuery); (function(a){var t=a.mobiscroll,j={dateOrder:"mdy",dateFormat:"mm/dd/yy",delimiter:"/"};t.presets.numpad.date=function(u){function f(a){return new Date(+(""+a[d]+a[d+1]+a[d+2]+a[d+3]),+(""+a[y]+a[y+1])-1,+(""+a[n]+a[n+1]))}var d,y,n,m,O=[];m=a.extend({},u.settings);var b=a.extend(u.settings,t.datetime.defaults,j,m),c=b.dateOrder,da=b.min?""+(b.getMonth(b.min)+1):0,Q=b.max?""+(b.getMonth(b.max)+1):0,ca=b.min?""+b.getDay(b.min):0,V=b.max?""+b.getDay(b.max):0,G=b.min?""+b.getYear(b.min):0,g=b.max?""+ b.getYear(b.max):0,c=c.replace(/y+/gi,"yyyy"),c=c.replace(/m+/gi,"mm"),c=c.replace(/d+/gi,"dd");d=c.toUpperCase().indexOf("Y");y=c.toUpperCase().indexOf("M");n=c.toUpperCase().indexOf("D");c="";O.push({val:d,n:"yyyy"},{val:y,n:"mm"},{val:n,n:"dd"});O.sort(function(a,b){return a.val-b.val});a.each(O,function(a,b){c+=b.n});d=c.indexOf("y");y=c.indexOf("m");n=c.indexOf("d");c="";for(m=0;8>m;++m)if(c+="d",m+1==d||m+1==y||m+1==n)c+=b.delimiter;u.getVal=function(a){return u._hasValue||a?f(u.getArrayVal(a)): null};return{placeholder:"-",fill:"ltr",allowLeadingZero:!0,template:c,parseValue:function(a){var c,d=[];c=a||b.defaultValue;a=t.datetime.parseDate(b.dateFormat,c,b);if(c)for(c=0;cb.getMonth(a)?"0":"")+(b.getMonth(a)+1)).split("")):/d/i.test(O[c].n)?d.concat(((10>b.getDay(a)?"0":"")+b.getDay(a)).split("")):d.concat((b.getYear(a)+"").split(""));return d},formatValue:function(a){return t.datetime.formatDate(b.dateFormat,f(a),b)},validate:function(a){var c= f(a),k,i,j,m,r=[],h=void 0!==a[d+3]?""+a[d]+a[d+1]+a[d+2]+a[d+3]:"",t=void 0!==a[y+1]?""+a[y]+a[y+1]:"",B=void 0!==a[n+1]?""+a[n]+a[n+1]:"",O=""+b.getMaxDayOfMonth(h||2012,t-1||0),ea=G===h&&+da===+t,ba=g===h&&+Q===+t;if(b.invalid)for(k=0;km?0:+(""+m)[0])==+a[n]){r.push(10>m?m:+(""+m)[1]);break}if(j+1==+t&&m==+B&&(""+i).substring(0,3)==""+a[d]+a[d+1]+a[d+2]){r.push((""+i)[3]); break}if(i==+h&&m==+B&&(10>j?0:+(""+(j+1))[0])==+a[y]){r.push(10>j?j:+(""+(j+1))[1]);break}}if("31"==B&&(a.length==y||a.length==y+1))1!=a[y]?r.push(2,4,6,9,11):r.push(1);"30"==B&&0===a[y]&&a.length<=y+1&&r.push(2);if(a.length==y){for(k=g===h&&10>+Q?1:2;9>=k;++k)r.push(k);G===h&&10<=+da&&r.push(0)}if(a.length==y+1){if(1==a[y]){for(k=g===h?+Q[1]+1:3;9>=k;++k)r.push(k);if(G==h)for(k=0;k<+da[1];++k)r.push(k)}if(0===a[y]&&(r.push(0),g===h||G===h))for(k=g===h?+B>+V?+Q:+Q+1:0;k<=(G===h?+da-1:9);++k)r.push(k)}if(a.length== n){for(k=ba?(10<+V?+V[0]:0)+1:+O[0]+1;9>=k;++k)r.push(k);if(ea)for(k=0;k<(10>+ca?0:ca[0]);++k)r.push(k)}if(a.length==n+1){if(3<=a[n]||"02"==t)for(k=+O[1]+1;9>=k;++k)r.push(k);if(ba&&+V[0]==a[n])for(k=+V[1]+1;9>=k;++k)r.push(k);if(ea&&ca[0]==a[n])for(k=0;k<+ca[1];++k)r.push(k);if(0===a[n]&&(r.push(0),ba||ea))for(k=ba?+V+1:1;k<=(ea?+ca-1:9);++k)r.push(k)}if(void 0!==a[d+2]&&"02"==t&&"29"==B)for(i=+(""+a[d]+a[d+1]+a[d+2]+0);i<=+(""+a[d]+a[d+1]+a[d+2]+9);++i)r.push(!(0===i%4&&0!==i%100||0===i%400)?i% 10:"");if(a.length==d){if(b.min)for(k=0;k<+G[0];++k)r.push(k);if(b.max)for(k=+g[0]+1;9>=k;++k)r.push(k);r.push(0)}if(b.min||b.max)for(i=1;4>i;++i)if(a.length==d+i){if(a[d+i-1]==+G[i-1]&&(3==i?a[d+i-2]==+G[i-2]:1))for(k=0;k<+G[i]+(3==i&&a[y+1]&&+da>+t?1:0);++k)r.push(k);if(a[d+i-1]==+g[i-1]&&(3==i?a[d+i-2]==+g[i-2]:1))for(k=+g[i]+(3==i&&+Q<+t?0:1);9>=k;++k)r.push(k)}return{disabled:r,invalid:!("Invalid Date"!=c&&(b.min?b.min<=c:1)&&(b.max?c<=b.max:1))||(b.invalid?-1!=u._indexOf(b.invalid,c):!1)}}}}})(jQuery);(function(a,t,j,u){var t=a.mobiscroll,f=t.classes,d=t.util,y=d.jsPrefix,n=d.has3d,m=d.hasFlex,O=d.getCoord,b=d.constrain,c=d.testTouch;t.presetShort("scroller","Scroller",!1);f.Scroller=function(t,Q,ca){function V(b){if(c(b,this)&&!l&&!P&&!R&&!r(this)&&a.mobiscroll.running&&(b.preventDefault(),b.stopPropagation(),ga="clickpick"!=z.mode,l=a(".dw-ul",this),A(l),ha=($=ka[M]!==u)?Math.round(-d.getPosition(l,!0)/p):s[M],H=O(b,"Y",!0),x=new Date,Z=H,ea(l,M,ha,0.001),ga&&l.closest(".dwwl").addClass("dwa"), "mousedown"===b.type))a(j).on("mousemove",G).on("mouseup",g)}function G(a){if(l&&ga&&(a.preventDefault(),a.stopPropagation(),Z=O(a,"Y",!0),3e?(s=(Z-H)/e,e=s*s/z.speedUnit,0>Z-H&&(e=-e)):e=Z-H;if($)f=b(Math.round(ha-e/p),fa,la),e=s?Math.max(0.1,Math.abs((f-d)/ s)*z.timeUnit):0.1;else{var d=Math.floor((Z-i)/p),h=a(a(".dw-li",l)[d]);s=h.hasClass("dw-v");i=ga;e=0.1;!1!==K("onValueTap",[h])&&s?f=d:i=!0;i&&s&&(h.addClass("dw-hl"),setTimeout(function(){h.removeClass("dw-hl")},100));if(!Y&&(!0===z.confirmOnTap||z.confirmOnTap[M])&&h.hasClass("dw-sel")){C.select();l=!1;return}}ga&&D(l,M,f,0,e,!0);l=!1}}function q(b){R=a(this);c(b,this)&&a.mobiscroll.running&&F(b,R.closest(".dwwl"),R.hasClass("dwwbp")?w:W);if("mousedown"===b.type)a(j).on("mouseup",aa)}function aa(b){R= null;P&&(clearInterval(oa),P=!1);"mouseup"===b.type&&a(j).off("mouseup",aa)}function k(b){38==b.keyCode?F(b,a(this),W):40==b.keyCode&&F(b,a(this),w)}function i(){P&&(clearInterval(oa),P=!1)}function N(c){if(!r(this)&&a.mobiscroll.running){c.preventDefault();var c=c.originalEvent||c,e=c.deltaY||c.wheelDelta||c.detail,d=a(".dw-ul",this);A(d);ea(d,M,b(((0>e?-20:20)-T[M])/p,fa-1,la+1));clearTimeout(S);S=setTimeout(function(){D(d,M,Math.round(s[M]),0
        ');c+='
        "+g+"
        ";e++});return c+="
        "}function A(b){Y=b.closest(".dwwl").hasClass("dwwms");fa=a(".dw-li",b).index(a(Y?".dw-li":".dw-v",b).eq(0));la=Math.max(fa,a(".dw-li",b).index(a(Y?".dw-li":".dw-v",b).eq(-1))-(Y?z.rows-("scroller"==z.mode?1:3):0));M=a(".dw-ul",E).index(b)}function B(a){var b=z.headerText; return b?"function"===typeof b?b.call(t,a):b.replace(/\{value\}/i,a):""}function ja(a,b){clearTimeout(ka[b]);delete ka[b];a.closest(".dwwl").removeClass("dwa")}function ea(a,b,c,e,g){var f=-c*p,i=a[0].style;f==T[b]&&ka[b]||(T[b]=f,n?(i[y+"Transition"]=d.prefix+"transform "+(e?e.toFixed(3):0)+"s ease-out",i[y+"Transform"]="translate3d(0,"+f+"px,0)"):i.top=f+"px",ka[b]&&ja(a,b),e&&g&&(a.closest(".dwwl").addClass("dwa"),ka[b]=setTimeout(function(){ja(a,b)},1E3*e)),s[b]=c)}function ba(c,e,d,g,f){var s= a('.dw-li[data-val="'+c+'"]',e),i=a(".dw-li",e),c=i.index(s),h=i.length;if(g)A(e);else if(!s.hasClass("dw-v")){for(var l=s,k=0,j=0;0<=c-k&&!l.hasClass("dw-v");)k++,l=i.eq(c-k);for(;c+jc-k||1==d)&&s.hasClass("dw-v")?c+=j:(s=l,c-=k)}d=s.hasClass("dw-sel");f&&(g||(a(".dw-sel",e).removeAttr("aria-selected"),s.attr("aria-selected","true")),a(".dw-sel",e).removeClass("dw-sel"),s.addClass("dw-sel"));return{selected:d,v:g?b(c,fa,la):c,val:s.hasClass("dw-v")|| g?s.attr("data-val"):null}}function v(b,c,d,g,f){!1!==K("validate",[E,c,b,g])&&(a(".dw-ul",E).each(function(e){var d=a(this),s=d.closest(".dwwl").hasClass("dwwms"),i=e==c||c===u,s=ba(C._tempWheelArray[e],d,g,s,!0);if(!s.selected||i)C._tempWheelArray[e]=s.val,ea(d,e,s.v,i?b:0.1,i?f:!1)}),K("onValidated",[c]),C._tempValue=z.formatValue(C._tempWheelArray,C),C.live&&(C._hasValue=d||C._hasValue,e(d,d,0,!0)),C._header.html(B(C._tempValue)),d&&K("onChange",[C._tempValue]))}function D(c,e,d,g,f,s){d=b(d, fa,la);C._tempWheelArray[e]=a(".dw-li",c).eq(d).attr("data-val");ea(c,e,d,f,s);setTimeout(function(){v(f,e,!0,g,s)},10)}function w(a){var b=s[M]+1;D(a,M,b>la?fa:b,1,0.1)}function W(a){var b=s[M]-1;D(a,M,b
        "+(m?"":'');a.each(g,function(a,d){sa[e]=d;b=d.label!== u?d.label:a;c+="<"+(m?"div":"td")+' class="dwfl" style="'+(z.fixedWidth?"width:"+(z.fixedWidth[e]||z.fixedWidth)+"px;":(z.minWidth?"min-width:"+(z.minWidth[e]||z.minWidth)+"px;":"min-width:"+z.width+"px;")+(z.maxWidth?"max-width:"+(z.maxWidth[e]||z.maxWidth)+"px;":""))+'">
        '+("scroller"!=z.mode?'
        +
        ':"")+'
        '+b+'
        ';c+=h(e)+'
        "+(m?"":"");e++});c+=(m?"":"
        ")+"
        "});return c};C._attachEvents=function(a){a.on("keydown",".dwwl",k).on("keyup",".dwwl",i).on("touchstart mousedown",".dwwl",V).on("touchmove",".dwwl",G).on("touchend",".dwwl",g).on("touchstart mousedown",".dwwb",q).on("touchend touchcancel",".dwwb",aa);if(z.mousewheel)a.on("wheel mousewheel",".dwwl",N)};C._markupReady=function(a){E=a;T={};v()};C._fillValue=function(){C._hasValue=!0;e(!0,!0,0,!0)};C._readValue= function(){var a=za.val()||"";""!==a&&(C._hasValue=!0);C._tempWheelArray=C._hasValue&&C._wheelArray?C._wheelArray.slice(0):z.parseValue.call(t,a,C)||[];e()};C._processSettings=function(){z=C.settings;K=C.trigger;p=z.height;ia=z.multiline;C._isLiquid="liquid"===(z.layout||(/top|bottom/.test(z.display)&&1==z.wheels.length?"liquid":""));z.formatResult&&(z.formatValue=z.formatResult);1O%100?"0":"")+O%100;break;case "h":O=u.getHours();b+=y("h",12n&&(n+=(new Date).getFullYear()-(new Date).getFullYear()%100+(n<=("string"!=typeof y?y:(new Date).getFullYear()%100+parseInt(y,10))?0:-100));if(-1c?c+12:!ca&&12==c?0:c,da,Q);return f.getYear(c)!=n||f.getMonth(c)+1!=m||f.getDay(c)!=O?d:c}};t.formatDate=t.datetime.formatDate;t.parseDate=t.datetime.parseDate})(jQuery);(function(a,t){var j=a.mobiscroll,u=j.datetime,f=new Date,d={startYear:f.getFullYear()-100,endYear:f.getFullYear()+1,separator:" ",dateFormat:"mm/dd/yy",dateOrder:"mmddy",timeWheels:"hhiiA",timeFormat:"hh:ii A",dayText:"Day",monthText:"Month",yearText:"Year",hourText:"Hours",minuteText:"Minutes",ampmText:" ",secText:"Seconds",nowText:"Now"},y=function(f){function m(a,b,c){return R[b]!==t?+a[R[b]]:ga[b]!==t?ga[b]:c!==t?c:p[b](x)}function y(a,b,c,e){a.push({values:c,keys:b,label:e})}function b(a, b,c,e){return Math.min(e,Math.floor(a/b)*b+c)}function c(a){if(null===a)return a;var b=m(a,"y"),c=m(a,"m"),e=Math.min(m(a,"d"),w.getMaxDayOfMonth(b,c)),d=m(a,"h",0);return w.getDate(b,c,e,m(a,"a",0)?d+12:d,m(a,"i",0),m(a,"s",0),m(a,"u",0))}function da(a,b){var e,d,f=!1,g=!1,i=0,h=0;la=c(q(la));l=c(q(l));if(Q(a))return a;al&&(a=l);d=e=a;if(2!==b)for(f=Q(e);!f&&ela;)d=new Date(d.getTime()-864E5),g=Q(d),h++;return 1=== b&&f?e:2===b&&g?d:h<=i&&g?d:e}function Q(a){return al?!1:ca(a,T)?!0:ca(a,Y)?!1:!0}function ca(a,b){var c,e,d;if(b)for(e=0;eq;q++)x[q]===t&&(x[q]=0),p[q]===t&&(p[q]=59),x[q]=+x[q],p[q]=+p[q];x.unshift(11q;q++)0u?0:u>D[f]?a(".dw-li",j).length:g(j,u)+0),r&&(A=0>oa?0:oa>D[f]?a(".dw-li",j).length:g(j,oa)+1));if(y||r||la)H?a(".dw-li",j).slice(z,A).addClass("dw-v"): a(".dw-li",j).slice(z,A).removeClass("dw-v")}}))}function g(b,c){return a(".dw-li",b).index(a('.dw-li[data-val="'+c+'"]',b))}function q(b,c){var e=[];if(null===b||b===t)return b;a.each("y,m,d,a,h,i,s,u".split(","),function(a,d){R[d]!==t&&(e[R[d]]=p[d](b));c&&(ga[d]=p[d](b))});return e}function aa(a){var b,c,e,d=[];if(a){for(b=0;bb.o?1:-1});a.each(E,function(a,b){R[b.v]=a});k=[];for(h=0;3>h;h++)if(h==R.y){W++;B=[];A=[];ja=w.getYear(la);ea=w.getYear(l);for(r=ja;r<=ea;r++)A.push(r),B.push((z.match(/yy/i)?r:(r+"").substr(2,2))+(w.yearSuffix||""));y(k,A,B,w.yearText)}else if(h==R.m){W++;B=[];A=[];for(r=0;12>r;r++)ja=z.replace(/[dy]/gi,"").replace(/mm/,(9>r?"0"+(r+1):r+1)+(w.monthSuffix||"")).replace(/m/,r+1+(w.monthSuffix||"")),A.push(r),B.push(ja.match(/MM/)? ja.replace(/MM/,''+w.monthNames[r]+""):ja.replace(/M/,''+w.monthNamesShort[r]+""));y(k,A,B,w.monthText)}else if(h==R.d){W++;B=[];A=[];for(r=1;32>r;r++)A.push(r),B.push((z.match(/dd/i)&&10>r?"0"+r:r)+(w.daySuffix||""));y(k,A,B,w.dayText)}i.push(k)}if(F.match(/time/i)){ba=!0;E=[];a.each(["h","i","s","a"],function(a,b){a=S.search(RegExp(b,"i"));-1b.o?1:-1});a.each(E,function(a,b){R[b.v]=W+ a});k=[];for(h=W;hr?"0"+r:r);y(k,A,B,w.hourText)}else if(h==R.i){W++;B=[];A=[];for(r=ia;60>r;r+=ha)A.push(r),B.push(S.match(/ii/)&&10>r?"0"+r:r);y(k,A,B,w.minuteText)}else if(h==R.s){W++;B=[];A=[];for(r=oa;60>r;r+=fa)A.push(r),B.push(S.match(/ss/)&&10>r?"0"+r:r);y(k,A,B,w.secText)}else h==R.a&&(W++,F=S.match(/A/),y(k,[0,1],F?[w.amText.toUpperCase(),w.pmText.toUpperCase()]:[w.amText,w.pmText], w.ampmText));i.push(k)}f.getVal=function(a){return f._hasValue||a?c(f.getArrayVal(a)):null};f.setDate=function(a,b,c,e,d){f.setArrayVal(q(a),b,d,e,c)};f.getDate=f.getVal;f.format=H;f.order=R;f.handlers.now=function(){f.setDate(new Date,!1,0.3,!0,!0)};f.buttons.now={text:w.nowText,handler:"now"};Y=aa(Y);T=aa(T);v={y:la.getFullYear(),m:0,d:1,h:M,i:ia,s:oa,a:0};D={y:l.getFullYear(),m:11,d:31,h:C,i:za,s:ka,a:1};return{wheels:i,headerText:w.headerText?function(){return u.formatDate(H,c(f.getArrayVal(!0)), w)}:!1,formatValue:function(a){return u.formatDate(N,c(a),w)},parseValue:function(a){a||(ga={});return q(a?u.parseDate(N,a,w):w.defaultValue||new Date,!!a&&!!a.getTime)},validate:function(b,d,i,h){var d=da(c(f.getArrayVal(!0)),h),k=q(d),j=m(k,"y"),H=m(k,"m"),C=!0,x=!0;a.each("y,m,d,a,h,i,s".split(","),function(c,e){if(R[e]!==t){var d=v[e],f=D[e],i=31,h=m(k,e),n=a(".dw-ul",b).eq(R[e]);if(e=="d"){f=i=w.getMaxDayOfMonth(j,H);K&&a(".dw-li",n).each(function(){var b=a(this),c=b.data("val"),e=w.getDate(j, H,c).getDay(),c=z.replace(/[my]/gi,"").replace(/dd/,(c<10?"0"+c:c)+(w.daySuffix||"")).replace(/d/,c+(w.daySuffix||""));a(".dw-i",b).html(c.match(/DD/)?c.replace(/DD/,''+w.dayNames[e]+""):c.replace(/D/,''+w.dayNamesShort[e]+""))})}C&&la&&(d=p[e](la));x&&l&&(f=p[e](l));if(e!="y"){var Z=g(n,d),q=g(n,f);a(".dw-li",n).removeClass("dw-v").slice(Z,q+1).addClass("dw-v");e=="d"&&a(".dw-li",n).removeClass("dw-h").slice(i).addClass("dw-h")}h f&&(h=f);C&&(C=h==d);x&&(x=h==f);if(e=="d"){d=w.getDate(j,H,1).getDay();f={};V(Y,j,H,d,i,f,1);V(T,j,H,d,i,f,0);a.each(f,function(b,c){c&&a(".dw-li",n).eq(b).removeClass("dw-v")})}}});ba&&a.each(["a","h","i","s"],function(c,d){var g=m(k,d),i=m(k,"d"),l=a(".dw-ul",b).eq(R[d]);R[d]!==t&&(G(Y,c,d,k,j,H,i,l,0),G(T,c,d,k,j,H,i,l,1),e[c]=+f.getValidCell(g,l,h).val)});f._tempWheelArray=k}}};a.each(["date","time","datetime"],function(a,d){j.presets.scroller[d]=y})})(jQuery);(function(a,t,j,u){var f=a.mobiscroll,d=f.presets.scroller,y=f.util,n=y.has3d,m=y.jsPrefix,O=y.testTouch,b={controls:["calendar"],firstDay:0,weekDays:"short",maxMonthWidth:170,months:1,preMonths:1,highlight:!0,highlightNow:!0,swipe:!0,liveSwipe:!0,divergentDayChange:!0,quickNav:!0,navigation:"yearMonth",todayClass:"dw-cal-today",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left6",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right6",dateText:"Date",timeText:"Time",calendarText:"Calendar",todayText:"Today",prevMonthText:"Previous Month", nextMonthText:"Next Month",prevYearText:"Previous Year",nextYearText:"Next Year"};d.calbase=function(c){function t(b,c,e){var d,f,g,i,h={},l=ra+Ia;b&&a.each(b,function(a,b){d=b.d||b.start||b;f=d+"";if(b.start&&b.end)for(i=new Date(b.start);i<=b.end;)g=new Date(i.getFullYear(),i.getMonth(),i.getDate()),h[g]=h[g]||[],h[g].push(b),i.setDate(i.getDate()+1);else if(d.getTime)g=new Date(d.getFullYear(),d.getMonth(),d.getDate()),h[g]=h[g]||[],h[g].push(b);else if(f.match(/w/i)){var k=+f.replace("w",""), j=0,H=o.getDate(c,e-ra-pa,1).getDay();1=e-l&&(g=o.getDate(c-1,f[0]-1,f[1]),h[g]=h[g]||[],h[g].push(b)),g=o.getDate(c,f[0]-1,f[1]),h[g]=h[g]||[],h[g].push(b);else for(E=0;E
        ';for(e=1;e<=b;e++)i=12>=e||e>c?i+'
         
        ':i+('
        '+(h?h[e-13]:d+e-13+f)+"
        "),e
        ':0===e%3&&(i+='
        '));return i+"
        "}function V(b,e){var d,f,g,h,i,l,k,j,H,C,s,x,n,m,Z=1,p=0;d=o.getDate(b,e,1);var q=o.getYear(d), t=o.getMonth(d),y=null===o.defaultValue&&!c._hasValue?null:c.getDate(!0),r=o.getDate(q,t,1).getDay(),v='
        ',ha='
        ';1m;m++)n=m+o.firstDay-p,d=o.getDate(q,t,n-r+1),f=d.getFullYear(),g=d.getMonth(),h=d.getDate(),i=o.getMonth(d),l=o.getDay(d),x=o.getMaxDayOfMonth(f,g),k=f+"-"+g+"-"+h,g=a.extend({valid:dya?!1:Ja[d]===u||Db[d]!==u,selected:y&&y.getFullYear()===f&& y.getMonth()===g&&y.getDate()===h},c.getDayProps(d,y)),j=g.valid,H=g.selected,f=g.cssClass,C=d.getTime()===(new Date).setHours(0,0,0,0),s=i!==t,Ab[k]=g,0===m%7&&(v+=(m?"
        ":"")+'
        '),ob&&1==d.getDay()&&("month"==ob&&s&&1
        '+Z+"
        ",Z++),v+='';return v+("
        "+ha+"")}function G(b,c,d){var f=o.getDate(b,c,1),h=o.getYear(f),f=o.getMonth(f),i=h+Ea;if(ab){cb&&cb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ua);rb&&rb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ua);cb=a('.dw-cal-year-s[data-val="'+h+'"]',p).addClass("dw-sel").attr("aria-selected", "true");rb=a('.dw-cal-month-s[data-val="'+f+'"]',p).addClass("dw-sel").attr("aria-selected","true");cb.find(".dw-i").addClass(ua);rb.find(".dw-i").addClass(ua);Ua&&Ua.scroll(cb,d);a(".dw-cal-month-s",p).removeClass("dwb-d");if(h===ka)for(e=0;e=e;e++)a('.dw-cal-month-s[data-val="'+e+'"]',p).addClass("dwb-d")}1==C.length&&C.attr("aria-label",h).html(i);for(e=0;eoa?" "+i:"")),1X?q(a(".dw-cal-next-m",p)):g(a(".dw-cal-next-m",p));o.getDate(b,c,1).getFullYear()<=qa.getFullYear()?q(a(".dw-cal-prev-y",p)):g(a(".dw-cal-prev-y",p));o.getDate(b,c,1).getFullYear()>=X.getFullYear()?q(a(".dw-cal-next-y",p)):g(a(".dw-cal-next-y",p))}function g(a){a.removeClass(qb).find(".dw-cal-btn-txt").removeAttr("aria-disabled")} function q(a){a.addClass(qb).find(".dw-cal-btn-txt").attr("aria-disabled","true")}function aa(b,e){if($&&("calendar"===Va||e)){var d,f,g=o.getDate(ta,ma,1),h=Math.abs(12*(o.getYear(b)-o.getYear(g))+o.getMonth(b)-o.getMonth(g));c.needsSlide&&h&&(ta=o.getYear(b),ma=o.getMonth(b),b>g?(f=h>ra-pa+na-1,ma-=f?0:h-ra,d="next"):bra+pa,ma+=f?0:h-ra,d="prev"),F(ta,ma,d,Math.min(h,ra),f,!0));e||(c.trigger("onDayHighlight",[b]),o.highlight&&(a(".dw-sel .dw-i",T).removeClass(ua),a(".dw-sel",T).removeClass("dw-sel").removeAttr("aria-selected"), a(".dw-cal-week-hl",T).removeClass("dw-cal-week-hl"),(null!==o.defaultValue||c._hasValue)&&a('.dw-cal-day[data-full="'+b.getFullYear()+"-"+b.getMonth()+"-"+b.getDate()+'"]',T).addClass("dw-sel").attr("aria-selected","true").find(".dw-i").addClass(ua).closest(".dw-cal-row").addClass("dw-cal-week-hl")));c.needsSlide=!0}}function k(a,b){Q(a,b);for(e=0;eX;)f--;for(;d&&o.getDate(b,c-f-pa,1)o.getDate(ta,ma-pa+na,0)&&A(),Ta=!1)} function h(a,b){a.data("curr",b);n?a[0].style[m+"Transform"]="translate3d("+(Ka?"0,"+b+"%,":b+"%,0,")+"0)":a[0].style[Ka?"top":"left"]=b+"%"}function A(){Ta&&o.getDate(ta,ma+na-pa,1)<=X&&a.mobiscroll.running&&F(ta,++ma,"next",1,!1,!0,A)}function B(){Ta&&o.getDate(ta,ma-pa-1,1)>=qa&&a.mobiscroll.running&&F(ta,--ma,"prev",1,!1,!0,B)}function ja(b){Ta&&o.getDate(ta,ma,1)<=o.getDate(o.getYear(X)-1,o.getMonth(X)-Ia,1)&&a.mobiscroll.running?F(++ta,ma,"next",ra,!0,!0,function(){ja(b)}):Ta&&!b.hasClass("dwb-d")&& a.mobiscroll.running&&F(o.getYear(X),o.getMonth(X)-Ia,"next",ra,!0,!0)}function ea(b){Ta&&o.getDate(ta,ma,1)>=o.getDate(o.getYear(qa)+1,o.getMonth(qa)+pa,1)&&a.mobiscroll.running?F(--ta,ma,"prev",ra,!0,!0,function(){ea(b)}):Ta&&!b.hasClass("dwb-d")&&a.mobiscroll.running&&F(o.getYear(qa),o.getMonth(qa)+pa,"prev",ra,!0,!0)}function ba(a,b){a.hasClass("dw-cal-v")||(a.addClass("dw-cal-v"+(b?"":" dw-cal-p-in")).removeClass("dw-cal-p-out dw-cal-h"),c.trigger("onSelectShow",[]))}function v(a,b){a.hasClass("dw-cal-v")&& a.removeClass("dw-cal-v dw-cal-p-in").addClass("dw-cal-h"+(b?"":" dw-cal-p-out"))}function D(a,b){(b||a).hasClass("dw-cal-v")?v(a):ba(a)}function w(){a(this).removeClass("dw-cal-p-out dw-cal-p-in")}var W,e,E,R,ga,p,Y,T,z,S,K,P,$,H,x,Z,ha,fa,la,l,M,ia,oa,C,za,ka,s,sa,J,qa,X,La,ya,Ba,ta,ma,hb,ib,Db,Ja,Sa,Va,Za,Ta,na,Ga,Ia,pa,Xa,Ua,cb,rb,Fb=this,Aa=[],xa=[],fb=[],wa={},Ab={},Bb=function(){},Vb=a.extend({},c.settings),o=a.extend(c.settings,b,Vb),Wa="full"==o.weekDays?"":"min"==o.weekDays?"Min":"Short", ob=o.weekCounter,Hb=o.layout||(/top|bottom/.test(o.display)?"liquid":""),Ha="liquid"==Hb&&"bubble"!==o.display,yb="modal"==o.display,Ya=o.rtl,gb=Ya?-1:1,Gb=Ha?null:o.calendarWidth,Ka="vertical"==o.swipeDirection,ab=o.quickNav,ra=o.preMonths,Fa="yearMonth"==o.navigation,Da=o.controls.join(","),bb=(!0===o.tabs||!1!==o.tabs&&Ha)&&1
        ';for(e=0;e');g=g+('
        ');Fa&&(i='
        ');if(ab){ka=o.getYear(qa);s=o.getYear(X);sa=o.getMonth(qa);J=o.getMonth(X);ib=Math.ceil((s-ka+1)/12)+2;Qa=ca("month",36,24,0,"",o.monthNames,o.monthNamesShort);va=ca("year",ib*12,s-ka+13,ka,Ea)}H='
        '+(za1?i+g:g+i)+'
        ';for(E=0;E
        "}H=H+('
        ');for(e=0;e
        ';H=H+("
        "+Qa+va+"
        ");wa.calendar=a(H)}a.each(o.controls,function(b,c){wa[c]=a('
        ').append(a('
        ').append(wa[c])).appendTo(Sa)});d='
        ";Sa.before(d);T=a(".dw-cal-anim-c",p);z=a(".dw-cal-anim",T);Z=a(".dw-week-nrs",T);if($){fa=true;Aa=a(".dw-cal-slide",z).each(function(b,c){xa.push(a(c))});Aa.slice(ra,ra+na).addClass("dw-cal-slide-a").removeAttr("aria-hidden");for(e=0;e0?"prev":"next",a>0?a:-a)}})}ia=a(".dw-cal-month",p);C=a(".dw-cal-year",p);ha=a(".dw-cal-m-c",p);if(ab){ha.on("webkitAnimationEnd animationend",w);Qa=a(".dw-cal-month-c",p).on("webkitAnimationEnd animationend",w);va= a(".dw-cal-year-c",p).on("webkitAnimationEnd animationend",w);a(".dw-cal-sc-p",p);hb={axis:Ka?"Y":"X",contSize:0,snap:1,maxSnapScroll:1,rtl:o.rtl,mousewheel:o.mousewheel,swipe:o.swipe,liveSwipe:o.liveSwipe,time:200};Ua=new f.classes.ScrollView(va[0],hb);M=new f.classes.ScrollView(Qa[0],hb)}Ha?b.addClass("dw-cal-liq"):a(".dw-cal",p).width(Gb||280*na);o.calendarHeight&&a(".dw-cal-anim-c",p).height(o.calendarHeight);c.tap(T,function(b){b=a(b.target);if(!Za&&!l.scrolled&&o.readonly!==true){b=b.closest(".dw-cal-day", this);b.hasClass("dw-cal-day-v")&&r.call(b[0])}});a(".dw-cal-btn",p).on("touchstart mousedown keydown",function(b){var c=a(this);if(b.type!=="keydown"){b.preventDefault();b=O(b,this)}else b=b.keyCode===32;if(!Ta&&b&&!c.hasClass("dwb-d")){Ta=true;c.hasClass("dw-cal-prev-m")?B():c.hasClass("dw-cal-next-m")?A():c.hasClass("dw-cal-prev-y")?ea(c):c.hasClass("dw-cal-next-y")&&ja(c);a(j).on("mouseup.dwbtn",function(){a(j).off(".dwbtn");Ta=false})}}).on("touchend touchcancel keyup",function(){Ta=false}); a(".dw-cal-tab",p).on("touchstart click",function(b){O(b,this)&&a.mobiscroll.running&&c.changeTab(a(this).attr("data-control"))});if(ab){c.tap(a(".dw-cal-month",p),function(){if(!va.hasClass("dw-cal-v")){D(ha);fa=ha.hasClass("dw-cal-v")}D(Qa);v(va)});c.tap(a(".dw-cal-year",p),function(){va.hasClass("dw-cal-v")||Ua.scroll(cb);if(!Qa.hasClass("dw-cal-v")){D(ha);fa=ha.hasClass("dw-cal-v")}D(va);v(Qa)});c.tap(a(".dw-cal-month-s",p),function(){!M.scrolled&&!a(this).hasClass("dwb-d")&&c.navigate(o.getDate(ta, a(this).attr("data-val"),1))});c.tap(a(".dw-cal-year-s",p),function(){if(!Ua.scrolled){W=o.getDate(a(this).attr("data-val"),ma,1);c.navigate(new Date(y.constrain(W,qa,X)))}});c.tap(va,function(){if(!Ua.scrolled){v(va);ba(ha);fa=true}});c.tap(Qa,function(){if(!M.scrolled){v(Qa);ba(ha);fa=true}})}},onShow:function(){$&&G(ta,ma)},onPosition:function(b,d,f){var g,h,l,k=0,j=0,H=0;if(Ha){yb&&T.height("");Sa.height("");z.width("")}S&&(l=S);if(S=Math.round(Math.round(parseInt(T.css(Ka?"height":"width")))/ na)){p.removeClass("mbsc-cal-m mbsc-cal-l");S>1024?p.addClass("mbsc-cal-l"):S>640&&p.addClass("mbsc-cal-m")}if(bb&&(x||Ha)||L){a(".dw-cal-pnl",p).removeClass("dw-cal-pnl-h");a.each(wa,function(a,b){g=b.outerWidth();k=Math.max(k,g);j=Math.max(j,b.outerHeight());H=H+g});if(bb||L&&H>(Y[0].innerWidth||Y.innerWidth())){h=true;Va=a(".dw-cal-tabs .dw-sel",p).attr("data-control");ga.addClass("dw-cal-tabbed")}else{Va="calendar";j=k="";ga.removeClass("dw-cal-tabbed");Sa.css({width:"",height:""})}}if(Ha&&yb){c._isFullScreen= true;h&&$&&Sa.height(wa.calendar.outerHeight());b=ga.outerHeight();f>=b&&T.height(f-b+T.outerHeight());$&&(j=Math.max(j,wa.calendar.outerHeight()))}if(h){Sa.css({width:Ha?"":k,height:j});S=Math.round(Math.round(parseInt(T.css(Ka?"height":"width")))/na)}if(S){z[Ka?"height":"width"](S);if(S!==l){if(Fa){la=o.maxMonthWidth>a(".dw-cal-btnw-m",p).width()?o.monthNamesShort:o.monthNames;for(e=0;ec&&(c=v/c,v=Math.max(Math.abs(v),c*c/X.speedUnit)* (0>v?-1:1)),za("onGestureEnd",[R]),r(v));ga&&(clearTimeout(B),A.addClass("mbsc-btn-a"),setTimeout(function(){A.removeClass("mbsc-btn-a")},100),!K&&!s.scrolled&&za("onBtnTap",[A]));"mouseup"==b.type?a(document).off("mousemove",k).off("mouseup",N):"pointerup"==b.type&&a(document).off("pointermove",k).off("pointerup",N);z=!1}}function F(b){b=b.originalEvent||b;v=ka?b.deltaY||b.wheelDelta||b.detail:b.deltaX;X.stopProp&&b.stopPropagation();v&&a.mobiscroll.running&&(b.preventDefault(),v=0>v?20:-20,fa=sa, $||($=!0,P=ca(i)),clearTimeout(H),H=setTimeout(function(){V(P);$=false;r(v)},200))}function r(a){var b;Y&&(a=d(a,-Z*Y,Z*Y));J=Math.round((fa+a)/Z);b=d(J*Z,T,p);if(ha){if(0>a)for(a=ha.length-1;0<=a;a--){if(Math.abs(b)+ja>=ha[a].breakpoint){J=a;qa=2;b=ha[a].snap2;break}}else if(0<=a)for(a=0;ap?200:Math.max(200,Math.abs(b-sa)*X.timeUnit));h(b,a)}function h(a,c,d){var e=a!=sa,f=1=c?g():c&&(S=!0,clearInterval(x), x=setInterval(function(){var a=+b(oa,ka)||0;R.posX=ka?0:a;R.posY=ka?a:0;za("onMove",[R])},100),clearTimeout(C),C=setTimeout(function(){g();m&&(ia[y+"Transition"]="")},c))}var A,B,ja,ea,ba,v,D,w,W,e,E,R,ga,p,Y,T,z,S,K,P,$,H,x,Z,ha,fa,la,l,M,ia,oa,C,za,ka,s=this,sa=0,J=0,qa=1,X=g,La=a(f);u.Base.call(this,f,g,!0);s.scrolled=!1;s.scroll=function(b,c,e){b=da(b)?Math.round(b/Z)*Z:Math.ceil((a(b,f).length?Math.round(oa.offset()[D]-a(b,f).offset()[D]):sa)/Z)*Z;J=Math.round(b/Z);fa=sa;h(d(b,T,p),c,e)};s.refresh= function(){var a;ja=X.contSize===t?ka?La.height():La.width():X.contSize;T=X.minScroll===t?ka?ja-oa.height():ja-oa.width():X.minScroll;p=X.maxScroll===t?0:X.maxScroll;!ka&&X.rtl&&(a=p,p=-T,T=-a);Q(X.snap)&&(ha=[],oa.find(X.snap).each(function(){var a=ka?this.offsetTop:this.offsetLeft,b=ka?this.offsetHeight:this.offsetWidth;ha.push({breakpoint:a+b/2,snap1:-a,snap2:ja-a-b})}));Z=da(X.snap)?X.snap:1;Y=X.snap?X.maxSnapScroll:0;w=X.easing;W=X.elastic?da(X.snap)?Z:da(X.elastic)?X.elastic:0:0;sa===t&&(sa= X.initialPos,J=Math.round(sa/Z));s.scroll(X.snap?ha?ha[J]["snap"+qa]:J*Z:sa)};s.init=function(a){s._init(a);D=(ka="Y"==X.axis)?"top":"left";oa=X.moveElement||La.children().eq(0);ia=oa[0].style;s.refresh();if(X.swipe)La.on("touchstart mousedown pointerdown",aa).on("touchmove",k).on("touchend touchcancel pointercancel",N);if(X.mousewheel)La.on("wheel mousewheel",F);f.addEventListener&&f.addEventListener("click",function(a){s.scrolled&&(a.stopPropagation(),a.preventDefault())},!0)};s.destroy=function(){clearInterval(x); La.off("touchstart mousedown pointerdown",aa).off("touchmove",k).off("touchend touchcancel pointercancel",N).off("wheel mousewheel",F);s._destroy()};X=s.settings;za=s.trigger;j||s.init(g)};u.ScrollView.prototype={_class:"scrollview",_defaults:{speedUnit:0.0022,timeUnit:0.8,initialPos:0,axis:"Y",easing:"ease-out",stopProp:!0,swipe:!0,liveSwipe:!0,momentum:!0,elastic:!0}};j.presetShort("scrollview","ScrollView",!1)})(jQuery);(function(a,t){var j=a.mobiscroll,u={wheelOrder:"hhiiss",useShortLabels:!1,minTime:0,maxTime:Infinity,labels:"Years,Months,Days,Hours,Minutes,Seconds".split(","),labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(",")};j.presetShort("timespan");j.presets.scroller.timespan=function(f){function d(b){var c={};a(h).each(function(a,d){c[d]=ea[d]?Math.floor(b/A[d].limit):0;b-=c[d]*A[d].limit});return c}function y(a,b){var d=!1,f=ja[ea[a]-1]||1,h=A[a],j=h.wheel,n=h.prefix;G=0;g=h.until;a==ba&&(G=Math.max(k[a], b[a]-50*f),g=Math.min(i[a],G+100*f),c=G+5*f,da=g-5*f);j.keys=[];j.values=[];j.label=h.label;r.match(RegExp(h.re+h.re,"i"))&&(d=!0);for(m=G;m<=g;m+=f)j.keys.push(m),j.values.push((n||"")+(10>m&&d?"0":"")+m+''+h.label+"")}function n(b){var c=0;a.each(B,function(a,d){isNaN(+b[0])||(c+=A[d.v].limit*b[a])});return c}var m,O,b,c,da,Q,ca,V,G,g,q,aa,k,i,N=a.extend({},f.settings),F=a.extend(f.settings,u,N),r=F.wheelOrder,N=F.useShortLabels?F.labelsShort:F.labels,h="years,months,days,hours,minutes,seconds".split(","), A={years:{ord:0,index:6,until:10,limit:31536E6,label:N[0],re:"y",wheel:{}},months:{ord:1,index:5,until:11,limit:2592E6,label:N[1],re:"m",wheel:{}},days:{ord:2,index:4,until:31,limit:864E5,label:N[2],re:"d",wheel:{}},hours:{ord:3,index:3,until:23,limit:36E5,label:N[3],re:"h",wheel:{}},minutes:{ord:4,index:2,until:59,limit:6E4,label:N[4],re:"i",wheel:{}},seconds:{ord:5,index:1,until:59,limit:1E3,label:N[5],re:"s",wheel:{}}},B=[],ja=F.steps||[],ea={},ba="seconds",v=0,D=F.defaultValue||Math.max(F.minTime, Math.min(0,F.maxTime)),w=[[]];b=0;V=d(b);k=d(F.minTime);i=d(F.maxTime);a(h).each(function(a,b){O=r.search(RegExp(A[b].re,"i"));-1A[ba].index&&(ba=b))});B.sort(function(a,b){return a.o>b.o?1:-1});a.each(B,function(a,b){b.v==ba&&(v=a);ea[b.v]=a+1;w[0].push(A[b.v].wheel);y(b.v,V)});f.getVal=function(a,b){return b?f._getVal(a):f._hasValue||a?n(f.getArrayVal(a)):null};return{mode:"scroller",showLabel:!0,wheels:w,parseValue:function(b){var c=[],f;j.util.isNumeric(b)||!b? (V=d(b||D),a.each(B,function(a,b){c.push(V[b.v])})):a.each(B,function(a,d){f=RegExp("(\\d+)\\s?("+F.labels[A[d.v].ord]+"|"+F.labelsShort[A[d.v].ord]+")","gi").exec(b);c.push(f?f[1]:0)});a(c).each(function(a,b){c[a]=Math.floor(b/(ja[a]||1))*(ja[a]||1)});return c},formatValue:function(b){var c="";a.each(B,function(a,d){c+=+b[a]?b[a]+" "+A[d.v].label+" ":""});return c.replace(/\s+$/g,"")},validate:function(j,e,m){var r,u,p=f._tempWheelArray;b=n(p);r=d(b);if(e===v||!Q&&(p[v]da))if(y(ba,r),q!== G||aa!==g)u=p[v],ca=setTimeout(function(){q=G;aa=g;Q=!0;p[v]=u;f.changeWheel([v],t,e!==t)},1E3*m);var w=!0,A=!0;a(h).each(function(b,c){if(ea[c]!==t){var d=a(".dw-ul",j).eq(ea[c]-1),e=a(".dw-li",d).index(a('.dw-li[data-val="'+i[c]+'"]',d)),f=a(".dw-li",d).index(a('.dw-li[data-val="'+k[c]+'"]',d));a(".dw-li",d).addClass("dw-v");w&&-1W.days.index){var e,f,g,h;e=new Date;var i=q?e:P;e=q?P:e;e=d(e);i=d(i);c.years=i.getFullYear()-e.getFullYear();c.months=i.getMonth()-e.getMonth();c.days=i.getDate()-e.getDate();c.hours=i.getHours()-e.getHours();c.minutes=i.getMinutes()-e.getMinutes();c.seconds=i.getSeconds()-e.getSeconds();c.fract=(i.getMilliseconds()-e.getMilliseconds())/10;for(e=w.length;0c[f]&&(c[h]--,c[f]+="months"==h?32-(new Date(i.getFullYear(), i.getMonth(),32)).getDate():g.until+1);"months"==z&&(c.months+=12*c.years,delete c.years)}else a(w).each(function(a,d){W[d].index<=W[z].index&&(c[d]=Math.floor(b/W[d].limit),b-=c[d]*W[d].limit)});return c}function n(c,d){var f=1,g=W[c],h=g.wheel,j=g.prefix,H=W[w[a.inArray(c,w)-1]];A=0;B=g.until;c==z&&(A=Math.max(0,d[c]-50),B=A+100,k=A+5,i=B-5);if(g.index<=W[z].index&&(!H||H.limit>T)){e[c]||x[0].push(h);e[c]=1;h.keys=[];h.values=[];h.label=g.label||"";T>=g.limit&&(f=Math.max(Math.round(T/g.limit), 1),da=f*g.limit);for(b=A;b<=B;b+=f)h.keys.push(b),h.values.push((j||"")+(10>b?"0":"")+b+''+(g.label||"")+"")}}function m(b){var c=[],d,f=j(b);a(w).each(function(a,b){e[b]&&(d=Math.max(Math.round(T/W[b].limit),1),c.push(Math.round(f[b]/d)*d))});return c}function O(a){$?(G=P-new Date,0>G?(G*=-1,q=!0):q=!1,g=0,Y=!0):(P!==t?(Y=!1,G=1E3*P,q="down"!==v.countDirection):(G=0,Y=q="down"!==v.countDirection),a&&(g=0))}var b,c,da,Q,ca,V,G,g,q,aa,k,i,N,F,r,h,A,B,ja,ea,ba=a.extend({}, f.settings),v=a.extend(f.settings,u,ba),D=v.useShortLabels?v.labelsShort:v.labels,w="years,months,days,hours,minutes,seconds,fract".split(","),W={years:{index:6,until:10,limit:31536E6,label:D[0],wheel:{}},months:{index:5,until:11,limit:2592E6,label:D[1],wheel:{}},days:{index:4,until:31,limit:864E5,label:D[2],wheel:{}},hours:{index:3,until:23,limit:36E5,label:D[3],wheel:{}},minutes:{index:2,until:59,limit:6E4,label:D[4],wheel:{}},seconds:{index:1,until:59,limit:1E3,label:D[5],wheel:{}},fract:{index:0, until:99,limit:10,label:D[6],prefix:".",wheel:{}}},e={},E=[],R=0,ga=!1,p=!0,Y=!1,T=Math.max(10,1E3*v.step),z=v.maxWheel,S=v.locked||$,K=(a.isArray(v.controls)?v.controls:[]).join(","),P=v.targetTime,$=P&&P.getTime!==t,H="jqm"==v.theme,x=[[]];f.start=function(){p&&f.reset();if(!ga&&(O(),Y||!(g>=G)))ga=!0,p=!1,ca=new Date,Q=g,v.readonly=!0,f.setValue(m(q?g:G-g),!0,0.1),c=setInterval(function(){g=new Date-ca+Q;f.setValue(m(q?g:G-g),!0,0.1);!Y&&g+da>=G&&(clearInterval(c),setTimeout(function(){f.stop(); g=G;f.setValue(m(q?g:0),!0,0.1);f.trigger("onFinish",[G]);p=!0},G-g))},da),a(".dwwr",aa).addClass("dw-running dw-locked"),a(".dw-timer-st",aa).removeClass(v.btnStartClass||"").addClass(v.btnStopClass||"").attr("title",v.stopText).find(".dwb-txt").text(v.stopText),f.trigger("onStart",[])};f.stop=function(){ga&&(ga=!1,clearInterval(c),g=new Date-ca+Q,a(".dwwr",aa).removeClass("dw-running"),a(".dw-timer-st",aa).removeClass(v.btnStopClass||"").addClass(v.btnStartClass||"").attr("title",v.startText).find(".dwb-txt").text(v.startText), f.trigger("onStop",[g]))};f.reset=function(){f.stop();g=0;E=[];R=0;f.setValue(m(q?0:G),!0,0.1);f.settings.readonly=S;p=!0;S||a(".dwwr",aa).removeClass("dw-locked");f.trigger("onReset",[])};f.lap=function(){ga&&(V=new Date-ca+Q,N=V-R,R=V,E.push(V),f.trigger("lap",[V,N,E]))};f.getTime=function(){return G};f.setTime=function(a){P=a/1E3;G=a};f.getElapsedTime=f.getEllapsedTime=function(){return ga?new Date-ca+Q:0};f.setElapsedTime=f.setEllapsedTime=function(a,b){p||(Q=g=a,ca=new Date,f.setValue(m(q?g: G-g),!0,0.1,!1,b))};O(!0);!z&&!G&&(z="minutes");z||a(w).each(function(a,b){if(!z&&G>=W[b].limit)return z=b,!1});h=j(G);a(w).each(function(a,b){n(b,h)});da=Math.max(87,da);v.autostart&&setTimeout(function(){f.start()},0);return{wheels:x,headerText:!1,readonly:S,parseValue:function(){return m(q?0:G)},formatValue:function(b){var c="",d=0;a(w).each(function(a,f){"fract"!=f&&e[f]&&(c+=b[d]+("seconds"==f&&e.fract?"."+b[d+1]:"")+" "+D[a]+" ",d++)});return c},validate:function(b,c,d){var h,l,H=0,x=f._tempWheelArray, b=!1;p&&c!==t&&(P=0,a(w).each(function(a,b){e[b]&&(P+=W[b].limit*x[H],H++)}),P/=1E3,O(!0));if(p&&0===c)b=!0,h=j(G);else if(!F&&(x[0]i))h=j(q?g:G-g),b=!0;if(b&&(n(z,h),ja!==A||ea!==B))l=x[0],r=setTimeout(function(){ja=A;ea=B;F=true;x[0]=l;f.changeWheel([0],t,c!==t)},1E3*d);F=!1},onBeforeShow:function(){v.mode="scroller";v.showLabel=!0},onMarkupReady:function(b){var c=0;aa=b;b.addClass("dw-timer");ga?a(".dwwr",b).addClass("dw-running"):a(".dwwr",b).removeClass("dw-running");S&&a(".dwwr",aa).addClass("dw-locked"); a(".dwbc",b).remove();a(".dwwl0",b).on("mousedown touchstart",function(){clearTimeout(r)});a(w).each(function(d,f){e[f]&&(a(".dwwl"+c,b).addClass("dwwl-"+f),c++)});var d=K.match(/start/),g=K.match(/reset/)&&!$,h=K.match(/lap/)&&!$,i="inline"!==v.display;if(d||g||h||i)a(".dwwr",b).addClass("dw-timer-btns").append('"),f.tap(a(".dw-timer-st",b),function(){ga?f.stop():f.start()},!0),f.tap(a(".dw-timer-r",b),function(){f.reset()},!0),f.tap(a(".dw-timer-l",b),function(){f.lap()},!0),f.tap(a(".dw-timer-cl",b),function(){f.hide()},!0)},onPosition:function(b){a(".dwwr",b).css("min-width",0).css("min-width",a(".dwbc",b).outerWidth())},onDestroy:function(){clearInterval(c)}}}})(jQuery);(function(a,t,j,u){var f=a.mobiscroll,d=a.extend,y=f.util,n=f.datetime,m=f.presets.scroller,O={labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(","),fromText:"Start",toText:"End",eventText:"event",eventsText:"events"};f.presetShort("calendar");m.calendar=function(b){function c(b){if(b){if(W[b])return W[b];var c=a('
        ').appendTo("body"),d=(t.getComputedStyle?getComputedStyle(c[0]):c[0].style).backgroundColor.replace(/rgb|rgba|\(|\)|\s/g,"").split(","),d=130< 0.299*d[0]+0.587*d[1]+0.114*d[2]?"#000":"#fff";c.remove();return W[b]=d}}function j(a){return a.sort(function(a,b){var c=a.d||a.start,d=b.d||b.start,c=!c.getTime?0:a.start&&a.end&&a.start.toDateString()!==a.end.toDateString()?1:c.getTime(),d=!d.getTime?0:b.start&&b.end&&b.start.toDateString()!==b.end.toDateString()?1:d.getTime();return c-d})}function Q(b){var c;c=a(".dw-cal-c",k).outerHeight();var d=b.outerHeight(),e=b.outerWidth(),f=b.offset().top-a(".dw-cal-c",k).offset().top,g=2>b.closest(".dw-cal-row").index(); c=i.addClass("dw-cal-events-t").css({top:g?f+d:"0",bottom:g?"0":c-f}).addClass("dw-cal-events-v").height();i.css(g?"bottom":"top","auto").removeClass("dw-cal-events-t");h.css("max-height",c);r.refresh();r.scroll(0);g?i.addClass("dw-cal-events-b"):i.removeClass("dw-cal-events-b");a(".dw-cal-events-arr",i).css("left",b.offset().left-i.offset().left+e/2)}function ca(d,g){var h=F[d];if(h){var k,m,n,l,q,p='
          ';N=g;g.addClass(E).find(".dw-i").addClass(ga);g.hasClass(R)&&g.attr("data-hl", "true").removeClass(R);j(h);a.each(h,function(a,b){l=b.d||b.start;q=b.start&&b.end&&b.start.toDateString()!==b.end.toDateString();n=b.color;c(n);m=k="";l.getTime&&(k=f.datetime.formatDate((q?"MM d yy ":"")+e.timeFormat,l));b.end&&(m=f.datetime.formatDate((q?"MM d yy ":"")+e.timeFormat,b.end));var d=p,g='
        • '+ (l.getTime&&!q?'
          '+f.datetime.formatDate(e.timeFormat,l)+"
          ":"")+b.text+"
          ",h;if(b.start&&b.end){h=e.labelsShort;var i=Math.abs(b.end-b.start)/1E3,j=i/60,H=j/60,x=H/24,r=x/365;h='
          '+(45>i&&Math.round(i)+" "+h[5].toLowerCase()||45>j&&Math.round(j)+" "+h[4].toLowerCase()||24>H&&Math.round(H)+" "+h[3].toLowerCase()||30>x&&Math.round(x)+" "+h[2].toLowerCase()||365>x&&Math.round(x/30)+" "+h[1].toLowerCase()||Math.round(r)+" "+h[0].toLowerCase())+ "
          "}else h="";p=d+(g+h+"
        • ")});p+="
        ";A.html(p);b.trigger("onEventBubbleShow",[N,i]);Q(N);b.tap(a(".dw-cal-event",A),function(c){r.scrolled||b.trigger("onEventSelect",[c,h[a(this).index()],d])});B=!0}}function V(){i&&i.removeClass("dw-cal-events-v");N&&(N.removeClass(E).find(".dw-i").removeClass(ga),N.attr("data-hl")&&N.removeAttr("data-hl").addClass(R));B=!1}function G(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function g(a){K={};if(a&&a.length)for(ea=0;ea",b=0;b\n");if("bottom"==T){m='
        ';for(b=0;b
        ";m+="
        "}return{marked:h,selected:P?!1:d, cssClass:P&&d?"dw-cal-day-hl":h?"dw-cal-day-marked":"",ariaLabel:z||P?f:"",markup:z&&f?'
        "+f+"
        ").text()+'"'+(i?' style="background:'+i+";color:"+j+';text-shadow:none;"':"")+">"+k+f+"
        ":z&&k?'
        '+k+"
        ":h?m:""}};b.addValue=function(a){K[G(a)]=a;q()};b.removeValue=function(a){delete K[G(a)];q()};b.setVal=function(a,c,d,e,f){p&&(g(a),a=a?a[0]:null);b._setVal(a, c,d,e,f);q()};b.getVal=function(a){return p?y.objectToArray(K):b.getDate(a)};b.setValues=function(a,c){b.setDate(a?a[0]:null,c);g(a);q()};b.getValues=function(){return p?b.getVal():[b.getDate()]};P&&(b.addEvent=function(b){var c=[],b=d(!0,[],a.isArray(b)?b:[b]);a.each(b,function(a,b){b._id===u&&(b._id=S++);$.push(b);c.push(b._id)});q();return c},b.removeEvent=function(b){b=a.isArray(b)?b:[b];a.each(b,function(b,c){a.each($,function(a,b){if(b._id===c)return $.splice(a,1),!1})});q()},b.getEvents=function(a){var c; return a?(a.setHours(0,0,0,0),c=b.prepareObj($,a.getFullYear(),a.getMonth()),c[a]?j(c[a]):[]):d(!0,[],$)},b.setEvents=function(b){var c=[];$=d(!0,[],b);a.each($,function(a,b){b._id===u&&(b._id=S++);c.push(b._id)});q();return c});d(D,{highlight:!p&&!P,divergentDayChange:!p&&!P,buttons:P&&"inline"!==e.display?["cancel"]:e.buttons,parseValue:function(a){var c,d;if(p&&a&&typeof a==="string"){K={};a=a.split(",");for(c=0;c1?e.selectedPluralText||e.selectedText:e.selectedText).replace(/{count}/, b)}},onMarkupReady:function(c){aa.onMarkupReady.call(this,c);k=c;if(p){a(".dwv",c).attr("aria-live","off");v=d({},K)}z&&a(".dw-cal",c).addClass("dw-cal-ev");T&&a(".dw-cal",c).addClass("dw-cal-m-"+T);if(P){c.addClass("dw-cal-em");i=a('
        ').appendTo(a(".dw-cal-c",c));h=a(".dw-cal-events-i",i);A=a(".dw-cal-events-sc",i);r=new f.classes.ScrollView(h[0]); B=false;b.tap(h,function(){r.scrolled||V()})}},onMonthChange:function(){P&&V()},onSelectShow:function(){P&&V()},onMonthLoaded:function(){if(w){ca(w.d,a('.dw-cal-day-v[data-full="'+w.full+'"]:not(.dw-cal-day-diff)',k));w=false}},onDayChange:function(c){var d=c.date,f=G(d),g=a(c.cell),c=c.selected;if(P){V();g.hasClass("dw-cal-day-ev")||setTimeout(function(){b.changing?w={d:f,full:g.attr("data-full")}:ca(f,g)},10)}else if(p)if(e.selectType=="week"){var h,i,j=f.getDay()-ja,j=j<0?7+j:j;e.multiSelect|| (K={});for(h=0;h<7;h++){i=new Date(f.getFullYear(),f.getMonth(),f.getDate()-j+h);c?delete K[i]:y.objectToArray(K).length/7'),E.showInput&&F.insertBefore(p));j.attachShow(F.attr("placeholder",E.placeholder||""));p.addClass("dw-hsel").attr("tabindex", -1).closest(".ui-field-contain").trigger("create");Q();j.setVal=function(a,b,c,d,e){if(Y){a&&f(a)&&(a=a.split(","));l=u.arrayToObject(a);a=a?a[0]:null}j._setVal(a,b,c,d,e)};j.getVal=function(a,b){return Y?u.objectToArray(l):da(a,b)};j.refresh=function(){n();v={};D={};var a=E,d=[[]];x&&O(d);b(d);a.wheels=d;v[i]=w[i];D[i]=W[i];v[h]=w[h];D[h]=W[h];V=true;c(A);j._tempWheelArray=x?[g,A]:[A];j._isVisible&&j.changeWheel(x?[i,h]:[h])};j.getValues=j.getVal;j.getValue=da;return{width:50,layout:e,headerText:!1, anchor:F,confirmOnTap:x?[!1,!0]:!0,formatValue:function(a){var b,c=[];if(Y){for(b in l)c.push(M[b]?M[b].text:"");return c.join(", ")}a=a[h];return M[a]?M[a].text:""},parseValue:function(a){c(a===t?p.val():a);return x?[g,A]:[A]},onValueTap:ca,onValueFill:Q,onBeforeShow:function(){if(Y&&E.counter)E.headerText=function(){var b=0;a.each(l,function(){b++});return(b>1?E.selectedPluralText||E.selectedText:E.selectedText).replace(/{count}/,b)};c(p.val());if(x)j._tempWheelArray=[g,A];j.refresh()},onMarkupReady:function(b){b.addClass("dw-select"); a(".dwwl"+i,b).on("mousedown touchstart",function(){clearTimeout(ea)});a(".dwwl"+h,b).on("mousedown touchstart",function(){aa||clearTimeout(ea)});ha&&a(".dwwl"+h,b).addClass("dw-select-gr");if(Y){b.addClass("dwms");a(".dwwl",b).on("keydown",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();ca(a(".dw-sel",this))}}).eq(h).attr("aria-multiselectable","true");B=a.extend({},l)}},validate:function(c,d,e,f){var m,n=[];m=j.getArrayVal(true);var p=m[i],u=m[h],z=a(".dw-ul",c).eq(i),B=a(".dw-ul", c).eq(h);v[i]>1&&a(".dw-li",z).slice(0,2).removeClass("dw-v").addClass("dw-fv");D[i]1&&a(".dw-li",B).slice(0,2).removeClass("dw-v").addClass("dw-fv");D[h]<(Z?ia[p].options:r).length-2&&a(".dw-li",B).slice(-2).removeClass("dw-v").addClass("dw-fv");if(!V){A=u;if(x){g=M[A].group;if(d===t||d===i){g=+m[i];aa=false;if(g!==ja){A=ia[g].options[0].value;v[h]=null;D[h]=null;aa=true;E.readonly=[false,true]}else E.readonly=P}}if(H&& (/__group/.test(A)||k)){u=A=ia[M[k||A].group].options[0].value;k=false}j._tempWheelArray=x?[p,u]:[u];if(x){O(E.wheels);ba[i]&&n.push(i)}b(E.wheels);ba[h]&&n.push(h);clearTimeout(ea);ea=setTimeout(function(){if(n.length){V=true;aa=false;ja=g;v[i]=w[i];D[i]=W[i];v[h]=w[h];D[h]=W[h];j._tempWheelArray=x?[p,A]:[A];j.changeWheel(n,0,d!==t)}if(x){d===h&&j.scroll(z,i,j.getValidCell(g,z,f,false,true).v,0.1);j._tempWheelArray[i]=g}E.readonly=P},d===t?100:e*1E3);if(n.length)return aa?false:true}if(d===t&&Y){m= l;e=0;a(".dwwl"+h+" .dw-li",c).removeClass(K).removeAttr("aria-selected");for(e in m)a(".dwwl"+h+' .dw-li[data-val="'+m[e]+'"]',c).addClass(K).attr("aria-selected","true")}ha&&a('.dw-li[data-val^="__group"]',c).addClass("dw-w-gr");a.each(E.invalid,function(b,c){a('.dw-li[data-val="'+c+'"]',B).removeClass("dw-v dw-fv")});V=false},onValidated:function(){A=j._tempWheelArray[h]},onClear:function(b){l={};F.val("");a(".dwwl"+h+" .dw-li",b).removeClass(K).removeAttr("aria-selected")},onCancel:function(){!j.live&& Y&&(l=a.extend({},B))},onDestroy:function(){F.hasClass("mbsc-control")||F.remove();p.removeClass("dw-hsel").removeAttr("tabindex")}}}})(jQuery);(function(a){a.each(["date","time","datetime"],function(t,j){a.mobiscroll.presetShort(j)})})(jQuery);(function(a){a.mobiscroll.themes.frame["mobiscroll-dark"]={baseTheme:"mobiscroll",rows:5,showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"};a.mobiscroll.themes.listview["mobiscroll-dark"]={baseTheme:"mobiscroll"};a.mobiscroll.themes.menustrip["mobiscroll-dark"]= {baseTheme:"mobiscroll"};a.mobiscroll.themes.form["mobiscroll-dark"]={baseTheme:"mobiscroll"};a.mobiscroll.themes.progress["mobiscroll-dark"]={baseTheme:"mobiscroll"}})(jQuery);(function(a){var t,j,u,f=a.mobiscroll,d=f.themes;j=navigator.userAgent.match(/Android|iPhone|iPad|iPod|Windows|Windows Phone|MSIE/i);if(/Android/i.test(j)){if(t="android-holo",j=navigator.userAgent.match(/Android\s+([\d\.]+)/i))j=j[0].replace("Android ",""),t=5<=j.split(".")[0]?"material":4<=j.split(".")[0]?"android-holo":"android"}else if(/iPhone/i.test(j)||/iPad/i.test(j)||/iPod/i.test(j)){if(t="ios",j=navigator.userAgent.match(/OS\s+([\d\_]+)/i))j=j[0].replace(/_/g,".").replace("OS ",""),t="7"<= j?"ios":"ios-classic"}else if(/Windows/i.test(j)||/MSIE/i.test(j)||/Windows Phone/i.test(j))t="wp";a.each(d,function(d,j){a.each(j,function(a,d){if(d.baseTheme==t)return f.autoTheme=a,u=!0,!1;a==t&&(f.autoTheme=a)});if(u)return!1})})(jQuery);