n(Math.max(a,-o),o)},_updateDirection:function(t,e,i){var n=i.width/2-e.width/2,s=i.height/2-e.height/2;switch(t){case"n":e.top=i.top-e.height-this.panelOffset,e.left=i.left+n;break;case"s":e.top=i.bottom+this.panelOffset,e.left=i.left+n;break;case"e":e.top=i.top+s,e.left=i.right+this.panelOffset;break;case"w":e.top=i.top+s,e.right=i.left-this.panelOffset;break;case"c":e.top=i.top+s,e.left=i.left+n}},DIRECTIONS:["n","e","s","w"]});t.PositionablePanel=[t.Positionable,e]}(window.StrandTraits=window.StrandTrai