YUI.add("widget-position",function(t,i){var e=t.Lang,n=t.Widget,s="xy",o=n.UI_SRC;function r(t){}r.ATTRS={x:{setter:function(t){this._setX(t)},getter:function(){return this._getX()},lazyAdd:!1},y:{setter:function(t){this._setY(t)},getter:function(){return this._getY()},lazyAdd:!1},xy:{value:[0,0],validator:function(t){return this._validateXY(t)}}},r.POSITIONED_CLASS_NAME=n.getClassName("positioned"),r.prototype={initializer:function(){this._posNode=this.get("boundingBox"),t.after(this._renderUIPosition,this,"renderUI"),t.after(this._syncUIPosition,this,"syncUI"),t.after(this._bindUIPosition,this,"bindUI")},_renderUIPosition:function(){this._posNode.addClass(r.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){"relative"===this._posNode.getStyle("position")&&this.syncXY(),this._uiSetXY(this.get(s))},_bindUIPosition:function(){this.after("xyChange",this._afterXYChange)},move:function(){var t=arguments,t=e.isArray(t[0])?t[0]:[t[0],t[1]];this.set(s,t)},syncXY:function(){this.set(s,this._posNode.getXY(),{src:o})},_validateXY:function(t){return e.isArray(t)&&e.isNumber(t[0])&&e.isNumber(t[1])},_setX:function(t){this.set(s,[t,this.get(s)[1]])},_setY:function(t){this.set(s,[this.get(s)[0],t])},_getX:function(){return this.get(s)[0]},_getY:function(){return this.get(s)[1]},_afterXYChange:function(t){t.src!=o&&this._uiSetXY(t.newVal)},_uiSetXY:function(t){this._posNode.setXY(t)}},t.WidgetPosition=r},"patched-v3.18.7",{requires:["base-build","node-screen","widget"]});