/*
 * jQuery UI 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(D,C){function B(F,E){var G=F.nodeName.toLowerCase();
if("area"===G){E=F.parentNode;G=E.name;if(!F.href||!G||E.nodeName.toLowerCase()!=="map"){return false
}F=D("img[usemap=#"+G+"]")[0];return !!F&&A(F)}return(/input|select|textarea|button|object/.test(G)?!F.disabled:"a"==G?F.href||E:E)&&A(F)
}function A(E){return !D(E).parents().andSelf().filter(function(){return D.curCSS(this,"visibility")==="hidden"||D.expr.filters.hidden(this)
}).length}D.ui=D.ui||{};if(!D.ui.version){D.extend(D.ui,{version:"1.8.14",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}});
D.fn.extend({_focus:D.fn.focus,focus:function(F,E){return typeof F==="number"?this.each(function(){var G=this;
setTimeout(function(){D(G).focus();E&&E.call(G)},F)}):this._focus.apply(this,arguments)
},scrollParent:function(){var E;E=D.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(D.curCSS(this,"position",1))&&/(auto|scroll)/.test(D.curCSS(this,"overflow",1)+D.curCSS(this,"overflow-y",1)+D.curCSS(this,"overflow-x",1))
}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(D.curCSS(this,"overflow",1)+D.curCSS(this,"overflow-y",1)+D.curCSS(this,"overflow-x",1))
}).eq(0);return/fixed/.test(this.css("position"))||!E.length?D(document):E},zIndex:function(F){if(F!==C){return this.css("zIndex",F)
}if(this.length){F=D(this[0]);for(var E;F.length&&F[0]!==document;){E=F.css("position");
if(E==="absolute"||E==="relative"||E==="fixed"){E=parseInt(F.css("zIndex"),10);if(!isNaN(E)&&E!==0){return E
}}F=F.parent()}}return 0},disableSelection:function(){return this.bind((D.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(E){E.preventDefault()
})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});D.each(["Width","Height"],function(F,E){function J(M,L,K,N){D.each(I,function(){L-=parseFloat(D.curCSS(M,"padding"+this,true))||0;
if(K){L-=parseFloat(D.curCSS(M,"border"+this+"Width",true))||0}if(N){L-=parseFloat(D.curCSS(M,"margin"+this,true))||0
}});return L}var I=E==="Width"?["Left","Right"]:["Top","Bottom"],H=E.toLowerCase(),G={innerWidth:D.fn.innerWidth,innerHeight:D.fn.innerHeight,outerWidth:D.fn.outerWidth,outerHeight:D.fn.outerHeight};
D.fn["inner"+E]=function(K){if(K===C){return G["inner"+E].call(this)}return this.each(function(){D(this).css(H,J(this,K)+"px")
})};D.fn["outer"+E]=function(L,K){if(typeof L!=="number"){return G["outer"+E].call(this,L)
}return this.each(function(){D(this).css(H,J(this,L,true,K)+"px")})}});D.extend(D.expr[":"],{data:function(F,E,G){return !!D.data(F,G[3])
},focusable:function(E){return B(E,!isNaN(D.attr(E,"tabindex")))},tabbable:function(F){var E=D.attr(F,"tabindex"),G=isNaN(E);
return(G||E>=0)&&B(F,!G)}});D(function(){var F=document.body,E=F.appendChild(E=document.createElement("div"));
D.extend(E.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});D.support.minHeight=E.offsetHeight===100;
D.support.selectstart="onselectstart" in E;F.removeChild(E).style.display="none"});
D.extend(D.ui,{plugin:{add:function(F,E,H){F=D.ui[F].prototype;for(var G in H){F.plugins[G]=F.plugins[G]||[];
F.plugins[G].push([E,H[G]])}},call:function(F,E,H){if((E=F.plugins[E])&&F.element[0].parentNode){for(var G=0;
G<E.length;G++){F.options[E[G][0]]&&E[G][1].apply(F.element,H)}}}},contains:function(F,E){return document.compareDocumentPosition?F.compareDocumentPosition(E)&16:F!==E&&F.contains(E)
},hasScroll:function(F,E){if(D(F).css("overflow")==="hidden"){return false}E=E&&E==="left"?"scrollLeft":"scrollTop";
var G=false;if(F[E]>0){return true}F[E]=1;G=F[E]>0;F[E]=0;return G},isOverAxis:function(F,E,G){return F>E&&F<E+G
},isOver:function(F,E,J,I,H,G){return D.ui.isOverAxis(F,J,H)&&D.ui.isOverAxis(E,I,G)
}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(A,D){if(A.cleanData){var C=A.cleanData;
A.cleanData=function(E){for(var G=0,F;(F=E[G])!=null;G++){A(F).triggerHandler("remove")
}C(E)}}else{var B=A.fn.remove;A.fn.remove=function(E,F){return this.each(function(){if(!F){if(!E||A.filter(E,[this]).length){A("*",this).add([this]).each(function(){A(this).triggerHandler("remove")
})}}return B.call(A(this),E,F)})}}A.widget=function(E,I,H){var G=E.split(".")[0],F;
E=E.split(".")[1];F=G+"-"+E;if(!H){H=I;I=A.Widget}A.expr[":"][F]=function(J){return !!A.data(J,E)
};A[G]=A[G]||{};A[G][E]=function(J,K){arguments.length&&this._createWidget(J,K)};
I=new I;I.options=A.extend(true,{},I.options);A[G][E].prototype=A.extend(true,I,{namespace:G,widgetName:E,widgetEventPrefix:A[G][E].prototype.widgetEventPrefix||E,widgetBaseClass:F},H);
A.widget.bridge(E,A[G][E])};A.widget.bridge=function(E,F){A.fn[E]=function(J){var I=typeof J==="string",H=Array.prototype.slice.call(arguments,1),G=this;
J=!I&&H.length?A.extend.apply(null,[true,J].concat(H)):J;if(I&&J.charAt(0)==="_"){return G
}I?this.each(function(){var L=A.data(this,E),K=L&&A.isFunction(L[J])?L[J].apply(L,H):L;
if(K!==L&&K!==D){G=K;return false}}):this.each(function(){var K=A.data(this,E);K?K.option(J||{})._init():A.data(this,E,new F(J,this))
});return G}};A.Widget=function(E,F){arguments.length&&this._createWidget(E,F)};A.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(E,G){A.data(G,this.widgetName,this);
this.element=A(G);this.options=A.extend(true,{},this.options,this._getCreateOptions(),E);
var F=this;this.element.bind("remove."+this.widgetName,function(){F.destroy()});this._create();
this._trigger("create");this._init()},_getCreateOptions:function(){return A.metadata&&A.metadata.get(this.element[0])[this.widgetName]
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element},option:function(E,G){var F=E;if(arguments.length===0){return A.extend({},this.options)
}if(typeof E==="string"){if(G===D){return this.options[E]}F={};F[E]=G}this._setOptions(F);
return this},_setOptions:function(E){var F=this;A.each(E,function(H,G){F._setOption(H,G)
});return this},_setOption:function(E,F){this.options[E]=F;if(E==="disabled"){this.widget()[F?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",F)
}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)
},_trigger:function(E,I,H){var G=this.options[E];I=A.Event(I);I.type=(E===this.widgetEventPrefix?E:this.widgetEventPrefix+E).toLowerCase();
H=H||{};if(I.originalEvent){E=A.event.props.length;for(var F;E;){F=A.event.props[--E];
I[F]=I.originalEvent[F]}}this.element.trigger(I,H);return !(A.isFunction(G)&&G.call(this.element[0],I,H)===false||I.isDefaultPrevented())
}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(A){var B=false;
A(document).mousedown(function(){B=false});A.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var C=this;
this.element.bind("mousedown."+this.widgetName,function(D){return C._mouseDown(D)
}).bind("click."+this.widgetName,function(D){if(true===A.data(D.target,C.widgetName+".preventClickEvent")){A.removeData(D.target,C.widgetName+".preventClickEvent");
D.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(C){if(!B){this._mouseStarted&&this._mouseUp(C);this._mouseDownEvent=C;
var F=this,E=C.which==1,D=typeof this.options.cancel=="string"?A(C.target).closest(this.options.cancel).length:false;
if(!E||D||!this._mouseCapture(C)){return true}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){F.mouseDelayMet=true
},this.options.delay)}if(this._mouseDistanceMet(C)&&this._mouseDelayMet(C)){this._mouseStarted=this._mouseStart(C)!==false;
if(!this._mouseStarted){C.preventDefault();return true}}true===A.data(C.target,this.widgetName+".preventClickEvent")&&A.removeData(C.target,this.widgetName+".preventClickEvent");
this._mouseMoveDelegate=function(G){return F._mouseMove(G)};this._mouseUpDelegate=function(G){return F._mouseUp(G)
};A(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
C.preventDefault();return B=true}},_mouseMove:function(C){if(A.browser.msie&&!(document.documentMode>=9)&&!C.button){return this._mouseUp(C)
}if(this._mouseStarted){this._mouseDrag(C);return C.preventDefault()}if(this._mouseDistanceMet(C)&&this._mouseDelayMet(C)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,C)!==false)?this._mouseDrag(C):this._mouseUp(C)
}return !this._mouseStarted},_mouseUp:function(C){A(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;C.target==this._mouseDownEvent.target&&A.data(C.target,this.widgetName+".preventClickEvent",true);
this._mouseStop(C)}return false},_mouseDistanceMet:function(C){return Math.max(Math.abs(this._mouseDownEvent.pageX-C.pageX),Math.abs(this._mouseDownEvent.pageY-C.pageY))>=this.options.distance
},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true
}})})(jQuery);(function(E){E.ui=E.ui||{};var D=/left|center|right/,C=/top|center|bottom/,B=E.fn.position,A=E.fn.offset;
E.fn.position=function(F){if(!F||!F.of){return B.apply(this,arguments)}F=E.extend({},F);
var G=E(F.of),M=G[0],K=(F.collision||"flip").split(" "),L=F.offset?F.offset.split(" "):[0,0],J,H,I;
if(M.nodeType===9){J=G.width();H=G.height();I={top:0,left:0}}else{if(M.setTimeout){J=G.width();
H=G.height();I={top:G.scrollTop(),left:G.scrollLeft()}}else{if(M.preventDefault){F.at="left top";
J=H=0;I={top:F.of.pageY,left:F.of.pageX}}else{J=G.outerWidth();H=G.outerHeight();
I=G.offset()}}}E.each(["my","at"],function(){var N=(F[this]||"").split(" ");if(N.length===1){N=D.test(N[0])?N.concat(["center"]):C.test(N[0])?["center"].concat(N):["center","center"]
}N[0]=D.test(N[0])?N[0]:"center";N[1]=C.test(N[1])?N[1]:"center";F[this]=N});if(K.length===1){K[1]=K[0]
}L[0]=parseInt(L[0],10)||0;if(L.length===1){L[1]=L[0]}L[1]=parseInt(L[1],10)||0;if(F.at[0]==="right"){I.left+=J
}else{if(F.at[0]==="center"){I.left+=J/2}}if(F.at[1]==="bottom"){I.top+=H}else{if(F.at[1]==="center"){I.top+=H/2
}}I.left+=L[0];I.top+=L[1];return this.each(function(){var T=E(this),R=T.outerWidth(),Q=T.outerHeight(),P=parseInt(E.curCSS(this,"marginLeft",true))||0,O=parseInt(E.curCSS(this,"marginTop",true))||0,V=R+P+(parseInt(E.curCSS(this,"marginRight",true))||0),U=Q+O+(parseInt(E.curCSS(this,"marginBottom",true))||0),S=E.extend({},I),N;
if(F.my[0]==="right"){S.left-=R}else{if(F.my[0]==="center"){S.left-=R/2}}if(F.my[1]==="bottom"){S.top-=Q
}else{if(F.my[1]==="center"){S.top-=Q/2}}S.left=Math.round(S.left);S.top=Math.round(S.top);
N={left:S.left-P,top:S.top-O};E.each(["left","top"],function(X,W){E.ui.position[K[X]]&&E.ui.position[K[X]][W](S,{targetWidth:J,targetHeight:H,elemWidth:R,elemHeight:Q,collisionPosition:N,collisionWidth:V,collisionHeight:U,offset:L,my:F.my,at:F.at})
});E.fn.bgiframe&&T.bgiframe();T.offset(E.extend(S,{using:F.using}))})};E.ui.position={fit:{left:function(F,G){var H=E(window);
H=G.collisionPosition.left+G.collisionWidth-H.width()-H.scrollLeft();F.left=H>0?F.left-H:Math.max(F.left-G.collisionPosition.left,F.left)
},top:function(F,G){var H=E(window);H=G.collisionPosition.top+G.collisionHeight-H.height()-H.scrollTop();
F.top=H>0?F.top-H:Math.max(F.top-G.collisionPosition.top,F.top)}},flip:{left:function(F,G){if(G.at[0]!=="center"){var K=E(window);
K=G.collisionPosition.left+G.collisionWidth-K.width()-K.scrollLeft();var I=G.my[0]==="left"?-G.elemWidth:G.my[0]==="right"?G.elemWidth:0,J=G.at[0]==="left"?G.targetWidth:-G.targetWidth,H=-2*G.offset[0];
F.left+=G.collisionPosition.left<0?I+J+H:K>0?I+J+H:0}},top:function(F,G){if(G.at[1]!=="center"){var K=E(window);
K=G.collisionPosition.top+G.collisionHeight-K.height()-K.scrollTop();var I=G.my[1]==="top"?-G.elemHeight:G.my[1]==="bottom"?G.elemHeight:0,J=G.at[1]==="top"?G.targetHeight:-G.targetHeight,H=-2*G.offset[1];
F.top+=G.collisionPosition.top<0?I+J+H:K>0?I+J+H:0}}}};if(!E.offset.setOffset){E.offset.setOffset=function(F,G){if(/static/.test(E.curCSS(F,"position"))){F.style.position="relative"
}var K=E(F),I=K.offset(),J=parseInt(E.curCSS(F,"top",true),10)||0,H=parseInt(E.curCSS(F,"left",true),10)||0;
I={top:G.top-I.top+J,left:G.left-I.left+H};"using" in G?G.using.call(F,I):K.css(I)
};E.fn.offset=function(F){var G=this[0];if(!G||!G.ownerDocument){return null}if(F){return this.each(function(){E.offset.setOffset(this,F)
})}return A.call(this)}}})(jQuery);(function(A){A.widget("ui.draggable",A.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();return this}},_mouseCapture:function(C){var B=this.options;if(this.helper||B.disabled||A(C.target).is(".ui-resizable-handle")){return false
}this.handle=this._getHandle(C);if(!this.handle){return false}A(B.iframeFix===true?"iframe":B.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")
});return true},_mouseStart:function(C){var B=this.options;this.helper=this._createHelper(C);
this._cacheHelperProportions();if(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:C.pageX-this.offset.left,top:C.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(C);this.originalPageX=C.pageX;
this.originalPageY=C.pageY;B.cursorAt&&this._adjustOffsetFromHelper(B.cursorAt);B.containment&&this._setContainment();
if(this._trigger("start",C)===false){this._clear();return false}this._cacheHelperProportions();
A.ui.ddmanager&&!B.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,C);this.helper.addClass("ui-draggable-dragging");
this._mouseDrag(C,true);A.ui.ddmanager&&A.ui.ddmanager.dragStart(this,C);return true
},_mouseDrag:function(C,B){this.position=this._generatePosition(C);this.positionAbs=this._convertPositionTo("absolute");
if(!B){B=this._uiHash();if(this._trigger("drag",C,B)===false){this._mouseUp({});return false
}this.position=B.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"
}A.ui.ddmanager&&A.ui.ddmanager.drag(this,C);return false},_mouseStop:function(C){var B=false;
if(A.ui.ddmanager&&!this.options.dropBehaviour){B=A.ui.ddmanager.drop(this,C)}if(this.dropped){B=this.dropped;
this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false
}if(this.options.revert=="invalid"&&!B||this.options.revert=="valid"&&B||this.options.revert===true||A.isFunction(this.options.revert)&&this.options.revert.call(this.element,B)){var D=this;
A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){D._trigger("stop",C)!==false&&D._clear()
})}else{this._trigger("stop",C)!==false&&this._clear()}return false},_mouseUp:function(B){this.options.iframeFix===true&&A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)
});A.ui.ddmanager&&A.ui.ddmanager.dragStop(this,B);return A.ui.mouse.prototype._mouseUp.call(this,B)
},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();
return this},_getHandle:function(C){var B=!this.options.handle||!A(this.options.handle,this.element).length?true:false;
A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==C.target){B=true
}});return B},_createHelper:function(C){var B=this.options;C=A.isFunction(B.helper)?A(B.helper.apply(this.element[0],[C])):B.helper=="clone"?this.element.clone().removeAttr("id"):this.element;
C.parents("body").length||C.appendTo(B.appendTo=="parent"?this.element[0].parentNode:B.appendTo);
C[0]!=this.element[0]&&!/(fixed|absolute)/.test(C.css("position"))&&C.css("position","absolute");
return C},_adjustOffsetFromHelper:function(B){if(typeof B=="string"){B=B.split(" ")
}if(A.isArray(B)){B={left:+B[0],top:+B[1]||0}}if("left" in B){this.offset.click.left=B.left+this.margins.left
}if("right" in B){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left
}if("top" in B){this.offset.click.top=B.top+this.margins.top}if("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();
if(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 B=this.element.position();
return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{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 C=this.options;if(C.containment=="parent"){C.containment=this.helper[0].parentNode
}if(C.containment=="document"||C.containment=="window"){this.containment=[C.containment=="document"?0:A(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,C.containment=="document"?0:A(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(C.containment=="document"?0:A(window).scrollLeft())+A(C.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(C.containment=="document"?0:A(window).scrollTop())+(A(C.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!/^(document|window|parent)$/.test(C.containment)&&C.containment.constructor!=Array){C=A(C.containment);
var B=C[0];if(B){C.offset();var D=A(B).css("overflow")!="hidden";this.containment=[(parseInt(A(B).css("borderLeftWidth"),10)||0)+(parseInt(A(B).css("paddingLeft"),10)||0),(parseInt(A(B).css("borderTopWidth"),10)||0)+(parseInt(A(B).css("paddingTop"),10)||0),(D?Math.max(B.scrollWidth,B.offsetWidth):B.offsetWidth)-(parseInt(A(B).css("borderLeftWidth"),10)||0)-(parseInt(A(B).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(D?Math.max(B.scrollHeight,B.offsetHeight):B.offsetHeight)-(parseInt(A(B).css("borderTopWidth"),10)||0)-(parseInt(A(B).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=C}}else{if(C.containment.constructor==Array){this.containment=C.containment
}}},_convertPositionTo:function(C,B){if(!B){B=this.position}C=C=="absolute"?1:-1;
var E=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,D=/(html|body)/i.test(E[0].tagName);
return{top:B.top+this.offset.relative.top*C+this.offset.parent.top*C-(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():D?0:E.scrollTop())*C),left:B.left+this.offset.relative.left*C+this.offset.parent.left*C-(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():D?0:E.scrollLeft())*C)}
},_generatePosition:function(C){var B=this.options,H=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,F=/(html|body)/i.test(H[0].tagName),G=C.pageX,D=C.pageY;
if(this.originalPosition){var E;if(this.containment){if(this.relative_container){E=this.relative_container.offset();
E=[this.containment[0]+E.left,this.containment[1]+E.top,this.containment[2]+E.left,this.containment[3]+E.top]
}else{E=this.containment}if(C.pageX-this.offset.click.left<E[0]){G=E[0]+this.offset.click.left
}if(C.pageY-this.offset.click.top<E[1]){D=E[1]+this.offset.click.top}if(C.pageX-this.offset.click.left>E[2]){G=E[2]+this.offset.click.left
}if(C.pageY-this.offset.click.top>E[3]){D=E[3]+this.offset.click.top}}if(B.grid){D=B.grid[1]?this.originalPageY+Math.round((D-this.originalPageY)/B.grid[1])*B.grid[1]:this.originalPageY;
D=E?!(D-this.offset.click.top<E[1]||D-this.offset.click.top>E[3])?D:!(D-this.offset.click.top<E[1])?D-B.grid[1]:D+B.grid[1]:D;
G=B.grid[0]?this.originalPageX+Math.round((G-this.originalPageX)/B.grid[0])*B.grid[0]:this.originalPageX;
G=E?!(G-this.offset.click.left<E[0]||G-this.offset.click.left>E[2])?G:!(G-this.offset.click.left<E[0])?G-B.grid[0]:G+B.grid[0]:G
}}return{top:D-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():F?0:H.scrollTop()),left:G-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():F?0:H.scrollLeft())}
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();
this.helper=null;this.cancelHelperRemoval=false},_trigger:function(C,B,D){D=D||this._uiHash();
A.ui.plugin.call(this,C,[B,D]);if(C=="drag"){this.positionAbs=this._convertPositionTo("absolute")
}return A.Widget.prototype._trigger.call(this,C,B,D)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}
}});A.extend(A.ui.draggable,{version:"1.8.14"});A.ui.plugin.add("draggable","connectToSortable",{start:function(C,B){var F=A(this).data("draggable"),D=F.options,E=A.extend({},B,{item:F.element});
F.sortables=[];A(D.connectToSortable).each(function(){var G=A.data(this,"sortable");
if(G&&!G.options.disabled){F.sortables.push({instance:G,shouldRevert:G.options.revert});
G.refreshPositions();G._trigger("activate",C,E)}})},stop:function(C,B){var E=A(this).data("draggable"),D=A.extend({},B,{item:E.element});
A.each(E.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;E.cancelHelperRemoval=true;
this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true
}this.instance._mouseStop(C);this.instance.options.helper=this.instance.options._helper;
E.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})
}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",C,D)
}})},drag:function(C,B){var E=A(this).data("draggable"),D=this;A.each(E.sortables,function(){this.instance.positionAbs=E.positionAbs;
this.instance.helperProportions=E.helperProportions;this.instance.offset.click=E.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=A(D).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return B.helper[0]
};C.target=this.instance.currentItem[0];this.instance._mouseCapture(C,true);this.instance._mouseStart(C,true,true);
this.instance.offset.click.top=E.offset.click.top;this.instance.offset.click.left=E.offset.click.left;
this.instance.offset.parent.left-=E.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=E.offset.parent.top-this.instance.offset.parent.top;
E._trigger("toSortable",C);E.dropped=this.instance.element;E.currentItem=E.element;
this.instance.fromOutside=E}this.instance.currentItem&&this.instance._mouseDrag(C)
}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;this.instance._trigger("out",C,this.instance._uiHash(this.instance));
this.instance._mouseStop(C,true);this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();
E._trigger("fromSortable",C);E.dropped=false}}})}});A.ui.plugin.add("draggable","cursor",{start:function(){var C=A("body"),B=A(this).data("draggable").options;
if(C.css("cursor")){B._cursor=C.css("cursor")}C.css("cursor",B.cursor)},stop:function(){var B=A(this).data("draggable").options;
B._cursor&&A("body").css("cursor",B._cursor)}});A.ui.plugin.add("draggable","opacity",{start:function(C,B){C=A(B.helper);
B=A(this).data("draggable").options;if(C.css("opacity")){B._opacity=C.css("opacity")
}C.css("opacity",B.opacity)},stop:function(C,B){C=A(this).data("draggable").options;
C._opacity&&A(B.helper).css("opacity",C._opacity)}});A.ui.plugin.add("draggable","scroll",{start:function(){var B=A(this).data("draggable");
if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()
}},drag:function(C){var B=A(this).data("draggable"),E=B.options,D=false;if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){if(!E.axis||E.axis!="x"){if(B.overflowOffset.top+B.scrollParent[0].offsetHeight-C.pageY<E.scrollSensitivity){B.scrollParent[0].scrollTop=D=B.scrollParent[0].scrollTop+E.scrollSpeed
}else{if(C.pageY-B.overflowOffset.top<E.scrollSensitivity){B.scrollParent[0].scrollTop=D=B.scrollParent[0].scrollTop-E.scrollSpeed
}}}if(!E.axis||E.axis!="y"){if(B.overflowOffset.left+B.scrollParent[0].offsetWidth-C.pageX<E.scrollSensitivity){B.scrollParent[0].scrollLeft=D=B.scrollParent[0].scrollLeft+E.scrollSpeed
}else{if(C.pageX-B.overflowOffset.left<E.scrollSensitivity){B.scrollParent[0].scrollLeft=D=B.scrollParent[0].scrollLeft-E.scrollSpeed
}}}}else{if(!E.axis||E.axis!="x"){if(C.pageY-A(document).scrollTop()<E.scrollSensitivity){D=A(document).scrollTop(A(document).scrollTop()-E.scrollSpeed)
}else{if(A(window).height()-(C.pageY-A(document).scrollTop())<E.scrollSensitivity){D=A(document).scrollTop(A(document).scrollTop()+E.scrollSpeed)
}}}if(!E.axis||E.axis!="y"){if(C.pageX-A(document).scrollLeft()<E.scrollSensitivity){D=A(document).scrollLeft(A(document).scrollLeft()-E.scrollSpeed)
}else{if(A(window).width()-(C.pageX-A(document).scrollLeft())<E.scrollSensitivity){D=A(document).scrollLeft(A(document).scrollLeft()+E.scrollSpeed)
}}}}D!==false&&A.ui.ddmanager&&!E.dropBehaviour&&A.ui.ddmanager.prepareOffsets(B,C)
}});A.ui.plugin.add("draggable","snap",{start:function(){var C=A(this).data("draggable"),B=C.options;
C.snapElements=[];A(B.snap.constructor!=String?B.snap.items||":data(draggable)":B.snap).each(function(){var E=A(this),D=E.offset();
this!=C.element[0]&&C.snapElements.push({item:this,width:E.outerWidth(),height:E.outerHeight(),top:D.top,left:D.left})
})},drag:function(T,S){for(var R=A(this).data("draggable"),P=R.options,Q=P.snapTolerance,N=S.offset.left,O=N+R.helperProportions.width,H=S.offset.top,G=H+R.helperProportions.height,M=R.snapElements.length-1;
M>=0;M--){var L=R.snapElements[M].left,J=L+R.snapElements[M].width,K=R.snapElements[M].top,I=K+R.snapElements[M].height;
if(L-Q<N&&N<J+Q&&K-Q<H&&H<I+Q||L-Q<N&&N<J+Q&&K-Q<G&&G<I+Q||L-Q<O&&O<J+Q&&K-Q<H&&H<I+Q||L-Q<O&&O<J+Q&&K-Q<G&&G<I+Q){if(P.snapMode!="inner"){var F=Math.abs(K-G)<=Q,E=Math.abs(I-H)<=Q,D=Math.abs(L-O)<=Q,C=Math.abs(J-N)<=Q;
if(F){S.position.top=R._convertPositionTo("relative",{top:K-R.helperProportions.height,left:0}).top-R.margins.top
}if(E){S.position.top=R._convertPositionTo("relative",{top:I,left:0}).top-R.margins.top
}if(D){S.position.left=R._convertPositionTo("relative",{top:0,left:L-R.helperProportions.width}).left-R.margins.left
}if(C){S.position.left=R._convertPositionTo("relative",{top:0,left:J}).left-R.margins.left
}}var B=F||E||D||C;if(P.snapMode!="outer"){F=Math.abs(K-H)<=Q;E=Math.abs(I-G)<=Q;
D=Math.abs(L-N)<=Q;C=Math.abs(J-O)<=Q;if(F){S.position.top=R._convertPositionTo("relative",{top:K,left:0}).top-R.margins.top
}if(E){S.position.top=R._convertPositionTo("relative",{top:I-R.helperProportions.height,left:0}).top-R.margins.top
}if(D){S.position.left=R._convertPositionTo("relative",{top:0,left:L}).left-R.margins.left
}if(C){S.position.left=R._convertPositionTo("relative",{top:0,left:J-R.helperProportions.width}).left-R.margins.left
}}if(!R.snapElements[M].snapping&&(F||E||D||C||B)){R.options.snap.snap&&R.options.snap.snap.call(R.element,T,A.extend(R._uiHash(),{snapItem:R.snapElements[M].item}))
}R.snapElements[M].snapping=F||E||D||C||B}else{R.snapElements[M].snapping&&R.options.snap.release&&R.options.snap.release.call(R.element,T,A.extend(R._uiHash(),{snapItem:R.snapElements[M].item}));
R.snapElements[M].snapping=false}}}});A.ui.plugin.add("draggable","stack",{start:function(){var C=A(this).data("draggable").options;
C=A.makeArray(A(C.stack)).sort(function(E,D){return(parseInt(A(E).css("zIndex"),10)||0)-(parseInt(A(D).css("zIndex"),10)||0)
});if(C.length){var B=parseInt(C[0].style.zIndex)||0;A(C).each(function(D){this.style.zIndex=B+D
});this[0].style.zIndex=B+C.length}}});A.ui.plugin.add("draggable","zIndex",{start:function(C,B){C=A(B.helper);
B=A(this).data("draggable").options;if(C.css("zIndex")){B._zIndex=C.css("zIndex")
}C.css("zIndex",B.zIndex)},stop:function(C,B){C=A(this).data("draggable").options;
C._zIndex&&A(B.helper).css("zIndex",C._zIndex)}})})(jQuery);(function(A){A.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var C=this.options,B=C.accept;
this.isover=0;this.isout=1;this.accept=A.isFunction(B)?B:function(D){return D.is(B)
};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};
A.ui.ddmanager.droppables[C.scope]=A.ui.ddmanager.droppables[C.scope]||[];A.ui.ddmanager.droppables[C.scope].push(this);
C.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var C=A.ui.ddmanager.droppables[this.options.scope],B=0;
B<C.length;B++){C[B]==this&&C.splice(B,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");
return this},_setOption:function(C,B){if(C=="accept"){this.accept=A.isFunction(B)?B:function(D){return D.is(B)
}}A.Widget.prototype._setOption.apply(this,arguments)},_activate:function(C){var B=A.ui.ddmanager.current;
this.options.activeClass&&this.element.addClass(this.options.activeClass);B&&this._trigger("activate",C,this.ui(B))
},_deactivate:function(C){var B=A.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);
B&&this._trigger("deactivate",C,this.ui(B))},_over:function(C){var B=A.ui.ddmanager.current;
if(!(!B||(B.currentItem||B.element)[0]==this.element[0])){if(this.accept.call(this.element[0],B.currentItem||B.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",C,this.ui(B))}}},_out:function(C){var B=A.ui.ddmanager.current;
if(!(!B||(B.currentItem||B.element)[0]==this.element[0])){if(this.accept.call(this.element[0],B.currentItem||B.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);
this._trigger("out",C,this.ui(B))}}},_drop:function(C,B){var E=B||A.ui.ddmanager.current;
if(!E||(E.currentItem||E.element)[0]==this.element[0]){return false}var D=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var F=A.data(this,"droppable");
if(F.options.greedy&&!F.options.disabled&&F.options.scope==E.options.scope&&F.accept.call(F.element[0],E.currentItem||E.element)&&A.ui.intersect(E,A.extend(F,{offset:F.element.offset()}),F.options.tolerance)){D=true;
return false}});if(D){return false}if(this.accept.call(this.element[0],E.currentItem||E.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);
this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",C,this.ui(E));
return this.element}return false},ui:function(B){return{draggable:B.currentItem||B.element,helper:B.helper,position:B.position,offset:B.positionAbs}
}});A.extend(A.ui.droppable,{version:"1.8.14"});A.ui.intersect=function(L,K,J){if(!K.offset){return false
}var I=(L.positionAbs||L.position.absolute).left,G=I+L.helperProportions.width,H=(L.positionAbs||L.position.absolute).top,F=H+L.helperProportions.height,E=K.offset.left,C=E+K.proportions.width,D=K.offset.top,B=D+K.proportions.height;
switch(J){case"fit":return E<=I&&G<=C&&D<=H&&F<=B;case"intersect":return E<I+L.helperProportions.width/2&&G-L.helperProportions.width/2<C&&D<H+L.helperProportions.height/2&&F-L.helperProportions.height/2<B;
case"pointer":return A.ui.isOver((L.positionAbs||L.position.absolute).top+(L.clickOffset||L.offset.click).top,(L.positionAbs||L.position.absolute).left+(L.clickOffset||L.offset.click).left,D,E,K.proportions.height,K.proportions.width);
case"touch":return(H>=D&&H<=B||F>=D&&F<=B||H<D&&F>B)&&(I>=E&&I<=C||G>=E&&G<=C||I<E&&G>C);
default:return false}};A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(C,B){var H=A.ui.ddmanager.droppables[C.options.scope]||[],G=B?B.type:null,E=(C.currentItem||C.element).find(":data(droppable)").andSelf(),F=0;
C:for(;F<H.length;F++){if(!(H[F].options.disabled||C&&!H[F].accept.call(H[F].element[0],C.currentItem||C.element))){for(var D=0;
D<E.length;D++){if(E[D]==H[F].element[0]){H[F].proportions.height=0;continue C}}H[F].visible=H[F].element.css("display")!="none";
if(H[F].visible){G=="mousedown"&&H[F]._activate.call(H[F],B);H[F].offset=H[F].element.offset();
H[F].proportions={width:H[F].element[0].offsetWidth,height:H[F].element[0].offsetHeight}
}}}},drop:function(C,B){var D=false;A.each(A.ui.ddmanager.droppables[C.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&A.ui.intersect(C,this,this.options.tolerance)){D=D||this._drop.call(this,B)
}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],C.currentItem||C.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,B)}}});return D},dragStart:function(C,B){C.element.parentsUntil("body").bind("scroll.droppable",function(){C.options.refreshPositions||A.ui.ddmanager.prepareOffsets(C,B)
})},drag:function(C,B){C.options.refreshPositions&&A.ui.ddmanager.prepareOffsets(C,B);
A.each(A.ui.ddmanager.droppables[C.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var F=A.ui.intersect(C,this,this.options.tolerance);
if(F=!F&&this.isover==1?"isout":F&&this.isover==0?"isover":null){var E;if(this.options.greedy){var D=this.element.parents(":data(droppable):eq(0)");
if(D.length){E=A.data(D[0],"droppable");E.greedyChild=F=="isover"?1:0}}if(E&&F=="isover"){E.isover=0;
E.isout=1;E._out.call(E,B)}this[F]=1;this[F=="isout"?"isover":"isout"]=0;this[F=="isover"?"_over":"_out"].call(this,B);
if(E&&F=="isout"){E.isout=0;E.isover=1;E._over.call(E,B)}}}})},dragStop:function(C,B){C.element.parentsUntil("body").unbind("scroll.droppable");
C.options.refreshPositions||A.ui.ddmanager.prepareOffsets(C,B)}}})(jQuery);(function(C){C.widget("ui.resizable",C.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var D=this,E=this.options;
this.element.addClass("ui-resizable");C.extend(this,{_aspectRatio:!!E.aspectRatio,aspectRatio:E.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:E.helper||E.ghost||E.animate?E.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&C.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});
this.element.wrap(C('<div class="ui-wrapper" style="overflow: hidden;"></div>').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=true;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=E.handles||(!C(".ui-resizable-handle",this.element).length?"e,s,se":{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"});
if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"
}var I=this.handles.split(",");this.handles={};for(var H=0;H<I.length;H++){var G=C.trim(I[H]),F=C('<div class="ui-resizable-handle '+("ui-resizable-"+G)+'"></div>');
/sw|se|ne|nw/.test(G)&&F.css({zIndex:++E.zIndex});"se"==G&&F.addClass("ui-icon ui-icon-gripsmall-diagonal-se");
this.handles[G]=".ui-resizable-"+G;this.element.append(F)}}this._renderAxis=function(M){M=M||this.element;
for(var L in this.handles){if(this.handles[L].constructor==String){this.handles[L]=C(this.handles[L],this.element).show()
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var K=C(this.handles[L],this.element),J=0;
J=/sw|ne|nw|se|n|s/.test(L)?K.outerHeight():K.outerWidth();K=["padding",/ne|nw|n/.test(L)?"Top":/se|sw|s/.test(L)?"Bottom":/^e$/.test(L)?"Right":"Left"].join("");
M.css(K,J);this._proportionallyResize()}C(this.handles[L])}};this._renderAxis(this.element);
this._handles=C(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!D.resizing){if(this.className){var J=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)
}D.axis=J&&J[1]?J[1]:"se"}});if(E.autoHide){this._handles.hide();C(this.element).addClass("ui-resizable-autohide").hover(function(){if(!E.disabled){C(this).removeClass("ui-resizable-autohide");
D._handles.show()}},function(){if(!E.disabled){if(!D.resizing){C(this).addClass("ui-resizable-autohide");
D._handles.hide()}}})}this._mouseInit()},destroy:function(){this._mouseDestroy();
var D=function(F){C(F).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()
};if(this.elementIsWrapper){D(this.element);var E=this.element;E.after(this.originalElement.css({position:E.css("position"),width:E.outerWidth(),height:E.outerHeight(),top:E.css("top"),left:E.css("left")})).remove()
}this.originalElement.css("resize",this.originalResizeStyle);D(this.originalElement);
return this},_mouseCapture:function(D){var E=false;for(var F in this.handles){if(C(this.handles[F])[0]==D.target){E=true
}}return !this.options.disabled&&E},_mouseStart:function(D){var E=this.options,H=this.element.position(),G=this.element;
this.resizing=true;this.documentScroll={top:C(document).scrollTop(),left:C(document).scrollLeft()};
if(G.is(".ui-draggable")||/absolute/.test(G.css("position"))){G.css({position:"absolute",top:H.top,left:H.left})
}C.browser.opera&&/relative/.test(G.css("position"))&&G.css({position:"relative",top:"auto",left:"auto"});
this._renderProxy();H=A(this.helper.css("left"));var F=A(this.helper.css("top"));
if(E.containment){H+=C(E.containment).scrollLeft()||0;F+=C(E.containment).scrollTop()||0
}this.offset=this.helper.offset();this.position={left:H,top:F};this.size=this._helper?{width:G.outerWidth(),height:G.outerHeight()}:{width:G.width(),height:G.height()};
this.originalSize=this._helper?{width:G.outerWidth(),height:G.outerHeight()}:{width:G.width(),height:G.height()};
this.originalPosition={left:H,top:F};this.sizeDiff={width:G.outerWidth()-G.width(),height:G.outerHeight()-G.height()};
this.originalMousePosition={left:D.pageX,top:D.pageY};this.aspectRatio=typeof E.aspectRatio=="number"?E.aspectRatio:this.originalSize.width/this.originalSize.height||1;
E=C(".ui-resizable-"+this.axis).css("cursor");C("body").css("cursor",E=="auto"?this.axis+"-resize":E);
G.addClass("ui-resizable-resizing");this._propagate("start",D);return true},_mouseDrag:function(D){var E=this.helper,G=this.originalMousePosition,F=this._change[this.axis];
if(!F){return false}G=F.apply(this,[D,D.pageX-G.left||0,D.pageY-G.top||0]);this._updateVirtualBoundaries(D.shiftKey);
if(this._aspectRatio||D.shiftKey){G=this._updateRatio(G,D)}G=this._respectSize(G,D);
this._propagate("resize",D);E.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(G);this._trigger("resize",D,this.ui());return false},_mouseStop:function(D){this.resizing=false;
var E=this.options,I=this;if(this._helper){var H=this._proportionallyResizeElements,G=H.length&&/textarea/i.test(H[0].nodeName);
H=G&&C.ui.hasScroll(H[0],"left")?0:I.sizeDiff.height;G=G?0:I.sizeDiff.width;G={width:I.helper.width()-G,height:I.helper.height()-H};
H=parseInt(I.element.css("left"),10)+(I.position.left-I.originalPosition.left)||null;
var F=parseInt(I.element.css("top"),10)+(I.position.top-I.originalPosition.top)||null;
E.animate||this.element.css(C.extend(G,{top:F,left:H}));I.helper.height(I.size.height);
I.helper.width(I.size.width);this._helper&&!E.animate&&this._proportionallyResize()
}C("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",D);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(D){var E=this.options,H,G,F;
E={minWidth:B(E.minWidth)?E.minWidth:0,maxWidth:B(E.maxWidth)?E.maxWidth:Infinity,minHeight:B(E.minHeight)?E.minHeight:0,maxHeight:B(E.maxHeight)?E.maxHeight:Infinity};
if(this._aspectRatio||D){D=E.minHeight*this.aspectRatio;G=E.minWidth/this.aspectRatio;
H=E.maxHeight*this.aspectRatio;F=E.maxWidth/this.aspectRatio;if(D>E.minWidth){E.minWidth=D
}if(G>E.minHeight){E.minHeight=G}if(H<E.maxWidth){E.maxWidth=H}if(F<E.maxHeight){E.maxHeight=F
}}this._vBoundaries=E},_updateCache:function(D){this.offset=this.helper.offset();
if(B(D.left)){this.position.left=D.left}if(B(D.top)){this.position.top=D.top}if(B(D.height)){this.size.height=D.height
}if(B(D.width)){this.size.width=D.width}},_updateRatio:function(D){var E=this.position,G=this.size,F=this.axis;
if(B(D.height)){D.width=D.height*this.aspectRatio}else{if(B(D.width)){D.height=D.width/this.aspectRatio
}}if(F=="sw"){D.left=E.left+(G.width-D.width);D.top=null}if(F=="nw"){D.top=E.top+(G.height-D.height);
D.left=E.left+(G.width-D.width)}return D},_respectSize:function(L){var M=this._vBoundaries,K=this.axis,J=B(L.width)&&M.maxWidth&&M.maxWidth<L.width,I=B(L.height)&&M.maxHeight&&M.maxHeight<L.height,H=B(L.width)&&M.minWidth&&M.minWidth>L.width,G=B(L.height)&&M.minHeight&&M.minHeight>L.height;
if(H){L.width=M.minWidth}if(G){L.height=M.minHeight}if(J){L.width=M.maxWidth}if(I){L.height=M.maxHeight
}var F=this.originalPosition.left+this.originalSize.width,E=this.position.top+this.size.height,D=/sw|nw|w/.test(K);
K=/nw|ne|n/.test(K);if(H&&D){L.left=F-M.minWidth}if(J&&D){L.left=F-M.maxWidth}if(G&&K){L.top=E-M.minHeight
}if(I&&K){L.top=E-M.maxHeight}if((M=!L.width&&!L.height)&&!L.left&&L.top){L.top=null
}else{if(M&&!L.top&&L.left){L.left=null}}return L},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var D=this.helper||this.element,E=0;
E<this._proportionallyResizeElements.length;E++){var H=this._proportionallyResizeElements[E];
if(!this.borderDif){var G=[H.css("borderTopWidth"),H.css("borderRightWidth"),H.css("borderBottomWidth"),H.css("borderLeftWidth")],F=[H.css("paddingTop"),H.css("paddingRight"),H.css("paddingBottom"),H.css("paddingLeft")];
this.borderDif=C.map(G,function(J,I){J=parseInt(J,10)||0;I=parseInt(F[I],10)||0;return J+I
})}C.browser.msie&&(C(D).is(":hidden")||C(D).parents(":hidden").length)||H.css({height:D.height()-this.borderDif[0]-this.borderDif[2]||0,width:D.width()-this.borderDif[1]-this.borderDif[3]||0})
}}},_renderProxy:function(){var D=this.options;this.elementOffset=this.element.offset();
if(this._helper){this.helper=this.helper||C('<div style="overflow:hidden;"></div>');
var E=C.browser.msie&&C.browser.version<7,F=E?1:0;E=E?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+E,height:this.element.outerHeight()+E,position:"absolute",left:this.elementOffset.left-F+"px",top:this.elementOffset.top-F+"px",zIndex:++D.zIndex});
this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(D,E){return{width:this.originalSize.width+E}
},w:function(D,E){return{left:this.originalPosition.left+E,width:this.originalSize.width-E}
},n:function(D,E,F){return{top:this.originalPosition.top+F,height:this.originalSize.height-F}
},s:function(D,E,F){return{height:this.originalSize.height+F}},se:function(D,E,F){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,E,F]))
},sw:function(D,E,F){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,E,F]))
},ne:function(D,E,F){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,E,F]))
},nw:function(D,E,F){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,E,F]))
}},_propagate:function(D,E){C.ui.plugin.call(this,D,[E,this.ui()]);D!="resize"&&this._trigger(D,E,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}
}});C.extend(C.ui.resizable,{version:"1.8.14"});C.ui.plugin.add("resizable","alsoResize",{start:function(){var D=C(this).data("resizable").options,E=function(F){C(F).each(function(){var G=C(this);
G.data("resizable-alsoresize",{width:parseInt(G.width(),10),height:parseInt(G.height(),10),left:parseInt(G.css("left"),10),top:parseInt(G.css("top"),10),position:G.css("position")})
})};if(typeof D.alsoResize=="object"&&!D.alsoResize.parentNode){if(D.alsoResize.length){D.alsoResize=D.alsoResize[0];
E(D.alsoResize)}else{C.each(D.alsoResize,function(F){E(F)})}}else{E(D.alsoResize)
}},resize:function(D,E){var J=C(this).data("resizable");D=J.options;var I=J.originalSize,H=J.originalPosition,G={height:J.size.height-I.height||0,width:J.size.width-I.width||0,top:J.position.top-H.top||0,left:J.position.left-H.left||0},F=function(L,K){C(L).each(function(){var M=C(this),O=C(this).data("resizable-alsoresize"),P={},N=K&&K.length?K:M.parents(E.originalElement[0]).length?["width","height"]:["width","height","top","left"];
C.each(N,function(R,Q){if((R=(O[Q]||0)+(G[Q]||0))&&R>=0){P[Q]=R||null}});if(C.browser.opera&&/relative/.test(M.css("position"))){J._revertToRelativePosition=true;
M.css({position:"absolute",top:"auto",left:"auto"})}M.css(P)})};typeof D.alsoResize=="object"&&!D.alsoResize.nodeType?C.each(D.alsoResize,function(L,K){F(L,K)
}):F(D.alsoResize)},stop:function(){var D=C(this).data("resizable"),E=D.options,F=function(G){C(G).each(function(){var H=C(this);
H.css({position:H.data("resizable-alsoresize").position})})};if(D._revertToRelativePosition){D._revertToRelativePosition=false;
typeof E.alsoResize=="object"&&!E.alsoResize.nodeType?C.each(E.alsoResize,function(G){F(G)
}):F(E.alsoResize)}C(this).removeData("resizable-alsoresize")}});C.ui.plugin.add("resizable","animate",{stop:function(D){var E=C(this).data("resizable"),J=E.options,I=E._proportionallyResizeElements,H=I.length&&/textarea/i.test(I[0].nodeName),G=H&&C.ui.hasScroll(I[0],"left")?0:E.sizeDiff.height;
H={width:E.size.width-(H?0:E.sizeDiff.width),height:E.size.height-G};G=parseInt(E.element.css("left"),10)+(E.position.left-E.originalPosition.left)||null;
var F=parseInt(E.element.css("top"),10)+(E.position.top-E.originalPosition.top)||null;
E.element.animate(C.extend(H,F&&G?{top:F,left:G}:{}),{duration:J.animateDuration,easing:J.animateEasing,step:function(){var K={width:parseInt(E.element.css("width"),10),height:parseInt(E.element.css("height"),10),top:parseInt(E.element.css("top"),10),left:parseInt(E.element.css("left"),10)};
I&&I.length&&C(I[0]).css({width:K.width,height:K.height});E._updateCache(K);E._propagate("resize",D)
}})}});C.ui.plugin.add("resizable","containment",{start:function(){var D=C(this).data("resizable"),E=D.element,J=D.options.containment;
if(E=J instanceof C?J.get(0):/parent/.test(J)?E.parent().get(0):J){D.containerElement=C(E);
if(/document/.test(J)||J==document){D.containerOffset={left:0,top:0};D.containerPosition={left:0,top:0};
D.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight}
}else{var I=C(E),H=[];C(["Top","Right","Left","Bottom"]).each(function(L,K){H[L]=A(I.css("padding"+K))
});D.containerOffset=I.offset();D.containerPosition=I.position();D.containerSize={height:I.innerHeight()-H[3],width:I.innerWidth()-H[1]};
J=D.containerOffset;var G=D.containerSize.height,F=D.containerSize.width;F=C.ui.hasScroll(E,"left")?E.scrollWidth:F;
G=C.ui.hasScroll(E)?E.scrollHeight:G;D.parentData={element:E,left:J.left,top:J.top,width:F,height:G}
}}},resize:function(D){var E=C(this).data("resizable"),J=E.options,I=E.containerOffset,H=E.position;
D=E._aspectRatio||D.shiftKey;var G={top:0,left:0},F=E.containerElement;if(F[0]!=document&&/static/.test(F.css("position"))){G=I
}if(H.left<(E._helper?I.left:0)){E.size.width+=E._helper?E.position.left-I.left:E.position.left-G.left;
if(D){E.size.height=E.size.width/J.aspectRatio}E.position.left=J.helper?I.left:0}if(H.top<(E._helper?I.top:0)){E.size.height+=E._helper?E.position.top-I.top:E.position.top;
if(D){E.size.width=E.size.height*J.aspectRatio}E.position.top=E._helper?I.top:0}E.offset.left=E.parentData.left+E.position.left;
E.offset.top=E.parentData.top+E.position.top;J=Math.abs((E._helper?E.offset.left-G.left:E.offset.left-G.left)+E.sizeDiff.width);
I=Math.abs((E._helper?E.offset.top-G.top:E.offset.top-I.top)+E.sizeDiff.height);H=E.containerElement.get(0)==E.element.parent().get(0);
G=/relative|absolute/.test(E.containerElement.css("position"));if(H&&G){J-=E.parentData.left
}if(J+E.size.width>=E.parentData.width){E.size.width=E.parentData.width-J;if(D){E.size.height=E.size.width/E.aspectRatio
}}if(I+E.size.height>=E.parentData.height){E.size.height=E.parentData.height-I;if(D){E.size.width=E.size.height*E.aspectRatio
}}},stop:function(){var D=C(this).data("resizable"),E=D.options,K=D.containerOffset,J=D.containerPosition,I=D.containerElement,H=C(D.helper),G=H.offset(),F=H.outerWidth()-D.sizeDiff.width;
H=H.outerHeight()-D.sizeDiff.height;D._helper&&!E.animate&&/relative/.test(I.css("position"))&&C(this).css({left:G.left-J.left-K.left,width:F,height:H});
D._helper&&!E.animate&&/static/.test(I.css("position"))&&C(this).css({left:G.left-J.left-K.left,width:F,height:H})
}});C.ui.plugin.add("resizable","ghost",{start:function(){var D=C(this).data("resizable"),E=D.options,F=D.size;
D.ghost=D.originalElement.clone();D.ghost.css({opacity:0.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(){var D=C(this).data("resizable");D.ghost&&D.ghost.css({position:"relative",height:D.size.height,width:D.size.width})
},stop:function(){var D=C(this).data("resizable");D.ghost&&D.helper&&D.helper.get(0).removeChild(D.ghost.get(0))
}});C.ui.plugin.add("resizable","grid",{resize:function(){var D=C(this).data("resizable"),E=D.options,J=D.size,I=D.originalSize,H=D.originalPosition,G=D.axis;
E.grid=typeof E.grid=="number"?[E.grid,E.grid]:E.grid;var F=Math.round((J.width-I.width)/(E.grid[0]||1))*(E.grid[0]||1);
E=Math.round((J.height-I.height)/(E.grid[1]||1))*(E.grid[1]||1);if(/^(se|s|e)$/.test(G)){D.size.width=I.width+F;
D.size.height=I.height+E}else{if(/^(ne)$/.test(G)){D.size.width=I.width+F;D.size.height=I.height+E;
D.position.top=H.top-E}else{if(/^(sw)$/.test(G)){D.size.width=I.width+F;D.size.height=I.height+E
}else{D.size.width=I.width+F;D.size.height=I.height+E;D.position.top=H.top-E}D.position.left=H.left-F
}}}});var A=function(D){return parseInt(D,10)||0},B=function(D){return !isNaN(parseInt(D,10))
}})(jQuery);(function(A){A.widget("ui.selectable",A.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var C=this;
this.element.addClass("ui-selectable");this.dragged=false;var B;this.refresh=function(){B=A(C.options.filter,C.element[0]);
B.each(function(){var E=A(this),D=E.offset();A.data(this,"selectable-item",{element:this,$element:E,left:D.left,top:D.top,right:D.left+E.outerWidth(),bottom:D.top+E.outerHeight(),startselected:false,selected:E.hasClass("ui-selected"),selecting:E.hasClass("ui-selecting"),unselecting:E.hasClass("ui-unselecting")})
})};this.refresh();this.selectees=B.addClass("ui-selectee");this._mouseInit();this.helper=A("<div class='ui-selectable-helper'></div>")
},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");
this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");
this._mouseDestroy();return this},_mouseStart:function(D){var B=this;this.opos=[D.pageX,D.pageY];
if(!this.options.disabled){var C=this.options;this.selectees=A(C.filter,this.element[0]);
this._trigger("start",D);A(C.appendTo).append(this.helper);this.helper.css({left:D.clientX,top:D.clientY,width:0,height:0});
C.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var E=A.data(this,"selectable-item");
E.startselected=true;if(!D.metaKey){E.$element.removeClass("ui-selected");E.selected=false;
E.$element.addClass("ui-unselecting");E.unselecting=true;B._trigger("unselecting",D,{unselecting:E.element})
}});A(D.target).parents().andSelf().each(function(){var E=A.data(this,"selectable-item");
if(E){var F=!D.metaKey||!E.$element.hasClass("ui-selected");E.$element.removeClass(F?"ui-unselecting":"ui-selected").addClass(F?"ui-selecting":"ui-unselecting");
E.unselecting=!F;E.selecting=F;(E.selected=F)?B._trigger("selecting",D,{selecting:E.element}):B._trigger("unselecting",D,{unselecting:E.element});
return false}})}},_mouseDrag:function(I){var G=this;this.dragged=true;if(!this.options.disabled){var H=this.options,B=this.opos[0],F=this.opos[1],E=I.pageX,D=I.pageY;
if(B>E){var C=E;E=B;B=C}if(F>D){C=D;D=F;F=C}this.helper.css({left:B,top:F,width:E-B,height:D-F});
this.selectees.each(function(){var J=A.data(this,"selectable-item");if(!(!J||J.element==G.element[0])){var K=false;
if(H.tolerance=="touch"){K=!(J.left>E||J.right<B||J.top>D||J.bottom<F)}else{if(H.tolerance=="fit"){K=J.left>B&&J.right<E&&J.top>F&&J.bottom<D
}}if(K){if(J.selected){J.$element.removeClass("ui-selected");J.selected=false}if(J.unselecting){J.$element.removeClass("ui-unselecting");
J.unselecting=false}if(!J.selecting){J.$element.addClass("ui-selecting");J.selecting=true;
G._trigger("selecting",I,{selecting:J.element})}}else{if(J.selecting){if(I.metaKey&&J.startselected){J.$element.removeClass("ui-selecting");
J.selecting=false;J.$element.addClass("ui-selected");J.selected=true}else{J.$element.removeClass("ui-selecting");
J.selecting=false;if(J.startselected){J.$element.addClass("ui-unselecting");J.unselecting=true
}G._trigger("unselecting",I,{unselecting:J.element})}}if(J.selected){if(!I.metaKey&&!J.startselected){J.$element.removeClass("ui-selected");
J.selected=false;J.$element.addClass("ui-unselecting");J.unselecting=true;G._trigger("unselecting",I,{unselecting:J.element})
}}}}});return false}},_mouseStop:function(C){var B=this;this.dragged=false;A(".ui-unselecting",this.element[0]).each(function(){var D=A.data(this,"selectable-item");
D.$element.removeClass("ui-unselecting");D.unselecting=false;D.startselected=false;
B._trigger("unselected",C,{unselected:D.element})});A(".ui-selecting",this.element[0]).each(function(){var D=A.data(this,"selectable-item");
D.$element.removeClass("ui-selecting").addClass("ui-selected");D.selecting=false;
D.selected=true;D.startselected=true;B._trigger("selected",C,{selected:D.element})
});this._trigger("stop",C);this.helper.remove();return false}});A.extend(A.ui.selectable,{version:"1.8.14"})
})(jQuery);(function(A){A.widget("ui.sortable",A.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var B=this.options;
this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?B.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;
this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this._mouseDestroy();for(var B=this.items.length-1;B>=0;B--){this.items[B].item.removeData("sortable-item")
}return this},_setOption:function(C,B){if(C==="disabled"){this.options[C]=B;this.widget()[B?"addClass":"removeClass"]("ui-sortable-disabled")
}else{A.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(C,B){if(this.reverting){return false
}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(C);
var F=null,E=this;A(C.target).parents().each(function(){if(A.data(this,"sortable-item")==E){F=A(this);
return false}});if(A.data(C.target,"sortable-item")==E){F=A(C.target)}if(!F){return false
}if(this.options.handle&&!B){var D=false;A(this.options.handle,F).find("*").andSelf().each(function(){if(this==C.target){D=true
}});if(!D){return false}}this.currentItem=F;this._removeCurrentsFromItems();return true
},_mouseStart:function(C,B,E){B=this.options;var D=this;this.currentContainer=this;
this.refreshPositions();this.helper=this._createHelper(C);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};
this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");
A.extend(this.offset,{click:{left:C.pageX-this.offset.left,top:C.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(C);this.originalPageX=C.pageX;this.originalPageY=C.pageY;
B.cursorAt&&this._adjustOffsetFromHelper(B.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();
B.containment&&this._setContainment();if(B.cursor){if(A("body").css("cursor")){this._storedCursor=A("body").css("cursor")
}A("body").css("cursor",B.cursor)}if(B.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")
}this.helper.css("opacity",B.opacity)}if(B.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")
}this.helper.css("zIndex",B.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()
}this._trigger("start",C,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();
if(!E){for(E=this.containers.length-1;E>=0;E--){this.containers[E]._trigger("activate",C,D._uiHash(this))
}}if(A.ui.ddmanager){A.ui.ddmanager.current=this}A.ui.ddmanager&&!B.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,C);
this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(C);
return true},_mouseDrag:function(C){this.position=this._generatePosition(C);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var B=this.options,F=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-C.pageY<B.scrollSensitivity){this.scrollParent[0].scrollTop=F=this.scrollParent[0].scrollTop+B.scrollSpeed
}else{if(C.pageY-this.overflowOffset.top<B.scrollSensitivity){this.scrollParent[0].scrollTop=F=this.scrollParent[0].scrollTop-B.scrollSpeed
}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-C.pageX<B.scrollSensitivity){this.scrollParent[0].scrollLeft=F=this.scrollParent[0].scrollLeft+B.scrollSpeed
}else{if(C.pageX-this.overflowOffset.left<B.scrollSensitivity){this.scrollParent[0].scrollLeft=F=this.scrollParent[0].scrollLeft-B.scrollSpeed
}}}else{if(C.pageY-A(document).scrollTop()<B.scrollSensitivity){F=A(document).scrollTop(A(document).scrollTop()-B.scrollSpeed)
}else{if(A(window).height()-(C.pageY-A(document).scrollTop())<B.scrollSensitivity){F=A(document).scrollTop(A(document).scrollTop()+B.scrollSpeed)
}}if(C.pageX-A(document).scrollLeft()<B.scrollSensitivity){F=A(document).scrollLeft(A(document).scrollLeft()-B.scrollSpeed)
}else{if(A(window).width()-(C.pageX-A(document).scrollLeft())<B.scrollSensitivity){F=A(document).scrollLeft(A(document).scrollLeft()+B.scrollSpeed)
}}}F!==false&&A.ui.ddmanager&&!B.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,C)
}this.positionAbs=this._convertPositionTo("absolute");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"
}for(B=this.items.length-1;B>=0;B--){F=this.items[B];var E=F.item[0],D=this._intersectsWithPointer(F);
if(D){if(E!=this.currentItem[0]&&this.placeholder[D==1?"next":"prev"]()[0]!=E&&!A.ui.contains(this.placeholder[0],E)&&(this.options.type=="semi-dynamic"?!A.ui.contains(this.element[0],E):true)){this.direction=D==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(F)){this._rearrange(C,F)
}else{break}this._trigger("change",C,this._uiHash());break}}}this._contactContainers(C);
A.ui.ddmanager&&A.ui.ddmanager.drag(this,C);this._trigger("sort",C,this._uiHash());
this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(C,B){if(C){A.ui.ddmanager&&!this.options.dropBehaviour&&A.ui.ddmanager.drop(this,C);
if(this.options.revert){var D=this;B=D.placeholder.offset();D.reverting=true;A(this.helper).animate({left:B.left-this.offset.parent.left-D.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:B.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(C)
})}else{this._clear(C,B)}return false}},cancel:function(){var C=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 B=this.containers.length-1;B>=0;B--){this.containers[B]._trigger("deactivate",null,C._uiHash(this));
if(this.containers[B].containerCache.over){this.containers[B]._trigger("out",null,C._uiHash(this));
this.containers[B].containerCache.over=0}}}if(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:false,reverting:false,_noFinalSort:null});this.domPosition.prev?A(this.domPosition.prev).after(this.currentItem):A(this.domPosition.parent).prepend(this.currentItem)
}return this},serialize:function(C){var B=this._getItemsAsjQuery(C&&C.connected),D=[];
C=C||{};A(B).each(function(){var E=(A(C.item||this).attr(C.attribute||"id")||"").match(C.expression||/(.+)[-=_](.+)/);
if(E){D.push((C.key||E[1]+"[]")+"="+(C.key&&C.expression?E[1]:E[2]))}});!D.length&&C.key&&D.push(C.key+"=");
return D.join("&")},toArray:function(C){var B=this._getItemsAsjQuery(C&&C.connected),D=[];
C=C||{};B.each(function(){D.push(A(C.item||this).attr(C.attribute||"id")||"")});return D
},_intersectsWith:function(L){var K=this.positionAbs.left,J=K+this.helperProportions.width,I=this.positionAbs.top,H=I+this.helperProportions.height,G=L.left,F=G+L.width,E=L.top,C=E+L.height,D=this.offset.click.top,B=this.offset.click.left;
D=I+D>E&&I+D<C&&K+B>G&&K+B<F;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>L[this.floating?"width":"height"]?D:G<K+this.helperProportions.width/2&&J-this.helperProportions.width/2<F&&E<I+this.helperProportions.height/2&&H-this.helperProportions.height/2<C
},_intersectsWithPointer:function(C){var B=A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,C.top,C.height);
C=A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,C.left,C.width);B=B&&C;
C=this._getDragVerticalDirection();var D=this._getDragHorizontalDirection();if(!B){return false
}return this.floating?D&&D=="right"||C=="down"?2:1:C&&(C=="down"?2:1)},_intersectsWithSides:function(C){var B=A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,C.top+C.height/2,C.height);
C=A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,C.left+C.width/2,C.width);
var E=this._getDragVerticalDirection(),D=this._getDragHorizontalDirection();return this.floating&&D?D=="right"&&C||D=="left"&&!C:E&&(E=="down"&&B||E=="up"&&!B)
},_getDragVerticalDirection:function(){var B=this.positionAbs.top-this.lastPositionAbs.top;
return B!=0&&(B>0?"down":"up")},_getDragHorizontalDirection:function(){var B=this.positionAbs.left-this.lastPositionAbs.left;
return B!=0&&(B>0?"right":"left")},refresh:function(B){this._refreshItems(B);this.refreshPositions();
return this},_connectWith:function(){var B=this.options;return B.connectWith.constructor==String?[B.connectWith]:B.connectWith
},_getItemsAsjQuery:function(C){var B=[],H=[],G=this._connectWith();if(G&&C){for(C=G.length-1;
C>=0;C--){for(var F=A(G[C]),E=F.length-1;E>=0;E--){var D=A.data(F[E],"sortable");
if(D&&D!=this&&!D.options.disabled){H.push([A.isFunction(D.options.items)?D.options.items.call(D.element):A(D.options.items,D.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),D])
}}}}H.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(C=H.length-1;C>=0;C--){H[C][0].each(function(){B.push(this)})}return A(B)},_removeCurrentsFromItems:function(){for(var C=this.currentItem.find(":data(sortable-item)"),B=0;
B<this.items.length;B++){for(var D=0;D<C.length;D++){C[D]==this.items[B].item[0]&&this.items.splice(B,1)
}}},_refreshItems:function(C){this.items=[];this.containers=[this];var B=this.items,I=[[A.isFunction(this.options.items)?this.options.items.call(this.element[0],C,{item:this.currentItem}):A(this.options.items,this.element),this]],H=this._connectWith();
if(H){for(var G=H.length-1;G>=0;G--){for(var F=A(H[G]),E=F.length-1;E>=0;E--){var D=A.data(F[E],"sortable");
if(D&&D!=this&&!D.options.disabled){I.push([A.isFunction(D.options.items)?D.options.items.call(D.element[0],C,{item:this.currentItem}):A(D.options.items,D.element),D]);
this.containers.push(D)}}}}for(G=I.length-1;G>=0;G--){C=I[G][1];H=I[G][0];E=0;for(F=H.length;
E<F;E++){D=A(H[E]);D.data("sortable-item",C);B.push({item:D,instance:C,width:0,height:0,left:0,top:0})
}}},refreshPositions:function(C){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()
}for(var B=this.items.length-1;B>=0;B--){var E=this.items[B];if(!(E.instance!=this.currentContainer&&this.currentContainer&&E.item[0]!=this.currentItem[0])){var D=this.options.toleranceElement?A(this.options.toleranceElement,E.item):E.item;
if(!C){E.width=D.outerWidth();E.height=D.outerHeight()}D=D.offset();E.left=D.left;
E.top=D.top}}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)
}else{for(B=this.containers.length-1;B>=0;B--){D=this.containers[B].element.offset();
this.containers[B].containerCache.left=D.left;this.containers[B].containerCache.top=D.top;
this.containers[B].containerCache.width=this.containers[B].element.outerWidth();this.containers[B].containerCache.height=this.containers[B].element.outerHeight()
}}return this},_createPlaceholder:function(C){var B=C||this,E=B.options;if(!E.placeholder||E.placeholder.constructor==String){var D=E.placeholder;
E.placeholder={element:function(){var F=A(document.createElement(B.currentItem[0].nodeName)).addClass(D||B.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
if(!D){F.style.visibility="hidden"}return F},update:function(G,F){if(!(D&&!E.forcePlaceholderSize)){F.height()||F.height(B.currentItem.innerHeight()-parseInt(B.currentItem.css("paddingTop")||0,10)-parseInt(B.currentItem.css("paddingBottom")||0,10));
F.width()||F.width(B.currentItem.innerWidth()-parseInt(B.currentItem.css("paddingLeft")||0,10)-parseInt(B.currentItem.css("paddingRight")||0,10))
}}}}B.placeholder=A(E.placeholder.element.call(B.element,B.currentItem));B.currentItem.after(B.placeholder);
E.placeholder.update(B,B.placeholder)},_contactContainers:function(C){for(var B=null,H=null,G=this.containers.length-1;
G>=0;G--){if(!A.ui.contains(this.currentItem[0],this.containers[G].element[0])){if(this._intersectsWith(this.containers[G].containerCache)){if(!(B&&A.ui.contains(this.containers[G].element[0],B.element[0]))){B=this.containers[G];
H=G}}else{if(this.containers[G].containerCache.over){this.containers[G]._trigger("out",C,this._uiHash(this));
this.containers[G].containerCache.over=0}}}}if(B){if(this.containers.length===1){this.containers[H]._trigger("over",C,this._uiHash(this));
this.containers[H].containerCache.over=1}else{if(this.currentContainer!=this.containers[H]){B=10000;
G=null;for(var F=this.positionAbs[this.containers[H].floating?"left":"top"],E=this.items.length-1;
E>=0;E--){if(A.ui.contains(this.containers[H].element[0],this.items[E].item[0])){var D=this.items[E][this.containers[H].floating?"left":"top"];
if(Math.abs(D-F)<B){B=Math.abs(D-F);G=this.items[E]}}}if(G||this.options.dropOnEmpty){this.currentContainer=this.containers[H];
G?this._rearrange(C,G,null,true):this._rearrange(C,null,this.containers[H].element,true);
this._trigger("change",C,this._uiHash());this.containers[H]._trigger("change",C,this._uiHash(this));
this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[H]._trigger("over",C,this._uiHash(this));
this.containers[H].containerCache.over=1}}}}},_createHelper:function(C){var B=this.options;
C=A.isFunction(B.helper)?A(B.helper.apply(this.element[0],[C,this.currentItem])):B.helper=="clone"?this.currentItem.clone():this.currentItem;
C.parents("body").length||A(B.appendTo!="parent"?B.appendTo:this.currentItem[0].parentNode)[0].appendChild(C[0]);
if(C[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")}
}if(C[0].style.width==""||B.forceHelperSize){C.width(this.currentItem.width())}if(C[0].style.height==""||B.forceHelperSize){C.height(this.currentItem.height())
}return C},_adjustOffsetFromHelper:function(B){if(typeof B=="string"){B=B.split(" ")
}if(A.isArray(B)){B={left:+B[0],top:+B[1]||0}}if("left" in B){this.offset.click.left=B.left+this.margins.left
}if("right" in B){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left
}if("top" in B){this.offset.click.top=B.top+this.margins.top}if("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();
if(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 B=this.currentItem.position();
return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{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 C=this.options;if(C.containment=="parent"){C.containment=this.helper[0].parentNode
}if(C.containment=="document"||C.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(C.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(A(C.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!/^(document|window|parent)$/.test(C.containment)){var B=A(C.containment)[0];
C=A(C.containment).offset();var D=A(B).css("overflow")!="hidden";this.containment=[C.left+(parseInt(A(B).css("borderLeftWidth"),10)||0)+(parseInt(A(B).css("paddingLeft"),10)||0)-this.margins.left,C.top+(parseInt(A(B).css("borderTopWidth"),10)||0)+(parseInt(A(B).css("paddingTop"),10)||0)-this.margins.top,C.left+(D?Math.max(B.scrollWidth,B.offsetWidth):B.offsetWidth)-(parseInt(A(B).css("borderLeftWidth"),10)||0)-(parseInt(A(B).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,C.top+(D?Math.max(B.scrollHeight,B.offsetHeight):B.offsetHeight)-(parseInt(A(B).css("borderTopWidth"),10)||0)-(parseInt(A(B).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}},_convertPositionTo:function(C,B){if(!B){B=this.position}C=C=="absolute"?1:-1;var E=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,D=/(html|body)/i.test(E[0].tagName);
return{top:B.top+this.offset.relative.top*C+this.offset.parent.top*C-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():D?0:E.scrollTop())*C),left:B.left+this.offset.relative.left*C+this.offset.parent.left*C-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():D?0:E.scrollLeft())*C)}
},_generatePosition:function(C){var B=this.options,G=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,F=/(html|body)/i.test(G[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()
}var E=C.pageX,D=C.pageY;if(this.originalPosition){if(this.containment){if(C.pageX-this.offset.click.left<this.containment[0]){E=this.containment[0]+this.offset.click.left
}if(C.pageY-this.offset.click.top<this.containment[1]){D=this.containment[1]+this.offset.click.top
}if(C.pageX-this.offset.click.left>this.containment[2]){E=this.containment[2]+this.offset.click.left
}if(C.pageY-this.offset.click.top>this.containment[3]){D=this.containment[3]+this.offset.click.top
}}if(B.grid){D=this.originalPageY+Math.round((D-this.originalPageY)/B.grid[1])*B.grid[1];
D=this.containment?!(D-this.offset.click.top<this.containment[1]||D-this.offset.click.top>this.containment[3])?D:!(D-this.offset.click.top<this.containment[1])?D-B.grid[1]:D+B.grid[1]:D;
E=this.originalPageX+Math.round((E-this.originalPageX)/B.grid[0])*B.grid[0];E=this.containment?!(E-this.offset.click.left<this.containment[0]||E-this.offset.click.left>this.containment[2])?E:!(E-this.offset.click.left<this.containment[0])?E-B.grid[0]:E+B.grid[0]:E
}}return{top:D-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():F?0:G.scrollTop()),left:E-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():F?0:G.scrollLeft())}
},_rearrange:function(C,B,G,F){G?G[0].appendChild(this.placeholder[0]):B.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?B.item[0]:B.item[0].nextSibling);
this.counter=this.counter?++this.counter:1;var E=this,D=this.counter;window.setTimeout(function(){D==E.counter&&E.refreshPositions(!F)
},0)},_clear:function(C,B){this.reverting=false;var E=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);
this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var D in this._storedCSS){if(this._storedCSS[D]=="auto"||this._storedCSS[D]=="static"){this._storedCSS[D]=""
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()
}this.fromOutside&&!B&&E.push(function(F){this._trigger("receive",F,this._uiHash(this.fromOutside))
});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!B){E.push(function(F){this._trigger("update",F,this._uiHash())
})}if(!A.ui.contains(this.element[0],this.currentItem[0])){B||E.push(function(F){this._trigger("remove",F,this._uiHash())
});for(D=this.containers.length-1;D>=0;D--){if(A.ui.contains(this.containers[D].element[0],this.currentItem[0])&&!B){E.push(function(F){return function(G){F._trigger("receive",G,this._uiHash(this))
}}.call(this,this.containers[D]));E.push(function(F){return function(G){F._trigger("update",G,this._uiHash(this))
}}.call(this,this.containers[D]))}}}for(D=this.containers.length-1;D>=0;D--){B||E.push(function(F){return function(G){F._trigger("deactivate",G,this._uiHash(this))
}}.call(this,this.containers[D]));if(this.containers[D].containerCache.over){E.push(function(F){return function(G){F._trigger("out",G,this._uiHash(this))
}}.call(this,this.containers[D]));this.containers[D].containerCache.over=0}}this._storedCursor&&A("body").css("cursor",this._storedCursor);
this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)
}this.dragging=false;if(this.cancelHelperRemoval){if(!B){this._trigger("beforeStop",C,this._uiHash());
for(D=0;D<E.length;D++){E[D].call(this,C)}this._trigger("stop",C,this._uiHash())}return false
}B||this._trigger("beforeStop",C,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!B){for(D=0;
D<E.length;D++){E[D].call(this,C)}this._trigger("stop",C,this._uiHash())}this.fromOutside=false;
return true},_trigger:function(){A.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()
},_uiHash:function(C){var B=C||this;return{helper:B.helper,placeholder:B.placeholder||A([]),position:B.position,originalPosition:B.originalPosition,offset:B.positionAbs,item:B.currentItem,sender:C?C.element:null}
}});A.extend(A.ui.sortable,{version:"1.8.14"})})(jQuery);(function(A){A.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()
}},_create:function(){var C=this,B=C.options;C.running=0;C.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
C.headers=C.element.find(B.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){B.disabled||A(this).addClass("ui-state-hover")
}).bind("mouseleave.accordion",function(){B.disabled||A(this).removeClass("ui-state-hover")
}).bind("focus.accordion",function(){B.disabled||A(this).addClass("ui-state-focus")
}).bind("blur.accordion",function(){B.disabled||A(this).removeClass("ui-state-focus")
});C.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(B.navigation){var E=C.element.find("a").filter(B.navigationFilter).eq(0);if(E.length){var D=E.closest(".ui-accordion-header");
C.active=D.length?D:E.closest(".ui-accordion-content").prev()}}C.active=C._findActive(C.active||B.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
C.active.next().addClass("ui-accordion-content-active");C._createIcons();C.resize();
C.element.attr("role","tablist");C.headers.attr("role","tab").bind("keydown.accordion",function(F){return C._keydown(F)
}).next().attr("role","tabpanel");C.headers.not(C.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();
C.active.length?C.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):C.headers.eq(0).attr("tabIndex",0);
A.browser.safari||C.headers.find("a").attr("tabIndex",-1);B.event&&C.headers.bind(B.event.split(" ").join(".accordion ")+".accordion",function(F){C._clickHandler.call(C,F,this);
F.preventDefault()})},_createIcons:function(){var B=this.options;if(B.icons){A("<span></span>").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 C=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 B=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");
if(C.autoHeight||C.fillHeight){B.css("height","")}return A.Widget.prototype.destroy.call(this)
},_setOption:function(C,B){A.Widget.prototype._setOption.apply(this,arguments);C=="active"&&this.activate(B);
if(C=="icons"){this._destroyIcons();B&&this._createIcons()}if(C=="disabled"){this.headers.add(this.headers.next())[B?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")
}},_keydown:function(C){if(!(this.options.disabled||C.altKey||C.ctrlKey)){var B=A.ui.keyCode,F=this.headers.length,D=this.headers.index(C.target),E=false;
switch(C.keyCode){case B.RIGHT:case B.DOWN:E=this.headers[(D+1)%F];break;case B.LEFT:case B.UP:E=this.headers[(D-1+F)%F];
break;case B.SPACE:case B.ENTER:this._clickHandler({target:C.target},C.target);C.preventDefault()
}if(E){A(C.target).attr("tabIndex",-1);A(E).attr("tabIndex",0);E.focus();return false
}return true}},resize:function(){var C=this.options,B;if(C.fillSpace){if(A.browser.msie){var D=this.element.parent().css("overflow");
this.element.parent().css("overflow","hidden")}B=this.element.parent().height();A.browser.msie&&this.element.parent().css("overflow",D);
this.headers.each(function(){B-=A(this).outerHeight(true)});this.headers.next().each(function(){A(this).height(Math.max(0,B-A(this).innerHeight()+A(this).height()))
}).css("overflow","auto")}else{if(C.autoHeight){B=0;this.headers.next().each(function(){B=Math.max(B,A(this).height("").height())
}).height(B)}}return this},activate:function(B){this.options.active=B;B=this._findActive(B)[0];
this._clickHandler({target:B},B);return this},_findActive:function(B){return B?typeof B==="number"?this.headers.filter(":eq("+B+")"):this.headers.not(this.headers.not(B)):B===false?A([]):this.headers.filter(":eq(0)")
},_clickHandler:function(C,B){var I=this.options;if(!I.disabled){if(C.target){C=A(C.currentTarget||B);
B=C[0]===this.active[0];I.active=I.collapsible&&B?false:this.headers.index(C);if(!(this.running||!I.collapsible&&B)){var E=this.active;
D=C.next();F=this.active.next();H={options:I,newHeader:B&&I.collapsible?A([]):C,oldHeader:this.active,newContent:B&&I.collapsible?A([]):D,oldContent:F};
var G=this.headers.index(this.active[0])>this.headers.index(C[0]);this.active=B?A([]):C;
this._toggle(D,F,H,B,G);E.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(I.icons.headerSelected).addClass(I.icons.header);
if(!B){C.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(I.icons.header).addClass(I.icons.headerSelected);
C.next().addClass("ui-accordion-content-active")}}}else{if(I.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(I.icons.headerSelected).addClass(I.icons.header);
this.active.next().addClass("ui-accordion-content-active");var F=this.active.next(),H={options:I,newHeader:A([]),oldHeader:I.active,newContent:A([]),oldContent:F},D=this.active=A([]);
this._toggle(D,F,H)}}}},_toggle:function(K,J,I,E,G){var F=this,H=F.options;F.toShow=K;
F.toHide=J;F.data=I;var C=function(){if(F){return F._completed.apply(F,arguments)
}};F._trigger("changestart",null,F.data);F.running=J.size()===0?K.size():J.size();
if(H.animated){I={};I=H.collapsible&&E?{toShow:A([]),toHide:J,complete:C,down:G,autoHeight:H.autoHeight||H.fillSpace}:{toShow:K,toHide:J,complete:C,down:G,autoHeight:H.autoHeight||H.fillSpace};
if(!H.proxied){H.proxied=H.animated}if(!H.proxiedDuration){H.proxiedDuration=H.duration
}H.animated=A.isFunction(H.proxied)?H.proxied(I):H.proxied;H.duration=A.isFunction(H.proxiedDuration)?H.proxiedDuration(I):H.proxiedDuration;
E=A.ui.accordion.animations;var D=H.duration,B=H.animated;if(B&&!E[B]&&!A.easing[B]){B="slide"
}E[B]||(E[B]=function(L){this.slide(L,{easing:B,duration:D||700})});E[B](I)}else{if(H.collapsible&&E){K.toggle()
}else{J.hide();K.show()}C(true)}J.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();
K.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()
},_completed:function(B){this.running=B?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});
this.toHide.removeClass("ui-accordion-content-active");if(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.14",animations:{slide:function(C,B){C=A.extend({easing:"swing",duration:300},C,B);
if(C.toHide.size()){if(C.toShow.size()){var H=C.toShow.css("overflow"),D=0,F={},E={},G;
B=C.toShow;G=B[0].style.width;B.width(parseInt(B.parent().width(),10)-parseInt(B.css("paddingLeft"),10)-parseInt(B.css("paddingRight"),10)-(parseInt(B.css("borderLeftWidth"),10)||0)-(parseInt(B.css("borderRightWidth"),10)||0));
A.each(["height","paddingTop","paddingBottom"],function(I,J){E[J]="hide";I=(""+A.css(C.toShow[0],J)).match(/^([\d+-.]+)(.*)$/);
F[J]={value:I[1],unit:I[2]||"px"}});C.toShow.css({height:0,overflow:"hidden"}).show();
C.toHide.filter(":hidden").each(C.complete).end().filter(":visible").animate(E,{step:function(I,J){if(J.prop=="height"){D=J.end-J.start===0?0:(J.now-J.start)/(J.end-J.start)
}C.toShow[0].style[J.prop]=D*F[J.prop].value+F[J.prop].unit},duration:C.duration,easing:C.easing,complete:function(){C.autoHeight||C.toShow.css("height","");
C.toShow.css({width:G,overflow:H});C.complete()}})}else{C.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},C)
}}else{C.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},C)
}},bounceslide:function(B){this.slide(B,{easing:B.down?"easeOutBounce":"swing",duration:B.down?1000:200})
}}})})(jQuery);(function(B){var A=0;B.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var D=this,C=this.element[0].ownerDocument,E;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(G){if(!(D.options.disabled||D.element.attr("readonly"))){E=false;
var F=B.ui.keyCode;switch(G.keyCode){case F.PAGE_UP:D._move("previousPage",G);break;
case F.PAGE_DOWN:D._move("nextPage",G);break;case F.UP:D._move("previous",G);G.preventDefault();
break;case F.DOWN:D._move("next",G);G.preventDefault();break;case F.ENTER:case F.NUMPAD_ENTER:if(D.menu.active){E=true;
G.preventDefault()}case F.TAB:if(!D.menu.active){return }D.menu.select(G);break;case F.ESCAPE:D.element.val(D.term);
D.close(G);break;default:clearTimeout(D.searching);D.searching=setTimeout(function(){if(D.term!=D.element.val()){D.selectedItem=null;
D.search(null,G)}},D.options.delay);break}}}).bind("keypress.autocomplete",function(F){if(E){E=false;
F.preventDefault()}}).bind("focus.autocomplete",function(){if(!D.options.disabled){D.selectedItem=null;
D.previous=D.element.val()}}).bind("blur.autocomplete",function(F){if(!D.options.disabled){clearTimeout(D.searching);
D.closing=setTimeout(function(){D.close(F);D._change(F)},150)}});this._initSource();
this.response=function(){return D._response.apply(D,arguments)};this.menu=B("<ul></ul>").addClass("ui-autocomplete").appendTo(B(this.options.appendTo||"body",C)[0]).mousedown(function(G){var F=D.menu.element[0];
B(G.target).closest(".ui-menu-item").length||setTimeout(function(){B(document).one("mousedown",function(H){H.target!==D.element[0]&&H.target!==F&&!B.ui.contains(F,H.target)&&D.close()
})},1);setTimeout(function(){clearTimeout(D.closing)},13)}).menu({focus:function(G,F){F=F.item.data("item.autocomplete");
false!==D._trigger("focus",G,{item:F})&&/^key/.test(G.originalEvent.type)&&D.element.val(F.value)
},selected:function(I,H){var G=H.item.data("item.autocomplete"),F=D.previous;if(D.element[0]!==C.activeElement){D.element.focus();
D.previous=F;setTimeout(function(){D.previous=F;D.selectedItem=G},1)}false!==D._trigger("select",I,{item:G})&&D.element.val(G.value);
D.term=D.element.val();D.close(I);D.selectedItem=G},blur:function(){D.menu.element.is(":visible")&&D.element.val()!==D.term&&D.element.val(D.term)
}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");B.fn.bgiframe&&this.menu.element.bgiframe()
},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();B.Widget.prototype.destroy.call(this)},_setOption:function(D,C){B.Widget.prototype._setOption.apply(this,arguments);
D==="source"&&this._initSource();if(D==="appendTo"){this.menu.element.appendTo(B(C||"body",this.element[0].ownerDocument)[0])
}D==="disabled"&&C&&this.xhr&&this.xhr.abort()},_initSource:function(){var D=this,C,E;
if(B.isArray(this.options.source)){C=this.options.source;this.source=function(G,F){F(B.ui.autocomplete.filter(C,G.term))
}}else{if(typeof this.options.source==="string"){E=this.options.source;this.source=function(G,F){D.xhr&&D.xhr.abort();
D.xhr=B.ajax({url:E,data:G,dataType:"json",autocompleteRequest:++A,success:function(H){this.autocompleteRequest===A&&F(H)
},error:function(){this.autocompleteRequest===A&&F([])}})}}else{this.source=this.options.source
}}},search:function(D,C){D=D!=null?D:this.element.val();this.term=this.element.val();
if(D.length<this.options.minLength){return this.close(C)}clearTimeout(this.closing);
if(this._trigger("search",C)!==false){return this._search(D)}},_search:function(C){this.pending++;
this.element.addClass("ui-autocomplete-loading");this.source({term:C},this.response)
},_response:function(C){if(!this.options.disabled&&C&&C.length){C=this._normalize(C);
this._suggest(C);this._trigger("open")}else{this.close()}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")
},close:function(C){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();
this.menu.deactivate();this._trigger("close",C)}},_change:function(C){this.previous!==this.element.val()&&this._trigger("change",C,{item:this.selectedItem})
},_normalize:function(C){if(C.length&&C[0].label&&C[0].value){return C}return B.map(C,function(D){if(typeof D==="string"){return{label:D,value:D}
}return B.extend({label:D.label||D.value,value:D.value||D.label},D)})},_suggest:function(D){var C=this.menu.element.empty().zIndex(this.element.zIndex()+1);
this._renderMenu(C,D);this.menu.deactivate();this.menu.refresh();C.show();this._resizeMenu();
C.position(B.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new B.Event("mouseover"))
},_resizeMenu:function(){var C=this.menu.element;C.outerWidth(Math.max(C.width("").outerWidth(),this.element.outerWidth()))
},_renderMenu:function(D,C){var E=this;B.each(C,function(G,F){E._renderItem(D,F)})
},_renderItem:function(D,C){return B("<li></li>").data("item.autocomplete",C).append(B("<a></a>").text(C.label)).appendTo(D)
},_move:function(D,C){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(D)||this.menu.last()&&/^next/.test(D)){this.element.val(this.term);
this.menu.deactivate()}else{this.menu[D](C)}}else{this.search(null,C)}},widget:function(){return this.menu.element
}});B.extend(B.ui.autocomplete,{escapeRegex:function(C){return C.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")
},filter:function(D,C){var E=new RegExp(B.ui.autocomplete.escapeRegex(C),"i");return B.grep(D,function(F){return E.test(F.label||F.value||F)
})}})})(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){C.preventDefault();
B.select(C)}});this.refresh()},refresh:function(){var B=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(C){B.activate(C,A(this).parent())
}).mouseleave(function(){B.deactivate()})},activate:function(E,C){this.deactivate();
if(this.hasScroll()){var B=C.offset().top-this.element.offset().top,D=this.element.scrollTop(),F=this.element.height();
if(B<0){this.element.scrollTop(D+B)}else{B>=F&&this.element.scrollTop(D+B-F+C.height())
}}this.active=C.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
this._trigger("focus",E,{item:C})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(B){this.move("next",".ui-menu-item:first",B)
},previous:function(B){this.move("prev",".ui-menu-item:last",B)},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(D,C,B){if(this.active){D=this.active[D+"All"](".ui-menu-item").eq(0);
D.length?this.activate(B,D):this.activate(B,this.element.children(C))}else{this.activate(B,this.element.children(C))
}},nextPage:function(E){if(this.hasScroll()){if(!this.active||this.last()){this.activate(E,this.element.children(".ui-menu-item:first"))
}else{var C=this.active.offset().top,B=this.element.height(),D=this.element.children(".ui-menu-item").filter(function(){var F=A(this).offset().top-C-B+A(this).height();
return F<10&&F>-10});D.length||(D=this.element.children(".ui-menu-item:last"));this.activate(E,D)
}}else{this.activate(E,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))
}},previousPage:function(D){if(this.hasScroll()){if(!this.active||this.first()){this.activate(D,this.element.children(".ui-menu-item:last"))
}else{var C=this.active.offset().top,B=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var E=A(this).offset().top-C+B-A(this).height();
return E<10&&E>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
this.activate(D,result)}}else{this.activate(D,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))
}},hasScroll:function(){return this.element.height()<this.element[A.fn.prop?"prop":"attr"]("scrollHeight")
},select:function(B){this._trigger("selected",B,{item:this.active})}})})(jQuery);
(function(A){var F,E,D,G,B=function(){var H=A(this).find(":ui-button");setTimeout(function(){H.button("refresh")
},1)},C=function(H){var K=H.name,J=H.form,I=A([]);if(K){I=J?A(J).find("[name='"+K+"']"):A("[name='"+K+"']",H.ownerDocument).filter(function(){return !this.form
})}return I};A.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",B);
if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")
}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var H=this,K=this.options,J=this.type==="checkbox"||this.type==="radio",I="ui-state-hover"+(!J?" ui-state-active":"");
if(K.label===null){K.label=this.buttonElement.html()}if(this.element.is(":disabled")){K.disabled=true
}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!K.disabled){A(this).addClass("ui-state-hover");
this===F&&A(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){K.disabled||A(this).removeClass(I)
}).bind("click.button",function(L){if(K.disabled){L.preventDefault();L.stopImmediatePropagation()
}});this.element.bind("focus.button",function(){H.buttonElement.addClass("ui-state-focus")
}).bind("blur.button",function(){H.buttonElement.removeClass("ui-state-focus")});
if(J){this.element.bind("change.button",function(){G||H.refresh()});this.buttonElement.bind("mousedown.button",function(L){if(!K.disabled){G=false;
E=L.pageX;D=L.pageY}}).bind("mouseup.button",function(L){if(!K.disabled){if(E!==L.pageX||D!==L.pageY){G=true
}}})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(K.disabled||G){return false
}A(this).toggleClass("ui-state-active");H.buttonElement.attr("aria-pressed",H.element[0].checked)
})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(K.disabled||G){return false
}A(this).addClass("ui-state-active");H.buttonElement.attr("aria-pressed",true);var L=H.element[0];
C(L).not(L).map(function(){return A(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)
})}else{this.buttonElement.bind("mousedown.button",function(){if(K.disabled){return false
}A(this).addClass("ui-state-active");F=this;A(document).one("mouseup",function(){F=null
})}).bind("mouseup.button",function(){if(K.disabled){return false}A(this).removeClass("ui-state-active")
}).bind("keydown.button",function(L){if(K.disabled){return false}if(L.keyCode==A.ui.keyCode.SPACE||L.keyCode==A.ui.keyCode.ENTER){A(this).addClass("ui-state-active")
}}).bind("keyup.button",function(){A(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(L){L.keyCode===A.ui.keyCode.SPACE&&A(this).click()
})}}this._setOption("disabled",K.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";
if(this.type==="checkbox"||this.type==="radio"){var H=this.element.parents().filter(":last"),I="label[for="+this.element.attr("id")+"]";
this.buttonElement=H.find(I);if(!this.buttonElement.length){H=H.length?H.siblings():this.element.siblings();
this.buttonElement=H.filter(I);if(!this.buttonElement.length){this.buttonElement=H.find(I)
}}this.element.addClass("ui-helper-hidden-accessible");(H=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");
this.buttonElement.attr("aria-pressed",H)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement
},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");A.Widget.prototype.destroy.call(this)
},_setOption:function(H,I){A.Widget.prototype._setOption.apply(this,arguments);if(H==="disabled"){I?this.element.attr("disabled",true):this.element.removeAttr("disabled")
}else{this._resetButton()}},refresh:function(){var H=this.element.is(":disabled");
H!==this.options.disabled&&this._setOption("disabled",H);if(this.type==="radio"){C(this.element[0]).each(function(){A(this).is(":checked")?A(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):A(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)
})}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)
}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label)
}else{var H=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),L=A("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(H.empty()).text(),J=this.options.icons,I=J.primary&&J.secondary,K=[];
if(J.primary||J.secondary){if(this.options.text){K.push("ui-button-text-icon"+(I?"s":J.primary?"-primary":"-secondary"))
}J.primary&&H.prepend("<span class='ui-button-icon-primary ui-icon "+J.primary+"'></span>");
J.secondary&&H.append("<span class='ui-button-icon-secondary ui-icon "+J.secondary+"'></span>");
if(!this.options.text){K.push(I?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||H.attr("title",L)
}}else{K.push("ui-button-text-only")}H.addClass(K.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(H,I){H==="disabled"&&this.buttons.button("option",H,I);
A.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var H=this.element.css("direction")==="ltr";
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(H?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(H?"ui-corner-right":"ui-corner-left").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(E,B){var A={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},D={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},C=E.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};
E.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(G){var F=E(this).css(G).offset().top;
F<0&&E(this).css("top",G.top-F)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");
if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;
var G=this,F=G.options,L=F.title||"&#160;",K=E.ui.dialog.getTitleId(G.element),I=(G.uiDialog=E("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+F.dialogClass).css({zIndex:F.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(M){if(F.closeOnEscape&&M.keyCode&&M.keyCode===E.ui.keyCode.ESCAPE){G.close(M);
M.preventDefault()}}).attr({role:"dialog","aria-labelledby":K}).mousedown(function(M){G.moveToTop(false,M)
});G.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(I);
var J=(G.uiDialogTitlebar=E("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(I),H=E('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){H.addClass("ui-state-hover")
},function(){H.removeClass("ui-state-hover")}).focus(function(){H.addClass("ui-state-focus")
}).blur(function(){H.removeClass("ui-state-focus")}).click(function(M){G.close(M);
return false}).appendTo(J);(G.uiDialogTitlebarCloseText=E("<span></span>")).addClass("ui-icon ui-icon-closethick").text(F.closeText).appendTo(H);
E("<span></span>").addClass("ui-dialog-title").attr("id",K).html(L).prependTo(J);
if(E.isFunction(F.beforeclose)&&!E.isFunction(F.beforeClose)){F.beforeClose=F.beforeclose
}J.find("*").add(J).disableSelection();F.draggable&&E.fn.draggable&&G._makeDraggable();
F.resizable&&E.fn.resizable&&G._makeResizable();G._createButtons(F.buttons);G._isOpen=false;
E.fn.bgiframe&&I.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var F=this;
F.overlay&&F.overlay.destroy();F.uiDialog.hide();F.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
F.uiDialog.remove();F.originalTitle&&F.element.attr("title",F.originalTitle);return F
},widget:function(){return this.uiDialog},close:function(G){var F=this,I,H;if(false!==F._trigger("beforeClose",G)){F.overlay&&F.overlay.destroy();
F.uiDialog.unbind("keypress.ui-dialog");F._isOpen=false;if(F.options.hide){F.uiDialog.hide(F.options.hide,function(){F._trigger("close",G)
})}else{F.uiDialog.hide();F._trigger("close",G)}E.ui.dialog.overlay.resize();if(F.options.modal){I=0;
E(".ui-dialog").each(function(){if(this!==F.uiDialog[0]){H=E(this).css("z-index");
isNaN(H)||(I=Math.max(I,H))}});E.ui.dialog.maxZ=I}return F}},isOpen:function(){return this._isOpen
},moveToTop:function(G,F){var I=this,H=I.options;if(H.modal&&!G||!H.stack&&!H.modal){return I._trigger("focus",F)
}if(H.zIndex>E.ui.dialog.maxZ){E.ui.dialog.maxZ=H.zIndex}if(I.overlay){E.ui.dialog.maxZ+=1;
I.overlay.$el.css("z-index",E.ui.dialog.overlay.maxZ=E.ui.dialog.maxZ)}G={scrollTop:I.element.attr("scrollTop"),scrollLeft:I.element.attr("scrollLeft")};
E.ui.dialog.maxZ+=1;I.uiDialog.css("z-index",E.ui.dialog.maxZ);I.element.attr(G);
I._trigger("focus",F);return I},open:function(){if(!this._isOpen){var G=this,F=G.options,H=G.uiDialog;
G.overlay=F.modal?new E.ui.dialog.overlay(G):null;G._size();G._position(F.position);
H.show(F.show);G.moveToTop(true);F.modal&&H.bind("keypress.ui-dialog",function(K){if(K.keyCode===E.ui.keyCode.TAB){var I=E(":tabbable",this),J=I.filter(":first");
I=I.filter(":last");if(K.target===I[0]&&!K.shiftKey){J.focus(1);return false}else{if(K.target===J[0]&&K.shiftKey){I.focus(1);
return false}}}});E(G.element.find(":tabbable").get().concat(H.find(".ui-dialog-buttonpane :tabbable").get().concat(H.get()))).eq(0).focus();
G._isOpen=true;G._trigger("open");return G}},_createButtons:function(G){var F=this,J=false,I=E("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),H=E("<div></div>").addClass("ui-dialog-buttonset").appendTo(I);
F.uiDialog.find(".ui-dialog-buttonpane").remove();typeof G==="object"&&G!==null&&E.each(G,function(){return !(J=true)
});if(J){E.each(G,function(M,L){L=E.isFunction(L)?{click:L,text:M}:L;var K=E('<button type="button"></button>').click(function(){L.click.apply(F.element[0],arguments)
}).appendTo(H);E.each(L,function(O,N){if(O!=="click"){O in C?K[O](N):K.attr(O,N)}});
E.fn.button&&K.button()});I.appendTo(F.uiDialog)}},_makeDraggable:function(){function G(K){return{position:K.position,offset:K.offset}
}var F=this,J=F.options,I=E(document),H;F.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(L,K){H=J.height==="auto"?"auto":E(this).height();
E(this).height(E(this).height()).addClass("ui-dialog-dragging");F._trigger("dragStart",L,G(K))
},drag:function(L,K){F._trigger("drag",L,G(K))},stop:function(L,K){J.position=[K.position.left-I.scrollLeft(),K.position.top-I.scrollTop()];
E(this).removeClass("ui-dialog-dragging").height(H);F._trigger("dragStop",L,G(K));
E.ui.dialog.overlay.resize()}})},_makeResizable:function(G){function F(K){return{originalPosition:K.originalPosition,originalSize:K.originalSize,position:K.position,size:K.size}
}G=G===B?this.options.resizable:G;var J=this,I=J.options,H=J.uiDialog.css("position");
G=typeof G==="string"?G:"n,e,s,w,se,sw,ne,nw";J.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:J.element,maxWidth:I.maxWidth,maxHeight:I.maxHeight,minWidth:I.minWidth,minHeight:J._minHeight(),handles:G,start:function(L,K){E(this).addClass("ui-dialog-resizing");
J._trigger("resizeStart",L,F(K))},resize:function(L,K){J._trigger("resize",L,F(K))
},stop:function(L,K){E(this).removeClass("ui-dialog-resizing");I.height=E(this).height();
I.width=E(this).width();J._trigger("resizeStop",L,F(K));E.ui.dialog.overlay.resize()
}}).css("position",H).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")
},_minHeight:function(){var F=this.options;return F.height==="auto"?F.minHeight:Math.min(F.minHeight,F.height)
},_position:function(G){var F=[],I=[0,0],H;if(G){if(typeof G==="string"||typeof G==="object"&&"0" in G){F=G.split?G.split(" "):[G[0],G[1]];
if(F.length===1){F[1]=F[0]}E.each(["left","top"],function(J,K){if(+F[J]===F[J]){I[J]=F[J];
F[J]=K}});G={my:F.join(" "),at:F.join(" "),offset:I.join(" ")}}G=E.extend({},E.ui.dialog.prototype.options.position,G)
}else{G=E.ui.dialog.prototype.options.position}(H=this.uiDialog.is(":visible"))||this.uiDialog.show();
this.uiDialog.css({top:0,left:0}).position(E.extend({of:window},G));H||this.uiDialog.hide()
},_setOptions:function(G){var F=this,I={},H=false;E.each(G,function(J,K){F._setOption(J,K);
if(J in A){H=true}if(J in D){I[J]=K}});H&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",I)
},_setOption:function(G,F){var J=this,I=J.uiDialog;switch(G){case"beforeclose":G="beforeClose";
break;case"buttons":J._createButtons(F);break;case"closeText":J.uiDialogTitlebarCloseText.text(""+F);
break;case"dialogClass":I.removeClass(J.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+F);
break;case"disabled":F?I.addClass("ui-dialog-disabled"):I.removeClass("ui-dialog-disabled");
break;case"draggable":var H=I.is(":data(draggable)");H&&!F&&I.draggable("destroy");
!H&&F&&J._makeDraggable();break;case"position":J._position(F);break;case"resizable":(H=I.is(":data(resizable)"))&&!F&&I.resizable("destroy");
H&&typeof F==="string"&&I.resizable("option","handles",F);!H&&F!==false&&J._makeResizable(F);
break;case"title":E(".ui-dialog-title",J.uiDialogTitlebar).html(""+(F||"&#160;"));
break}E.Widget.prototype._setOption.apply(J,arguments)},_size:function(){var G=this.options,F,I,H=this.uiDialog.is(":visible");
this.element.show().css({width:"auto",minHeight:0,height:0});if(G.minWidth>G.width){G.width=G.minWidth
}F=this.uiDialog.css({height:"auto",width:G.width}).height();I=Math.max(0,G.minHeight-F);
if(G.height==="auto"){if(E.support.minHeight){this.element.css({minHeight:I,height:"auto"})
}else{this.uiDialog.show();G=this.element.css("height","auto").height();H||this.uiDialog.hide();
this.element.height(Math.max(G,I))}}else{this.element.height(Math.max(G.height-F,0))
}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())
}});E.extend(E.ui.dialog,{version:"1.8.14",uuid:0,maxZ:0,getTitleId:function(F){F=F.attr("id");
if(!F){this.uuid+=1;F=this.uuid}return"ui-dialog-title-"+F},overlay:function(F){this.$el=E.ui.dialog.overlay.create(F)
}});E.extend(E.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:E.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(F){return F+".dialog-overlay"
}).join(" "),create:function(G){if(this.instances.length===0){setTimeout(function(){E.ui.dialog.overlay.instances.length&&E(document).bind(E.ui.dialog.overlay.events,function(H){if(E(H.target).zIndex()<E.ui.dialog.overlay.maxZ){return false
}})},1);E(document).bind("keydown.dialog-overlay",function(H){if(G.options.closeOnEscape&&H.keyCode&&H.keyCode===E.ui.keyCode.ESCAPE){G.close(H);
H.preventDefault()}});E(window).bind("resize.dialog-overlay",E.ui.dialog.overlay.resize)
}var F=(this.oldInstances.pop()||E("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});
E.fn.bgiframe&&F.bgiframe();this.instances.push(F);return F},destroy:function(G){var F=E.inArray(G,this.instances);
F!=-1&&this.oldInstances.push(this.instances.splice(F,1)[0]);this.instances.length===0&&E([document,window]).unbind(".dialog-overlay");
G.remove();var H=0;E.each(this.instances,function(){H=Math.max(H,this.css("z-index"))
});this.maxZ=H},height:function(){var G,F;if(E.browser.msie&&E.browser.version<7){G=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
F=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return G<F?E(window).height()+"px":G+"px"
}else{return E(document).height()+"px"}},width:function(){var G,F;if(E.browser.msie){G=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);
F=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return G<F?E(window).width()+"px":G+"px"
}else{return E(document).width()+"px"}},resize:function(){var F=E([]);E.each(E.ui.dialog.overlay.instances,function(){F=F.add(this)
});F.css({width:0,height:0}).css({width:E.ui.dialog.overlay.width(),height:E.ui.dialog.overlay.height()})
}});E.extend(E.ui.dialog.overlay.prototype,{destroy:function(){E.ui.dialog.overlay.destroy(this.$el)
}})})(jQuery);(function(A){A.widget("ui.slider",A.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var B=this,C=this.options,G=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),E=C.values&&C.values.length||1,F=[];
this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;
this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(C.disabled?" ui-slider-disabled ui-disabled":""));
this.range=A([]);if(C.range){if(C.range===true){if(!C.values){C.values=[this._valueMin(),this._valueMin()]
}if(C.values.length&&C.values.length!==2){C.values=[C.values[0],C.values[0]]}}this.range=A("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(C.range==="min"||C.range==="max"?" ui-slider-range-"+C.range:""))
}for(var D=G.length;D<E;D+=1){F.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>")
}this.handles=G.add(A(F.join("")).appendTo(B.element));this.handle=this.handles.eq(0);
this.handles.add(this.range).filter("a").click(function(H){H.preventDefault()}).hover(function(){C.disabled||A(this).addClass("ui-state-hover")
},function(){A(this).removeClass("ui-state-hover")}).focus(function(){if(C.disabled){A(this).blur()
}else{A(".ui-slider .ui-state-focus").removeClass("ui-state-focus");A(this).addClass("ui-state-focus")
}}).blur(function(){A(this).removeClass("ui-state-focus")});this.handles.each(function(H){A(this).data("index.ui-slider-handle",H)
});this.handles.keydown(function(M){var J=true,I=A(this).data("index.ui-slider-handle"),K,L,H;
if(!B.options.disabled){switch(M.keyCode){case A.ui.keyCode.HOME:case A.ui.keyCode.END:case A.ui.keyCode.PAGE_UP:case A.ui.keyCode.PAGE_DOWN:case A.ui.keyCode.UP:case A.ui.keyCode.RIGHT:case A.ui.keyCode.DOWN:case A.ui.keyCode.LEFT:J=false;
if(!B._keySliding){B._keySliding=true;A(this).addClass("ui-state-active");K=B._start(M,I);
if(K===false){return }}break}H=B.options.step;K=B.options.values&&B.options.values.length?(L=B.values(I)):(L=B.value());
switch(M.keyCode){case A.ui.keyCode.HOME:L=B._valueMin();break;case A.ui.keyCode.END:L=B._valueMax();
break;case A.ui.keyCode.PAGE_UP:L=B._trimAlignValue(K+(B._valueMax()-B._valueMin())/5);
break;case A.ui.keyCode.PAGE_DOWN:L=B._trimAlignValue(K-(B._valueMax()-B._valueMin())/5);
break;case A.ui.keyCode.UP:case A.ui.keyCode.RIGHT:if(K===B._valueMax()){return }L=B._trimAlignValue(K+H);
break;case A.ui.keyCode.DOWN:case A.ui.keyCode.LEFT:if(K===B._valueMin()){return 
}L=B._trimAlignValue(K-H);break}B._slide(M,I,L);return J}}).keyup(function(I){var H=A(this).data("index.ui-slider-handle");
if(B._keySliding){B._keySliding=false;B._stop(I,H);B._change(I,H);A(this).removeClass("ui-state-active")
}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();
this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(B){var C=this.options,H,F,G,D,E;
if(C.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};
this.elementOffset=this.element.offset();H=this._normValueFromMouse({x:B.pageX,y:B.pageY});
F=this._valueMax()-this._valueMin()+1;D=this;this.handles.each(function(J){var I=Math.abs(H-D.values(J));
if(F>I){F=I;G=A(this);E=J}});if(C.range===true&&this.values(1)===C.min){E+=1;G=A(this.handles[E])
}if(this._start(B,E)===false){return false}this._mouseSliding=true;D._handleIndex=E;
G.addClass("ui-state-active").focus();C=G.offset();this._clickOffset=!A(B.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:B.pageX-C.left-G.width()/2,top:B.pageY-C.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,E,H);return this._animateOff=true
},_mouseStart:function(){return true},_mouseDrag:function(B){var C=this._normValueFromMouse({x:B.pageX,y:B.pageY});
this._slide(B,this._handleIndex,C);return false},_mouseStop:function(B){this.handles.removeClass("ui-state-active");
this._mouseSliding=false;this._stop(B,this._handleIndex);this._change(B,this._handleIndex);
this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"
},_normValueFromMouse:function(B){var C;if(this.orientation==="horizontal"){C=this.elementSize.width;
B=B.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{C=this.elementSize.height;
B=B.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}C=B/C;if(C>1){C=1
}if(C<0){C=0}if(this.orientation==="vertical"){C=1-C}B=this._valueMax()-this._valueMin();
return this._trimAlignValue(this._valueMin()+C*B)},_start:function(B,C){var D={handle:this.handles[C],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(C);D.values=this.values()
}return this._trigger("start",B,D)},_slide:function(B,C,E){var D;if(this.options.values&&this.options.values.length){D=this.values(C?0:1);
if(this.options.values.length===2&&this.options.range===true&&(C===0&&E>D||C===1&&E<D)){E=D
}if(E!==this.values(C)){D=this.values();D[C]=E;B=this._trigger("slide",B,{handle:this.handles[C],value:E,values:D});
this.values(C?0:1);B!==false&&this.values(C,E,true)}}else{if(E!==this.value()){B=this._trigger("slide",B,{handle:this.handles[C],value:E});
B!==false&&this.value(E)}}},_stop:function(B,C){var D={handle:this.handles[C],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(C);D.values=this.values()
}this._trigger("stop",B,D)},_change:function(B,C){if(!this._keySliding&&!this._mouseSliding){var D={handle:this.handles[C],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(C);D.values=this.values()
}this._trigger("change",B,D)}},value:function(B){if(arguments.length){this.options.value=this._trimAlignValue(B);
this._refreshValue();this._change(null,0)}else{return this._value()}},values:function(B,C){var F,D,E;
if(arguments.length>1){this.options.values[B]=this._trimAlignValue(C);this._refreshValue();
this._change(null,B)}else{if(arguments.length){if(A.isArray(arguments[0])){F=this.options.values;
D=arguments[0];for(E=0;E<F.length;E+=1){F[E]=this._trimAlignValue(D[E]);this._change(null,E)
}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(B):this.value()
}}else{return this._values()}}},_setOption:function(B,C){var E,D=0;if(A.isArray(this.options.values)){D=this.options.values.length
}A.Widget.prototype._setOption.apply(this,arguments);switch(B){case"disabled":if(C){this.handles.filter(".ui-state-focus").blur();
this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");
this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")
}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();
this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;
this._refreshValue();for(E=0;E<D;E+=1){this._change(null,E)}this._animateOff=false;
break}},_value:function(){var B=this.options.value;return B=this._trimAlignValue(B)
},_values:function(B){var C,D;if(arguments.length){C=this.options.values[B];return C=this._trimAlignValue(C)
}else{C=this.options.values.slice();for(D=0;D<C.length;D+=1){C[D]=this._trimAlignValue(C[D])
}return C}},_trimAlignValue:function(B){if(B<=this._valueMin()){return this._valueMin()
}if(B>=this._valueMax()){return this._valueMax()}var C=this.options.step>0?this.options.step:1,D=(B-this._valueMin())%C;
alignValue=B-D;if(Math.abs(D)*2>=C){alignValue+=D>0?C:-C}return parseFloat(alignValue.toFixed(5))
},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max
},_refreshValue:function(){var J=this.options.range,K=this.options,I=this,G=!this._animateOff?K.animate:false,H,D={},F,C,B,E;
if(this.options.values&&this.options.values.length){this.handles.each(function(L){H=(I.values(L)-I._valueMin())/(I._valueMax()-I._valueMin())*100;
D[I.orientation==="horizontal"?"left":"bottom"]=H+"%";A(this).stop(1,1)[G?"animate":"css"](D,K.animate);
if(I.options.range===true){if(I.orientation==="horizontal"){if(L===0){I.range.stop(1,1)[G?"animate":"css"]({left:H+"%"},K.animate)
}if(L===1){I.range[G?"animate":"css"]({width:H-F+"%"},{queue:false,duration:K.animate})
}}else{if(L===0){I.range.stop(1,1)[G?"animate":"css"]({bottom:H+"%"},K.animate)}if(L===1){I.range[G?"animate":"css"]({height:H-F+"%"},{queue:false,duration:K.animate})
}}}F=H})}else{C=this.value();B=this._valueMin();E=this._valueMax();H=E!==B?(C-B)/(E-B)*100:0;
D[I.orientation==="horizontal"?"left":"bottom"]=H+"%";this.handle.stop(1,1)[G?"animate":"css"](D,K.animate);
if(J==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[G?"animate":"css"]({width:H+"%"},K.animate)
}if(J==="max"&&this.orientation==="horizontal"){this.range[G?"animate":"css"]({width:100-H+"%"},{queue:false,duration:K.animate})
}if(J==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[G?"animate":"css"]({height:H+"%"},K.animate)
}if(J==="max"&&this.orientation==="vertical"){this.range[G?"animate":"css"]({height:100-H+"%"},{queue:false,duration:K.animate})
}}}});A.extend(A.ui.slider,{version:"1.8.14"})})(jQuery);(function(F,E){function D(){return ++C
}function B(){return ++A}var C=0,A=0;F.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)
},_setOption:function(G,H){if(G=="selected"){this.options.collapsible&&H==this.options.selected||this.select(H)
}else{this.options[G]=H;this._tabify()}},_tabId:function(G){return G.title&&G.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+D()
},_sanitizeSelector:function(G){return G.replace(/:/g,"\\:")},_cookie:function(){var G=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+B());
return F.cookie.apply(null,[G].concat(F.makeArray(arguments)))},_ui:function(G,H){return{tab:G,panel:H,index:this.anchors.index(G)}
},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var G=F(this);
G.html(G.data("label.tabs")).removeData("label.tabs")})},_tabify:function(P){function N(S,T){S.css("display","");
!F.support.opacity&&T.opacity&&S[0].style.removeAttribute("filter")}var Q=this,O=this.options,M=/^#.+/;
this.list=this.element.find("ol,ul").eq(0);this.lis=F(" > li:has(a[href])",this.list);
this.anchors=this.lis.map(function(){return F("a",this)[0]});this.panels=F([]);this.anchors.each(function(U,W){var T=F(W).attr("href"),S=T.split("#")[0],V;
if(S&&(S===location.toString().split("#")[0]||(V=F("base")[0])&&S===V.href)){T=W.hash;
W.href=T}if(M.test(T)){Q.panels=Q.panels.add(Q.element.find(Q._sanitizeSelector(T)))
}else{if(T&&T!=="#"){F.data(W,"href.tabs",T);F.data(W,"load.tabs",T.replace(/#.*$/,""));
T=Q._tabId(W);W.href="#"+T;W=Q.element.find("#"+T);if(!W.length){W=F(O.panelTemplate).attr("id",T).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(Q.panels[U-1]||Q.list);
W.data("destroy.tabs",true)}Q.panels=Q.panels.add(W)}else{O.disabled.push(U)}}});
if(P){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");
if(O.selected===E){location.hash&&this.anchors.each(function(S,T){if(T.hash==location.hash){O.selected=S;
return false}});if(typeof O.selected!=="number"&&O.cookie){O.selected=parseInt(Q._cookie(),10)
}if(typeof O.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){O.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}O.selected=O.selected||(this.lis.length?0:-1)}else{if(O.selected===null){O.selected=-1
}}O.selected=O.selected>=0&&this.anchors[O.selected]||O.selected<0?O.selected:0;O.disabled=F.unique(O.disabled.concat(F.map(this.lis.filter(".ui-state-disabled"),function(S){return Q.lis.index(S)
}))).sort();F.inArray(O.selected,O.disabled)!=-1&&O.disabled.splice(F.inArray(O.selected,O.disabled),1);
this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(O.selected>=0&&this.anchors.length){Q.element.find(Q._sanitizeSelector(Q.anchors[O.selected].hash)).removeClass("ui-tabs-hide");
this.lis.eq(O.selected).addClass("ui-tabs-selected ui-state-active");Q.element.queue("tabs",function(){Q._trigger("show",null,Q._ui(Q.anchors[O.selected],Q.element.find(Q._sanitizeSelector(Q.anchors[O.selected].hash))[0]))
});this.load(O.selected)}F(window).bind("unload",function(){Q.lis.add(Q.anchors).unbind(".tabs");
Q.lis=Q.anchors=Q.panels=null})}else{O.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}this.element[O.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");O.cookie&&this._cookie(O.selected,O.cookie);
P=0;for(var L;L=this.lis[P];P++){F(L)[F.inArray(P,O.disabled)!=-1&&!F(L).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")
}O.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");
if(O.event!=="mouseover"){var K=function(S,T){T.is(":not(.ui-state-disabled)")&&T.addClass("ui-state-"+S)
},I=function(S,T){T.removeClass("ui-state-"+S)};this.lis.bind("mouseover.tabs",function(){K("hover",F(this))
});this.lis.bind("mouseout.tabs",function(){I("hover",F(this))});this.anchors.bind("focus.tabs",function(){K("focus",F(this).closest("li"))
});this.anchors.bind("blur.tabs",function(){I("focus",F(this).closest("li"))})}var J,H;
if(O.fx){if(F.isArray(O.fx)){J=O.fx[0];H=O.fx[1]}else{J=H=O.fx}}var G=H?function(S,T){F(S).closest("li").addClass("ui-tabs-selected ui-state-active");
T.hide().removeClass("ui-tabs-hide").animate(H,H.duration||"normal",function(){N(T,H);
Q._trigger("show",null,Q._ui(S,T[0]))})}:function(S,T){F(S).closest("li").addClass("ui-tabs-selected ui-state-active");
T.removeClass("ui-tabs-hide");Q._trigger("show",null,Q._ui(S,T[0]))},R=J?function(S,T){T.animate(J,J.duration||"normal",function(){Q.lis.removeClass("ui-tabs-selected ui-state-active");
T.addClass("ui-tabs-hide");N(T,J);Q.element.dequeue("tabs")})}:function(S,T){Q.lis.removeClass("ui-tabs-selected ui-state-active");
T.addClass("ui-tabs-hide");Q.element.dequeue("tabs")};this.anchors.bind(O.event+".tabs",function(){var U=this,V=F(U).closest("li"),T=Q.panels.filter(":not(.ui-tabs-hide)"),S=Q.element.find(Q._sanitizeSelector(U.hash));
if(V.hasClass("ui-tabs-selected")&&!O.collapsible||V.hasClass("ui-state-disabled")||V.hasClass("ui-state-processing")||Q.panels.filter(":animated").length||Q._trigger("select",null,Q._ui(this,S[0]))===false){this.blur();
return false}O.selected=Q.anchors.index(this);Q.abort();if(O.collapsible){if(V.hasClass("ui-tabs-selected")){O.selected=-1;
O.cookie&&Q._cookie(O.selected,O.cookie);Q.element.queue("tabs",function(){R(U,T)
}).dequeue("tabs");this.blur();return false}else{if(!T.length){O.cookie&&Q._cookie(O.selected,O.cookie);
Q.element.queue("tabs",function(){G(U,S)});Q.load(Q.anchors.index(this));this.blur();
return false}}}O.cookie&&Q._cookie(O.selected,O.cookie);if(S.length){T.length&&Q.element.queue("tabs",function(){R(U,T)
});Q.element.queue("tabs",function(){G(U,S)});Q.load(Q.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."
}F.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false
})},_getIndex:function(G){if(typeof G=="string"){G=this.anchors.index(this.anchors.filter("[href$="+G+"]"))
}return G},destroy:function(){var G=this.options;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 I=F.data(this,"href.tabs");if(I){this.href=I}var H=F(this).unbind(".tabs");
F.each(["href","load","cache"],function(K,J){H.removeData(J+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){F.data(this,"destroy.tabs")?F(this).remove():F(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")
});G.cookie&&this._cookie(null,G.cookie);return this},add:function(G,K,H){if(H===E){H=this.anchors.length
}var L=this,J=this.options;K=F(J.tabTemplate.replace(/#\{href\}/g,G).replace(/#\{label\}/g,K));
G=!G.indexOf("#")?G.replace("#",""):this._tabId(F("a",K)[0]);K.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);
var I=L.element.find("#"+G);I.length||(I=F(J.panelTemplate).attr("id",G).data("destroy.tabs",true));
I.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(H>=this.lis.length){K.appendTo(this.list);
I.appendTo(this.list[0].parentNode)}else{K.insertBefore(this.lis[H]);I.insertBefore(this.panels[H])
}J.disabled=F.map(J.disabled,function(M){return M>=H?++M:M});this._tabify();if(this.anchors.length==1){J.selected=0;
K.addClass("ui-tabs-selected ui-state-active");I.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){L._trigger("show",null,L._ui(L.anchors[0],L.panels[0]))
});this.load(0)}this._trigger("add",null,this._ui(this.anchors[H],this.panels[H]));
return this},remove:function(G){G=this._getIndex(G);var I=this.options,H=this.lis.eq(G).remove(),J=this.panels.eq(G).remove();
if(H.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(G+(G+1<this.anchors.length?1:-1))
}I.disabled=F.map(F.grep(I.disabled,function(K){return K!=G}),function(K){return K>=G?--K:K
});this._tabify();this._trigger("remove",null,this._ui(H.find("a")[0],J[0]));return this
},enable:function(G){G=this._getIndex(G);var H=this.options;if(F.inArray(G,H.disabled)!=-1){this.lis.eq(G).removeClass("ui-state-disabled");
H.disabled=F.grep(H.disabled,function(I){return I!=G});this._trigger("enable",null,this._ui(this.anchors[G],this.panels[G]));
return this}},disable:function(G){G=this._getIndex(G);var H=this.options;if(G!=H.selected){this.lis.eq(G).addClass("ui-state-disabled");
H.disabled.push(G);H.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[G],this.panels[G]))
}return this},select:function(G){G=this._getIndex(G);if(G==-1){if(this.options.collapsible&&this.options.selected!=-1){G=this.options.selected
}else{return this}}this.anchors.eq(G).trigger(this.options.event+".tabs");return this
},load:function(G){G=this._getIndex(G);var K=this,H=this.options,L=this.anchors.eq(G)[0],J=F.data(L,"load.tabs");
this.abort();if(!J||this.element.queue("tabs").length!==0&&F.data(L,"cache.tabs")){this.element.dequeue("tabs")
}else{this.lis.eq(G).addClass("ui-state-processing");if(H.spinner){var I=F("span",L);
I.data("label.tabs",I.html()).html(H.spinner)}this.xhr=F.ajax(F.extend({},H.ajaxOptions,{url:J,success:function(N,O){K.element.find(K._sanitizeSelector(L.hash)).html(N);
K._cleanup();H.cache&&F.data(L,"cache.tabs",true);K._trigger("load",null,K._ui(K.anchors[G],K.panels[G]));
try{H.ajaxOptions.success(N,O)}catch(M){}},error:function(N,O){K._cleanup();K._trigger("load",null,K._ui(K.anchors[G],K.panels[G]));
try{H.ajaxOptions.error(N,O,G,L)}catch(M){}}}));K.element.dequeue("tabs");return this
}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));
if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(G,H){this.anchors.eq(G).removeData("cache.tabs").data("load.tabs",H);
return this},length:function(){return this.anchors.length}});F.extend(F.ui.tabs,{version:"1.8.14"});
F.extend(F.ui.tabs.prototype,{rotation:null,rotate:function(G,J){var H=this,K=this.options,I=H._rotate||(H._rotate=function(L){clearTimeout(H.rotation);
H.rotation=setTimeout(function(){var M=K.selected;H.select(++M<H.anchors.length?M:0)
},G);L&&L.stopPropagation()});J=H._unrotate||(H._unrotate=!J?function(L){L.clientX&&H.rotate(null)
}:function(){t=K.selected;I()});if(G){this.element.bind("tabsshow",I);this.anchors.bind(K.event+".tabs",J);
I()}else{clearTimeout(H.rotation);this.element.unbind("tabsshow",I);this.anchors.unbind(K.event+".tabs",J);
delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(d,C){function M(){this.debug=false;
this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;
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:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,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:true,showButtonPanel:false,autoSize:false};
d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))
}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");
b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")
}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");
if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");
b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);
for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.14"}});
var A=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)
},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});
return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);
if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";
if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});
if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}
},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);
c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);
d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");
b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");
a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();
c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");
var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));
a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);
return false})}},_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 e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;
i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));
b.setDate(e(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=d(a);
if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);
this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);
b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;
this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);
a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;
this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]
}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");
a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);
return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
d.removeData(a,"datepicker");if(e=="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)
}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");
if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;
c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})
}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");
b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})
}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true
}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);
b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});
this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false
}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true
}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"
}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null
}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();
var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");
H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C){e.settings.minDate=this._formatDate(e,i)
}if(g!==null&&f.dateFormat!==C&&f.maxDate===C){e.settings.maxDate=this._formatDate(e,g)
}this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);
this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)
},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);
this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);
return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");
b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();
c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);
c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();
return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");
break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");
break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;
break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;
break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")
}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")
}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")
}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")
}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")
}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")
}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)
}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);
if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));
var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1
}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);
d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)
}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]
}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);
if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);
d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");
H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);
if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);
d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";
return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;
d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};
d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});
if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");
if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})
}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);
if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();
d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);
J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");
c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});
a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);
c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");
a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();
if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);
e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c
};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]
},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();
b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;
b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);
b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");
a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]
}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");
if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;
if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");
var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null
};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);
a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;
if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")
},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()
}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);
this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);
if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;
b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();
b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()
}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);
var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);
this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);
b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear
},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);
f.selectedDay=f.currentDay=d("a",e).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){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);
b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);
var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")
}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];
typeof a.input[0]!="object"&&a.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"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));
d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]
},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));
var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/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 e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;
e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=B+1<a.length&&a.charAt(B+1)==p)&&B++;
return p},m=function(p){var D=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");
p=b.substring(q).match(p);if(!p){throw"Missing number at position "+q}q+=p[0].length;
return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]
}).sort(function(w,x){return -(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];
if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false
}});if(E!=-1){return E+1}else{throw"Unknown name at position "+q}},s=function(){if(b.charAt(q)!=a.charAt(B)){throw"Unexpected literal at position "+q
}q++},q=0,B=0;B<a.length;B++){if(k){if(a.charAt(B)=="'"&&!o("'")){k=false}else{s()
}}else{switch(a.charAt(B)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");
break;case"m":j=m("m");break;case"M":j=n("M",i,g);break;case"y":c=m("y");break;case"@":var v=new Date(m("@"));
c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"!":v=new Date((m("!")-this._ticksTo1970)/10000);
c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"'":if(o("'")){s()}else{k=true
}break;default:s()}}}if(q<b.length){throw"Extra/unparsed characters found in date: "+b.substring(q)
}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)
}}if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)
}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"
}return v},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*10000000,formatDate:function(a,b,c){if(!b){return""
}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;
c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;
return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]
},l="",u=false;if(b){for(var k=0;k<a.length;k++){if(u){if(a.charAt(k)=="'"&&!i("'")){u=false
}else{l+=a.charAt(k)}}else{switch(a.charAt(k)){case"d":l+=g("d",b.getDate(),2);break;
case"D":l+=j("D",b.getDay(),e,f);break;case"o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000),3);
break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=j("M",b.getMonth(),h,c);
break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;
break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;
break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(k)}}}}return l
},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;
return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)
}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;
case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)
}}}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]
},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;
f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h
}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();
a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;
a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))
},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);
return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))
}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();
g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case"d":case"D":g+=parseInt(k[1],10);
break;case"w":case"W":g+=parseInt(k[1],10)*7;break;case"m":case"M":l+=parseInt(k[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case"y":case"Y":j+=parseInt(k[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)
};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);
b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)
},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);
return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));
a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();
a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)
}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))
},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));
var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");
g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));
for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;
m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";
var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));
f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";
j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));
h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+A+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";
e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";
h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");
this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),B=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");
this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O="";
this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";
if(l){y+='<div class="ui-datepicker-group';if(i[1]>1){switch(G){case 0:y+=" ui-datepicker-group-first";
t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";
t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";
t="";break}}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,B,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";
for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"
}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)
}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;
r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";
for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;
R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+A+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";
r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;
m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");
O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";
if(h||!j){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;
var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+A+".datepicker._clickMonthYear('#"+a.id+"');\">";
for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"
}}o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";
if(h||!l){k+='<span class="ui-datepicker-year">'+c+"</span>"}else{g=this._get(a,"yearRange").split(":");
var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);
return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;
g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+A+".datepicker._clickMonthYear('#"+a.id+"');\">";
b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"
}a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");
if(u){k+=(h||!(j&&l)?"&#xa0;":"")+o}k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);
b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));
a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();
if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");
if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");
return a==null?[1,1]:typeof a=="number"?[1,a]:a},_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,e){var f=this._getNumberOfMonths(a);
c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));
return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())
},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);
return{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,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;
a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this
}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);
d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)
})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();
d.datepicker.version="1.8.14";window["DP_jQuery_"+A]=d})(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("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").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(C){if(C===B){return this._value()
}this._setOption("value",C);return this},_setOption:function(C,D){if(C==="value"){this.options.value=D;
this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}A.Widget.prototype._setOption.apply(this,arguments)
},_value:function(){var C=this.options.value;if(typeof C!=="number"){C=0}return Math.min(this.options.max,Math.max(this.min,C))
},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var C=this.value(),D=this._percentage();
if(this.oldValue!==C){this.oldValue=C;this._trigger("change")}this.valueDiv.toggle(C>this.min).toggleClass("ui-corner-right",C===this.options.max).width(D.toFixed(0)+"%");
this.element.attr("aria-valuenow",C)}});A.extend(A.ui.progressbar,{version:"1.8.14"})
})(jQuery);jQuery.effects||function(I,H){function E(N){var M;if(N&&N.constructor==Array&&N.length==3){return N
}if(M=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(N)){return[parseInt(M[1],10),parseInt(M[2],10),parseInt(M[3],10)]
}if(M=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(N)){return[parseFloat(M[1])*2.55,parseFloat(M[2])*2.55,parseFloat(M[3])*2.55]
}if(M=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(N)){return[parseInt(M[1],16),parseInt(M[2],16),parseInt(M[3],16)]
}if(M=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(N)){return[parseInt(M[1]+M[1],16),parseInt(M[2]+M[2],16),parseInt(M[3]+M[3],16)]
}if(/rgba\(0, 0, 0, 0\)/.exec(N)){return D.transparent}return D[I.trim(N).toLowerCase()]
}function L(O,N){var M;do{M=I.curCSS(O,N);if(M!=""&&M!="transparent"||I.nodeName(O,"body")){break
}N="backgroundColor"}while(O=O.parentNode);return E(M)}function C(){var Q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,N={},M,P;
if(Q&&Q.length&&Q[0]&&Q[Q[0]]){for(var O=Q.length;O--;){M=Q[O];if(typeof Q[M]=="string"){P=M.replace(/\-(\w)/g,function(S,R){return R.toUpperCase()
});N[P]=Q[M]}}}else{for(M in Q){if(typeof Q[M]==="string"){N[M]=Q[M]}}}return N}function B(O){var N,M;
for(N in O){M=O[N];if(M==null||I.isFunction(M)||N in K||/scrollbar/.test(N)||!/color/i.test(N)&&isNaN(parseFloat(M))){delete O[N]
}}return O}function J(P,N){var M={_:0},O;for(O in N){if(P[O]!=N[O]){M[O]=N[O]}}return M
}function G(P,N,M,O){if(typeof P=="object"){O=N;M=null;N=P;P=N.effect}if(I.isFunction(N)){O=N;
M=null;N={}}if(typeof N=="number"||I.fx.speeds[N]){O=M;M=N;N={}}if(I.isFunction(M)){O=M;
M=null}N=N||{};M=M||N.duration;M=I.fx.off?0:typeof M=="number"?M:M in I.fx.speeds?I.fx.speeds[M]:I.fx.speeds._default;
O=O||N.complete;return[P,N,M,O]}function F(M){if(!M||typeof M==="number"||I.fx.speeds[M]){return true
}if(typeof M==="string"&&!I.effects[M]){return true}return false}I.effects={};I.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(N,M){I.fx.step[M]=function(O){if(!O.colorInit){O.start=L(O.elem,M);
O.end=E(O.end);O.colorInit=true}O.elem.style[M]="rgb("+Math.max(Math.min(parseInt(O.pos*(O.end[0]-O.start[0])+O.start[0],10),255),0)+","+Math.max(Math.min(parseInt(O.pos*(O.end[1]-O.start[1])+O.start[1],10),255),0)+","+Math.max(Math.min(parseInt(O.pos*(O.end[2]-O.start[2])+O.start[2],10),255),0)+")"
}});var D={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},A=["add","remove","toggle"],K={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
I.effects.animateClass=function(P,N,M,O){if(I.isFunction(M)){O=M;M=null}return this.queue(function(){var U=I(this),T=U.attr("style")||" ",R=B(C.call(this)),S,Q=U.attr("class");
I.each(A,function(V,W){P[W]&&U[W+"Class"](P[W])});S=B(C.call(this));U.attr("class",Q);
U.animate(J(R,S),{queue:false,duration:N,easing:M,complete:function(){I.each(A,function(V,W){P[W]&&U[W+"Class"](P[W])
});if(typeof U.attr("style")=="object"){U.attr("style").cssText="";U.attr("style").cssText=T
}else{U.attr("style",T)}O&&O.apply(this,arguments);I.dequeue(this)}})})};I.fn.extend({_addClass:I.fn.addClass,addClass:function(P,N,M,O){return N?I.effects.animateClass.apply(this,[{add:P},N,M,O]):this._addClass(P)
},_removeClass:I.fn.removeClass,removeClass:function(P,N,M,O){return N?I.effects.animateClass.apply(this,[{remove:P},N,M,O]):this._removeClass(P)
},_toggleClass:I.fn.toggleClass,toggleClass:function(Q,N,M,P,O){return typeof N=="boolean"||N===H?M?I.effects.animateClass.apply(this,[N?{add:Q}:{remove:Q},M,P,O]):this._toggleClass(Q,N):I.effects.animateClass.apply(this,[{toggle:Q},N,M,P])
},switchClass:function(Q,N,M,P,O){return I.effects.animateClass.apply(this,[{add:N,remove:Q},M,P,O])
}});I.extend(I.effects,{version:"1.8.14",save:function(O,N){for(var M=0;M<N.length;
M++){N[M]!==null&&O.data("ec.storage."+N[M],O[0].style[N[M]])}},restore:function(O,N){for(var M=0;
M<N.length;M++){N[M]!==null&&O.css(N[M],O.data("ec.storage."+N[M]))}},setMode:function(N,M){if(M=="toggle"){M=N.is(":hidden")?"show":"hide"
}return M},getBaseline:function(O,N){var M;switch(O[0]){case"top":M=0;break;case"middle":M=0.5;
break;case"bottom":M=1;break;default:M=O[0]/N.height}switch(O[1]){case"left":O=0;
break;case"center":O=0.5;break;case"right":O=1;break;default:O=O[1]/N.width}return{x:O,y:M}
},createWrapper:function(O){if(O.parent().is(".ui-effects-wrapper")){return O.parent()
}var N={width:O.outerWidth(true),height:O.outerHeight(true),"float":O.css("float")},M=I("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
O.wrap(M);M=O.parent();if(O.css("position")=="static"){M.css({position:"relative"});
O.css({position:"relative"})}else{I.extend(N,{position:O.css("position"),zIndex:O.css("z-index")});
I.each(["top","left","bottom","right"],function(Q,P){N[P]=O.css(P);if(isNaN(parseInt(N[P],10))){N[P]="auto"
}});O.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return M.css(N).show()
},removeWrapper:function(M){if(M.parent().is(".ui-effects-wrapper")){return M.parent().replaceWith(M)
}return M},setTransition:function(P,N,M,O){O=O||{};I.each(N,function(R,Q){unit=P.cssUnit(Q);
if(unit[0]>0){O[Q]=unit[0]*M+unit[1]}});return O}});I.fn.extend({effect:function(P){var N=G.apply(this,arguments),M={options:N[1],duration:N[2],callback:N[3]};
N=M.options.mode;var O=I.effects[P];if(I.fx.off||!O){return N?this[N](M.duration,M.callback):this.each(function(){M.callback&&M.callback.call(this)
})}return O.call(this,M)},_show:I.fn.show,show:function(N){if(F(N)){return this._show.apply(this,arguments)
}else{var M=G.apply(this,arguments);M[1].mode="show";return this.effect.apply(this,M)
}},_hide:I.fn.hide,hide:function(N){if(F(N)){return this._hide.apply(this,arguments)
}else{var M=G.apply(this,arguments);M[1].mode="hide";return this.effect.apply(this,M)
}},__toggle:I.fn.toggle,toggle:function(N){if(F(N)||typeof N==="boolean"||I.isFunction(N)){return this.__toggle.apply(this,arguments)
}else{var M=G.apply(this,arguments);M[1].mode="toggle";return this.effect.apply(this,M)
}},cssUnit:function(O){var N=this.css(O),M=[];I.each(["em","px","%","pt"],function(Q,P){if(N.indexOf(P)>0){M=[parseFloat(N),P]
}});return M}});I.easing.jswing=I.easing.swing;I.extend(I.easing,{def:"easeOutQuad",swing:function(Q,N,M,P,O){return I.easing[I.easing.def](Q,N,M,P,O)
},easeInQuad:function(Q,N,M,P,O){return P*(N/=O)*N+M},easeOutQuad:function(Q,N,M,P,O){return -P*(N/=O)*(N-2)+M
},easeInOutQuad:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N+M}return -P/2*(--N*(N-2)-1)+M
},easeInCubic:function(Q,N,M,P,O){return P*(N/=O)*N*N+M},easeOutCubic:function(Q,N,M,P,O){return P*((N=N/O-1)*N*N+1)+M
},easeInOutCubic:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N+M}return P/2*((N-=2)*N*N+2)+M
},easeInQuart:function(Q,N,M,P,O){return P*(N/=O)*N*N*N+M},easeOutQuart:function(Q,N,M,P,O){return -P*((N=N/O-1)*N*N*N-1)+M
},easeInOutQuart:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N*N+M}return -P/2*((N-=2)*N*N*N-2)+M
},easeInQuint:function(Q,N,M,P,O){return P*(N/=O)*N*N*N*N+M},easeOutQuint:function(Q,N,M,P,O){return P*((N=N/O-1)*N*N*N*N+1)+M
},easeInOutQuint:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N*N*N+M}return P/2*((N-=2)*N*N*N*N+2)+M
},easeInSine:function(Q,N,M,P,O){return -P*Math.cos(N/O*(Math.PI/2))+P+M},easeOutSine:function(Q,N,M,P,O){return P*Math.sin(N/O*(Math.PI/2))+M
},easeInOutSine:function(Q,N,M,P,O){return -P/2*(Math.cos(Math.PI*N/O)-1)+M},easeInExpo:function(Q,N,M,P,O){return N==0?M:P*Math.pow(2,10*(N/O-1))+M
},easeOutExpo:function(Q,N,M,P,O){return N==O?M+P:P*(-Math.pow(2,-10*N/O)+1)+M},easeInOutExpo:function(Q,N,M,P,O){if(N==0){return M
}if(N==O){return M+P}if((N/=O/2)<1){return P/2*Math.pow(2,10*(N-1))+M}return P/2*(-Math.pow(2,-10*--N)+2)+M
},easeInCirc:function(Q,N,M,P,O){return -P*(Math.sqrt(1-(N/=O)*N)-1)+M},easeOutCirc:function(Q,N,M,P,O){return P*Math.sqrt(1-(N=N/O-1)*N)+M
},easeInOutCirc:function(Q,N,M,P,O){if((N/=O/2)<1){return -P/2*(Math.sqrt(1-N*N)-1)+M
}return P/2*(Math.sqrt(1-(N-=2)*N)+1)+M},easeInElastic:function(S,N,M,R,Q){S=1.70158;
var P=0,O=R;if(N==0){return M}if((N/=Q)==1){return M+R}P||(P=Q*0.3);if(O<Math.abs(R)){O=R;
S=P/4}else{S=P/(2*Math.PI)*Math.asin(R/O)}return -(O*Math.pow(2,10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/P))+M
},easeOutElastic:function(S,N,M,R,Q){S=1.70158;var P=0,O=R;if(N==0){return M}if((N/=Q)==1){return M+R
}P||(P=Q*0.3);if(O<Math.abs(R)){O=R;S=P/4}else{S=P/(2*Math.PI)*Math.asin(R/O)}return O*Math.pow(2,-10*N)*Math.sin((N*Q-S)*2*Math.PI/P)+R+M
},easeInOutElastic:function(S,N,M,R,Q){S=1.70158;var P=0,O=R;if(N==0){return M}if((N/=Q/2)==2){return M+R
}P||(P=Q*0.3*1.5);if(O<Math.abs(R)){O=R;S=P/4}else{S=P/(2*Math.PI)*Math.asin(R/O)
}if(N<1){return -0.5*O*Math.pow(2,10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/P)+M}return O*Math.pow(2,-10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/P)*0.5+R+M
},easeInBack:function(R,N,M,Q,P,O){if(O==H){O=1.70158}return Q*(N/=P)*N*((O+1)*N-O)+M
},easeOutBack:function(R,N,M,Q,P,O){if(O==H){O=1.70158}return Q*((N=N/P-1)*N*((O+1)*N+O)+1)+M
},easeInOutBack:function(R,N,M,Q,P,O){if(O==H){O=1.70158}if((N/=P/2)<1){return Q/2*N*N*(((O*=1.525)+1)*N-O)+M
}return Q/2*((N-=2)*N*(((O*=1.525)+1)*N+O)+2)+M},easeInBounce:function(Q,N,M,P,O){return P-I.easing.easeOutBounce(Q,O-N,0,P,O)+M
},easeOutBounce:function(Q,N,M,P,O){return(N/=O)<1/2.75?P*7.5625*N*N+M:N<2/2.75?P*(7.5625*(N-=1.5/2.75)*N+0.75)+M:N<2.5/2.75?P*(7.5625*(N-=2.25/2.75)*N+0.9375)+M:P*(7.5625*(N-=2.625/2.75)*N+0.984375)+M
},easeInOutBounce:function(Q,N,M,P,O){if(N<O/2){return I.easing.easeInBounce(Q,N*2,0,P,O)*0.5+M
}return I.easing.easeOutBounce(Q,N*2-O,0,P,O)*0.5+P*0.5+M}})}(jQuery);(function(A){A.effects.blind=function(B){return this.queue(function(){var C=A(this),F=["position","top","bottom","left","right"],G=A.effects.setMode(C,B.options.mode||"hide"),I=B.options.direction||"vertical";
A.effects.save(C,F);C.show();var H=A.effects.createWrapper(C).css({overflow:"hidden"}),E=I=="vertical"?"height":"width";
I=I=="vertical"?H.height():H.width();G=="show"&&H.css(E,0);var D={};D[E]=G=="show"?I:0;
H.animate(D,B.duration,B.options.easing,function(){G=="hide"&&C.hide();A.effects.restore(C,F);
A.effects.removeWrapper(C);B.callback&&B.callback.apply(C[0],arguments);C.dequeue()
})})}})(jQuery);(function(A){A.effects.bounce=function(B){return this.queue(function(){var M=A(this),D=["position","top","bottom","left","right"],H=A.effects.setMode(M,B.options.mode||"effect"),K=B.options.direction||"up",L=B.options.distance||20,C=B.options.times||5,G=B.duration||250;
/show|hide/.test(H)&&D.push("opacity");A.effects.save(M,D);M.show();A.effects.createWrapper(M);
var J=K=="up"||K=="down"?"top":"left";K=K=="up"||K=="left"?"pos":"neg";L=B.options.distance||(J=="top"?M.outerHeight({margin:true})/3:M.outerWidth({margin:true})/3);
if(H=="show"){M.css("opacity",0).css(J,K=="pos"?-L:L)}if(H=="hide"){L/=C*2}H!="hide"&&C--;
if(H=="show"){var I={opacity:1};I[J]=(K=="pos"?"+=":"-=")+L;M.animate(I,G/2,B.options.easing);
L/=2;C--}for(I=0;I<C;I++){var F={},E={};F[J]=(K=="pos"?"-=":"+=")+L;E[J]=(K=="pos"?"+=":"-=")+L;
M.animate(F,G/2,B.options.easing).animate(E,G/2,B.options.easing);L=H=="hide"?L*2:L/2
}if(H=="hide"){I={opacity:0};I[J]=(K=="pos"?"-=":"+=")+L;M.animate(I,G/2,B.options.easing,function(){M.hide();
A.effects.restore(M,D);A.effects.removeWrapper(M);B.callback&&B.callback.apply(this,arguments)
})}else{F={};E={};F[J]=(K=="pos"?"-=":"+=")+L;E[J]=(K=="pos"?"+=":"-=")+L;M.animate(F,G/2,B.options.easing).animate(E,G/2,B.options.easing,function(){A.effects.restore(M,D);
A.effects.removeWrapper(M);B.callback&&B.callback.apply(this,arguments)})}M.queue("fx",function(){M.dequeue()
});M.dequeue()})}})(jQuery);(function(A){A.effects.clip=function(B){return this.queue(function(){var C=A(this),D=["position","top","bottom","left","right","height","width"],G=A.effects.setMode(C,B.options.mode||"hide"),I=B.options.direction||"vertical";
A.effects.save(C,D);C.show();var H=A.effects.createWrapper(C).css({overflow:"hidden"});
H=C[0].tagName=="IMG"?H:C;var F={size:I=="vertical"?"height":"width",position:I=="vertical"?"top":"left"};
I=I=="vertical"?H.height():H.width();if(G=="show"){H.css(F.size,0);H.css(F.position,I/2)
}var E={};E[F.size]=G=="show"?I:0;E[F.position]=G=="show"?0:I/2;H.animate(E,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){G=="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){A.effects.drop=function(B){return this.queue(function(){var D=A(this),F=["position","top","bottom","left","right","opacity"],I=A.effects.setMode(D,B.options.mode||"hide"),C=B.options.direction||"left";
A.effects.save(D,F);D.show();A.effects.createWrapper(D);var H=C=="up"||C=="down"?"top":"left";
C=C=="up"||C=="left"?"pos":"neg";var G=B.options.distance||(H=="top"?D.outerHeight({margin:true})/2:D.outerWidth({margin:true})/2);
if(I=="show"){D.css("opacity",0).css(H,C=="pos"?-G:G)}var E={opacity:I=="show"?1:0};
E[H]=(I=="show"?C=="pos"?"+=":"-=":C=="pos"?"-=":"+=")+G;D.animate(E,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){I=="hide"&&D.hide();
A.effects.restore(D,F);A.effects.removeWrapper(D);B.callback&&B.callback.apply(this,arguments);
D.dequeue()}})})}})(jQuery);(function(A){A.effects.explode=function(B){return this.queue(function(){var J=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3,I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;
B.options.mode=B.options.mode=="toggle"?A(this).is(":visible")?"hide":"show":B.options.mode;
var C=A(this).show().css("visibility","hidden"),F=C.offset();F.top-=parseInt(C.css("marginTop"),10)||0;
F.left-=parseInt(C.css("marginLeft"),10)||0;for(var E=C.outerWidth(true),D=C.outerHeight(true),H=0;
H<J;H++){for(var G=0;G<I;G++){C.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-G*(E/I),top:-H*(D/J)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:E/I,height:D/J,left:F.left+G*(E/I)+(B.options.mode=="show"?(G-Math.floor(I/2))*(E/I):0),top:F.top+H*(D/J)+(B.options.mode=="show"?(H-Math.floor(J/2))*(D/J):0),opacity:B.options.mode=="show"?0:1}).animate({left:F.left+G*(E/I)+(B.options.mode=="show"?0:(G-Math.floor(I/2))*(E/I)),top:F.top+H*(D/J)+(B.options.mode=="show"?0:(H-Math.floor(J/2))*(D/J)),opacity:B.options.mode=="show"?1:0},B.duration||500)
}}setTimeout(function(){B.options.mode=="show"?C.css({visibility:"visible"}):C.css({visibility:"visible"}).hide();
B.callback&&B.callback.apply(C[0]);C.dequeue();A("div.ui-effects-explode").remove()
},B.duration||500)})}})(jQuery);(function(A){A.effects.fade=function(B){return this.queue(function(){var D=A(this),C=A.effects.setMode(D,B.options.mode||"hide");
D.animate({opacity:C},{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){B.callback&&B.callback.apply(this,arguments);
D.dequeue()}})})}})(jQuery);(function(A){A.effects.fold=function(B){return this.queue(function(){var L=A(this),E=["position","top","bottom","left","right"],K=A.effects.setMode(L,B.options.mode||"hide"),H=B.options.size||15,G=!!B.options.horizFirst,D=B.duration?B.duration/2:A.fx.speeds._default/2;
A.effects.save(L,E);L.show();var J=A.effects.createWrapper(L).css({overflow:"hidden"}),I=K=="show"!=G,C=I?["width","height"]:["height","width"];
I=I?[J.width(),J.height()]:[J.height(),J.width()];var F=/([0-9]+)%/.exec(H);if(F){H=parseInt(F[1],10)/100*I[K=="hide"?0:1]
}if(K=="show"){J.css(G?{height:0,width:H}:{height:H,width:0})}G={};F={};G[C[0]]=K=="show"?I[0]:H;
F[C[1]]=K=="show"?I[1]:0;J.animate(G,D,B.options.easing).animate(F,D,B.options.easing,function(){K=="hide"&&L.hide();
A.effects.restore(L,E);A.effects.removeWrapper(L);B.callback&&B.callback.apply(L[0],arguments);
L.dequeue()})})}})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var C=A(this),E=["backgroundImage","backgroundColor","opacity"],F=A.effects.setMode(C,B.options.mode||"show"),D={backgroundColor:C.css("backgroundColor")};
if(F=="hide"){D.opacity=0}A.effects.save(C,E);C.show().css({backgroundImage:"none",backgroundColor:B.options.color||"#ffff99"}).animate(D,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){F=="hide"&&C.hide();
A.effects.restore(C,E);F=="show"&&!A.support.opacity&&this.style.removeAttribute("filter");
B.callback&&B.callback.apply(this,arguments);C.dequeue()}})})}})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var C=A(this),D=A.effects.setMode(C,B.options.mode||"show");
times=(B.options.times||5)*2-1;duration=B.duration?B.duration/2:A.fx.speeds._default/2;
isVisible=C.is(":visible");animateTo=0;if(!isVisible){C.css("opacity",0).show();animateTo=1
}if(D=="hide"&&isVisible||D=="show"&&!isVisible){times--}for(D=0;D<times;D++){C.animate({opacity:animateTo},duration,B.options.easing);
animateTo=(animateTo+1)%2}C.animate({opacity:animateTo},duration,B.options.easing,function(){animateTo==0&&C.hide();
B.callback&&B.callback.apply(this,arguments)});C.queue("fx",function(){C.dequeue()
}).dequeue()})}})(jQuery);(function(A){A.effects.puff=function(B){return this.queue(function(){var C=A(this),G=A.effects.setMode(C,B.options.mode||"hide"),F=parseInt(B.options.percent,10)||150,E=F/100,D={height:C.height(),width:C.width()};
A.extend(B.options,{fade:true,mode:G,percent:G=="hide"?F:100,from:G=="hide"?D:{height:D.height*E,width:D.width*E}});
C.effect("scale",B.options,B.duration,B.callback);C.dequeue()})};A.effects.scale=function(B){return this.queue(function(){var C=A(this),H=A.extend(true,{},B.options),F=A.effects.setMode(C,B.options.mode||"effect"),E=parseInt(B.options.percent,10)||(parseInt(B.options.percent,10)==0?0:F=="hide"?0:100),D=B.options.direction||"both",G=B.options.origin;
if(F!="effect"){H.origin=G||["middle","center"];H.restore=true}G={height:C.height(),width:C.width()};
C.from=B.options.from||(F=="show"?{height:0,width:0}:G);E={y:D!="horizontal"?E/100:1,x:D!="vertical"?E/100:1};
C.to={height:G.height*E.y,width:G.width*E.x};if(B.options.fade){if(F=="show"){C.from.opacity=0;
C.to.opacity=1}if(F=="hide"){C.from.opacity=1;C.to.opacity=0}}H.from=C.from;H.to=C.to;
H.mode=F;C.effect("size",H,B.duration,B.callback);C.dequeue()})};A.effects.size=function(B){return this.queue(function(){var O=A(this),M=["position","top","bottom","left","right","width","height","overflow","opacity"],K=["position","top","bottom","left","right","overflow","opacity"],J=["width","height","overflow"],I=["fontSize"],L=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],G=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],C=A.effects.setMode(O,B.options.mode||"effect"),D=B.options.restore||false,E=B.options.scale||"both",F=B.options.origin,H={height:O.height(),width:O.width()};
O.from=B.options.from||H;O.to=B.options.to||H;if(F){F=A.effects.getBaseline(F,H);
O.from.top=(H.height-O.from.height)*F.y;O.from.left=(H.width-O.from.width)*F.x;O.to.top=(H.height-O.to.height)*F.y;
O.to.left=(H.width-O.to.width)*F.x}var N={from:{y:O.from.height/H.height,x:O.from.width/H.width},to:{y:O.to.height/H.height,x:O.to.width/H.width}};
if(E=="box"||E=="both"){if(N.from.y!=N.to.y){M=M.concat(L);O.from=A.effects.setTransition(O,L,N.from.y,O.from);
O.to=A.effects.setTransition(O,L,N.to.y,O.to)}if(N.from.x!=N.to.x){M=M.concat(G);
O.from=A.effects.setTransition(O,G,N.from.x,O.from);O.to=A.effects.setTransition(O,G,N.to.x,O.to)
}}if(E=="content"||E=="both"){if(N.from.y!=N.to.y){M=M.concat(I);O.from=A.effects.setTransition(O,I,N.from.y,O.from);
O.to=A.effects.setTransition(O,I,N.to.y,O.to)}}A.effects.save(O,D?M:K);O.show();A.effects.createWrapper(O);
O.css("overflow","hidden").css(O.from);if(E=="content"||E=="both"){L=L.concat(["marginTop","marginBottom"]).concat(I);
G=G.concat(["marginLeft","marginRight"]);J=M.concat(L).concat(G);O.find("*[width]").each(function(){child=A(this);
D&&A.effects.save(child,J);var P={height:child.height(),width:child.width()};child.from={height:P.height*N.from.y,width:P.width*N.from.x};
child.to={height:P.height*N.to.y,width:P.width*N.to.x};if(N.from.y!=N.to.y){child.from=A.effects.setTransition(child,L,N.from.y,child.from);
child.to=A.effects.setTransition(child,L,N.to.y,child.to)}if(N.from.x!=N.to.x){child.from=A.effects.setTransition(child,G,N.from.x,child.from);
child.to=A.effects.setTransition(child,G,N.to.x,child.to)}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){D&&A.effects.restore(child,J)
})})}O.animate(O.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){O.to.opacity===0&&O.css("opacity",O.from.opacity);
C=="hide"&&O.hide();A.effects.restore(O,D?M:K);A.effects.removeWrapper(O);B.callback&&B.callback.apply(this,arguments);
O.dequeue()}})})}})(jQuery);(function(A){A.effects.shake=function(B){return this.queue(function(){var L=A(this),E=["position","top","bottom","left","right"];
A.effects.setMode(L,B.options.mode||"effect");var K=B.options.direction||"left",J=B.options.distance||20,C=B.options.times||3,I=B.duration||B.options.duration||140;
A.effects.save(L,E);L.show();A.effects.createWrapper(L);var H=K=="up"||K=="down"?"top":"left",G=K=="up"||K=="left"?"pos":"neg";
K={};var F={},D={};K[H]=(G=="pos"?"-=":"+=")+J;F[H]=(G=="pos"?"+=":"-=")+J*2;D[H]=(G=="pos"?"-=":"+=")+J*2;
L.animate(K,I,B.options.easing);for(J=1;J<C;J++){L.animate(F,I,B.options.easing).animate(D,I,B.options.easing)
}L.animate(F,I,B.options.easing).animate(K,I/2,B.options.easing,function(){A.effects.restore(L,E);
A.effects.removeWrapper(L);B.callback&&B.callback.apply(this,arguments)});L.queue("fx",function(){L.dequeue()
});L.dequeue()})}})(jQuery);(function(A){A.effects.slide=function(B){return this.queue(function(){var D=A(this),F=["position","top","bottom","left","right"],H=A.effects.setMode(D,B.options.mode||"show"),C=B.options.direction||"left";
A.effects.save(D,F);D.show();A.effects.createWrapper(D).css({overflow:"hidden"});
var G=C=="up"||C=="down"?"top":"left";C=C=="up"||C=="left"?"pos":"neg";var I=B.options.distance||(G=="top"?D.outerHeight({margin:true}):D.outerWidth({margin:true}));
if(H=="show"){D.css(G,C=="pos"?isNaN(I)?"-"+I:-I:I)}var E={};E[G]=(H=="show"?C=="pos"?"+=":"-=":C=="pos"?"-=":"+=")+I;
D.animate(E,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){H=="hide"&&D.hide();
A.effects.restore(D,F);A.effects.removeWrapper(D);B.callback&&B.callback.apply(this,arguments);
D.dequeue()}})})}})(jQuery);(function(A){A.effects.transfer=function(B){return this.queue(function(){var C=A(this),F=A(B.options.to),E=F.offset();
F={top:E.top,left:E.left,height:F.innerHeight(),width:F.innerWidth()};E=C.offset();
var D=A('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(B.options.className).css({top:E.top,left:E.left,height:C.innerHeight(),width:C.innerWidth(),position:"absolute"}).animate(F,B.duration,B.options.easing,function(){D.remove();
B.callback&&B.callback.apply(C[0],arguments);C.dequeue()})})}})(jQuery);
