YUI.add("clickable-rail",function(i,t){i.ClickableRail=i.mix(function(){this._initClickableRail()},{prototype:{_initClickableRail:function(){this._evtGuid=this._evtGuid||i.guid()+"|",this.publish("railMouseDown",{defaultFn:this._defRailMouseDownFn}),this.after("render",this._bindClickableRail),this.on("destroy",this._unbindClickableRail)},_bindClickableRail:function(){this._dd.addHandle(this.rail),this.rail.on(this._evtGuid+i.DD.Drag.START_EVENT,i.bind(this._onRailMouseDown,this))},_unbindClickableRail:function(){this.get("rendered")&&this.get("contentBox").one("."+this.getClassName("rail")).detach(this.evtGuid+"*")},_onRailMouseDown:function(i){this.get("clickableRail")&&!this.get("disabled")&&(this.fire("railMouseDown",{ev:i}),this.thumb.focus())},_defRailMouseDownFn:function(i){i=i.ev;var t,e,a=this._resolveThumb(i),n=this._key.xyIndex,s=parseFloat(this.get("length"),10);a&&(e=a.get("dragNode"),t=parseFloat(e.getStyle(this._key.dim),10),e=this._getThumbDestination(i,e)[n]-this.rail.getXY()[n],e=Math.min(Math.max(e,0),s-t),this._uiMoveThumb(e,{source:"rail"}),i.target=this.thumb.one("img")||this.thumb,a._handleMouseDownEvent(i))},_resolveThumb:function(i){return this._dd},_getThumbDestination:function(i,t){var e=t.get("offsetWidth"),t=t.get("offsetHeight");return[i.pageX-Math.round(e/2),i.pageY-Math.round(t/2)]}},ATTRS:{clickableRail:{value:!0,validator:i.Lang.isBoolean}}},!0)},"patched-v3.18.7",{requires:["slider-base"]});