/*! jquery ui - v1.8.22 - 2012-07-24 * https://github.com/jquery/jquery-ui * includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js, jquery.effects.blind.js, jquery.effects.bounce.js, jquery.effects.clip.js, jquery.effects.drop.js, jquery.effects.explode.js, jquery.effects.fade.js, jquery.effects.fold.js, jquery.effects.highlight.js, jquery.effects.pulsate.js, jquery.effects.scale.js, jquery.effects.shake.js, jquery.effects.slide.js, jquery.effects.transfer.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.tabs.js * copyright (c) 2012 authors.txt; licensed mit, gpl */ (function(a,b){function c(b,c){var e=b.nodename.tolowercase();if("area"===e){var f=b.parentnode,g=f.name,h;return!b.href||!g||f.nodename.tolowercase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andself().filter(function(){return a.curcss(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.22",keycode:{alt:18,backspace:8,caps_lock:20,comma:188,command:91,command_left:91,command_right:93,control:17,delete:46,down:40,end:35,enter:13,escape:27,home:36,insert:45,left:37,menu:93,numpad_add:107,numpad_decimal:110,numpad_divide:111,numpad_enter:108,numpad_multiply:106,numpad_subtract:109,page_down:34,page_up:33,period:190,right:39,shift:16,space:32,tab:9,up:38,windows:91}}),a.fn.extend({propattr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;settimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollparent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curcss(this,"position",1))&&/(auto|scroll)/.test(a.curcss(this,"overflow",1)+a.curcss(this,"overflow-y",1)+a.curcss(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curcss(this,"overflow",1)+a.curcss(this,"overflow-y",1)+a.curcss(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zindex:function(c){if(c!==b)return this.css("zindex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseint(d.css("zindex"),10);if(!isnan(f)&&f!==0)return f}d=d.parent()}}return 0},disableselection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableselection",function(a){a.preventdefault()})},enableselection:function(){return this.unbind(".ui-disableselection")}}),a("").outerwidth(1).jquery||a.each(["width","height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parsefloat(a.curcss(b,"padding"+this,!0))||0,d&&(c-=parsefloat(a.curcss(b,"border"+this+"width",!0))||0),f&&(c-=parsefloat(a.curcss(b,"margin"+this,!0))||0)}),c}var e=d==="width"?["left","right"]:["top","bottom"],f=d.tolowercase(),g={innerwidth:a.fn.innerwidth,innerheight:a.fn.innerheight,outerwidth:a.fn.outerwidth,outerheight:a.fn.outerheight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createpseudo?a.expr.createpseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isnan(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isnan(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendchild(c=document.createelement("div"));c.offsetheight,a.extend(c.style,{minheight:"100px",height:"auto",padding:0,borderwidth:0}),a.support.minheight=c.offsetheight===100,a.support.selectstart="onselectstart"in c,b.removechild(c).style.display="none"}),a.curcss||(a.curcss=a.css),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentnode)return;for(var e=0;e0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isoveraxis:function(a,b,c){return a>b&&a=9||!!b.button?this._mousestarted?(this._mousedrag(b),b.preventdefault()):(this._mousedistancemet(b)&&this._mousedelaymet(b)&&(this._mousestarted=this._mousestart(this._mousedownevent,b)!==!1,this._mousestarted?this._mousedrag(b):this._mouseup(b)),!this._mousestarted):this._mouseup(b)},_mouseup:function(b){return a(document).unbind("mousemove."+this.widgetname,this._mousemovedelegate).unbind("mouseup."+this.widgetname,this._mouseupdelegate),this._mousestarted&&(this._mousestarted=!1,b.target==this._mousedownevent.target&&a.data(b.target,this.widgetname+".preventclickevent",!0),this._mousestop(b)),!1},_mousedistancemet:function(a){return math.max(math.abs(this._mousedownevent.pagex-a.pagex),math.abs(this._mousedownevent.pagey-a.pagey))>=this.options.distance},_mousedelaymet:function(a){return this.mousedelaymet},_mousestart:function(a){},_mousedrag:function(a){},_mousestop:function(a){},_mousecapture:function(a){return!0}})}(jquery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgeteventprefix:"drag",options:{addclasses:!0,appendto:"parent",axis:!1,connecttosortable:!1,containment:!1,cursor:"auto",cursorat:!1,grid:!1,handle:!1,helper:"original",iframefix:!1,opacity:!1,refreshpositions:!1,revert:!1,revertduration:500,scope:"default",scroll:!0,scrollsensitivity:20,scrollspeed:20,snap:!1,snapmode:"both",snaptolerance:20,stack:!1,zindex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addclasses&&this.element.addclass("ui-draggable"),this.options.disabled&&this.element.addclass("ui-draggable-disabled"),this._mouseinit()},destroy:function(){if(!this.element.data("draggable"))return;return this.element.removedata("draggable").unbind(".draggable").removeclass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mousedestroy(),this},_mousecapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")?!1:(this.handle=this._gethandle(b),this.handle?(c.iframefix&&a(c.iframefix===!0?"iframe":c.iframefix).each(function(){a('
').css({width:this.offsetwidth+"px",height:this.offsetheight+"px",position:"absolute",opacity:"0.001",zindex:1e3}).css(a(this).offset()).appendto("body")}),!0):!1)},_mousestart:function(b){var c=this.options;return this.helper=this._createhelper(b),this.helper.addclass("ui-draggable-dragging"),this._cachehelperproportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cachemargins(),this.cssposition=this.helper.css("position"),this.scrollparent=this.helper.scrollparent(),this.offset=this.positionabs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pagex-this.offset.left,top:b.pagey-this.offset.top},parent:this._getparentoffset(),relative:this._getrelativeoffset()}),this.originalposition=this.position=this._generateposition(b),this.originalpagex=b.pagex,this.originalpagey=b.pagey,c.cursorat&&this._adjustoffsetfromhelper(c.cursorat),c.containment&&this._setcontainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cachehelperproportions(),a.ui.ddmanager&&!c.dropbehaviour&&a.ui.ddmanager.prepareoffsets(this,b),this._mousedrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragstart(this,b),!0)},_mousedrag:function(b,c){this.position=this._generateposition(b),this.positionabs=this._convertpositionto("absolute");if(!c){var d=this._uihash();if(this._trigger("drag",b,d)===!1)return this._mouseup({}),!1;this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mousestop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropbehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);var d=this.element[0],e=!1;while(d&&(d=d.parentnode))d==document&&(e=!0);if(!e&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isfunction(this.options.revert)&&this.options.revert.call(this.element,c)){var f=this;a(this.helper).animate(this.originalposition,parseint(this.options.revertduration,10),function(){f._trigger("stop",b)!==!1&&f._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseup:function(b){return this.options.iframefix===!0&&a("div.ui-draggable-iframefix").each(function(){this.parentnode.removechild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragstop(this,b),a.ui.mouse.prototype._mouseup.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseup({}):this._clear(),this},_gethandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;return a(this.options.handle,this.element).find("*").andself().each(function(){this==b.target&&(c=!0)}),c},_createhelper:function(b){var c=this.options,d=a.isfunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeattr("id"):this.element;return d.parents("body").length||d.appendto(c.appendto=="parent"?this.element[0].parentnode:c.appendto),d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute"),d},_adjustoffsetfromhelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isarray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperproportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperproportions.height-b.bottom+this.margins.top)},_getparentoffset:function(){this.offsetparent=this.helper.offsetparent();var b=this.offsetparent.offset();this.cssposition=="absolute"&&this.scrollparent[0]!=document&&a.ui.contains(this.scrollparent[0],this.offsetparent[0])&&(b.left+=this.scrollparent.scrollleft(),b.top+=this.scrollparent.scrolltop());if(this.offsetparent[0]==document.body||this.offsetparent[0].tagname&&this.offsetparent[0].tagname.tolowercase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseint(this.offsetparent.css("bordertopwidth"),10)||0),left:b.left+(parseint(this.offsetparent.css("borderleftwidth"),10)||0)}},_getrelativeoffset:function(){if(this.cssposition=="relative"){var a=this.element.position();return{top:a.top-(parseint(this.helper.css("top"),10)||0)+this.scrollparent.scrolltop(),left:a.left-(parseint(this.helper.css("left"),10)||0)+this.scrollparent.scrollleft()}}return{top:0,left:0}},_cachemargins:function(){this.margins={left:parseint(this.element.css("marginleft"),10)||0,top:parseint(this.element.css("margintop"),10)||0,right:parseint(this.element.css("marginright"),10)||0,bottom:parseint(this.element.css("marginbottom"),10)||0}},_cachehelperproportions:function(){this.helperproportions={width:this.helper.outerwidth(),height:this.helper.outerheight()}},_setcontainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentnode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollleft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrolltop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollleft())+a(b.containment=="document"?document:window).width()-this.helperproportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrolltop())+(a(b.containment=="document"?document:window).height()||document.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=array){var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f=a(d).css("overflow")!="hidden";this.containment=[(parseint(a(d).css("borderleftwidth"),10)||0)+(parseint(a(d).css("paddingleft"),10)||0),(parseint(a(d).css("bordertopwidth"),10)||0)+(parseint(a(d).css("paddingtop"),10)||0),(f?math.max(d.scrollwidth,d.offsetwidth):d.offsetwidth)-(parseint(a(d).css("borderleftwidth"),10)||0)-(parseint(a(d).css("paddingright"),10)||0)-this.helperproportions.width-this.margins.left-this.margins.right,(f?math.max(d.scrollheight,d.offsetheight):d.offsetheight)-(parseint(a(d).css("bordertopwidth"),10)||0)-(parseint(a(d).css("paddingbottom"),10)||0)-this.helperproportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}else b.containment.constructor==array&&(this.containment=b.containment)},_convertpositionto:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssposition=="absolute"&&(this.scrollparent[0]==document||!a.ui.contains(this.scrollparent[0],this.offsetparent[0]))?this.offsetparent:this.scrollparent,g=/(html|body)/i.test(f[0].tagname);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssposition=="fixed"?0:(this.cssposition=="fixed"?-this.scrollparent.scrolltop():g?0:f.scrolltop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssposition=="fixed"?0:(this.cssposition=="fixed"?-this.scrollparent.scrollleft():g?0:f.scrollleft())*d)}},_generateposition:function(b){var c=this.options,d=this.cssposition=="absolute"&&(this.scrollparent[0]==document||!a.ui.contains(this.scrollparent[0],this.offsetparent[0]))?this.offsetparent:this.scrollparent,e=/(html|body)/i.test(d[0].tagname),f=b.pagex,g=b.pagey;if(this.originalposition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pagex-this.offset.click.lefth[2]&&(f=h[2]+this.offset.click.left),b.pagey-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalpagey+math.round((g-this.originalpagey)/c.grid[1])*c.grid[1]:this.originalpagey;g=h?j-this.offset.click.toph[3]?j-this.offset.click.toph[2]?k-this.offset.click.left=0;k--){var l=d.snapelements[k].left,m=l+d.snapelements[k].width,n=d.snapelements[k].top,o=n+d.snapelements[k].height;if(!(l-f=k&&g<=l||h>=k&&h<=l||gl)&&(e>=i&&e<=j||f>=i&&f<=j||ej);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareoffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentitem||b.element).find(":data(droppable)").andself();g:for(var h=0;h').css({position:this.element.css("position"),width:this.element.outerwidth(),height:this.element.outerheight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementiswrapper=!0,this.element.css({marginleft:this.originalelement.css("marginleft"),margintop:this.originalelement.css("margintop"),marginright:this.originalelement.css("marginright"),marginbottom:this.originalelement.css("marginbottom")}),this.originalelement.css({marginleft:0,margintop:0,marginright:0,marginbottom:0}),this.originalresizestyle=this.originalelement.css("resize"),this.originalelement.css("resize","none"),this._proportionallyresizeelements.push(this.originalelement.css({position:"static",zoom:1,display:"block"})),this.originalelement.css({margin:this.originalelement.css("margin")}),this._proportionallyresize()),this.handles=c.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==string){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var e=0;e');h.css({zindex:c.zindex}),"se"==f&&h.addclass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[f]=".ui-resizable-"+f,this.element.append(h)}}this._renderaxis=function(b){b=b||this.element;for(var c in this.handles){this.handles[c].constructor==string&&(this.handles[c]=a(this.handles[c],this.element).show());if(this.elementiswrapper&&this.originalelement[0].nodename.match(/textarea|input|select|button/i)){var d=a(this.handles[c],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(c)?d.outerheight():d.outerwidth();var f=["padding",/ne|nw|n/.test(c)?"top":/se|sw|s/.test(c)?"bottom":/^e$/.test(c)?"right":"left"].join("");b.css(f,e),this._proportionallyresize()}if(!a(this.handles[c]).length)continue}},this._renderaxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableselection(),this._handles.mouseover(function(){if(!b.resizing){if(this.classname)var a=this.classname.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}}),c.autohide&&(this._handles.hide(),a(this.element).addclass("ui-resizable-autohide").hover(function(){if(c.disabled)return;a(this).removeclass("ui-resizable-autohide"),b._handles.show()},function(){if(c.disabled)return;b.resizing||(a(this).addclass("ui-resizable-autohide"),b._handles.hide())})),this._mouseinit()},destroy:function(){this._mousedestroy();var b=function(b){a(b).removeclass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removedata("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementiswrapper){b(this.element);var c=this.element;c.after(this.originalelement.css({position:c.css("position"),width:c.outerwidth(),height:c.outerheight(),top:c.css("top"),left:c.css("left")})).remove()}return this.originalelement.css("resize",this.originalresizestyle),b(this.originalelement),this},_mousecapture:function(b){var c=!1;for(var d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mousestart:function(b){var d=this.options,e=this.element.position(),f=this.element;this.resizing=!0,this.documentscroll={top:a(document).scrolltop(),left:a(document).scrollleft()},(f.is(".ui-draggable")||/absolute/.test(f.css("position")))&&f.css({position:"absolute",top:e.top,left:e.left}),this._renderproxy();var g=c(this.helper.css("left")),h=c(this.helper.css("top"));d.containment&&(g+=a(d.containment).scrollleft()||0,h+=a(d.containment).scrolltop()||0),this.offset=this.helper.offset(),this.position={left:g,top:h},this.size=this._helper?{width:f.outerwidth(),height:f.outerheight()}:{width:f.width(),height:f.height()},this.originalsize=this._helper?{width:f.outerwidth(),height:f.outerheight()}:{width:f.width(),height:f.height()},this.originalposition={left:g,top:h},this.sizediff={width:f.outerwidth()-f.width(),height:f.outerheight()-f.height()},this.originalmouseposition={left:b.pagex,top:b.pagey},this.aspectratio=typeof d.aspectratio=="number"?d.aspectratio:this.originalsize.width/this.originalsize.height||1;var i=a(".ui-resizable-"+this.axis).css("cursor");return a("body").css("cursor",i=="auto"?this.axis+"-resize":i),f.addclass("ui-resizable-resizing"),this._propagate("start",b),!0},_mousedrag:function(b){var c=this.helper,d=this.options,e={},f=this,g=this.originalmouseposition,h=this.axis,i=b.pagex-g.left||0,j=b.pagey-g.top||0,k=this._change[h];if(!k)return!1;var l=k.apply(this,[b,i,j]),m=a.browser.msie&&a.browser.version<7,n=this.sizediff;this._updatevirtualboundaries(b.shiftkey);if(this._aspectratio||b.shiftkey)l=this._updateratio(l,b);return l=this._respectsize(l,b),this._propagate("resize",b),c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyresizeelements.length&&this._proportionallyresize(),this._updatecache(l),this._trigger("resize",b,this.ui()),!1},_mousestop:function(b){this.resizing=!1;var c=this.options,d=this;if(this._helper){var e=this._proportionallyresizeelements,f=e.length&&/textarea/i.test(e[0].nodename),g=f&&a.ui.hasscroll(e[0],"left")?0:d.sizediff.height,h=f?0:d.sizediff.width,i={width:d.helper.width()-h,height:d.helper.height()-g},j=parseint(d.element.css("left"),10)+(d.position.left-d.originalposition.left)||null,k=parseint(d.element.css("top"),10)+(d.position.top-d.originalposition.top)||null;c.animate||this.element.css(a.extend(i,{top:k,left:j})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyresize()}return a("body").css("cursor","auto"),this.element.removeclass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updatevirtualboundaries:function(a){var b=this.options,c,e,f,g,h;h={minwidth:d(b.minwidth)?b.minwidth:0,maxwidth:d(b.maxwidth)?b.maxwidth:infinity,minheight:d(b.minheight)?b.minheight:0,maxheight:d(b.maxheight)?b.maxheight:infinity};if(this._aspectratio||a)c=h.minheight*this.aspectratio,f=h.minwidth/this.aspectratio,e=h.maxheight*this.aspectratio,g=h.maxwidth/this.aspectratio,c>h.minwidth&&(h.minwidth=c),f>h.minheight&&(h.minheight=f),ea.width,k=d(a.height)&&e.minheight&&e.minheight>a.height;j&&(a.width=e.minwidth),k&&(a.height=e.minheight),h&&(a.width=e.maxwidth),i&&(a.height=e.maxheight);var l=this.originalposition.left+this.originalsize.width,m=this.position.top+this.size.height,n=/sw|nw|w/.test(g),o=/nw|ne|n/.test(g);j&&n&&(a.left=l-e.minwidth),h&&n&&(a.left=l-e.maxwidth),k&&o&&(a.top=m-e.minheight),i&&o&&(a.top=m-e.maxheight);var p=!a.width&&!a.height;return p&&!a.left&&a.top?a.top=null:p&&!a.top&&a.left&&(a.left=null),a},_proportionallyresize:function(){var b=this.options;if(!this._proportionallyresizeelements.length)return;var c=this.helper||this.element;for(var d=0;d');var d=a.browser.msie&&a.browser.version<7,e=d?1:0,f=d?2:-1;this.helper.addclass(this._helper).css({width:this.element.outerwidth()+f,height:this.element.outerheight()+f,position:"absolute",left:this.elementoffset.left-e+"px",top:this.elementoffset.top-e+"px",zindex:++c.zindex}),this.helper.appendto("body").disableselection()}else this.helper=this.element},_change:{e:function(a,b,c){return{width:this.originalsize.width+b}},w:function(a,b,c){var d=this.options,e=this.originalsize,f=this.originalposition;return{left:f.left+b,width:e.width-b}},n:function(a,b,c){var d=this.options,e=this.originalsize,f=this.originalposition;return{top:f.top+c,height:e.height-c}},s:function(a,b,c){return{height:this.originalsize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalelement:this.originalelement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalsize:this.originalsize,originalposition:this.originalposition}}}),a.extend(a.ui.resizable,{version:"1.8.22"}),a.ui.plugin.add("resizable","alsoresize",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseint(b.width(),10),height:parseint(b.height(),10),left:parseint(b.css("left"),10),top:parseint(b.css("top"),10)})})};typeof e.alsoresize=="object"&&!e.alsoresize.parentnode?e.alsoresize.length?(e.alsoresize=e.alsoresize[0],f(e.alsoresize)):a.each(e.alsoresize,function(a){f(a)}):f(e.alsoresize)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.originalsize,g=d.originalposition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalelement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};typeof e.alsoresize=="object"&&!e.alsoresize.nodetype?a.each(e.alsoresize,function(a,b){i(a,b)}):i(e.alsoresize)},stop:function(b,c){a(this).removedata("resizable-alsoresize")}}),a.ui.plugin.add("resizable","animate",{stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d._proportionallyresizeelements,g=f.length&&/textarea/i.test(f[0].nodename),h=g&&a.ui.hasscroll(f[0],"left")?0:d.sizediff.height,i=g?0:d.sizediff.width,j={width:d.size.width-i,height:d.size.height-h},k=parseint(d.element.css("left"),10)+(d.position.left-d.originalposition.left)||null,l=parseint(d.element.css("top"),10)+(d.position.top-d.originalposition.top)||null;d.element.animate(a.extend(j,l&&k?{top:l,left:k}:{}),{duration:e.animateduration,easing:e.animateeasing,step:function(){var c={width:parseint(d.element.css("width"),10),height:parseint(d.element.css("height"),10),top:parseint(d.element.css("top"),10),left:parseint(d.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:c.width,height:c.height}),d._updatecache(c),d._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(b,d){var e=a(this).data("resizable"),f=e.options,g=e.element,h=f.containment,i=h instanceof a?h.get(0):/parent/.test(h)?g.parent().get(0):h;if(!i)return;e.containerelement=a(i);if(/document/.test(h)||h==document)e.containeroffset={left:0,top:0},e.containerposition={left:0,top:0},e.parentdata={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentnode.scrollheight};else{var j=a(i),k=[];a(["top","right","left","bottom"]).each(function(a,b){k[a]=c(j.css("padding"+b))}),e.containeroffset=j.offset(),e.containerposition=j.position(),e.containersize={height:j.innerheight()-k[3],width:j.innerwidth()-k[1]};var l=e.containeroffset,m=e.containersize.height,n=e.containersize.width,o=a.ui.hasscroll(i,"left")?i.scrollwidth:n,p=a.ui.hasscroll(i)?i.scrollheight:m;e.parentdata={element:i,left:l.left,top:l.top,width:o,height:p}}},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.containersize,g=d.containeroffset,h=d.size,i=d.position,j=d._aspectratio||b.shiftkey,k={top:0,left:0},l=d.containerelement;l[0]!=document&&/static/.test(l.css("position"))&&(k=g),i.left<(d._helper?g.left:0)&&(d.size.width=d.size.width+(d._helper?d.position.left-g.left:d.position.left-k.left),j&&(d.size.height=d.size.width/d.aspectratio),d.position.left=e.helper?g.left:0),i.top<(d._helper?g.top:0)&&(d.size.height=d.size.height+(d._helper?d.position.top-g.top:d.position.top),j&&(d.size.width=d.size.height*d.aspectratio),d.position.top=d._helper?g.top:0),d.offset.left=d.parentdata.left+d.position.left,d.offset.top=d.parentdata.top+d.position.top;var m=math.abs((d._helper?d.offset.left-k.left:d.offset.left-k.left)+d.sizediff.width),n=math.abs((d._helper?d.offset.top-k.top:d.offset.top-g.top)+d.sizediff.height),o=d.containerelement.get(0)==d.element.parent().get(0),p=/relative|absolute/.test(d.containerelement.css("position"));o&&p&&(m-=d.parentdata.left),m+d.size.width>=d.parentdata.width&&(d.size.width=d.parentdata.width-m,j&&(d.size.height=d.size.width/d.aspectratio)),n+d.size.height>=d.parentdata.height&&(d.size.height=d.parentdata.height-n,j&&(d.size.width=d.size.height*d.aspectratio))},stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.position,g=d.containeroffset,h=d.containerposition,i=d.containerelement,j=a(d.helper),k=j.offset(),l=j.outerwidth()-d.sizediff.width,m=j.outerheight()-d.sizediff.height;d._helper&&!e.animate&&/relative/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m}),d._helper&&!e.animate&&/static/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m})}}),a.ui.plugin.add("resizable","ghost",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size;d.ghost=d.originalelement.clone(),d.ghost.css({opacity:.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addclass("ui-resizable-ghost").addclass(typeof e.ghost=="string"?e.ghost:""),d.ghost.appendto(d.helper)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.helper&&d.helper.get(0).removechild(d.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size,g=d.originalsize,h=d.originalposition,i=d.axis,j=e._aspectratio||b.shiftkey;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var k=math.round((f.width-g.width)/(e.grid[0]||1))*(e.grid[0]||1),l=math.round((f.height-g.height)/(e.grid[1]||1))*(e.grid[1]||1);/^(se|s|e)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l):/^(ne)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l):/^(sw)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.left=h.left-k):(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l,d.position.left=h.left-k)}});var c=function(a){return parseint(a,10)||0},d=function(a){return!isnan(parseint(a,10))}}(jquery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendto:"body",autorefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addclass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addclass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerwidth(),bottom:c.top+b.outerheight(),startselected:!1,selected:b.hasclass("ui-selected"),selecting:b.hasclass("ui-selecting"),unselecting:b.hasclass("ui-unselecting")})})},this.refresh(),this.selectees=c.addclass("ui-selectee"),this._mouseinit(),this.helper=a("
")},destroy:function(){return this.selectees.removeclass("ui-selectee").removedata("selectable-item"),this.element.removeclass("ui-selectable ui-selectable-disabled").removedata("selectable").unbind(".selectable"),this._mousedestroy(),this},_mousestart:function(b){var c=this;this.opos=[b.pagex,b.pagey];if(this.options.disabled)return;var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendto).append(this.helper),this.helper.css({left:b.clientx,top:b.clienty,width:0,height:0}),d.autorefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metakey&&!b.ctrlkey&&(d.$element.removeclass("ui-selected"),d.selected=!1,d.$element.addclass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andself().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metakey&&!b.ctrlkey||!d.$element.hasclass("ui-selected");return d.$element.removeclass(e?"ui-unselecting":"ui-selected").addclass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})},_mousedrag:function(b){var c=this;this.dragged=!0;if(this.options.disabled)return;var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pagex,h=b.pagey;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}return this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!i||i.element==c.element[0])return;var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.righth||i.bottome&&i.rightf&&i.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollsensitivity:20,scrollspeed:20,scope:"default",tolerance:"intersect",zindex:1e3},_create:function(){var a=this.options;this.containercache={},this.element.addclass("ui-sortable"),this.refresh(),this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseinit(),this.ready=!0},destroy:function(){a.widget.prototype.destroy.call(this),this.element.removeclass("ui-sortable ui-sortable-disabled"),this._mousedestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removedata(this.widgetname+"-item");return this},_setoption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addclass":"removeclass"]("ui-sortable-disabled")):a.widget.prototype._setoption.apply(this,arguments)},_mousecapture:function(b,c){var d=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshitems(b);var e=null,f=this,g=a(b.target).parents().each(function(){if(a.data(this,d.widgetname+"-item")==f)return e=a(this),!1});a.data(b.target,d.widgetname+"-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var h=!1;a(this.options.handle,e).find("*").andself().each(function(){this==b.target&&(h=!0)});if(!h)return!1}return this.currentitem=e,this._removecurrentsfromitems(),!0},_mousestart:function(b,c,d){var e=this.options,f=this;this.currentcontainer=this,this.refreshpositions(),this.helper=this._createhelper(b),this._cachehelperproportions(),this._cachemargins(),this.scrollparent=this.helper.scrollparent(),this.offset=this.currentitem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pagex-this.offset.left,top:b.pagey-this.offset.top},parent:this._getparentoffset(),relative:this._getrelativeoffset()}),this.helper.css("position","absolute"),this.cssposition=this.helper.css("position"),this.originalposition=this._generateposition(b),this.originalpagex=b.pagex,this.originalpagey=b.pagey,e.cursorat&&this._adjustoffsetfromhelper(e.cursorat),this.domposition={prev:this.currentitem.prev()[0],parent:this.currentitem.parent()[0]},this.helper[0]!=this.currentitem[0]&&this.currentitem.hide(),this._createplaceholder(),e.containment&&this._setcontainment(),e.cursor&&(a("body").css("cursor")&&(this._storedcursor=a("body").css("cursor")),a("body").css("cursor",e.cursor)),e.opacity&&(this.helper.css("opacity")&&(this._storedopacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity)),e.zindex&&(this.helper.css("zindex")&&(this._storedzindex=this.helper.css("zindex")),this.helper.css("zindex",e.zindex)),this.scrollparent[0]!=document&&this.scrollparent[0].tagname!="html"&&(this.overflowoffset=this.scrollparent.offset()),this._trigger("start",b,this._uihash()),this._preservehelperproportions||this._cachehelperproportions();if(!d)for(var g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",b,f._uihash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropbehaviour&&a.ui.ddmanager.prepareoffsets(this,b),this.dragging=!0,this.helper.addclass("ui-sortable-helper"),this._mousedrag(b),!0},_mousedrag:function(b){this.position=this._generateposition(b),this.positionabs=this._convertpositionto("absolute"),this.lastpositionabs||(this.lastpositionabs=this.positionabs);if(this.options.scroll){var c=this.options,d=!1;this.scrollparent[0]!=document&&this.scrollparent[0].tagname!="html"?(this.overflowoffset.top+this.scrollparent[0].offsetheight-b.pagey=0;e--){var f=this.items[e],g=f.item[0],h=this._intersectswithpointer(f);if(!h)continue;if(g!=this.currentitem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=g&&!a.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],g):!0)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectswithsides(f))this._rearrange(b,f);else break;this._trigger("change",b,this._uihash());break}}return this._contactcontainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uihash()),this.lastpositionabs=this.positionabs,!1},_mousestop:function(b,c){if(!b)return;a.ui.ddmanager&&!this.options.dropbehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,e=d.placeholder.offset();d.reverting=!0,a(this.helper).animate({left:e.left-this.offset.parent.left-d.margins.left+(this.offsetparent[0]==document.body?0:this.offsetparent[0].scrollleft),top:e.top-this.offset.parent.top-d.margins.top+(this.offsetparent[0]==document.body?0:this.offsetparent[0].scrolltop)},parseint(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1},cancel:function(){var b=this;if(this.dragging){this._mouseup({target:null}),this.options.helper=="original"?this.currentitem.css(this._storedcss).removeclass("ui-sortable-helper"):this.currentitem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uihash(this)),this.containers[c].containercache.over&&(this.containers[c]._trigger("out",null,b._uihash(this)),this.containers[c].containercache.over=0)}return this.placeholder&&(this.placeholder[0].parentnode&&this.placeholder[0].parentnode.removechild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentnode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_nofinalsort:null}),this.domposition.prev?a(this.domposition.prev).after(this.currentitem):a(this.domposition.parent).prepend(this.currentitem)),this},serialize:function(b){var c=this._getitemsasjquery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toarray:function(b){var c=this._getitemsasjquery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectswith:function(a){var b=this.positionabs.left,c=b+this.helperproportions.width,d=this.positionabs.top,e=d+this.helperproportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=d+j>h&&d+jf&&b+ka[this.floating?"width":"height"]?l:f0?"down":"up")},_getdraghorizontaldirection:function(){var a=this.positionabs.left-this.lastpositionabs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshitems(a),this.refreshpositions(),this},_connectwith:function(){var a=this.options;return a.connectwith.constructor==string?[a.connectwith]:a.connectwith},_getitemsasjquery:function(b){var c=this,d=[],e=[],f=this._connectwith();if(f&&b)for(var g=f.length-1;g>=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetname);j&&j!=this&&!j.options.disabled&&e.push([a.isfunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])}}e.push([a.isfunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentitem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var g=e.length-1;g>=0;g--)e[g][0].each(function(){d.push(this)});return a(d)},_removecurrentsfromitems:function(){var a=this.currentitem.find(":data("+this.widgetname+"-item)");for(var b=0;b=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetname);j&&j!=this&&!j.options.disabled&&(e.push([a.isfunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentitem}):a(j.options.items,j.element),j]),this.containers.push(j))}}for(var g=e.length-1;g>=0;g--){var k=e[g][1],l=e[g][0];for(var i=0,m=l.length;i=0;c--){var d=this.items[c];if(d.instance!=this.currentcontainer&&this.currentcontainer&&d.item[0]!=this.currentitem[0])continue;var e=this.options.toleranceelement?a(this.options.toleranceelement,d.item):d.item;b||(d.width=e.outerwidth(),d.height=e.outerheight());var f=e.offset();d.left=f.left,d.top=f.top}if(this.options.custom&&this.options.custom.refreshcontainers)this.options.custom.refreshcontainers.call(this);else for(var c=this.containers.length-1;c>=0;c--){var f=this.containers[c].element.offset();this.containers[c].containercache.left=f.left,this.containers[c].containercache.top=f.top,this.containers[c].containercache.width=this.containers[c].element.outerwidth(),this.containers[c].containercache.height=this.containers[c].element.outerheight()}return this},_createplaceholder:function(b){var c=b||this,d=c.options;if(!d.placeholder||d.placeholder.constructor==string){var e=d.placeholder;d.placeholder={element:function(){var b=a(document.createelement(c.currentitem[0].nodename)).addclass(e||c.currentitem[0].classname+" ui-sortable-placeholder").removeclass("ui-sortable-helper")[0];return e||(b.style.visibility="hidden"),b},update:function(a,b){if(e&&!d.forceplaceholdersize)return;b.height()||b.height(c.currentitem.innerheight()-parseint(c.currentitem.css("paddingtop")||0,10)-parseint(c.currentitem.css("paddingbottom")||0,10)),b.width()||b.width(c.currentitem.innerwidth()-parseint(c.currentitem.css("paddingleft")||0,10)-parseint(c.currentitem.css("paddingright")||0,10))}}}c.placeholder=a(d.placeholder.element.call(c.element,c.currentitem)),c.currentitem.after(c.placeholder),d.placeholder.update(c,c.placeholder)},_contactcontainers:function(b){var c=null,d=null;for(var e=this.containers.length-1;e>=0;e--){if(a.ui.contains(this.currentitem[0],this.containers[e].element[0]))continue;if(this._intersectswith(this.containers[e].containercache)){if(c&&a.ui.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],d=e}else this.containers[e].containercache.over&&(this.containers[e]._trigger("out",b,this._uihash(this)),this.containers[e].containercache.over=0)}if(!c)return;if(this.containers.length===1)this.containers[d]._trigger("over",b,this._uihash(this)),this.containers[d].containercache.over=1;else if(this.currentcontainer!=this.containers[d]){var f=1e4,g=null,h=this.positionabs[this.containers[d].floating?"left":"top"];for(var i=this.items.length-1;i>=0;i--){if(!a.ui.contains(this.containers[d].element[0],this.items[i].item[0]))continue;var j=this.containers[d].floating?this.items[i].item.offset().left:this.items[i].item.offset().top;math.abs(j-h)0?"down":"up")}if(!g&&!this.options.droponempty)return;this.currentcontainer=this.containers[d],g?this._rearrange(b,g,null,!0):this._rearrange(b,null,this.containers[d].element,!0),this._trigger("change",b,this._uihash()),this.containers[d]._trigger("change",b,this._uihash(this)),this.options.placeholder.update(this.currentcontainer,this.placeholder),this.containers[d]._trigger("over",b,this._uihash(this)),this.containers[d].containercache.over=1}},_createhelper:function(b){var c=this.options,d=a.isfunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentitem])):c.helper=="clone"?this.currentitem.clone():this.currentitem;return d.parents("body").length||a(c.appendto!="parent"?c.appendto:this.currentitem[0].parentnode)[0].appendchild(d[0]),d[0]==this.currentitem[0]&&(this._storedcss={width:this.currentitem[0].style.width,height:this.currentitem[0].style.height,position:this.currentitem.css("position"),top:this.currentitem.css("top"),left:this.currentitem.css("left")}),(d[0].style.width==""||c.forcehelpersize)&&d.width(this.currentitem.width()),(d[0].style.height==""||c.forcehelpersize)&&d.height(this.currentitem.height()),d},_adjustoffsetfromhelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isarray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperproportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperproportions.height-b.bottom+this.margins.top)},_getparentoffset:function(){this.offsetparent=this.helper.offsetparent();var b=this.offsetparent.offset();this.cssposition=="absolute"&&this.scrollparent[0]!=document&&a.ui.contains(this.scrollparent[0],this.offsetparent[0])&&(b.left+=this.scrollparent.scrollleft(),b.top+=this.scrollparent.scrolltop());if(this.offsetparent[0]==document.body||this.offsetparent[0].tagname&&this.offsetparent[0].tagname.tolowercase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseint(this.offsetparent.css("bordertopwidth"),10)||0),left:b.left+(parseint(this.offsetparent.css("borderleftwidth"),10)||0)}},_getrelativeoffset:function(){if(this.cssposition=="relative"){var a=this.currentitem.position();return{top:a.top-(parseint(this.helper.css("top"),10)||0)+this.scrollparent.scrolltop(),left:a.left-(parseint(this.helper.css("left"),10)||0)+this.scrollparent.scrollleft()}}return{top:0,left:0}},_cachemargins:function(){this.margins={left:parseint(this.currentitem.css("marginleft"),10)||0,top:parseint(this.currentitem.css("margintop"),10)||0}},_cachehelperproportions:function(){this.helperproportions={width:this.helper.outerwidth(),height:this.helper.outerheight()}},_setcontainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentnode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperproportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0],d=a(b.containment).offset(),e=a(c).css("overflow")!="hidden";this.containment=[d.left+(parseint(a(c).css("borderleftwidth"),10)||0)+(parseint(a(c).css("paddingleft"),10)||0)-this.margins.left,d.top+(parseint(a(c).css("bordertopwidth"),10)||0)+(parseint(a(c).css("paddingtop"),10)||0)-this.margins.top,d.left+(e?math.max(c.scrollwidth,c.offsetwidth):c.offsetwidth)-(parseint(a(c).css("borderleftwidth"),10)||0)-(parseint(a(c).css("paddingright"),10)||0)-this.helperproportions.width-this.margins.left,d.top+(e?math.max(c.scrollheight,c.offsetheight):c.offsetheight)-(parseint(a(c).css("bordertopwidth"),10)||0)-(parseint(a(c).css("paddingbottom"),10)||0)-this.helperproportions.height-this.margins.top]}},_convertpositionto:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssposition=="absolute"&&(this.scrollparent[0]==document||!a.ui.contains(this.scrollparent[0],this.offsetparent[0]))?this.offsetparent:this.scrollparent,g=/(html|body)/i.test(f[0].tagname);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssposition=="fixed"?0:(this.cssposition=="fixed"?-this.scrollparent.scrolltop():g?0:f.scrolltop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssposition=="fixed"?0:(this.cssposition=="fixed"?-this.scrollparent.scrollleft():g?0:f.scrollleft())*d)}},_generateposition:function(b){var c=this.options,d=this.cssposition=="absolute"&&(this.scrollparent[0]==document||!a.ui.contains(this.scrollparent[0],this.offsetparent[0]))?this.offsetparent:this.scrollparent,e=/(html|body)/i.test(d[0].tagname);this.cssposition=="relative"&&(this.scrollparent[0]==document||this.scrollparent[0]==this.offsetparent[0])&&(this.offset.relative=this._getrelativeoffset());var f=b.pagex,g=b.pagey;if(this.originalposition){this.containment&&(b.pagex-this.offset.click.leftthis.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pagey-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top));if(c.grid){var h=this.originalpagey+math.round((g-this.originalpagey)/c.grid[1])*c.grid[1];g=this.containment?h-this.offset.click.topthis.containment[3]?h-this.offset.click.topthis.containment[2]?i-this.offset.click.left=0;f--)a.ui.contains(this.containers[f].element[0],this.currentitem[0])&&!c&&(d.push(function(a){return function(b){a._trigger("receive",b,this._uihash(this))}}.call(this,this.containers[f])),d.push(function(a){return function(b){a._trigger("update",b,this._uihash(this))}}.call(this,this.containers[f])))}for(var f=this.containers.length-1;f>=0;f--)c||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uihash(this))}}.call(this,this.containers[f])),this.containers[f].containercache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uihash(this))}}.call(this,this.containers[f])),this.containers[f].containercache.over=0);this._storedcursor&&a("body").css("cursor",this._storedcursor),this._storedopacity&&this.helper.css("opacity",this._storedopacity),this._storedzindex&&this.helper.css("zindex",this._storedzindex=="auto"?"":this._storedzindex),this.dragging=!1;if(this.cancelhelperremoval){if(!c){this._trigger("beforestop",b,this._uihash());for(var f=0;f").addclass("ui-effects-wrapper").css({fontsize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeelement;try{e.id}catch(f){e=document.body}return b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zindex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isnan(parseint(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(c).show()},removewrapper:function(b){var c,d=document.activeelement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replacewith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(),c):b},settransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssunit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];return a.fx.off||!i?h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)}):i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="show",this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="hide",this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isfunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssunit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexof(b)>0&&(d=[parsefloat(c),b])}),d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeoutquad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeinquad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeoutquad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeinoutquad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeincubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeoutcubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeinoutcubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeinquart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeoutquart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeinoutquart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeinquint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeoutquint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeinoutquint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeinsine:function(a,b,c,d,e){return-d*math.cos(b/e*(math.pi/2))+d+c},easeoutsine:function(a,b,c,d,e){return d*math.sin(b/e*(math.pi/2))+c},easeinoutsine:function(a,b,c,d,e){return-d/2*(math.cos(math.pi*b/e)-1)+c},easeinexpo:function(a,b,c,d,e){return b==0?c:d*math.pow(2,10*(b/e-1))+c},easeoutexpo:function(a,b,c,d,e){return b==e?c+d:d*(-math.pow(2,-10*b/e)+1)+c},easeinoutexpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*math.pow(2,10*(b-1))+c:d/2*(-math.pow(2,-10*--b)+2)+c},easeincirc:function(a,b,c,d,e){return-d*(math.sqrt(1-(b/=e)*b)-1)+c},easeoutcirc:function(a,b,c,d,e){return d*math.sqrt(1-(b=b/e-1)*b)+c},easeinoutcirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(math.sqrt(1-b*b)-1)+c:d/2*(math.sqrt(1-(b-=2)*b)+1)+c},easeinelastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h").css({position:"absolute",visibility:"visible",left:-j*(g/d),top:-i*(h/c)}).parent().addclass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/d,height:h/c,left:f.left+j*(g/d)+(b.options.mode=="show"?(j-math.floor(d/2))*(g/d):0),top:f.top+i*(h/c)+(b.options.mode=="show"?(i-math.floor(c/2))*(h/c):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+j*(g/d)+(b.options.mode=="show"?0:(j-math.floor(d/2))*(g/d)),top:f.top+i*(h/c)+(b.options.mode=="show"?0:(i-math.floor(c/2))*(h/c)),opacity:b.options.mode=="show"?1:0},b.duration||500);settimeout(function(){b.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide(),b.callback&&b.callback.apply(e[0]),e.dequeue(),a("div.ui-effects-explode").remove()},b.duration||500)})}}(jquery),function(a,b){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setmode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}}(jquery),function(a,b){a.effects.fold=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setmode(c,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizfirst,h=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,d),c.show();var i=a.effects.createwrapper(c).css({overflow:"hidden"}),j=e=="show"!=g,k=j?["width","height"]:["height","width"],l=j?[i.width(),i.height()]:[i.height(),i.width()],m=/([0-9]+)%/.exec(f);m&&(f=parseint(m[1],10)/100*l[e=="hide"?0:1]),e=="show"&&i.css(g?{height:0,width:f}:{height:f,width:0});var n={},p={};n[k[0]]=e=="show"?l[0]:f,p[k[1]]=e=="show"?l[1]:0,i.animate(n,h,b.options.easing).animate(p,h,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removewrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}}(jquery),function(a,b){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),d=["backgroundimage","backgroundcolor","opacity"],e=a.effects.setmode(c,b.options.mode||"show"),f={backgroundcolor:c.css("backgroundcolor")};e=="hide"&&(f.opacity=0),a.effects.save(c,d),c.show().css({backgroundimage:"none",backgroundcolor:b.options.color||"#ffff99"}).animate(f,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),e=="show"&&!a.support.opacity&&this.style.removeattribute("filter"),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}}(jquery),function(a,b){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setmode(c,b.options.mode||"show"),e=(b.options.times||5)*2-1,f=b.duration?b.duration/2:a.fx.speeds._default/2,g=c.is(":visible"),h=0;g||(c.css("opacity",0).show(),h=1),(d=="hide"&&g||d=="show"&&!g)&&e--;for(var i=0;i').appendto(document.body).addclass(b.options.classname).css({top:g.top,left:g.left,height:c.innerheight(),width:c.innerwidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}}(jquery),function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoheight:!0,clearstyle:!1,collapsible:!1,event:"click",fillspace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerselected:"ui-icon-triangle-1-s"},navigation:!1,navigationfilter:function(){return this.href.tolowercase()===location.href.tolowercase()}},_create:function(){var b=this,c=b.options;b.running=0,b.element.addclass("ui-accordion ui-widget ui-helper-reset").children("li").addclass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addclass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(c.disabled)return;a(this).addclass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(c.disabled)return;a(this).removeclass("ui-state-hover")}).bind("focus.accordion",function(){if(c.disabled)return;a(this).addclass("ui-state-focus")}).bind("blur.accordion",function(){if(c.disabled)return;a(this).removeclass("ui-state-focus")}),b.headers.next().addclass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationfilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findactive(b.active||c.active).addclass("ui-state-default ui-state-active").toggleclass("ui-corner-all").toggleclass("ui-corner-top"),b.active.next().addclass("ui-accordion-content-active"),b._createicons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabindex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabindex:0}):b.headers.eq(0).attr("tabindex",0),a.browser.safari||b.headers.find("a").attr("tabindex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickhandler.call(b,a,this),a.preventdefault()})},_createicons:function(){var b=this.options;b.icons&&(a("").addclass("ui-icon "+b.icons.header).prependto(this.headers),this.active.children(".ui-icon").toggleclass(b.icons.header).toggleclass(b.icons.headerselected),this.element.addclass("ui-accordion-icons"))},_destroyicons:function(){this.headers.children(".ui-icon").remove(),this.element.removeclass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeclass("ui-accordion ui-widget ui-helper-reset").removeattr("role"),this.headers.unbind(".accordion").removeclass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeattr("role").removeattr("aria-expanded").removeattr("aria-selected").removeattr("tabindex"),this.headers.find("a").removeattr("tabindex"),this._destroyicons();var c=this.headers.next().css("display","").removeattr("role").removeclass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoheight||b.fillheight)&&c.css("height",""),a.widget.prototype.destroy.call(this)},_setoption:function(b,c){a.widget.prototype._setoption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyicons(),c&&this._createicons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addclass":"removeclass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(this.options.disabled||b.altkey||b.ctrlkey)return;var c=a.ui.keycode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keycode){case c.right:case c.down:f=this.headers[(e+1)%d];break;case c.left:case c.up:f=this.headers[(e-1+d)%d];break;case c.space:case c.enter:this._clickhandler({target:b.target},b.target),b.preventdefault()}return f?(a(b.target).attr("tabindex",-1),a(f).attr("tabindex",0),f.focus(),!1):!0},resize:function(){var b=this.options,c;if(b.fillspace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerheight(!0)}),this.headers.next().each(function(){a(this).height(math.max(0,c-a(this).innerheight()+a(this).height()))}).css("overflow","auto")}else b.autoheight&&(c=0,this.headers.next().each(function(){c=math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findactive(a)[0];return this._clickhandler({target:b},b),this},_findactive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickhandler:function(b,c){var d=this.options;if(d.disabled)return;if(!b.target){if(!d.collapsible)return;this.active.removeclass("ui-state-active ui-corner-top").addclass("ui-state-default ui-corner-all").children(".ui-icon").removeclass(d.icons.headerselected).addclass(d.icons.header),this.active.next().addclass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newheader:a([]),oldheader:d.active,newcontent:a([]),oldcontent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currenttarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newheader:i&&d.collapsible?a([]):h,oldheader:this.active,newcontent:i&&d.collapsible?a([]):g,oldcontent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeclass("ui-state-active ui-corner-top").addclass("ui-state-default ui-corner-all").children(".ui-icon").removeclass(d.icons.headerselected).addclass(d.icons.header),i||(h.removeclass("ui-state-default ui-corner-all").addclass("ui-state-active ui-corner-top").children(".ui-icon").removeclass(d.icons.header).addclass(d.icons.headerselected),h.next().addclass("ui-accordion-content-active"));return},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toshow=b,g.tohide=c,g.data=d;var i=function(){if(!g)return;return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toshow:a([]),tohide:c,complete:i,down:f,autoheight:h.autoheight||h.fillspace}:j={toshow:b,tohide:c,complete:i,down:f,autoheight:h.autoheight||h.fillspace},h.proxied||(h.proxied=h.animated),h.proxiedduration||(h.proxiedduration=h.duration),h.animated=a.isfunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isfunction(h.proxiedduration)?h.proxiedduration(j):h.proxiedduration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabindex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabindex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(this.running)return;this.options.clearstyle&&this.toshow.add(this.tohide).css({height:"",overflow:""}),this.tohide.removeclass("ui-accordion-content-active"),this.tohide.length&&(this.tohide.parent()[0].classname=this.tohide.parent()[0].classname),this._trigger("change",null,this.data)}}),a.extend(a.ui.accordion,{version:"1.8.22",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.tohide.size()){b.toshow.animate({height:"show",paddingtop:"show",paddingbottom:"show"},b);return}if(!b.toshow.size()){b.tohide.animate({height:"hide",paddingtop:"hide",paddingbottom:"hide"},b);return}var d=b.toshow.css("overflow"),e=0,f={},g={},h=["height","paddingtop","paddingbottom"],i,j=b.toshow;i=j[0].style.width,j.width(j.parent().width()-parsefloat(j.css("paddingleft"))-parsefloat(j.css("paddingright"))-(parsefloat(j.css("borderleftwidth"))||0)-(parsefloat(j.css("borderrightwidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toshow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toshow.css({height:0,overflow:"hidden"}).show(),b.tohide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toshow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoheight||b.toshow.css("height",""),b.toshow.css({width:i,overflow:d}),b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeoutbounce":"swing",duration:a.down?1e3:200})}}})}(jquery),function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendto:"body",autofocus:!1,delay:300,minlength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerdocument,d;this.ismultiline=this.element.is("textarea"),this.element.addclass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(b.options.disabled||b.element.propattr("readonly"))return;d=!1;var e=a.ui.keycode;switch(c.keycode){case e.page_up:b._move("previouspage",c);break;case e.page_down:b._move("nextpage",c);break;case e.up:b._keyevent("previous",c);break;case e.down:b._keyevent("next",c);break;case e.enter:case e.numpad_enter:b.menu.active&&(d=!0,c.preventdefault());case e.tab:if(!b.menu.active)return;b.menu.select(c);break;case e.escape:b.element.val(b.term),b.close(c);break;default:cleartimeout(b.searching),b.searching=settimeout(function(){b.term!=b.element.val()&&(b.selecteditem=null,b.search(null,c))},b.options.delay)}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventdefault())}).bind("focus.autocomplete",function(){if(b.options.disabled)return;b.selecteditem=null,b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(b.options.disabled)return;cleartimeout(b.searching),b.closing=settimeout(function(){b.close(a),b._change(a)},150)}),this._initsource(),this.menu=a("
    ").addclass("ui-autocomplete").appendto(a(this.options.appendto||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||settimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),settimeout(function(){cleartimeout(b.closing)},13)}).menu({focus:function(a,c){var d=c.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:d})&&/^key/.test(a.originalevent.type)&&b.element.val(d.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeelement&&(b.element.focus(),b.previous=f,settimeout(function(){b.previous=f,b.selecteditem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selecteditem=e},blur:function(a,c){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zindex(this.element.zindex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe(),b.beforeunloadhandler=function(){b.element.removeattr("autocomplete")},a(window).bind("beforeunload",b.beforeunloadhandler)},destroy:function(){this.element.removeclass("ui-autocomplete-input").removeattr("autocomplete").removeattr("role").removeattr("aria-autocomplete").removeattr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("beforeunload",this.beforeunloadhandler),a.widget.prototype.destroy.call(this)},_setoption:function(b,c){a.widget.prototype._setoption.apply(this,arguments),b==="source"&&this._initsource(),b==="appendto"&&this.menu.element.appendto(a(c||"body",this.element[0].ownerdocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initsource:function(){var b=this,c,d;a.isarray(this.options.source)?(c=this.options.source,this.source=function(b,d){d(a.ui.autocomplete.filter(c,b.term))}):typeof this.options.source=="string"?(d=this.options.source,this.source=function(c,e){b.xhr&&b.xhr.abort(),b.xhr=a.ajax({url:d,data:c,datatype:"json",success:function(a,b){e(a)},error:function(){e([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length").data("item.autocomplete",c).append(a("
    ").text(c.label)).appendto(b)},_move:function(a,b){if(!this.menu.element.is(":visible")){this.search(null,b);return}if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.deactivate();return}this.menu[a](b)},widget:function(){return this.menu.element},_keyevent:function(a,b){if(!this.ismultiline||this.menu.element.is(":visible"))this._move(a,b),b.preventdefault()}}),a.extend(a.ui.autocomplete,{escaperegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new regexp(a.ui.autocomplete.escaperegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})}(jquery),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addclass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length)return;c.preventdefault(),b.select(c)}),this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addclass("ui-menu-item").attr("role","menuitem");c.children("a").addclass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasscroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrolltop(),e=this.element.height();c<0?this.element.scrolltop(d+c):c>=e&&this.element.scrolltop(d+c-e+b.height())}this.active=b.eq(0).children("a").addclass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){if(!this.active)return;this.active.children("a").removeclass("ui-state-hover").removeattr("id"),this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevall(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextall(".ui-menu-item").length},move:function(a,b,c){if(!this.active){this.activate(c,this.element.children(b));return}var d=this.active[a+"all"](".ui-menu-item").eq(0);d.length?this.activate(c,d):this.activate(c,this.element.children(b))},nextpage:function(b){if(this.hasscroll()){if(!this.active||this.last()){this.activate(b,this.element.children(".ui-menu-item:first"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previouspage:function(b){if(this.hasscroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:first")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasscroll:function(){return this.element.height()",this.element[0].ownerdocument).addclass("ui-button-text").html(this.options.label).appendto(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend(""),d.secondary&&b.append(""),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hastitle||b.attr("title",c))):f.push("ui-button-text-only"),b.addclass(f.join(" "))}}),a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addclass("ui-buttonset")},_init:function(){this.refresh()},_setoption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c),a.widget.prototype._setoption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeclass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addclass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addclass(b?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeclass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeclass("ui-corner-left ui-corner-right").end().button("destroy"),a.widget.prototype.destroy.call(this)}})}(jquery),function($,undefined){function datepicker(){this.debug=!1,this._curinst=null,this._keyevent=!1,this._disabledinputs=[],this._datepickershowing=!1,this._indialog=!1,this._maindivid="ui-datepicker-div",this._inlineclass="ui-datepicker-inline",this._appendclass="ui-datepicker-append",this._triggerclass="ui-datepicker-trigger",this._dialogclass="ui-datepicker-dialog",this._disableclass="ui-datepicker-disabled",this._unselectableclass="ui-datepicker-unselectable",this._currentclass="ui-datepicker-current-day",this._dayoverclass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closetext:"done",prevtext:"prev",nexttext:"next",currenttext:"today",monthnames:["january","february","march","april","may","june","july","august","september","october","november","december"],monthnamesshort:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],daynames:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],daynamesshort:["sun","mon","tue","wed","thu","fri","sat"],daynamesmin:["su","mo","tu","we","th","fr","sa"],weekheader:"wk",dateformat:"mm/dd/yy",firstday:0,isrtl:!1,showmonthafteryear:!1,yearsuffix:""},this._defaults={showon:"focus",showanim:"fadein",showoptions:{},defaultdate:null,appendtext:"",buttontext:"...",buttonimage:"",buttonimageonly:!1,hideifnoprevnext:!1,navigationasdateformat:!1,gotocurrent:!1,changemonth:!1,changeyear:!1,yearrange:"c-10:c+10",showothermonths:!1,selectothermonths:!1,showweek:!1,calculateweek:this.iso8601week,shortyearcutoff:"+10",mindate:null,maxdate:null,duration:"fast",beforeshowday:null,beforeshow:null,onselect:null,onchangemonthyear:null,onclose:null,numberofmonths:1,showcurrentatpos:0,stepmonths:1,stepbigmonths:12,altfield:"",altformat:"",constraininput:!0,showbuttonpanel:!1,autosize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpdiv=bindhover($('
    '))}function bindhover(a){var b="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return a.bind("mouseout",function(a){var c=$(a.target).closest(b);if(!c.length)return;c.removeclass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(c){var d=$(c.target).closest(b);if($.datepicker._isdisableddatepicker(instactive.inline?a.parent()[0]:instactive.input[0])||!d.length)return;d.parents(".ui-datepicker-calendar").find("a").removeclass("ui-state-hover"),d.addclass("ui-state-hover"),d.hasclass("ui-datepicker-prev")&&d.addclass("ui-datepicker-prev-hover"),d.hasclass("ui-datepicker-next")&&d.addclass("ui-datepicker-next-hover")})}function extendremove(a,b){$.extend(a,b);for(var c in b)if(b[c]==null||b[c]==undefined)a[c]=b[c];return a}function isarray(a){return a&&($.browser.safari&&typeof a=="object"&&a.length||a.constructor&&a.constructor.tostring().match(/\array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.22"}});var prop_name="datepicker",dpuuid=(new date).gettime(),instactive;$.extend(datepicker.prototype,{markerclassname:"hasdatepicker",maxrows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetdatepicker:function(){return this.dpdiv},setdefaults:function(a){return extendremove(this._defaults,a||{}),this},_attachdatepicker:function(target,settings){var inlinesettings=null;for(var attrname in this._defaults){var attrvalue=target.getattribute("date:"+attrname);if(attrvalue){inlinesettings=inlinesettings||{};try{inlinesettings[attrname]=eval(attrvalue)}catch(err){inlinesettings[attrname]=attrvalue}}}var nodename=target.nodename.tolowercase(),inline=nodename=="div"||nodename=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newinst($(target),inline);inst.settings=$.extend({},settings||{},inlinesettings||{}),nodename=="input"?this._connectdatepicker(target,inst):inline&&this._inlinedatepicker(target,inst)},_newinst:function(a,b){var c=a[0].id.replace(/([^a-za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,selectedday:0,selectedmonth:0,selectedyear:0,drawmonth:0,drawyear:0,inline:b,dpdiv:b?bindhover($('
    ')):this.dpdiv}},_connectdatepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]);if(c.hasclass(this.markerclassname))return;this._attachments(c,b),c.addclass(this.markerclassname).keydown(this._dokeydown).keypress(this._dokeypress).keyup(this._dokeyup).bind("setdata.datepicker",function(a,c,d){b.settings[c]=d}).bind("getdata.datepicker",function(a,c){return this._get(b,c)}),this._autosize(b),$.data(a,prop_name,b),b.settings.disabled&&this._disabledatepicker(a)},_attachments:function(a,b){var c=this._get(b,"appendtext"),d=this._get(b,"isrtl");b.append&&b.append.remove(),c&&(b.append=$(''+c+""),a[d?"before":"after"](b.append)),a.unbind("focus",this._showdatepicker),b.trigger&&b.trigger.remove();var e=this._get(b,"showon");(e=="focus"||e=="both")&&a.focus(this._showdatepicker);if(e=="button"||e=="both"){var f=this._get(b,"buttontext"),g=this._get(b,"buttonimage");b.trigger=$(this._get(b,"buttonimageonly")?$("").addclass(this._triggerclass).attr({src:g,alt:f,title:f}):$('').addclass(this._triggerclass).html(g==""?f:$("").attr({src:g,alt:f,title:f}))),a[d?"before":"after"](b.trigger),b.trigger.click(function(){return $.datepicker._datepickershowing&&$.datepicker._lastinput==a[0]?$.datepicker._hidedatepicker():$.datepicker._datepickershowing&&$.datepicker._lastinput!=a[0]?($.datepicker._hidedatepicker(),$.datepicker._showdatepicker(a[0])):$.datepicker._showdatepicker(a[0]),!1})}},_autosize:function(a){if(this._get(a,"autosize")&&!a.inline){var b=new date(2009,11,20),c=this._get(a,"dateformat");if(c.match(/[dm]/)){var d=function(a){var b=0,c=0;for(var d=0;db&&(b=a[d].length,c=d);return c};b.setmonth(d(this._get(a,c.match(/mm/)?"monthnames":"monthnamesshort"))),b.setdate(d(this._get(a,c.match(/dd/)?"daynames":"daynamesshort"))+20-b.getday())}a.input.attr("size",this._formatdate(a,b).length)}},_inlinedatepicker:function(a,b){var c=$(a);if(c.hasclass(this.markerclassname))return;c.addclass(this.markerclassname).append(b.dpdiv).bind("setdata.datepicker",function(a,c,d){b.settings[c]=d}).bind("getdata.datepicker",function(a,c){return this._get(b,c)}),$.data(a,prop_name,b),this._setdate(b,this._getdefaultdate(b),!0),this._updatedatepicker(b),this._updatealternate(b),b.settings.disabled&&this._disabledatepicker(a),b.dpdiv.css("display","block")},_dialogdatepicker:function(a,b,c,d,e){var f=this._dialoginst;if(!f){this.uuid+=1;var g="dp"+this.uuid;this._dialoginput=$(''),this._dialoginput.keydown(this._dokeydown),$("body").append(this._dialoginput),f=this._dialoginst=this._newinst(this._dialoginput,!1),f.settings={},$.data(this._dialoginput[0],prop_name,f)}extendremove(f.settings,d||{}),b=b&&b.constructor==date?this._formatdate(f,b):b,this._dialoginput.val(b),this._pos=e?e.length?e:[e.pagex,e.pagey]:null;if(!this._pos){var h=document.documentelement.clientwidth,i=document.documentelement.clientheight,j=document.documentelement.scrollleft||document.body.scrollleft,k=document.documentelement.scrolltop||document.body.scrolltop;this._pos=[h/2-100+j,i/2-150+k]}return this._dialoginput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),f.settings.onselect=c,this._indialog=!0,this.dpdiv.addclass(this._dialogclass),this._showdatepicker(this._dialoginput[0]),$.blockui&&$.blockui(this.dpdiv),$.data(this._dialoginput[0],prop_name,f),this},_destroydatepicker:function(a){var b=$(a),c=$.data(a,prop_name);if(!b.hasclass(this.markerclassname))return;var d=a.nodename.tolowercase();$.removedata(a,prop_name),d=="input"?(c.append.remove(),c.trigger.remove(),b.removeclass(this.markerclassname).unbind("focus",this._showdatepicker).unbind("keydown",this._dokeydown).unbind("keypress",this._dokeypress).unbind("keyup",this._dokeyup)):(d=="div"||d=="span")&&b.removeclass(this.markerclassname).empty()},_enabledatepicker:function(a){var b=$(a),c=$.data(a,prop_name);if(!b.hasclass(this.markerclassname))return;var d=a.nodename.tolowercase();if(d=="input")a.disabled=!1,c.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineclass);e.children().removeclass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeattr("disabled")}this._disabledinputs=$.map(this._disabledinputs,function(b){return b==a?null:b})},_disabledatepicker:function(a){var b=$(a),c=$.data(a,prop_name);if(!b.hasclass(this.markerclassname))return;var d=a.nodename.tolowercase();if(d=="input")a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineclass);e.children().addclass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledinputs=$.map(this._disabledinputs,function(b){return b==a?null:b}),this._disabledinputs[this._disabledinputs.length]=a},_isdisableddatepicker:function(a){if(!a)return!1;for(var b=0;b-1}},_dokeyup:function(a){var b=$.datepicker._getinst(a.target);if(b.input.val()!=b.lastval)try{var c=$.datepicker.parsedate($.datepicker._get(b,"dateformat"),b.input?b.input.val():null,$.datepicker._getformatconfig(b));c&&($.datepicker._setdatefromfield(b),$.datepicker._updatealternate(b),$.datepicker._updatedatepicker(b))}catch(d){$.datepicker.log(d)}return!0},_showdatepicker:function(a){a=a.target||a,a.nodename.tolowercase()!="input"&&(a=$("input",a.parentnode)[0]);if($.datepicker._isdisableddatepicker(a)||$.datepicker._lastinput==a)return;var b=$.datepicker._getinst(a);$.datepicker._curinst&&$.datepicker._curinst!=b&&($.datepicker._curinst.dpdiv.stop(!0,!0),b&&$.datepicker._datepickershowing&&$.datepicker._hidedatepicker($.datepicker._curinst.input[0]));var c=$.datepicker._get(b,"beforeshow"),d=c?c.apply(a,[a,b]):{};if(d===!1)return;extendremove(b.settings,d),b.lastval=null,$.datepicker._lastinput=a,$.datepicker._setdatefromfield(b),$.datepicker._indialog&&(a.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findpos(a),$.datepicker._pos[1]+=a.offsetheight);var e=!1;$(a).parents().each(function(){return e|=$(this).css("position")=="fixed",!e}),e&&$.browser.opera&&($.datepicker._pos[0]-=document.documentelement.scrollleft,$.datepicker._pos[1]-=document.documentelement.scrolltop);var f={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null,b.dpdiv.empty(),b.dpdiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updatedatepicker(b),f=$.datepicker._checkoffset(b,f,e),b.dpdiv.css({position:$.datepicker._indialog&&$.blockui?"static":e?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!b.inline){var g=$.datepicker._get(b,"showanim"),h=$.datepicker._get(b,"duration"),i=function(){var a=b.dpdiv.find("iframe.ui-datepicker-cover");if(!!a.length){var c=$.datepicker._getborders(b.dpdiv);a.css({left:-c[0],top:-c[1],width:b.dpdiv.outerwidth(),height:b.dpdiv.outerheight()})}};b.dpdiv.zindex($(a).zindex()+1),$.datepicker._datepickershowing=!0,$.effects&&$.effects[g]?b.dpdiv.show(g,$.datepicker._get(b,"showoptions"),h,i):b.dpdiv[g||"show"](g?h:null,i),(!g||!h)&&i(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.datepicker._curinst=b}},_updatedatepicker:function(a){var b=this;b.maxrows=4;var c=$.datepicker._getborders(a.dpdiv);instactive=a,a.dpdiv.empty().append(this._generatehtml(a)),this._attachhandlers(a);var d=a.dpdiv.find("iframe.ui-datepicker-cover");!d.length||d.css({left:-c[0],top:-c[1],width:a.dpdiv.outerwidth(),height:a.dpdiv.outerheight()}),a.dpdiv.find("."+this._dayoverclass+" a").mouseover();var e=this._getnumberofmonths(a),f=e[1],g=17;a.dpdiv.removeclass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&a.dpdiv.addclass("ui-datepicker-multi-"+f).css("width",g*f+"em"),a.dpdiv[(e[0]!=1||e[1]!=1?"add":"remove")+"class"]("ui-datepicker-multi"),a.dpdiv[(this._get(a,"isrtl")?"add":"remove")+"class"]("ui-datepicker-rtl"),a==$.datepicker._curinst&&$.datepicker._datepickershowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeelement&&a.input.focus();if(a.yearshtml){var h=a.yearshtml;settimeout(function(){h===a.yearshtml&&a.yearshtml&&a.dpdiv.find("select.ui-datepicker-year:first").replacewith(a.yearshtml),h=a.yearshtml=null},0)}},_getborders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parsefloat(b(a.css("border-left-width"))),parsefloat(b(a.css("border-top-width")))]},_checkoffset:function(a,b,c){var d=a.dpdiv.outerwidth(),e=a.dpdiv.outerheight(),f=a.input?a.input.outerwidth():0,g=a.input?a.input.outerheight():0,h=document.documentelement.clientwidth+(c?0:$(document).scrollleft()),i=document.documentelement.clientheight+(c?0:$(document).scrolltop());return b.left-=this._get(a,"isrtl")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollleft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrolltop():0,b.left-=math.min(b.left,b.left+d>h&&h>d?math.abs(b.left+d-h):0),b.top-=math.min(b.top,b.top+e>i&&i>e?math.abs(e+g):0),b},_findpos:function(a){var b=this._getinst(a),c=this._get(b,"isrtl");while(a&&(a.type=="hidden"||a.nodetype!=1||$.expr.filters.hidden(a)))a=a[c?"previoussibling":"nextsibling"];var d=$(a).offset();return[d.left,d.top]},_hidedatepicker:function(a){var b=this._curinst;if(!b||a&&b!=$.data(a,prop_name))return;if(this._datepickershowing){var c=this._get(b,"showanim"),d=this._get(b,"duration"),e=function(){$.datepicker._tidydialog(b)};$.effects&&$.effects[c]?b.dpdiv.hide(c,$.datepicker._get(b,"showoptions"),d,e):b.dpdiv[c=="slidedown"?"slideup":c=="fadein"?"fadeout":"hide"](c?d:null,e),c||e(),this._datepickershowing=!1;var f=this._get(b,"onclose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]),this._lastinput=null,this._indialog&&(this._dialoginput.css({position:"absolute",left:"0",top:"-100px"}),$.blockui&&($.unblockui(),$("body").append(this.dpdiv))),this._indialog=!1}},_tidydialog:function(a){a.dpdiv.removeclass(this._dialogclass).unbind(".ui-datepicker-calendar")},_checkexternalclick:function(a){if(!$.datepicker._curinst)return;var b=$(a.target),c=$.datepicker._getinst(b[0]);(b[0].id!=$.datepicker._maindivid&&b.parents("#"+$.datepicker._maindivid).length==0&&!b.hasclass($.datepicker.markerclassname)&&!b.closest("."+$.datepicker._triggerclass).length&&$.datepicker._datepickershowing&&(!$.datepicker._indialog||!$.blockui)||b.hasclass($.datepicker.markerclassname)&&$.datepicker._curinst!=c)&&$.datepicker._hidedatepicker()},_adjustdate:function(a,b,c){var d=$(a),e=this._getinst(d[0]);if(this._isdisableddatepicker(d[0]))return;this._adjustinstdate(e,b+(c=="m"?this._get(e,"showcurrentatpos"):0),c),this._updatedatepicker(e)},_gototoday:function(a){var b=$(a),c=this._getinst(b[0]);if(this._get(c,"gotocurrent")&&c.currentday)c.selectedday=c.currentday,c.drawmonth=c.selectedmonth=c.currentmonth,c.drawyear=c.selectedyear=c.currentyear;else{var d=new date;c.selectedday=d.getdate(),c.drawmonth=c.selectedmonth=d.getmonth(),c.drawyear=c.selectedyear=d.getfullyear()}this._notifychange(c),this._adjustdate(b)},_selectmonthyear:function(a,b,c){var d=$(a),e=this._getinst(d[0]);e["selected"+(c=="m"?"month":"year")]=e["draw"+(c=="m"?"month":"year")]=parseint(b.options[b.selectedindex].value,10),this._notifychange(e),this._adjustdate(d)},_selectday:function(a,b,c,d){var e=$(a);if($(d).hasclass(this._unselectableclass)||this._isdisableddatepicker(e[0]))return;var f=this._getinst(e[0]);f.selectedday=f.currentday=$("a",d).html(),f.selectedmonth=f.currentmonth=b,f.selectedyear=f.currentyear=c,this._selectdate(a,this._formatdate(f,f.currentday,f.currentmonth,f.currentyear))},_cleardate:function(a){var b=$(a),c=this._getinst(b[0]);this._selectdate(b,"")},_selectdate:function(a,b){var c=$(a),d=this._getinst(c[0]);b=b!=null?b:this._formatdate(d),d.input&&d.input.val(b),this._updatealternate(d);var e=this._get(d,"onselect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change"),d.inline?this._updatedatepicker(d):(this._hidedatepicker(),this._lastinput=d.input[0],typeof d.input[0]!="object"&&d.input.focus(),this._lastinput=null)},_updatealternate:function(a){var b=this._get(a,"altfield");if(b){var c=this._get(a,"altformat")||this._get(a,"dateformat"),d=this._getdate(a),e=this.formatdate(c,d,this._getformatconfig(a));$(b).each(function(){$(this).val(e)})}},noweekends:function(a){var b=a.getday();return[b>0&&b<6,""]},iso8601week:function(a){var b=new date(a.gettime());b.setdate(b.getdate()+4-(b.getday()||7));var c=b.gettime();return b.setmonth(0),b.setdate(1),math.floor(math.round((c-b)/864e5)/7)+1},parsedate:function(a,b,c){if(a==null||b==null)throw"invalid arguments";b=typeof b=="object"?b.tostring():b+"";if(b=="")return null;var d=(c?c.shortyearcutoff:null)||this._defaults.shortyearcutoff;d=typeof d!="string"?d:(new date).getfullyear()%100+parseint(d,10);var e=(c?c.daynamesshort:null)||this._defaults.daynamesshort,f=(c?c.daynames:null)||this._defaults.daynames,g=(c?c.monthnamesshort:null)||this._defaults.monthnamesshort,h=(c?c.monthnames:null)||this._defaults.monthnames,i=-1,j=-1,k=-1,l=-1,m=!1,n=function(b){var c=s+1-1){j=1,k=l;do{var u=this._getdaysinmonth(i,j-1);if(k<=u)break;j++,k-=u}while(!0)}var t=this._daylightsavingadjust(new date(i,j-1,k));if(t.getfullyear()!=i||t.getmonth()+1!=j||t.getdate()!=k)throw"invalid date";return t},atom:"yy-mm-dd",cookie:"d, dd m yy",iso_8601:"yy-mm-dd",rfc_822:"d, d m y",rfc_850:"dd, dd-m-y",rfc_1036:"d, d m y",rfc_1123:"d, d m yy",rfc_2822:"d, d m yy",rss:"d, d m y",ticks:"!",timestamp:"@",w3c:"yy-mm-dd",_ticksto1970:(718685+math.floor(492.5)-math.floor(19.7)+math.floor(4.925))*24*60*60*1e7,formatdate:function(a,b,c){if(!b)return"";var d=(c?c.daynamesshort:null)||this._defaults.daynamesshort,e=(c?c.daynames:null)||this._defaults.daynames,f=(c?c.monthnamesshort:null)||this._defaults.monthnamesshort,g=(c?c.monthnames:null)||this._defaults.monthnames,h=function(b){var c=m+112?a.gethours()+2:0),a):null},_setdate:function(a,b,c){var d=!b,e=a.selectedmonth,f=a.selectedyear,g=this._restrictminmax(a,this._determinedate(a,b,new date));a.selectedday=a.currentday=g.getdate(),a.drawmonth=a.selectedmonth=a.currentmonth=g.getmonth(),a.drawyear=a.selectedyear=a.currentyear=g.getfullyear(),(e!=a.selectedmonth||f!=a.selectedyear)&&!c&&this._notifychange(a),this._adjustinstdate(a),a.input&&a.input.val(d?"":this._formatdate(a))},_getdate:function(a){var b=!a.currentyear||a.input&&a.input.val()==""?null:this._daylightsavingadjust(new date(a.currentyear,a.currentmonth,a.currentday));return b},_attachhandlers:function(a){var b=this._get(a,"stepmonths"),c="#"+a.id;a.dpdiv.find("[data-handler]").map(function(){var a={prev:function(){window["dp_jquery_"+dpuuid].datepicker._adjustdate(c,-b,"m")},next:function(){window["dp_jquery_"+dpuuid].datepicker._adjustdate(c,+b,"m")},hide:function(){window["dp_jquery_"+dpuuid].datepicker._hidedatepicker()},today:function(){window["dp_jquery_"+dpuuid].datepicker._gototoday(c)},selectday:function(){return window["dp_jquery_"+dpuuid].datepicker._selectday(c,+this.getattribute("data-month"),+this.getattribute("data-year"),this),!1},selectmonth:function(){return window["dp_jquery_"+dpuuid].datepicker._selectmonthyear(c,this,"m"),!1},selectyear:function(){return window["dp_jquery_"+dpuuid].datepicker._selectmonthyear(c,this,"y"),!1}};$(this).bind(this.getattribute("data-event"),a[this.getattribute("data-handler")])})},_generatehtml:function(a){var b=new date;b=this._daylightsavingadjust(new date(b.getfullyear(),b.getmonth(),b.getdate()));var c=this._get(a,"isrtl"),d=this._get(a,"showbuttonpanel"),e=this._get(a,"hideifnoprevnext"),f=this._get(a,"navigationasdateformat"),g=this._getnumberofmonths(a),h=this._get(a,"showcurrentatpos"),i=this._get(a,"stepmonths"),j=g[0]!=1||g[1]!=1,k=this._daylightsavingadjust(a.currentday?new date(a.currentyear,a.currentmonth,a.currentday):new date(9999,9,9)),l=this._getminmaxdate(a,"min"),m=this._getminmaxdate(a,"max"),n=a.drawmonth-h,o=a.drawyear;n<0&&(n+=12,o--);if(m){var p=this._daylightsavingadjust(new date(m.getfullyear(),m.getmonth()-g[0]*g[1]+1,m.getdate()));p=l&&pp)n--,n<0&&(n=11,o--)}a.drawmonth=n,a.drawyear=o;var q=this._get(a,"prevtext");q=f?this.formatdate(q,this._daylightsavingadjust(new date(o,n-i,1)),this._getformatconfig(a)):q;var r=this._canadjustmonth(a,-1,o,n)?''+q+"":e?"":''+q+"",s=this._get(a,"nexttext");s=f?this.formatdate(s,this._daylightsavingadjust(new date(o,n+i,1)),this._getformatconfig(a)):s;var t=this._canadjustmonth(a,1,o,n)?''+s+"":e?"":''+s+"",u=this._get(a,"currenttext"),v=this._get(a,"gotocurrent")&&a.currentday?k:b;u=f?this.formatdate(u,v,this._getformatconfig(a)):u;var w=a.inline?"":'",x=d?'
    '+(c?w:"")+(this._isinrange(a,v)?'":"")+(c?"":w)+"
    ":"",y=parseint(this._get(a,"firstday"),10);y=isnan(y)?0:y;var z=this._get(a,"showweek"),a=this._get(a,"daynames"),b=this._get(a,"daynamesshort"),c=this._get(a,"daynamesmin"),d=this._get(a,"monthnames"),e=this._get(a,"monthnamesshort"),f=this._get(a,"beforeshowday"),g=this._get(a,"showothermonths"),h=this._get(a,"selectothermonths"),i=this._get(a,"calculateweek")||this.iso8601week,j=this._getdefaultdate(a),k="";for(var l=0;l1)switch(n){case 0:q+=" ui-datepicker-group-first",p=" ui-corner-"+(c?"right":"left");break;case g[1]-1:q+=" ui-datepicker-group-last",p=" ui-corner-"+(c?"left":"right");break;default:q+=" ui-datepicker-group-middle",p=""}q+='">'}q+='
    '+(/all|left/.test(p)&&l==0?c?t:r:"")+(/all|right/.test(p)&&l==0?c?r:t:"")+this._generatemonthyearheader(a,n,o,l,m,l>0||n>0,d,e)+'
    '+"";var r=z?'":"";for(var s=0;s<7;s++){var t=(s+y)%7;r+="=5?' class="ui-datepicker-week-end"':"")+">"+''+c[t]+""}q+=r+"";var u=this._getdaysinmonth(o,n);o==a.selectedyear&&n==a.selectedmonth&&(a.selectedday=math.min(a.selectedday,u));var v=(this._getfirstdayofmonth(o,n)-y+7)%7,w=math.ceil((v+u)/7),x=j?this.maxrows>w?this.maxrows:w:w;this.maxrows=x;var y=this._daylightsavingadjust(new date(o,n,1-v));for(var z=0;z";var _=z?'":"";for(var s=0;s<7;s++){var ba=f?f.apply(a.input?a.input[0]:null,[y]):[!0,""],bb=y.getmonth()!=n,bc=bb&&!h||!ba[0]||l&&ym;_+='",y.setdate(y.getdate()+1),y=this._daylightsavingadjust(y)}q+=_+""}n++,n>11&&(n=0,o++),q+="
    '+this._get(a,"weekheader")+"
    '+this._get(a,"calculateweek")(y)+""+(bb&&!g?" ":bc?''+y.getdate()+"":''+y.getdate()+"")+"
    "+(j?""+(g[0]>0&&n==g[1]-1?'
    ':""):""),m+=q}k+=m}return k+=x+($.browser.msie&&parseint($.browser.version,10)<7&&!a.inline?'':""),a._keyevent=!1,k},_generatemonthyearheader:function(a,b,c,d,e,f,g,h){var i=this._get(a,"changemonth"),j=this._get(a,"changeyear"),k=this._get(a,"showmonthafteryear"),l='
    ',m="";if(f||!i)m+=''+g[b]+"";else{var n=d&&d.getfullyear()==c,o=e&&e.getfullyear()==c;m+='"}k||(l+=m+(f||!i||!j?" ":""));if(!a.yearshtml){a.yearshtml="";if(f||!j)l+=''+c+"";else{var q=this._get(a,"yearrange").split(":"),r=(new date).getfullyear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseint(a.substring(1),10):a.match(/[+-].*/)?r+parseint(a,10):parseint(a,10);return isnan(b)?r:b},t=s(q[0]),u=math.max(t,s(q[1]||""));t=d?math.max(t,d.getfullyear()):t,u=e?math.min(u,e.getfullyear()):u,a.yearshtml+='",l+=a.yearshtml,a.yearshtml=null}}return l+=this._get(a,"yearsuffix"),k&&(l+=(f||!i||!j?" ":"")+m),l+="
    ",l},_adjustinstdate:function(a,b,c){var d=a.drawyear+(c=="y"?b:0),e=a.drawmonth+(c=="m"?b:0),f=math.min(a.selectedday,this._getdaysinmonth(d,e))+(c=="d"?b:0),g=this._restrictminmax(a,this._daylightsavingadjust(new date(d,e,f)));a.selectedday=g.getdate(),a.drawmonth=a.selectedmonth=g.getmonth(),a.drawyear=a.selectedyear=g.getfullyear(),(c=="m"||c=="y")&&this._notifychange(a)},_restrictminmax:function(a,b){var c=this._getminmaxdate(a,"min"),d=this._getminmaxdate(a,"max"),e=c&&bd?d:e,e},_notifychange:function(a){var b=this._get(a,"onchangemonthyear");b&&b.apply(a.input?a.input[0]:null,[a.selectedyear,a.selectedmonth+1,a])},_getnumberofmonths:function(a){var b=this._get(a,"numberofmonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getminmaxdate:function(a,b){return this._determinedate(a,this._get(a,b+"date"),null)},_getdaysinmonth:function(a,b){return 32-this._daylightsavingadjust(new date(a,b,32)).getdate()},_getfirstdayofmonth:function(a,b){return(new date(a,b,1)).getday()},_canadjustmonth:function(a,b,c,d){var e=this._getnumberofmonths(a),f=this._daylightsavingadjust(new date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setdate(this._getdaysinmonth(f.getfullyear(),f.getmonth())),this._isinrange(a,f)},_isinrange:function(a,b){var c=this._getminmaxdate(a,"min"),d=this._getminmaxdate(a,"max");return(!c||b.gettime()>=c.gettime())&&(!d||b.gettime()<=d.gettime())},_getformatconfig:function(a){var b=this._get(a,"shortyearcutoff");return b=typeof b!="string"?b:(new date).getfullyear()%100+parseint(b,10),{shortyearcutoff:b,daynamesshort:this._get(a,"daynamesshort"),daynames:this._get(a,"daynames"),monthnamesshort:this._get(a,"monthnamesshort"),monthnames:this._get(a,"monthnames")}},_formatdate:function(a,b,c,d){b||(a.currentday=a.selectedday,a.currentmonth=a.selectedmonth,a.currentyear=a.selectedyear);var e=b?typeof b=="object"?b:this._daylightsavingadjust(new date(d,c,b)):this._daylightsavingadjust(new date(a.currentyear,a.currentmonth,a.currentday));return this.formatdate(this._get(a,"dateformat"),e,this._getformatconfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkexternalclick).find("body").append($.datepicker.dpdiv),$.datepicker.initialized=!0);var b=array.prototype.slice.call(arguments,1);return typeof a!="string"||a!="isdisabled"&&a!="getdate"&&a!="widget"?a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this[0]].concat(b)):this.each(function(){typeof a=="string"?$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this].concat(b)):$.datepicker._attachdatepicker(this,a)}):$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new date).gettime(),$.datepicker.version="1.8.22",window["dp_jquery_"+dpuuid]=$}(jquery),function(a,b){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:!0,height:!0,maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0,width:!0},e={maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0},f=a.attrfn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};a.widget("ui.dialog",{options:{autoopen:!0,buttons:{},closeonescape:!0,closetext:"close",dialogclass:"",draggable:!0,hide:null,height:"auto",maxheight:!1,maxwidth:!1,minheight:150,minwidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zindex:1e3},_create:function(){this.originaltitle=this.element.attr("title"),typeof this.originaltitle!="string"&&(this.originaltitle=""),this.options.title=this.options.title||this.originaltitle;var b=this,d=b.options,e=d.title||" ",f=a.ui.dialog.gettitleid(b.element),g=(b.uidialog=a("
    ")).appendto(document.body).hide().addclass(c+d.dialogclass).css({zindex:d.zindex}).attr("tabindex",-1).css("outline",0).keydown(function(c){d.closeonescape&&!c.isdefaultprevented()&&c.keycode&&c.keycode===a.ui.keycode.escape&&(b.close(c),c.preventdefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.movetotop(!1,a)}),h=b.element.show().removeattr("title").addclass("ui-dialog-content ui-widget-content").appendto(g),i=(b.uidialogtitlebar=a("
    ")).addclass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependto(g),j=a('').addclass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addclass("ui-state-hover")},function(){j.removeclass("ui-state-hover")}).focus(function(){j.addclass("ui-state-focus")}).blur(function(){j.removeclass("ui-state-focus")}).click(function(a){return b.close(a),!1}).appendto(i),k=(b.uidialogtitlebarclosetext=a("")).addclass("ui-icon ui-icon-closethick").text(d.closetext).appendto(j),l=a("").addclass("ui-dialog-title").attr("id",f).html(e).prependto(i);a.isfunction(d.beforeclose)&&!a.isfunction(d.beforeclose)&&(d.beforeclose=d.beforeclose),i.find("*").add(i).disableselection(),d.draggable&&a.fn.draggable&&b._makedraggable(),d.resizable&&a.fn.resizable&&b._makeresizable(),b._createbuttons(d.buttons),b._isopen=!1,a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoopen&&this.open()},destroy:function(){var a=this;return a.overlay&&a.overlay.destroy(),a.uidialog.hide(),a.element.unbind(".dialog").removedata("dialog").removeclass("ui-dialog-content ui-widget-content").hide().appendto("body"),a.uidialog.remove(),a.originaltitle&&a.element.attr("title",a.originaltitle),a},widget:function(){return this.uidialog},close:function(b){var c=this,d,e;if(!1===c._trigger("beforeclose",b))return;return c.overlay&&c.overlay.destroy(),c.uidialog.unbind("keypress.ui-dialog"),c._isopen=!1,c.options.hide?c.uidialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uidialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),c.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==c.uidialog[0]&&(e=a(this).css("z-index"),isnan(e)||(d=math.max(d,e)))}),a.ui.dialog.maxz=d),c},isopen:function(){return this._isopen},movetotop:function(b,c){var d=this,e=d.options,f;return e.modal&&!b||!e.stack&&!e.modal?d._trigger("focus",c):(e.zindex>a.ui.dialog.maxz&&(a.ui.dialog.maxz=e.zindex),d.overlay&&(a.ui.dialog.maxz+=1,d.overlay.$el.css("z-index",a.ui.dialog.overlay.maxz=a.ui.dialog.maxz)),f={scrolltop:d.element.scrolltop(),scrollleft:d.element.scrollleft()},a.ui.dialog.maxz+=1,d.uidialog.css("z-index",a.ui.dialog.maxz),d.element.attr(f),d._trigger("focus",c),d)},open:function(){if(this._isopen)return;var b=this,c=b.options,d=b.uidialog;return b.overlay=c.modal?new a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.show),b.movetotop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.keycode!==a.ui.keycode.tab)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftkey)return d.focus(1),!1;if(b.target===d[0]&&b.shiftkey)return e.focus(1),!1}),a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(),b._isopen=!0,b._trigger("open"),b},_createbuttons:function(b){var c=this,d=!1,e=a("
    ").addclass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("
    ").addclass("ui-dialog-buttonset").appendto(e);c.uidialog.find(".ui-dialog-buttonpane").remove(),typeof b=="object"&&b!==null&&a.each(b,function(){return!(d=!0)}),d&&(a.each(b,function(b,d){d=a.isfunction(d)?{click:d,text:b}:d;var e=a('').click(function(){d.click.apply(c.element[0],arguments)}).appendto(g);a.each(d,function(a,b){if(a==="click")return;a in f?e[a](b):e.attr(a,b)}),a.fn.button&&e.button()}),e.appendto(c.uidialog))},_makedraggable:function(){function f(a){return{position:a.position,offset:a.offset}}var b=this,c=b.options,d=a(document),e;b.uidialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,g){e=c.height==="auto"?"auto":a(this).height(),a(this).height(a(this).height()).addclass("ui-dialog-dragging"),b._trigger("dragstart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))},stop:function(g,h){c.position=[h.position.left-d.scrollleft(),h.position.top-d.scrolltop()],a(this).removeclass("ui-dialog-dragging").height(e),b._trigger("dragstop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeresizable:function(c){function h(a){return{originalposition:a.originalposition,originalsize:a.originalsize,position:a.position,size:a.size}}c=c===b?this.options.resizable:c;var d=this,e=d.options,f=d.uidialog.css("position"),g=typeof c=="string"?c:"n,e,s,w,se,sw,ne,nw";d.uidialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoresize:d.element,maxwidth:e.maxwidth,maxheight:e.maxheight,minwidth:e.minwidth,minheight:d._minheight(),handles:g,start:function(b,c){a(this).addclass("ui-dialog-resizing"),d._trigger("resizestart",b,h(c))},resize:function(a,b){d._trigger("resize",a,h(b))},stop:function(b,c){a(this).removeclass("ui-dialog-resizing"),e.height=a(this).height(),e.width=a(this).width(),d._trigger("resizestop",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addclass("ui-icon ui-icon-grip-diagonal-se")},_minheight:function(){var a=this.options;return a.height==="auto"?a.minheight:math.min(a.minheight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b=="string"||typeof b=="object"&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;e=this.uidialog.is(":visible"),e||this.uidialog.show(),this.uidialog.css({top:0,left:0}).position(a.extend({of:window},b)),e||this.uidialog.hide()},_setoptions:function(b){var c=this,f={},g=!1;a.each(b,function(a,b){c._setoption(a,b),a in d&&(g=!0),a in e&&(f[a]=b)}),g&&this._size(),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option",f)},_setoption:function(b,d){var e=this,f=e.uidialog;switch(b){case"beforeclose":b="beforeclose";break;case"buttons":e._createbuttons(d);break;case"closetext":e.uidialogtitlebarclosetext.text(""+d);break;case"dialogclass":f.removeclass(e.options.dialogclass).addclass(c+d);break;case"disabled":d?f.addclass("ui-dialog-disabled"):f.removeclass("ui-dialog-disabled");break;case"draggable":var g=f.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._makedraggable();break;case"position":e._position(d);break;case"resizable":var h=f.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof d=="string"&&f.resizable("option","handles",d),!h&&d!==!1&&e._makeresizable(d);break;case"title":a(".ui-dialog-title",e.uidialogtitlebar).html(""+(d||" "))}a.widget.prototype._setoption.apply(e,arguments)},_size:function(){var b=this.options,c,d,e=this.uidialog.is(":visible");this.element.show().css({width:"auto",minheight:0,height:0}),b.minwidth>b.width&&(b.width=b.minwidth),c=this.uidialog.css({height:"auto",width:b.width}).height(),d=math.max(0,b.minheight-c);if(b.height==="auto")if(a.support.minheight)this.element.css({minheight:d,height:"auto"});else{this.uidialog.show();var f=this.element.css("height","auto").height();e||this.uidialog.hide(),this.element.height(math.max(f,d))}else this.element.height(math.max(b.height-c,0));this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option","minheight",this._minheight())}}),a.extend(a.ui.dialog,{version:"1.8.22",uuid:0,maxz:0,gettitleid:function(a){var b=a.attr("id");return b||(this.uuid+=1,b=this.uuid),"ui-dialog-title-"+b},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}}),a.extend(a.ui.dialog.overlay,{instances:[],oldinstances:[],maxz:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){this.instances.length===0&&(settimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zindex()").addclass("ui-widget-overlay")).appendto(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&c.bgiframe(),this.instances.push(c),c},destroy:function(b){var c=a.inarray(b,this.instances);c!=-1&&this.oldinstances.push(this.instances.splice(c,1)[0]),this.instances.length===0&&a([document,window]).unbind(".dialog-overlay"),b.remove();var d=0;a.each(this.instances,function(){d=math.max(d,this.css("z-index"))}),this.maxz=d},height:function(){var b,c;return a.browser.msie&&a.browser.version<7?(b=math.max(document.documentelement.scrollheight,document.body.scrollheight),c=math.max(document.documentelement.offsetheight,document.body.offsetheight),b0?b.left-e:math.max(b.left-c.collisionposition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionposition.top+c.collisionheight-d.height()-d.scrolltop();b.top=e>0?b.top-e:math.max(b.top-c.collisionposition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]===e)return;var d=a(window),f=c.collisionposition.left+c.collisionwidth-d.width()-d.scrollleft(),g=c.my[0]==="left"?-c.elemwidth:c.my[0]==="right"?c.elemwidth:0,h=c.at[0]==="left"?c.targetwidth:-c.targetwidth,i=-2*c.offset[0];b.left+=c.collisionposition.left<0?g+h+i:f>0?g+h+i:0},top:function(b,c){if(c.at[1]===e)return;var d=a(window),f=c.collisionposition.top+c.collisionheight-d.height()-d.scrolltop(),g=c.my[1]==="top"?-c.elemheight:c.my[1]==="bottom"?c.elemheight:0,h=c.at[1]==="top"?c.targetheight:-c.targetheight,i=-2*c.offset[1];b.top+=c.collisionposition.top<0?g+h+i:f>0?g+h+i:0}}},a.offset.setoffset||(a.offset.setoffset=function(b,c){/static/.test(a.curcss(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseint(a.curcss(b,"top",!0),10)||0,g=parseint(a.curcss(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerdocument?null:b?a.isfunction(b)?this.each(function(c){a(this).offset(b.call(this,c,a(this).offset()))}):this.each(function(){a.offset.setoffset(this,b)}):h.call(this)}),function(){var b=document.getelementsbytagname("body")[0],c=document.createelement("div"),d,e,g,h,i;d=document.createelement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendchild(c),e=b||document.documentelement,e.insertbefore(d,e.firstchild),c.style.csstext="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerhtml="",e.removechild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()}(jquery),function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valuediv=a("
    ").appendto(this.element),this.oldvalue=this._value(),this._refreshvalue()},destroy:function(){this.element.removeclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeattr("role").removeattr("aria-valuemin").removeattr("aria-valuemax").removeattr("aria-valuenow"),this.valuediv.remove(),a.widget.prototype.destroy.apply(this,arguments)},value:function(a){return a===b?this._value():(this._setoption("value",a),this)},_setoption:function(b,c){b==="value"&&(this.options.value=c,this._refreshvalue(),this._value()===this.options.max&&this._trigger("complete")),a.widget.prototype._setoption.apply(this,arguments)},_value:function(){var a=this.options.value;return typeof a!="number"&&(a=0),math.min(this.options.max,math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshvalue:function(){var a=this.value(),b=this._percentage();this.oldvalue!==a&&(this.oldvalue=a,this._trigger("change")),this.valuediv.toggle(a>this.min).toggleclass("ui-corner-right",a===this.options.max).width(b.tofixed(0)+"%"),this.element.attr("aria-valuenow",a)}}),a.extend(a.ui.progressbar,{version:"1.8.22"})}(jquery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{widgeteventprefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var b=this,d=this.options,e=this.element.find(".ui-slider-handle").addclass("ui-state-default ui-corner-all"),f="",g=d.values&&d.values.length||1,h=[];this._keysliding=!1,this._mousesliding=!1,this._animateoff=!0,this._handleindex=null,this._detectorientation(),this._mouseinit(),this.element.addclass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":"")),this.range=a([]),d.range&&(d.range===!0&&(d.values||(d.values=[this._valuemin(),this._valuemin()]),d.values.length&&d.values.length!==2&&(d.values=[d.values[0],d.values[0]])),this.range=a("
    ").appendto(this.element).addclass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var i=e.length;ic&&(f=c,g=a(this),i=b)}),c.range===!0&&this.values(1)===c.min&&(i+=1,g=a(this.handles[i])),j=this._start(b,i),j===!1?!1:(this._mousesliding=!0,h._handleindex=i,g.addclass("ui-state-active").focus(),k=g.offset(),l=!a(b.target).parents().andself().is(".ui-slider-handle"),this._clickoffset=l?{left:0,top:0}:{left:b.pagex-k.left-g.width()/2,top:b.pagey-k.top-g.height()/2-(parseint(g.css("bordertopwidth"),10)||0)-(parseint(g.css("borderbottomwidth"),10)||0)+(parseint(g.css("margintop"),10)||0)},this.handles.hasclass("ui-state-hover")||this._slide(b,i,e),this._animateoff=!0,!0))},_mousestart:function(a){return!0},_mousedrag:function(a){var b={x:a.pagex,y:a.pagey},c=this._normvaluefrommouse(b);return this._slide(a,this._handleindex,c),!1},_mousestop:function(a){return this.handles.removeclass("ui-state-active"),this._mousesliding=!1,this._stop(a,this._handleindex),this._change(a,this._handleindex),this._handleindex=null,this._clickoffset=null,this._animateoff=!1,!1},_detectorientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normvaluefrommouse:function(a){var b,c,d,e,f;return this.orientation==="horizontal"?(b=this.elementsize.width,c=a.x-this.elementoffset.left-(this._clickoffset?this._clickoffset.left:0)):(b=this.elementsize.height,c=a.y-this.elementoffset.top-(this._clickoffset?this._clickoffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),this.orientation==="vertical"&&(d=1-d),e=this._valuemax()-this._valuemin(),f=this._valuemin()+d*e,this._trimalignvalue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),this.options.values.length===2&&this.options.range===!0&&(b===0&&c>d||b===1&&c1){this.options.values[b]=this._trimalignvalue(c),this._refreshvalue(),this._change(null,b);return}if(!arguments.length)return this._values();if(!a.isarray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();d=this.options.values,e=arguments[0];for(f=0;f=this._valuemax())return this._valuemax();var b=this.options.step>0?this.options.step:1,c=(a-this._valuemin())%b,d=a-c;return math.abs(c)*2>=b&&(d+=c>0?b:-b),parsefloat(d.tofixed(5))},_valuemin:function(){return this.options.min},_valuemax:function(){return this.options.max},_refreshvalue:function(){var b=this.options.range,c=this.options,d=this,e=this._animateoff?!1:c.animate,f,g={},h,i,j,k;this.options.values&&this.options.values.length?this.handles.each(function(b,i){f=(d.values(b)-d._valuemin())/(d._valuemax()-d._valuemin())*100,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",a(this).stop(1,1)[e?"animate":"css"](g,c.animate),d.options.range===!0&&(d.orientation==="horizontal"?(b===0&&d.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({width:f-h+"%"},{queue:!1,duration:c.animate})):(b===0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({height:f-h+"%"},{queue:!1,duration:c.animate}))),h=f}):(i=this.value(),j=this._valuemin(),k=this._valuemax(),f=k!==j?(i-j)/(k-j)*100:0,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",this.handle.stop(1,1)[e?"animate":"css"](g,c.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},c.animate),b==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:100-f+"%"},{queue:!1,duration:c.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},c.animate),b==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:c.animate}))}}),a.extend(a.ui.slider,{version:"1.8.22"})}(jquery),function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxoptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idprefix:"ui-tabs-",load:null,paneltemplate:"
    ",remove:null,select:null,show:null,spinner:"loading…",tabtemplate:"
  • #{label}
  • "},_create:function(){this._tabify(!0)},_setoption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabid:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uffff-]/g,"")||this.options.idprefix+e()},_sanitizeselector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makearray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeclass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removedata("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeattribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.tostring().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeselector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabid(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.paneltemplate).attr("id",j).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertafter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addclass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addclass("ui-state-default ui-corner-top"),this.panels.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseint(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inarray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inarray(e.selected,e.disabled),1),this.panels.addclass("ui-tabs-hide"),this.lis.removeclass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeselector(d.anchors[e.selected].hash)).removeclass("ui-tabs-hide"),this.lis.eq(e.selected).addclass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeselector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addclass":"removeclass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inarray(g,e.disabled)!=-1&&!a(h).hasclass("ui-tabs-selected")?"addclass":"removeclass"]("ui-state-disabled");e.cache===!1&&this.anchors.removedata("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addclass("ui-state-"+a)},j=function(a,b){b.removeclass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isarray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addclass("ui-tabs-selected ui-state-active"),c.hide().removeclass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addclass("ui-tabs-selected ui-state-active"),c.removeclass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeclass("ui-tabs-selected ui-state-active"),b.addclass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeclass("ui-tabs-selected ui-state-active"),b.addclass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeselector(b.hash));if(c.hasclass("ui-tabs-selected")&&!e.collapsible||c.hasclass("ui-state-disabled")||c.hasclass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasclass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jquery ui tabs: mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getindex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeclass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removedata("tabs"),this.list.removeclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removedata(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeclass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabtemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexof("#")?this._tabid(a("a",h)[0]):c.replace("#","");h.addclass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.paneltemplate).attr("id",i).data("destroy.tabs",!0)),j.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendto(this.list),j.appendto(this.list[0].parentnode)):(h.insertbefore(this.lis[e]),j.insertbefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addclass("ui-tabs-selected ui-state-active"),j.removeclass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getindex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasclass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getindex(b);var c=this.options;if(a.inarray(b,c.disabled)==-1)return;return this.lis.eq(b).removeclass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getindex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addclass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getindex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getindex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addclass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxoptions,{url:f,success:function(f,g){c.element.find(c._sanitizeselector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxoptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxoptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removedata("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.22"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){cleartimeout(c.rotation),c.rotation=settimeout(function(){var a=d.selected;c.select(++a