(function($){
var _1=$.fn.remove,_2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);
$.ui={version:"1.6",plugin:{add:function(_3,_4,_5){
var _6=$.ui[_3].prototype;
for(var i in _5){
_6.plugins[i]=_6.plugins[i]||[];
_6.plugins[i].push([_4,_5[i]]);
}
},call:function(_7,_8,_9){
var _a=_7.plugins[_8];
if(!_a){
return;
}
for(var i=0;i<_a.length;i++){
if(_7.options[_a[i][0]]){
_a[i][1].apply(_7.element,_9);
}
}
}},contains:function(a,b){
var _b=$.browser.safari&&$.browser.version<522;
if(a.contains&&!_b){
return a.contains(b);
}
if(a.compareDocumentPosition){
return !!(a.compareDocumentPosition(b)&16);
}
while(b=b.parentNode){
if(b==a){
return true;
}
}
return false;
},cssCache:{},css:function(_c){
if($.ui.cssCache[_c]){
return $.ui.cssCache[_c];
}
var _d=$("<div class=\"ui-gen\">").addClass(_c).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");
$.ui.cssCache[_c]=!!((!(/auto|default/).test(_d.css("cursor"))||(/^[1-9]/).test(_d.css("height"))||(/^[1-9]/).test(_d.css("width"))||!(/none/).test(_d.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(_d.css("backgroundColor"))));
try{
$("body").get(0).removeChild(_d.get(0));
}
catch(e){
}
return $.ui.cssCache[_c];
},hasScroll:function(el,a){
if($(el).css("overflow")=="hidden"){
return false;
}
var _e=(a&&a=="left")?"scrollLeft":"scrollTop",_f=false;
if(el[_e]>0){
return true;
}
el[_e]=1;
_f=(el[_e]>0);
el[_e]=0;
return _f;
},isOverAxis:function(x,_10,_11){
return (x>_10)&&(x<(_10+_11));
},isOver:function(y,x,top,_12,_13,_14){
return $.ui.isOverAxis(y,top,_13)&&$.ui.isOverAxis(x,_12,_14);
},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};
if(_2){
var _15=$.attr,_16=$.fn.removeAttr,_17="http://www.w3.org/2005/07/aaa",_18=/^aria-/,_19=/^wairole:/;
$.attr=function(_1a,_1b,_1c){
var set=_1c!==undefined;
return (_1b=="role"?(set?_15.call(this,_1a,_1b,"wairole:"+_1c):(_15.apply(this,arguments)||"").replace(_19,"")):(_18.test(_1b)?(set?_1a.setAttributeNS(_17,_1b.replace(_18,"aaa:"),_1c):_15.call(this,_1a,_1b.replace(_18,"aaa:"))):_15.apply(this,arguments)));
};
$.fn.removeAttr=function(_1d){
return (_18.test(_1d)?this.each(function(){
this.removeAttributeNS(_17,_1d.replace(_18,""));
}):_16.call(this,_1d));
};
}
$.fn.extend({remove:function(){
$("*",this).add(this).each(function(){
$(this).triggerHandler("remove");
});
return _1.apply(this,arguments);
},enableSelection:function(){
return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");
},disableSelection:function(){
return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){
return false;
});
},scrollParent:function(){
var _1e;
if(($.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){
_1e=this.parents().filter(function(){
return (/(relative|absolute|fixed)/).test($.curCSS(this,"position",1))&&(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));
}).eq(0);
}else{
_1e=this.parents().filter(function(){
return (/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));
}).eq(0);
}
return (/fixed/).test(this.css("position"))||!_1e.length?$(document):_1e;
}});
$.extend($.expr[":"],{data:function(a,i,m){
return $.data(a,m[3]);
},tabbable:function(a,i,m){
var _1f=a.nodeName.toLowerCase();
function _20(_21){
return !($(_21).is(":hidden")||$(_21).parents(":hidden").length);
};
return (a.tabIndex>=0&&(("a"==_1f&&a.href)||(/input|select|textarea|button/.test(_1f)&&"hidden"!=a.type&&!a.disabled))&&_20(a));
}});
function _22(_23,_24,_25,_26){
function _27(_28){
var _29=$[_23][_24][_28]||[];
return (typeof _29=="string"?_29.split(/,?\s+/):_29);
};
var _2a=_27("getter");
if(_26.length==1&&typeof _26[0]=="string"){
_2a=_2a.concat(_27("getterSetter"));
}
return ($.inArray(_25,_2a)!=-1);
};
$.widget=function(_2b,_2c){
var _2d=_2b.split(".")[0];
_2b=_2b.split(".")[1];
$.fn[_2b]=function(_2e){
var _2f=(typeof _2e=="string"),_30=Array.prototype.slice.call(arguments,1);
if(_2f&&_2e.substring(0,1)=="_"){
return this;
}
if(_2f&&_22(_2d,_2b,_2e,_30)){
var _31=$.data(this[0],_2b);
return (_31?_31[_2e].apply(_31,_30):undefined);
}
return this.each(function(){
var _32=$.data(this,_2b);
(!_32&&!_2f&&$.data(this,_2b,new $[_2d][_2b](this,_2e)));
(_32&&_2f&&$.isFunction(_32[_2e])&&_32[_2e].apply(_32,_30));
});
};
$[_2d]=$[_2d]||{};
$[_2d][_2b]=function(_33,_34){
var _35=this;
this.widgetName=_2b;
this.widgetEventPrefix=$[_2d][_2b].eventPrefix||_2b;
this.widgetBaseClass=_2d+"-"+_2b;
this.options=$.extend({},$.widget.defaults,$[_2d][_2b].defaults,$.metadata&&$.metadata.get(_33)[_2b],_34);
this.element=$(_33).bind("setData."+_2b,function(_36,key,_37){
return _35._setData(key,_37);
}).bind("getData."+_2b,function(_38,key){
return _35._getData(key);
}).bind("remove",function(){
return _35.destroy();
});
this._init();
};
$[_2d][_2b].prototype=$.extend({},$.widget.prototype,_2c);
$[_2d][_2b].getterSetter="option";
};
$.widget.prototype={_init:function(){
},destroy:function(){
this.element.removeData(this.widgetName);
},option:function(key,_39){
var _3a=key,_3b=this;
if(typeof key=="string"){
if(_39===undefined){
return this._getData(key);
}
_3a={};
_3a[key]=_39;
}
$.each(_3a,function(key,_3c){
_3b._setData(key,_3c);
});
},_getData:function(key){
return this.options[key];
},_setData:function(key,_3d){
this.options[key]=_3d;
if(key=="disabled"){
this.element[_3d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled");
}
},enable:function(){
this._setData("disabled",false);
},disable:function(){
this._setData("disabled",true);
},_trigger:function(_3e,_3f,_40){
var _41=(_3e==this.widgetEventPrefix?_3e:this.widgetEventPrefix+_3e);
_3f=_3f||$.event.fix({type:_41,target:this.element[0]});
return this.element.triggerHandler(_41,[_3f,_40],this.options[_3e]);
}};
$.widget.defaults={disabled:false};
$.ui.mouse={_mouseInit:function(){
var _42=this;
this.element.bind("mousedown."+this.widgetName,function(_43){
return _42._mouseDown(_43);
}).bind("click."+this.widgetName,function(_44){
if(_42._preventClickEvent){
_42._preventClickEvent=false;
return false;
}
});
if($.browser.msie){
this._mouseUnselectable=this.element.attr("unselectable");
this.element.attr("unselectable","on");
}
this.started=false;
},_mouseDestroy:function(){
this.element.unbind("."+this.widgetName);
($.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));
},_mouseDown:function(_45){
(this._mouseStarted&&this._mouseUp(_45));
this._mouseDownEvent=_45;
var _46=this,_47=(_45.which==1),_48=(typeof this.options.cancel=="string"?$(_45.target).parents().add(_45.target).filter(this.options.cancel).length:false);
if(!_47||_48||!this._mouseCapture(_45)){
return true;
}
this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){
this._mouseDelayTimer=setTimeout(function(){
_46.mouseDelayMet=true;
},this.options.delay);
}
if(this._mouseDistanceMet(_45)&&this._mouseDelayMet(_45)){
this._mouseStarted=(this._mouseStart(_45)!==false);
if(!this._mouseStarted){
_45.preventDefault();
return true;
}
}
this._mouseMoveDelegate=function(_49){
return _46._mouseMove(_49);
};
this._mouseUpDelegate=function(_4a){
return _46._mouseUp(_4a);
};
$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(!$.browser.safari){
_45.preventDefault();
}
return true;
},_mouseMove:function(_4b){
if($.browser.msie&&!_4b.button){
return this._mouseUp(_4b);
}
if(this._mouseStarted){
this._mouseDrag(_4b);
return _4b.preventDefault();
}
if(this._mouseDistanceMet(_4b)&&this._mouseDelayMet(_4b)){
this._mouseStarted=(this._mouseStart(this._mouseDownEvent,_4b)!==false);
(this._mouseStarted?this._mouseDrag(_4b):this._mouseUp(_4b));
}
return !this._mouseStarted;
},_mouseUp:function(_4c){
$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){
this._mouseStarted=false;
this._preventClickEvent=true;
this._mouseStop(_4c);
}
return false;
},_mouseDistanceMet:function(_4d){
return (Math.max(Math.abs(this._mouseDownEvent.pageX-_4d.pageX),Math.abs(this._mouseDownEvent.pageY-_4d.pageY))>=this.options.distance);
},_mouseDelayMet:function(_4e){
return this.mouseDelayMet;
},_mouseStart:function(_4f){
},_mouseDrag:function(_50){
},_mouseStop:function(_51){
},_mouseCapture:function(_52){
return true;
}};
$.ui.mouse.defaults={cancel:null,distance:1,delay:0};
})(jQuery);

