YUI.add("button-core",function(e,t){function i(e){this.initializer(e)}var n=e.ClassNameManager.getClassName,r=e.AttributeCore;i.prototype={TEMPLATE:"<button/>",constructor:i,initializer:function(e){this._initNode(e),this._initAttributes(e),this._renderUI(e)},_initNode:function(t){t.host?this._host=e.one(t.host):this._host=e.Node.create(this.TEMPLATE)},_initAttributes:function(e){r.call(this,i.ATTRS,e)},_renderUI:function(){var e=this.getNode(),t=e.get("nodeName").toLowerCase();e.addClass(i.CLASS_NAMES.BUTTON),t!=="button"&&t!=="input"&&e.set("role","button")},enable:function(){this.set("disabled",!1)},disable:function(){this.set("disabled",!0)},getNode:function(){return this._host||(this._host=this.get("boundingBox")),this._host},_getLabel:function(){var e=this.getNode(),t=i._getTextLabelFromNode(e);return t},_getLabelHTML:function(){var e=this.getNode(),t=i._getHTMLFromNode(e);return t},_setLabel:function(t,n,r){var i=e.Escape.html(t);return(!r||r.src!=="internal")&&this.set("labelHTML",i,{src:"internal"}),i},_setLabelHTML:function(e,t,n){var r=this.getNode(),s=i._getLabelNodeFromParent(r),o=r.get("nodeName").toLowerCase();return o==="input"?s.set("value",e):s.setHTML(e),(!n||n.src!=="internal")&&this.set("label",e,{src:"internal"}),e},_setDisabled:function(e){var t=this.getNode();return t.getDOMNode().disabled=e,t.toggleClass(i.CLASS_NAMES.DISABLED,e),e}},e.mix(i.prototype,r.prototype),i.ATTRS={label:{setter:"_setLabel",getter:"_getLabel",lazyAdd:!1},labelHTML:{setter:"_setLabelHTML",getter:"_getLabelHTML",lazyAdd:!1},disabled:{value:!1,setter:"_setDisabled",lazyAdd:!1}},i.NAME="button",i.CLASS_NAMES={BUTTON:n("button"),DISABLED:n("button","disabled"),SELECTED:n("button","selected"),LABEL:n("button","label")},i.ARIA_STATES={PRESSED:"aria-pressed",CHECKED:"aria-checked"},i.ARIA_ROLES={BUTTON:"button",CHECKBOX:"checkbox",TOGGLE:"toggle"},i._getLabelNodeFromParent=function(e){var t=e.one("."+i.CLASS_NAMES.LABEL)||e;return t},i._getTextLabelFromNode=function(e){var t=i._getLabelNodeFromParent(e),n=t.get("nodeName").toLowerCase(),r=t.get(n==="input"?"value":"text");return r},i._getHTMLFromNode=function(e){var t=i._getLabelNodeFromParent(e),n=t.getHTML();return n},i._getDisabledFromNode=function(e){return e.get("disabled")},e.ButtonCore=i},"patched-v3.18.1",{requires:["attribute-core","classnamemanager","node-base","escape"]});

YUI.add("button-plugin",function(e,t){function n(){n.superclass.constructor.apply(this,arguments)}e.extend(n,e.ButtonCore,{_afterNodeGet:function(t){var n=this.constructor.ATTRS,r=n[t]&&n[t].getter&&this[n[t].getter];if(r)return new e.Do.AlterReturn("get "+t,r.call(this))},_afterNodeSet:function(e,t){var n=this.constructor.ATTRS,r=n[e]&&n[e].setter&&this[n[e].setter];r&&r.call(this,t)},_initNode:function(t){var n=t.host;this._host=n,e.Do.after(this._afterNodeGet,n,"get",this),e.Do.after(this._afterNodeSet,n,"set",this)},destroy:function(){}},{ATTRS:e.merge(e.ButtonCore.ATTRS),NAME:"buttonPlugin",NS:"button"}),n.createNode=function(t,n){var r;return t&&!n&&!t.nodeType&&!t.getDOMNode&&typeof t!="string"&&(n=t,t=n.srcNode),n=n||{},r=n.template||e.Plugin.Button.prototype.TEMPLATE,t=t||n.srcNode||e.DOM.create(r),e.one(t).plug(e.Plugin.Button,n)},e.namespace("Plugin").Button=n},"patched-v3.18.1",{requires:["button-core","cssbutton","node-pluginhost"]});

YUI.add("widget-buttons",function(e,t){function p(e){return!!e.getDOMNode}function d(){this._buttonsHandles={}}var n=e.Array,r=e.Lang,i=e.Object,s=e.Plugin.Button,o=e.Widget,u=e.WidgetStdMod,a=e.ClassNameManager.getClassName,f=r.isArray,l=r.isNumber,c=r.isString,h=r.isValue;d.ATTRS={buttons:{getter:"_getButtons",setter:"_setButtons",value:{}},defaultButton:{readOnly:!0,value:null}},d.CLASS_NAMES={button:a("button"),buttons:o.getClassName("buttons"),primary:a("button","primary")},d.HTML_PARSER={buttons:function(e){return this._parseButtons(e)}},d.NON_BUTTON_NODE_CFG=["action","classNames","context","events","isDefault","section"],d.prototype={BUTTONS:{},BUTTONS_TEMPLATE:"<span />",DEFAULT_BUTTONS_SECTION:u.FOOTER,initializer:function(){this._stdModNode||e.error("WidgetStdMod must be added to a Widget before WidgetButtons."),this._mapButtons(this.get("buttons")),this._updateDefaultButton(),this.after({buttonsChange:e.bind("_afterButtonsChange",this),defaultButtonChange:e.bind("_afterDefaultButtonChange",this)}),e.after(this._bindUIButtons,this,"bindUI"),e.after(this._syncUIButtons,this,"syncUI")},destructor:function(){i.each(this._buttonsHandles,function(e){e.detach()}),delete this._buttonsHandles,delete this._buttonsMap,delete this._defaultButton},addButton:function(e,t,r){var i=this.get("buttons"),s,o;return p(e)||(e=this._mergeButtonConfig(e),t||(t=e.section)),t||(t=this.DEFAULT_BUTTONS_SECTION),s=i[t]||(i[t]=[]),l(r)||(r=s.length),s.splice(r,0,e),o=n.indexOf(s,e),this.set("buttons",i,{button:e,section:t,index:o,src:"add"}),this},getButton:function(e,t){if(!h(e))return;var n=this._buttonsMap,r;return t||(t=this.DEFAULT_BUTTONS_SECTION),l(e)?(r=this.get("buttons"),r[t]&&r[t][e]):arguments.length>1?n[t+":"+e]:n[e]},removeButton:function(e,t){if(!h(e))return this;var r=this.get("buttons"),s;return l(e)?(t||(t=this.DEFAULT_BUTTONS_SECTION),s=e,e=r[t][s]):(c(e)&&(e=this.getButton.apply(this,arguments)),i.some(r,function(r,i){s=n.indexOf(r,e);if(s>-1)return t=i,!0})),e&&s>-1&&(r[t].splice(s,1),this.set("buttons",r,{button:e,section:t,index:s,src:"remove"})),this},_bindUIButtons:function(){var t=e.bind("_afterContentChangeButtons",this);this.after({visibleChange:e.bind("_afterVisibleChangeButtons",this),headerContentChange:t,bodyContentChange:t,footerContentChange:t})},_createButton:function(t){var r,i,o,u,a,f,l,h;if(p(t))return e.one(t.getDOMNode()).plug(s);r=e.merge({context:this,events:"click",label:t.value},t),i=e.merge(r),o=d.NON_BUTTON_NODE_CFG;for(u=0,a=o.length;u<a;u+=1)delete i[o[u]];return t=s.createNode(i),l=r.context,f=r.action,c(f)&&(f=e.bind(f,l)),h=t.on(r.events,f,l),this._buttonsHandles[e.stamp(t,!0)]=h,t.setData("name",this._getButtonName(r)),t.setData("default",this._getButtonDefault(r)),n.each(n(r.classNames),t.addClass,t),t},_getButtonContainer:function(t,n){var r=u.SECTION_CLASS_NAMES[t],i=d.CLASS_NAMES.buttons,s=this.get("contentBox"),o,a;return o="."+r+" ."+i,a=s.one(o),!a&&n&&(a=e.Node.create(this.BUTTONS_TEMPLATE),a.addClass(i)),a},_getButtonDefault:function(e){var t=p(e)?e.getData("default"):e.isDefault;return c(t)?t.toLowerCase()==="true":!!t},_getButtonName:function(e){var t;return p(e)?t=e.getData("name")||e.get("name"):t=e&&(e.name||e.type),t},_getButtons:function(e){var t={};return i.each(e,function(e,n){t[n]=e.concat()}),t},_mapButton:function(e,t){var n=this._buttonsMap,r=this._getButtonName(e),i=this._getButtonDefault(e);r&&(n[r]=e,n[t+":"+r]=e),i&&(this._defaultButton=e)},_mapButtons:function(e){this._buttonsMap={},this._defaultButton=null,i.each(e,function(e,t){var n,r;for(n=0,r=e.length;n<r;n+=1)this._mapButton(e[n],t)},this)},_mergeButtonConfig:function(t){var n,r,i,s,o,u;return t=c(t)?{name:t}:e.merge(t),t.srcNode&&(s=t.srcNode,o=s.get("tagName").toLowerCase(),u=s.get(o==="input"?"value":"text"),n={disabled:!!s.get("disabled"),isDefault:this._getButtonDefault(s),name:this._getButtonName(s)},u&&(n.label=u),e.mix(t,n,!1,null,0,!0)),i=this._getButtonName(t),r=this.BUTTONS&&this.BUTTONS[i],r&&e.mix(t,r,!1,null,0,!0),t},_parseButtons:function(e){var t="."+d.CLASS_NAMES.button,r=["header","body","footer"],i=null;return n.each(r,function(e){var n=this._getButtonContainer(e),r=n&&n.all(t),s;if(!r||r.isEmpty())return;s=[],r.each(function(e){s.push({srcNode:e})}),i||(i={}),i[e]=s},this),i},_setButtons:function(e){function r(e,r){if(!f(e))return;var i,s,o,u;for(i=0,s=e.length;i<s;i+=1)o=e[i],u=r,p(o)||(o=this._mergeButtonConfig(o),u||(u=o.section)),o=this._createButton(o),u||(u=t),(n[u]||(n[u]=[])).push(o)}var t=this.DEFAULT_BUTTONS_SECTION,n={};return f(e)?r.call(this,e):i.each(e,r,this),n},_syncUIButtons:function(){this._uiSetButtons(this.get("buttons")),this._uiSetDefaultButton(this.get("defaultButton")),this._uiSetVisibleButtons(this.get("visible"))},_uiInsertButton:function(e,t,n){var r=d.CLASS_NAMES.button,i=this._getButtonContainer(t,!0),s=i.all("."+r);i.insertBefore(e,s.item(n)),this.setStdModContent(t,i,"after")},_uiRemoveButton:function(t,n,r){var i=e.stamp(t,this),s=this._buttonsHandles,o=s[i],u,a;o&&o.detach(),delete s[i],t.remove(),r||(r={}),r.preserveContent||(u=this._getButtonContainer(n),a=d.CLASS_NAMES.button,u&&u.all("."+a).isEmpty()&&(u.remove(),this._updateContentButtons(n)))},_uiSetButtons:function(e){var t=d.CLASS_NAMES.button,r=["header","body","footer"];n.each(r,function(n){var r=e[n]||[],i=r.length,s=this._getButtonContainer(n,i),o=!1,u,a,f,l;if(!s)return;u=s.all("."+t);for(a=0;a<i;a+=1)f=r[a],l=u.indexOf(f),l>-1?(u.splice(l,1),l!==a&&(s.insertBefore(f,a+1),o=!0)):(s.appendChild(f),o=!0);u.each(function(e){this._uiRemoveButton(e,n,{preserveContent:!0}),o=!0},this);if(i===0){s.remove(),this._updateContentButtons(n);return}o&&this.setStdModContent(n,s,"after")},this)},_uiSetDefaultButton:function(e,t){var n=d.CLASS_NAMES.primary;e&&e.addClass(n),t&&t.removeClass(n)},_uiSetVisibleButtons:function(e){if(!e)return;var t=this.get("defaultButton");t&&t.focus()},_unMapButton:function(e,t){var n=this._buttonsMap,r=this._getButtonName(e),i;r&&(n[r]===e&&delete 
n[r],i=t+":"+r,n[i]===e&&delete n[i]),this._defaultButton===e&&(this._defaultButton=null)},_updateDefaultButton:function(){var e=this._defaultButton;this.get("defaultButton")!==e&&this._set("defaultButton",e)},_updateContentButtons:function(e){var t=this.getStdModNode(e).get("childNodes");this.set(e+"Content",t.isEmpty()?null:t,{src:"buttons"})},_afterButtonsChange:function(e){var t=e.newVal,n=e.section,r=e.index,i=e.src,s;if(i==="add"){s=t[n][r],this._mapButton(s,n),this._updateDefaultButton(),this._uiInsertButton(s,n,r);return}if(i==="remove"){s=e.button,this._unMapButton(s,n),this._updateDefaultButton(),this._uiRemoveButton(s,n);return}this._mapButtons(t),this._updateDefaultButton(),this._uiSetButtons(t)},_afterContentChangeButtons:function(e){var t=e.src,n=e.stdModPosition,r=!n||n===u.REPLACE;r&&t!=="buttons"&&t!==o.UI_SRC&&this._uiSetButtons(this.get("buttons"))},_afterDefaultButtonChange:function(e){this._uiSetDefaultButton(e.newVal,e.prevVal)},_afterVisibleChangeButtons:function(e){this._uiSetVisibleButtons(e.newVal)}},e.WidgetButtons=d},"patched-v3.18.1",{requires:["button-plugin","cssbutton","widget-stdmod"]});

YUI.add("widget-modality",function(t,e){var i,s,o,a,n,d,l="widget",h="renderUI",r="bindUI",u="syncUI",c="boundingBox",f="visible",g="zIndex",_="Change",M=t.Lang.isBoolean,b=t.ClassNameManager.getClassName,m="maskShow",I="maskHide",k="clickoutside",p="focusoutside",v=(n=t.config.doc,d=null,n.createElement&&(o=n.createElement("div"))&&o.style&&(o.style.position="fixed",(a=n.body)&&a.appendChild&&a.removeChild&&(a.appendChild(o),d="fixed"===o.style.position,a.removeChild(o))),d);function y(t){}i="mask",s={modal:b(l,"modal"),mask:b(l,i)},y.ATTRS={maskNode:{getter:"_getMaskNode",readOnly:!0},modal:{value:!1,validator:M},focusOn:{valueFn:function(){return[{eventName:k},{eventName:p}]},validator:t.Lang.isArray}},y.CLASSES=s,y._MASK=null,y._GET_MASK=function(){var e=y._MASK,i=t.one("win");return e&&null!==e.getDOMNode()&&e.inDoc()?e:(e=t.Node.create("<div></div>").addClass(s.mask),y._MASK=e,v?e.setStyles({position:"fixed",width:"100%",height:"100%",top:"0",left:"0",display:"block"}):e.setStyles({position:"absolute",width:i.get("winWidth")+"px",height:i.get("winHeight")+"px",top:"0",left:"0",display:"block"}),e)},y.STACK=[],y.prototype={initializer:function(){t.after(this._renderUIModal,this,h),t.after(this._syncUIModal,this,u),t.after(this._bindUIModal,this,r)},destructor:function(){this._uiSetHostVisibleModal(!1)},_uiHandlesModal:null,_renderUIModal:function(){var t=this.get(c);this._repositionMask(this),t.addClass(s.modal)},_bindUIModal:function(){this.after(f+_,this._afterHostVisibleChangeModal),this.after(g+_,this._afterHostZIndexChangeModal),this.after("focusOnChange",this._afterFocusOnChange),(!v||t.UA.ios&&t.UA.ios<5||t.UA.android&&t.UA.android<3)&&t.one("win").on("scroll",this._resyncMask,this)},_syncUIModal:function(){this._uiSetHostVisibleModal(this.get(f))},_focus:function(){var t=this.get(c),e=t.get("tabIndex");t.set("tabIndex",e>=0?e:0),this.focus()},_blur:function(){this.blur()},_getMaskNode:function(){return y._GET_MASK()},_uiSetHostVisibleModal:function(e){var i,s,o=y.STACK,a=this.get("maskNode"),n=this.get("modal");e?(t.Array.each(o,function(t){t._detachUIHandlesModal(),t._blur()}),o.unshift(this),this._repositionMask(this),this._uiSetHostZIndexModal(this.get(g)),n&&(a.show(),t.later(1,this,"_attachUIHandlesModal"),this._focus(),this._blockIFrameFocus())):((s=t.Array.indexOf(o,this))>=0&&o.splice(s,1),this._detachUIHandlesModal(),this._blur(),o.length?(i=o[0],this._repositionMask(i),i._uiSetHostZIndexModal(i.get(g)),i.get("modal")&&(t.later(1,i,"_attachUIHandlesModal"),i._focus())):"block"===a.getStyle("display")&&a.hide(),this._unblockIFrameFocus())},_blockIFrameFocus:function(){var e=this.get(c);t.all("iframe").each(function(){e.contains(this)||(this.setAttribute("data-tabindex",this.get("tabIndex")),this.set("tabIndex",-1))})},_unblockIFrameFocus:function(){t.all("iframe").each(function(){this.hasAttribute("data-tabindex")&&(this.set("tabIndex",this.getAttribute("data-tabindex")),this.removeAttribute("data-tabindex"))})},_uiSetHostZIndexModal:function(t){this.get("modal")&&this.get("maskNode").setStyle(g,t||0)},_attachUIHandlesModal:function(){if(!this._uiHandlesModal&&y.STACK[0]===this){var e,i,s,o=this.get(c),a=this.get("maskNode"),n=this.get("focusOn"),d=t.bind(this._focus,this),l=[];for(e=0,i=n.length;e<i;e++)(s={}).node=n[e].node,s.ev=n[e].eventName,s.keyCode=n[e].keyCode,s.node||s.keyCode||!s.ev?s.node&&!s.keyCode&&s.ev?l.push(s.node.on(s.ev,d)):s.node&&s.keyCode&&s.ev&&l.push(s.node.on(s.ev,d,s.keyCode)):l.push(o.on(s.ev,d));v||l.push(t.one("win").on("scroll",t.bind(function(){a.setStyle("top",a.get("docScrollY"))},this))),this._uiHandlesModal=l}},_detachUIHandlesModal:function(){t.each(this._uiHandlesModal,function(t){t.detach()}),this._uiHandlesModal=null},_afterHostVisibleChangeModal:function(t){this._uiSetHostVisibleModal(t.newVal)},_afterHostZIndexChangeModal:function(t){this._uiSetHostZIndexModal(t.newVal)},isNested:function(){return y.STACK.length>1},_repositionMask:function(e){var i,s=this.get("modal"),o=e.get("modal"),a=this.get("maskNode");s&&!o?(a.remove(),this.fire(I)):(!s&&o||s&&o)&&(a.remove(),this.fire(I),(i=e.get(c).get("parentNode")||t.one("body")).insert(a,i.get("firstChild")),this.fire(m))},_resyncMask:function(t){var e=t.currentTarget,i=e.get("docScrollX"),s=e.get("docScrollY"),o=e.get("innerWidth")||e.get("winWidth"),a=e.get("innerHeight")||e.get("winHeight");this.get("maskNode").setStyles({top:s+"px",left:i+"px",width:o+"px",height:a+"px"})},_afterFocusOnChange:function(){this._detachUIHandlesModal(),this.get(f)&&this._attachUIHandlesModal()}},t.WidgetModality=y},"patched-v3.18.1",{requires:["base-build","event-outside","widget"],skinnable:!0});
YUI.add("dd-ddm-base",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)};n.NAME="ddm",n.ATTRS={dragCursor:{value:"move"},clickPixelThresh:{value:3},clickTimeThresh:{value:1e3},throttleTime:{value:-1},dragMode:{value:"point",setter:function(e){return this._setDragMode(e),e}}},e.extend(n,e.Base,{_createPG:function(){},_active:null,_setDragMode:function(t){switch(null===t&&(t=e.DD.DDM.get("dragMode")),t){case 1:case"intersect":return 1;case 2:case"strict":return 2;case 0:case"point":return 0}return 0},CSS_PREFIX:e.ClassNameManager.getClassName("dd"),_activateTargets:function(){},_drags:[],activeDrag:!1,_regDrag:function(e){return!this.getDrag(e.get("node"))&&(this._active||this._setupListeners(),this._drags.push(e),!0)},_unregDrag:function(t){var n=[];e.Array.each(this._drags,function(e){e!==t&&(n[n.length]=e)}),this._drags=n},_setupListeners:function(){this._createPG(),this._active=!0;var t=e.one(e.config.doc);t.on("mousemove",e.throttle(e.bind(this._docMove,this),this.get("throttleTime"))),t.on("mouseup",e.bind(this._end,this))},_start:function(){this.fire("ddm:start"),this._startDrag()},_startDrag:function(){},_endDrag:function(){},_dropMove:function(){},_end:function(){this.activeDrag&&(this._shimming=!1,this._endDrag(),this.fire("ddm:end"),this.activeDrag.end.call(this.activeDrag),this.activeDrag=null)},stopDrag:function(){return this.activeDrag&&this._end(),this},_shimming:!1,_docMove:function(e){this._shimming||this._move(e)},_move:function(e){this.activeDrag&&(this.activeDrag._move.call(this.activeDrag,e),this._dropMove())},cssSizestoObject:function(e){var t=e.split(" ");switch(t.length){case 1:t[1]=t[2]=t[3]=t[0];break;case 2:t[2]=t[0],t[3]=t[1];break;case 3:t[3]=t[1]}return{top:parseInt(t[0],10),right:parseInt(t[1],10),bottom:parseInt(t[2],10),left:parseInt(t[3],10)}},getDrag:function(t){var n=!1,i=e.one(t);return i instanceof e.Node&&e.Array.each(this._drags,function(e){i.compareTo(e.get("node"))&&(n=e)}),n},swapPosition:function(t,n){t=e.DD.DDM.getNode(t),n=e.DD.DDM.getNode(n);var i=t.getXY(),r=n.getXY();return t.setXY(r),n.setXY(i),t},getNode:function(t){return t instanceof e.Node?t:t=t&&t.get?e.Widget&&t instanceof e.Widget?t.get("boundingBox"):t.get("node"):e.one(t)},swapNode:function(t,n){t=e.DD.DDM.getNode(t);var i=(n=e.DD.DDM.getNode(n)).get("parentNode"),r=n.get("nextSibling");return r===t?i.insertBefore(t,n):n===t.get("nextSibling")?i.insertBefore(n,t):(t.get("parentNode").replaceChild(n,t),i.insertBefore(t,r)),t}}),e.namespace("DD"),e.DD.DDM=new n},"patched-v3.18.1",{requires:["node","base","yui-throttle","classnamemanager"]});
YUI.add("dd-drag",function(t,e){var i=t.DD.DDM,s="node",a="dragging",n="dragNode",r="offsetHeight",h="offsetWidth",l="drag:mouseDown",o="drag:afterMouseDown",d="drag:removeHandle",u="drag:addHandle",g="drag:removeInvalid",c="drag:addInvalid",_="drag:start",f="drag:end",v="drag:drag",p="drag:align",m=function(e){this._lazyAddAttrs=!1,m.superclass.constructor.apply(this,arguments),i._regDrag(this)||t.error("Failed to register node, already in use: "+e.node)};m.NAME="drag",m.START_EVENT="mousedown",m.ATTRS={node:{setter:function(e){if(this._canDrag(e))return e;var i=t.one(e);return i||t.error("DD.Drag: Invalid Node Given: "+e),i}},dragNode:{setter:function(e){if(this._canDrag(e))return e;var i=t.one(e);return i||t.error("DD.Drag: Invalid dragNode Given: "+e),i}},offsetNode:{value:!0},startCentered:{value:!1},clickPixelThresh:{value:i.get("clickPixelThresh")},clickTimeThresh:{value:i.get("clickTimeThresh")},lock:{value:!1,setter:function(t){return t?this.get(s).addClass(i.CSS_PREFIX+"-locked"):this.get(s).removeClass(i.CSS_PREFIX+"-locked"),t}},data:{value:!1},move:{value:!0},useShim:{value:!0},activeHandle:{value:!1},primaryButtonOnly:{value:!0},dragging:{value:!1},parent:{value:!1},target:{value:!1,setter:function(t){return this._handleTarget(t),t}},dragMode:{value:null,setter:function(t){return i._setDragMode(t)}},groups:{value:["default"],getter:function(){return this._groups?t.Object.keys(this._groups):(this._groups={},[])},setter:function(e){return this._groups=t.Array.hash(e),e}},handles:{value:null,setter:function(e){return e?(this._handles={},t.Array.each(e,function(e){var i=e;(e instanceof t.Node||e instanceof t.NodeList)&&(i=e._yuid),this._handles[i]=e,this._fixUserSelect(e)},this)):this._handles=null,e}},bubbles:{setter:function(t){return this.addTarget(t),t}},haltDown:{value:!0}},t.extend(m,t.Base,{_canDrag:function(t){return!!(t&&t.setXY&&t.getXY&&t.test&&t.contains)},_bubbleTargets:t.DD.DDM,addToGroup:function(t){return this._groups[t]=!0,i._activateTargets(),this},removeFromGroup:function(t){return delete this._groups[t],i._activateTargets(),this},target:null,_handleTarget:function(e){t.DD.Drop&&(!1===e?this.target&&(i._unregTarget(this.target),this.target=null):(t.Lang.isObject(e)||(e={}),e.bubbleTargets=e.bubbleTargets||this.getTargets(),e.node=this.get(s),e.groups=e.groups||this.get("groups"),this.target=new t.DD.Drop(e)))},_groups:null,_createEvents:function(){this.publish(l,{defaultFn:this._defMouseDownFn,queuable:!1,emitFacade:!0,bubbles:!0,prefix:"drag"}),this.publish(p,{defaultFn:this._defAlignFn,queuable:!1,emitFacade:!0,bubbles:!0,prefix:"drag"}),this.publish(v,{defaultFn:this._defDragFn,queuable:!1,emitFacade:!0,bubbles:!0,prefix:"drag"}),this.publish(f,{defaultFn:this._defEndFn,preventedFn:this._prevEndFn,queuable:!1,emitFacade:!0,bubbles:!0,prefix:"drag"});var e=[o,d,u,g,c,_,"drag:drophit","drag:dropmiss","drag:over","drag:enter","drag:exit"];t.Array.each(e,function(t){this.publish(t,{type:t,emitFacade:!0,bubbles:!0,preventable:!1,queuable:!1,prefix:"drag"})},this)},_ev_md:null,_startTime:null,_endTime:null,_handles:null,_invalids:null,_invalidsDefault:{textarea:!0,input:!0,a:!0,button:!0,select:!0},_dragThreshMet:null,_fromTimeout:null,_clickTimeout:null,deltaXY:null,startXY:null,nodeXY:null,lastXY:null,actXY:null,realXY:null,mouseXY:null,region:null,_handleMouseUp:function(){this.fire("drag:mouseup"),this._fixIEMouseUp(),i.activeDrag&&i._end()},_fixDragStart:function(t){this.validClick(t)&&t.preventDefault()},_fixUserSelect:function(e,i){var s=t.all(e);s&&(i?s.setStyles({"-moz-user-select":"auto","-ms-user-select":"auto","-webkit-user-select":"auto","user-select":"auto"}):s.setStyles({"-moz-user-select":"none","-ms-user-select":"none","-webkit-user-select":"none","user-select":"none"}))},_ieSelectFix:function(){return!1},_ieSelectBack:null,_fixIEMouseDown:function(){t.UA.ie&&(this._ieSelectBack=t.config.doc.body.onselectstart,t.config.doc.body.onselectstart=this._ieSelectFix)},_fixIEMouseUp:function(){t.UA.ie&&(t.config.doc.body.onselectstart=this._ieSelectBack)},_handleMouseDownEvent:function(t){this.validClick(t)&&t.preventDefault(),this.fire(l,{ev:t})},_defMouseDownFn:function(e){var s,a=e.ev;if(this._dragThreshMet=!1,this._ev_md=a,this.get("primaryButtonOnly")&&a.button>1)return!1;this.validClick(a)&&(this._fixIEMouseDown(a),a.touches||(this.get("haltDown")?a.halt():a.preventDefault()),this._setStartPosition([a.pageX,a.pageY]),i.activeDrag=this,s=this.get("clickTimeThresh"),a.touches&&(s=Math.max(750,s)),this._clickTimeout=t.later(s,this,this._timeoutCheck)),this.fire(o,{ev:a})},validClick:function(e){var i=!1,a=!1,n=e.target,r=null,h=null,l=null,o=!1;return this._handles?t.Object.each(this._handles,function(e,s){e instanceof t.Node||e instanceof t.NodeList?i||((l=e)instanceof t.Node&&(l=new t.NodeList(e._node)),l.each(function(t){t.contains(n)&&(i=!0)})):t.Lang.isString(s)&&n.test(s+", "+s+" *")&&!r&&(r=s,i=!0)}):((a=this.get(s)).contains(n)||a.compareTo(n))&&(i=!0),i&&this._invalids&&t.Object.each(this._invalids,function(e,s){t.Lang.isString(s)&&n.test(s+", "+s+" *")&&(i=!1)}),i&&(r?(h=e.currentTarget.all(r),o=!1,h.each(function(t){!t.contains(n)&&!t.compareTo(n)||o||(o=!0,this.set("activeHandle",t))},this)):this.set("activeHandle",this.get(s))),i},_setStartPosition:function(t){this.startXY=t,this.nodeXY=this.lastXY=this.realXY=this.get(s).getXY(),this.get("offsetNode")?this.deltaXY=[this.startXY[0]-this.nodeXY[0],this.startXY[1]-this.nodeXY[1]]:this.deltaXY=[0,0]},_timeoutCheck:function(){this.get("lock")||this._dragThreshMet||!this._ev_md||(this._fromTimeout=this._dragThreshMet=!0,this.start(),this._alignNode([this._ev_md.pageX,this._ev_md.pageY],!0))},removeHandle:function(e){var i=e;return(e instanceof t.Node||e instanceof t.NodeList)&&(i=e._yuid),this._handles[i]&&(delete this._handles[i],this._fixUserSelect(e,!0),this.fire(d,{handle:e})),this},addHandle:function(e){this._handles||(this._handles={});var i=e
;return(e instanceof t.Node||e instanceof t.NodeList)&&(i=e._yuid),this._handles[i]=e,this._fixUserSelect(e),this.fire(u,{handle:e}),this},removeInvalid:function(t){return this._invalids[t]&&(this._invalids[t]=null,delete this._invalids[t],this.fire(g,{handle:t})),this},addInvalid:function(e){return t.Lang.isString(e)&&(this._invalids[e]=!0,this.fire(c,{handle:e})),this},initializer:function(){if(this.get(s).dd=this,!this.get(s).get("id")){var e=t.stamp(this.get(s));this.get(s).set("id",e)}this.actXY=[],this._invalids=t.clone(this._invalidsDefault,!0),this._createEvents(),this.get(n)||this.set(n,this.get(s)),this.on("initializedChange",t.bind(this._prep,this)),this.set("groups",this.get("groups"))},_prep:function(){this._dragThreshMet=!1;var e=this.get(s);e.addClass(i.CSS_PREFIX+"-draggable"),e.on(m.START_EVENT,t.bind(this._handleMouseDownEvent,this)),e.on("mouseup",t.bind(this._handleMouseUp,this)),e.on(["dragstart","touchmove"],t.bind(this._fixDragStart,this))},_unprep:function(){var t=this.get(s);t.removeClass(i.CSS_PREFIX+"-draggable"),t.detachAll("mouseup"),t.detachAll("dragstart"),t.detachAll(m.START_EVENT),this.mouseXY=[],this.deltaXY=[0,0],this.startXY=[],this.nodeXY=[],this.lastXY=[],this.actXY=[],this.realXY=[]},start:function(){if(!this.get("lock")&&!this.get(a)){var t,e,l,o=this.get(s);this._startTime=(new Date).getTime(),i._start(),o.addClass(i.CSS_PREFIX+"-dragging"),this.fire(_,{pageX:this.nodeXY[0],pageY:this.nodeXY[1],startTime:this._startTime}),o=this.get(n),l=this.nodeXY,t=o.get(h),e=o.get(r),this.get("startCentered")&&this._setStartPosition([l[0]+t/2,l[1]+e/2]),this.region={0:l[0],1:l[1],area:0,top:l[1],right:l[0]+t,bottom:l[1]+e,left:l[0]},this.set(a,!0)}return this},end:function(){return this._endTime=(new Date).getTime(),this._clickTimeout&&this._clickTimeout.cancel(),this._dragThreshMet=this._fromTimeout=!1,!this.get("lock")&&this.get(a)&&this.fire(f,{pageX:this.lastXY[0],pageY:this.lastXY[1],startTime:this._startTime,endTime:this._endTime}),this.get(s).removeClass(i.CSS_PREFIX+"-dragging"),this.set(a,!1),this.deltaXY=[0,0],this},_defEndFn:function(){this._fixIEMouseUp(),this._ev_md=null},_prevEndFn:function(){this._fixIEMouseUp(),this.get(n).setXY(this.nodeXY),this._ev_md=null,this.region=null},_align:function(t){this.fire(p,{pageX:t[0],pageY:t[1]})},_defAlignFn:function(t){this.actXY=[t.pageX-this.deltaXY[0],t.pageY-this.deltaXY[1]]},_alignNode:function(t,e){this._align(t),e||this._moveNode()},_moveNode:function(t){var e=[],i=[],s=this.nodeXY,a=this.actXY;e[0]=a[0]-this.lastXY[0],e[1]=a[1]-this.lastXY[1],i[0]=a[0]-this.nodeXY[0],i[1]=a[1]-this.nodeXY[1],this.region={0:a[0],1:a[1],area:0,top:a[1],right:a[0]+this.get(n).get(h),bottom:a[1]+this.get(n).get(r),left:a[0]},this.fire(v,{pageX:a[0],pageY:a[1],scroll:t,info:{start:s,xy:a,delta:e,offset:i}}),this.lastXY=a},_defDragFn:function(e){if(this.get("move")){if(e.scroll&&e.scroll.node){var i=e.scroll.node.getDOMNode();i===t.config.win?i.scrollTo(e.scroll.left,e.scroll.top):(e.scroll.node.set("scrollTop",e.scroll.top),e.scroll.node.set("scrollLeft",e.scroll.left))}this.get(n).setXY([e.pageX,e.pageY]),this.realXY=[e.pageX,e.pageY]}},_move:function(t){if(this.get("lock"))return!1;if(this.mouseXY=[t.pageX,t.pageY],this._dragThreshMet||t.touches)this._dragThreshMet&&(this._clickTimeout&&this._clickTimeout.cancel(),this._alignNode([t.pageX,t.pageY]));else{var e=Math.abs(this.startXY[0]-t.pageX),i=Math.abs(this.startXY[1]-t.pageY);(e>this.get("clickPixelThresh")||i>this.get("clickPixelThresh"))&&(this._dragThreshMet=!0,this.start(),this._alignNode([t.pageX,t.pageY]))}},stopDrag:function(){return this.get(a)&&i._end(),this},destructor:function(){this._unprep(),this.target&&this.target.destroy(),i._unregDrag(this)}}),t.namespace("DD"),t.DD.Drag=m},"patched-v3.18.1",{requires:["dd-ddm-base","selector-css2"]});
YUI.add("dd-plugin",function(t,i){var e=function(i){t.Widget&&i.host instanceof t.Widget?(i.node=i.host.get("boundingBox"),i.widget=i.host):(i.node=i.host,i.widget=!1),e.superclass.constructor.call(this,i)};e.NAME="dd-plugin",e.NS="dd",t.extend(e,t.DD.Drag,{_widgetHandles:null,_widget:undefined,_stoppedPosition:undefined,_usesWidgetPosition:function(i){var e=!1;return i&&(e=!(!i.hasImpl||!i.hasImpl(t.WidgetPosition))),e},_checkEvents:function(){this._widget&&(this.proxy?this._widgetHandles.length>0&&this._removeWidgetListeners():0===this._widgetHandles.length&&this._attachWidgetListeners())},_removeWidgetListeners:function(){t.Array.each(this._widgetHandles,function(t){t.detach()}),this._widgetHandles=[]},_attachWidgetListeners:function(){this._usesWidgetPosition(this._widget)&&(this._widgetHandles.push(this.on("drag:drag",this._setWidgetCoords)),this._widgetHandles.push(this.on("drag:end",this._updateStopPosition)))},initializer:function(t){this._widgetHandles=[],this._widget=t.widget,this.on("drag:start",this._checkEvents),this._attachWidgetListeners()},_setWidgetCoords:function(t){var i=this._stoppedPosition||t.target.nodeXY,e=t.target.realXY,s=[e[0]-i[0],e[1]-i[1]];0!==s[0]&&0!==s[1]?this._widget.set("xy",e):0===s[0]?this._widget.set("y",e[1]):0===s[1]&&this._widget.set("x",e[0])},_updateStopPosition:function(t){this._stoppedPosition=t.target.realXY}}),t.namespace("Plugin"),t.Plugin.Drag=e},"patched-v3.18.1",{optional:["dd-constrain","dd-proxy"],requires:["dd-drag"]});
YUI.add("dd-constrain",function(t,i){var e,n="dragNode",s="offsetHeight",c="offsetWidth",r="host",a="tickXArray",h="tickYArray",g=t.DD.DDM,o="top",l="right",u="bottom",d="left",f="view",_="drag:tickAlignX",k="drag:tickAlignY",v=function(){this._lazyAddAttrs=!1,v.superclass.constructor.apply(this,arguments)};v.NAME="ddConstrained",v.NS="con",v.ATTRS={host:{},stickX:{value:!1},stickY:{value:!1},tickX:{value:!1},tickY:{value:!1},tickXArray:{value:!1},tickYArray:{value:!1},gutter:{value:"0",setter:function(i){return t.DD.DDM.cssSizestoObject(i)}},constrain:{value:f,setter:function(i){var e=t.one(i);return e&&(i=e),i}},constrain2region:{setter:function(t){return this.set("constrain",t)}},constrain2node:{setter:function(i){return this.set("constrain",t.one(i))}},constrain2view:{setter:function(){return this.set("constrain",f)}},cacheRegion:{value:!0}},e={_lastTickXFired:null,_lastTickYFired:null,initializer:function(){this._createEvents(),this._eventHandles=[this.get(r).on("drag:end",t.bind(this._handleEnd,this)),this.get(r).on("drag:start",t.bind(this._handleStart,this)),this.get(r).after("drag:align",t.bind(this.align,this)),this.get(r).after("drag:drag",t.bind(this.drag,this))]},destructor:function(){t.Array.each(this._eventHandles,function(t){t.detach()}),this._eventHandles.length=0},_createEvents:function(){var i=[_,k];t.Array.each(i,function(t){this.publish(t,{type:t,emitFacade:!0,bubbles:!0,queuable:!1,prefix:"drag"})},this)},_handleEnd:function(){this._lastTickYFired=null,this._lastTickXFired=null},_handleStart:function(){this.resetCache()},_regionCache:null,_cacheRegion:function(){this._regionCache=this.get("constrain").get("region")},resetCache:function(){this._regionCache=null},_getConstraint:function(){var i,e=this.get("constrain"),s=this.get("gutter");return e&&(e instanceof t.Node?(this._regionCache||(this._eventHandles.push(t.on("resize",t.bind(this._cacheRegion,this),t.config.win)),this._cacheRegion()),i=t.clone(this._regionCache),this.get("cacheRegion")||this.resetCache()):t.Lang.isObject(e)&&(i=t.clone(e))),e&&i||(e=f),e===f&&(i=this.get(r).get(n).get("viewportRegion")),t.Object.each(s,function(t,e){e===l||e===u?i[e]-=t:i[e]+=t}),i},getRegion:function(t){var i={},e=null,a=null,h=this.get(r);return i=this._getConstraint(),t&&(e=h.get(n).get(s),a=h.get(n).get(c),i[l]=i[l]-a,i[u]=i[u]-e),i},_checkRegion:function(t){var i=t,e=this.getRegion(),a=this.get(r),h=a.get(n).get(s),g=a.get(n).get(c);return i[1]>e[u]-h&&(t[1]=e[u]-h),e[o]>i[1]&&(t[1]=e[o]),i[0]>e[l]-g&&(t[0]=e[l]-g),e[d]>i[0]&&(t[0]=e[d]),t},inRegion:function(t){t=t||this.get(r).get(n).getXY();var i=this._checkRegion([t[0],t[1]]),e=!1;return t[0]===i[0]&&t[1]===i[1]&&(e=!0),e},align:function(){var t=this.get(r),i=[t.actXY[0],t.actXY[1]],e=this.getRegion(!0);this.get("stickX")&&(i[1]=t.startXY[1]-t.deltaXY[1]),this.get("stickY")&&(i[0]=t.startXY[0]-t.deltaXY[0]),e&&(i=this._checkRegion(i)),i=this._checkTicks(i,e),t.actXY=i},drag:function(){var i=this.get(r),e=this.get("tickX"),n=this.get("tickY"),s=[i.actXY[0],i.actXY[1]];(t.Lang.isNumber(e)||this.get(a))&&this._lastTickXFired!==s[0]&&(this._tickAlignX(),this._lastTickXFired=s[0]),(t.Lang.isNumber(n)||this.get(h))&&this._lastTickYFired!==s[1]&&(this._tickAlignY(),this._lastTickYFired=s[1])},_checkTicks:function(t,i){var e=this.get(r),n=e.startXY[0]-e.deltaXY[0],s=e.startXY[1]-e.deltaXY[1],c=this.get("tickX"),f=this.get("tickY");return c&&!this.get(a)&&(t[0]=g._calcTicks(t[0],n,c,i[d],i[l])),f&&!this.get(h)&&(t[1]=g._calcTicks(t[1],s,f,i[o],i[u])),this.get(a)&&(t[0]=g._calcTickArray(t[0],this.get(a),i[d],i[l])),this.get(h)&&(t[1]=g._calcTickArray(t[1],this.get(h),i[o],i[u])),t},_tickAlignX:function(){this.fire(_)},_tickAlignY:function(){this.fire(k)}},t.namespace("Plugin"),t.extend(v,t.Base,e),t.Plugin.DDConstrained=v,t.mix(g,{_calcTicks:function(t,i,e,n,s){var c=(t-i)/e,r=Math.floor(c),a=Math.ceil(c);return 0===r&&0===a||c>=r&&c<=a&&(t=i+e*r,n&&s&&(t<n&&(t=i+e*(r+1)),t>s&&(t=i+e*(r-1)))),t},_calcTickArray:function(t,i,e,n){var s,c,r=0,a=i.length,h=0;if(!i||0===i.length)return t;if(i[0]>=t)return i[0];for(r=0;r<a;r++)if(i[h=r+1]&&i[h]>=t)return s=t-i[r],c=i[h]-t>s?i[r]:i[h],e&&n&&c>n&&(c=i[r]?i[r]:i[a-1]),c;return i[i.length-1]}})},"patched-v3.18.1",{requires:["dd-drag"]});
YUI.add("timers",function(e,t){function i(e){return s}function s(e){this.capacity=this.snap(e),this.length=0,this.front=0,this.initialize()}function o(e,t,n,r,i){for(var s=0;s<i;++s)n[s+r]=e[s+t]}function u(e){return e>>>=0,e-=1,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e+1}function v(){while(a.length>0){var e=a.shift();try{e.call()}catch(t){if(d)throw l(),t;setTimeout(function(){throw t},0)}}f=!1}function y(e){d&&p.domain&&(e=p.domain.bind(e)),a.push(e),f||(l(),f=!0)}function b(e){var t;return b._asynchronizer(function(){t||e()}),{cancel:function(){t=1}}}var n={},r=e.config.global;"use strict",n.exports=s,s.prototype.push=function(e){var t=this.length;this.capacity<=t&&this.grow(this.snap(this.capacity*this.growFactor));var n=this.front+t&this.capacity-1;this[n]=e,this.length=t+1},s.prototype.shift=function(){var e=this.front,t=this[e];return this[e]=void 0,this.front=e+1&this.capacity-1,this.length--,t},s.prototype.grow=function(e){var t=this.front,n=this.capacity,r=new Array(n),i=this.length;o(this,0,r,0,n),this.capacity=e,this.initialize(),this.front=0;if(t+i<=n)o(r,t,this,0,i);else{var s=i-(t+i&n-1);o(r,t,this,0,s),o(r,0,this,s,i-s)}},s.prototype.initialize=function(){var e=this.capacity;for(var t=0;t<e;++t)this[t]=void 0},s.prototype.snap=function(e){return typeof e!="number"?this.minCapacity:u(Math.min(this.maxCapacity,Math.max(this.minCapacity,e)))},s.prototype.maxCapacity=1<<30|0,s.prototype.minCapacity=16,s.prototype.growFactor=8,"use strict";var s=i("./queue"),a=new s(1024),f=!1,l=void 0,c=typeof setImmediate=="function",h,p=r.process,d=!!p&&{}.toString.call(p)==="[object process]";if(d)l=function(){var e=p.domain;e&&(h=h||(1,i)("domain"),h.active=p.domain=null),f&&c?setImmediate(v):p.nextTick(v),e&&(h.active=p.domain=e)};else if(c)l=function(){setImmediate(v)};else if(typeof MessageChannel!="undefined"){var m=new MessageChannel;m.port1.onmessage=function(){l=g,m.port1.onmessage=v,v()};var g=function(){m.port2.postMessage(0)};l=function(){setTimeout(v,0),g()}}else l=function(){setTimeout(v,0)};n.exports=y,b._asynchronizer=y,b._impl="asap",e.soon=b},"patched-v3.18.1",{requires:["yui-base"]});

YUI.add("button",function(e,t){function o(){o.superclass.constructor.apply(this,arguments)}function u(){o.superclass.constructor.apply(this,arguments)}var n=e.ButtonCore,r=n.CLASS_NAMES,i=n.ARIA_STATES,s=n.ARIA_ROLES;e.extend(o,e.Widget,{BOUNDING_TEMPLATE:n.prototype.TEMPLATE,CONTENT_TEMPLATE:null},{NAME:n.NAME,ATTRS:n.ATTRS,HTML_PARSER:{labelHTML:n._getHTMLFromNode,disabled:n._getDisabledFromNode},CLASS_NAMES:r}),e.mix(o.prototype,n.prototype),e.extend(u,o,{trigger:"click",selectedAttrName:"",initializer:function(e){var t=this,n=t.get("type"),r=n==="checkbox"?"checked":"pressed",i=e[r]||!1;t.addAttr(r,{value:i}),t.selectedAttrName=r},destructor:function(){delete this.selectedAttrName},bindUI:function(){var e=this,t=e.get("contentBox");u.superclass.bindUI.call(e),t.on(e.trigger,e.toggle,e),e.after(e.selectedAttrName+"Change",e._afterSelectedChange)},syncUI:function(){var e=this,t=e.get("contentBox"),n=e.get("type"),r=u.ARIA_ROLES,i=n==="checkbox"?r.CHECKBOX:r.TOGGLE,s=e.selectedAttrName;u.superclass.syncUI.call(e),t.set("role",i),e._uiSetSelected(e.get(s))},_afterSelectedChange:function(e){this._uiSetSelected(e.newVal)},_uiSetSelected:function(e){var t=this,n=t.get("contentBox"),r=u.ARIA_STATES,i=t.get("type"),s=i==="checkbox"?r.CHECKED:r.PRESSED;n.toggleClass(o.CLASS_NAMES.SELECTED,e),n.set(s,e)},toggle:function(){var e=this;e._set(e.selectedAttrName,!e.get(e.selectedAttrName))}},{NAME:"toggleButton",ATTRS:{type:{value:"toggle",writeOnce:"initOnly"}},HTML_PARSER:{checked:function(e){return e.hasClass(r.SELECTED)},pressed:function(e){return e.hasClass(r.SELECTED)}},ARIA_STATES:i,ARIA_ROLES:s,CLASS_NAMES:r}),e.Button=o,e.ToggleButton=u},"patched-v3.18.1",{requires:["button-core","cssbutton","widget"]});

YUI.add("button-group",function(e,t){function s(){s.superclass.constructor.apply(this,arguments)}var n="contentBox",r="click",i=e.ButtonCore.CLASS_NAMES;e.ButtonGroup=e.extend(s,e.Widget,{renderUI:function(){this.getButtons().plug(e.Plugin.Button)},bindUI:function(){var t=this,i=t.get(n);i.delegate(r,t._handleClick,e.ButtonGroup.BUTTON_SELECTOR,t),t.after("disabledChange",t._afterDisabledChange)},_afterDisabledChange:function(t){this.getButtons().each(t.newVal?e.ButtonCore.prototype.disable:e.ButtonCore.prototype.enable)},getButtons:function(){var t=this.get(n);return t.all(e.ButtonGroup.BUTTON_SELECTOR)},getSelectedButtons:function(){var e=this,t=[],n=e.getButtons(),r=s.CLASS_NAMES.SELECTED;return n.each(function(e){e.hasClass(r)&&t.push(e)}),t},getSelectedValues:function(){var t=this.getSelectedButtons(),n=[],r;return e.Array.each(t,function(e){r=e.getContent(),n.push(r)}),n},_handleClick:function(e){var t=this,n=e.target.ancestor("."+s.CLASS_NAMES.BUTTON,!0),r=t.get("type"),i=s.CLASS_NAMES.SELECTED,o=n.hasClass(i),u;r==="checkbox"?(n.toggleClass(i,!o),t.fire("selectionChange",{originEvent:e})):r==="radio"&&!o&&(u=t.getButtons(),u.removeClass(i),n.addClass(i),t.fire("selectionChange",{originEvent:e}))}},{NAME:"buttongroup",ATTRS:{type:{writeOnce:"initOnly",value:"radio"}},CLASS_NAMES:i,BUTTON_SELECTOR:"button, input[type=button], input[type=reset], input[type=submit], input[type=radio], input[type=checkbox]"})},"patched-v3.18.1",{requires:["button-plugin","cssbutton","widget"]});

YUI.add("aui-button-core",function(e,t){var n={BUTTON:e.getClassName("btn"),BUTTON_DEFAULT:e.getClassName("btn","default"),BUTTON_GROUP:e.getClassName("btn","group"),DISABLED:e.getClassName("disabled"),LABEL:e.getClassName("label"),PRIMARY:e.getClassName("btn","primary"),SELECTED:e.getClassName("active"),TOGGLE:e.getClassName("togglebtn")},r=function(e){e&&e.domType&&this._domTypeValidator(e.domType)&&this._setEarlyButtonDomType(e.domType)};r.ATTRS={cssClass:{validator:e.Lang.isString,value:""},discardDefaultButtonCssClasses:{validator:e.Lang.isBoolean,value:!1,writeOnce:!0},domType:{validator:"_domTypeValidator",writeOnce:!0},icon:{},iconElement:{valueFn:function(){return e.Node.create(this.ICON_TEMPLATE)}},iconAlign:{validator:e.Lang.isString,value:"left"}},r.HTML_PARSER={iconElement:"span"},r.getTypedButtonTemplate=function(t,n){return e.Lang.sub(t,{type:' type="'+n+'"'})},r.prototype={ICON_TEMPLATE:"<span></span>",TEMPLATE:"<button{type}></button>",initializer:function(){this.before(this.renderButtonExtUI,this,"renderUI"),this.after(this.syncButtonExtUI,this,"syncUI"),this.after({iconChange:this._afterIconChange,iconAlignChange:this._afterIconAlignChange})},renderButtonExtUI:function(){var e=this.get("cssClass");this.get("discardDefaultButtonCssClasses")||(e=[e,n.BUTTON_DEFAULT,n.BUTTON].join(" "),this.set("cssClass",e))},syncButtonExtUI:function(){this._uiSetIcon(this.get("icon")),this._setButtonRole()},_afterIconAlignChange:function(e){this._uiSetIconAlign(e.newVal)},_afterIconChange:function(e){this._uiSetIcon(e.newVal)},_domTypeValidator:function(e){return e.toLowerCase()==="button"||e.toLowerCase()==="submit"},_setButtonRole:function(){this.get("boundingBox").setAttribute("role","button")},_setEarlyButtonDomType:function(t){this.BOUNDING_TEMPLATE=e.ButtonExt.getTypedButtonTemplate(r.prototype.TEMPLATE,t)},_uiSetIcon:function(e){e&&(this.get("iconElement").set("className",e),this._uiSetIconAlign(this.get("iconAlign")))},_uiSetIconAlign:function(t){var n=this.getNode().one(e.ButtonExt.HTML_PARSER.iconElement);n||(n=this.get("iconElement")),e.Button.syncIconUI(this.get("boundingBox"),n,t)}},e.ButtonExt=r,e.ButtonCore.CLASS_NAMES=n;var i=e.Button;i.NAME="aui-button",i.CSS_PREFIX="aui-button",i.CLASS_NAMES=n,e.Button=e.Base.create(i.NAME,i,[r,e.WidgetCssClass,e.WidgetToggle],{},{getWidgetLazyConstructorFromNodeData:function(e){var t=e.getData("widgetConstructor")||{};return t.boundingBox=e,t.render=!0,t},hasWidgetLazyConstructorData:function(e){return e.getData("widgetConstructor")!==undefined},setWidgetLazyConstructorNodeData:function(e,t){e.setData("widgetConstructor",t)},syncIconUI:function(t,n,r){var i=0,s=e.config.doc.createTextNode(" ");r==="right"&&(i=null),t.insert(s,i),t.insert(n,i)}});var s=e.ToggleButton;s.NAME="togglebtn",s.CSS_PREFIX=n.TOGGLE,s.CLASS_NAMES=n,e.ToggleButton=e.Base.create(s.NAME,s,[r,e.WidgetCssClass],{},{});var o=e.ButtonGroup;o.NAME="btngroup",o.CSS_PREFIX=n.BUTTON_GROUP,o.CLASS_NAMES=n,e.mix(o.prototype,{CONTENT_TEMPLATE:null,initializer:function(){this.after("selectionChange",this._afterSelectionChange)},renderUI:function(){var t=this.get("boundingBox"),n=this.get("type");this.getButtons().each(function(t){!t.button&&!e.instanceOf(e.Widget.getByNode(t),e.Button)&&(t.addClass(e.ButtonCore.CLASS_NAMES.BUTTON_DEFAULT),t.setAttribute("role","option"),e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button))}),t.setAttrs({"aria-multiselectable":n==="checkbox"?!0:!1,role:"listbox"}),this.syncAriaSelected(this.getButtons())},item:function(t){var n,r;return r=this.getButtons().item(t),n=e.Widget.getByNode(r),e.instanceOf(n,i)?n:r},select:function(e){return this.toggleSelect(e,!0)},syncAriaSelected:function(t){var n;t.each(function(t){n=t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED),t.setAttribute("aria-selected",n)})},toggleSelect:function(t,n){var r=this.getButtons(),i=this,s=this.get("type");e.Lang.isUndefined(t)&&(t=r.getDOMNodes()),e.Lang.isArray(t)||(t=e.Array(t)),e.Array.each(t,function(t){e.Lang.isNumber(t)&&(t=r.item(t)),t=e.one(t);if(s==="checkbox")if(t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED)){if(n===!0)return}else if(n===!1)return;i._handleClick({target:t})})},unselect:function(e){return this.toggleSelect(e,!1)},_afterSelectionChange:function(){this.syncAriaSelected(this.getButtons())}},!0)},"3.1.0-deprecated.78",{requires:["button","button-group","button-plugin","aui-component","aui-widget-cssclass","aui-widget-toggle"],skinnable:!0});

YUI.add("aui-toolbar",function(e,t){var n=e.Lang.isFunction,r=e.getClassName("btn"),i=e.getClassName("btn","default"),s=e.getClassName("btn","group"),o=e.getClassName("btn","group","checkbox"),u=e.getClassName("btn","group","radio"),a=e.getClassName("btn","group","vertical"),f=e.getClassName("btn","toolbar","button");e.Toolbar=e.Component.create({NAME:"btn-toolbar",ATTRS:{children:{validator:e.Lang.isArray},toolbarRenderer:{valueFn:function(){return new e.ToolbarRenderer}}},UI_ATTRS:["children"],isSupportedWidget:function(t){return e.instanceOf(t,e.Button)||e.instanceOf(t,e.ToggleButton)||e.instanceOf(t,e.ButtonGroup)},prototype:{CONTENT_TEMPLATE:null,TEMPLATES:{button:'<button class="aui-btn">{content}</button>',icon:'<span class="{cssClass}"></span>',group:'<div class="aui-btn-group {cssClass}"></div>'},bindUI:function(){var e=this.get("boundingBox");e.delegate(["click","mousemove","focus"],this._onUserInitInteraction,"."+f+", ."+r,this)},add:function(t,n){var r=this.get("boundingBox"),i=this.get("toolbarRenderer");r.insert(i.render(e.Array(t)),n)},clear:function(){var e=this.get("boundingBox");e.get("children").remove()},getEnclosingWidget:function(t){return e.instanceOf(t,e.EventFacade)&&(t=t.domEvent?t.domEvent.target:t.target),e.Widget.getByNode(t)},item:function(t){var n=this.get("boundingBox").get("children").item(t),r;return this._initEnclosingWidgetIfNeeded(n),r=this.getEnclosingWidget(n),e.Toolbar.isSupportedWidget(r)?r:n},remove:function(e){var t=this.get("boundingBox");return t.get("children").item(e).remove()},_initEnclosingWidgetIfNeeded:function(t,n){var i,l,c,h,p,d;if(!t||t.getData("enclosingWidgetInitialized"))return;t.setData("enclosingWidgetInitialized",!0),l=e.Widget.getByNode(t),c=e.instanceOf(l,e.Button),h=e.instanceOf(l,e.ButtonGroup);if(c||h)return;i=t.ancestor("."+f+", ."+r,!0),i&&(e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button)),p=t.ancestor("."+s+", "+a,!0),p&&(p.hasClass(o)?d="checkbox":p.hasClass(u)&&(d="radio"),d&&new e.ButtonGroup({boundingBox:p,type:d,render:!0})),n&&n.type==="focus"&&t.focus()},_onUserInitInteraction:function(e){var t=e.currentTarget;this._initEnclosingWidgetIfNeeded(t,e)},_uiSetChildren:function(e){if(!e)return;this.clear(),this.add(e)}}});var l=function(){};l.prototype={TEMPLATES:{button:e.Button.prototype.TEMPLATE,group:'<div class="{cssClass}"></div>',icon:'<span class="{cssClass}"></span>'},RENDERER:{button:function(t){var n,s,o,u,a,l=t.value;a=l.domType||"button";if(e.instanceOf(l,e.Button)||e.instanceOf(l,e.ToggleButton))return l.get("boundingBox");if(e.UA.mobile&&e.UA.touchEnabled)return n=(new e.Button(l)).render(),l.title&&n.get("boundingBox").setAttribute("title",l.title),n.get("boundingBox").setAttribute("type",a),n.get("boundingBox");s=e.one(l.boundingBox||l.srcNode);if(s)try{s.setAttribute("type",a)}catch(c){}else s=e.Node.create(e.ButtonExt.getTypedButtonTemplate(this.TEMPLATES.button,a));return o=[f,l.cssClass],l.discardDefaultButtonCssClasses||o.push(r,i),s.addClass(o.join(" ")),l.id&&s.setAttribute("id",l.id),l.labelHTML&&s.append(l.labelHTML),l.label&&s.append(l.label),l.icon&&(u=e.Lang.sub(this.TEMPLATES.icon,{cssClass:l.icon}),e.Button.syncIconUI(s,u,l.iconAlign)),l.title&&s.setAttribute("title",l.title),e.Button.setWidgetLazyConstructorNodeData(s,l),s},group:function(t){var n,r=this,i=t.value,f,l=t.groupType,c=t.orientation,h=[];return e.instanceOf(i,e.ButtonGroup)?i.get("boundingBox"):(l==="checkbox"?h.push(o):l==="radio"&&h.push(u),c==="vertical"?h.push(a):h.push(s),f=e.Node.create(e.Lang.sub(r.TEMPLATES.group,{cssClass:h.join(" ")})),e.Array.each(i,function(t,s){n=r.renderNode(t),f.appendChild(n),e.Toolbar.isSupportedWidget(t)||e.Button.setWidgetLazyConstructorNodeData(n,i[s])}),f)}},render:function(t){var n,r=this;if(!t)return;return n=e.one(e.config.doc).invoke("createDocumentFragment"),e.Array.each(t,function(e){n.appendChild(r.renderNode(e))}),n},renderNode:function(t){var r,i;if(e.Toolbar.isSupportedWidget(t))return t.render().get("boundingBox");r=this._getChildRenderHints(t),i=this.RENDERER[r.renderer];if(n(i))return i.call(this,r)},_getChildRenderHints:function(t){var n=null,r="normal",i;return e.instanceOf(t,e.Button)?i="button":e.instanceOf(t,e.ButtonGroup)?i="group":e.Lang.isArray(t)?(i="group",n=e.Lang.isString(t[0])?t.shift():null,r=e.Lang.isString(t[0])?t.shift():"normal"):i="button",{groupType:n,orientation:r,renderer:i,value:t}}},e.ToolbarRenderer=l},"3.1.0-deprecated.78",{requires:["arraylist","arraylist-add","aui-component","aui-button-core"]});

YUI.add("aui-widget-toolbars",function(e,t){var n=e.WidgetStdMod,r=function(){};r.ATTRS={toolbars:{},toolbarPosition:{value:{body:n.AFTER,footer:n.AFTER,header:n.BEFORE}},toolbarCssClass:{value:{body:"",footer:"",header:""}}},r.prototype={toolbars:null,initializer:function(){var t=this;t.toolbars={},e.after(t._syncUIToolbars,t,"syncUI"),t.after("toolbarsChange",t._afterToolbarsChange)},addToolbar:function(t,n){var r=this;return n=r.getToolbarSection(n),r.removeToolbar(n),e.instanceOf(t,e.Toolbar)||(t=new e.Toolbar({cssClass:this.get("toolbarCssClass."+n)||"",children:t,render:r.getStdModNode(n,!0)})),t.addTarget(r),r.toolbars[n]=t,r.setStdModContent(n,t.get("boundingBox"),r.get("toolbarPosition."+n)),r._syncPrimaryButtonUI(),t},getToolbar:function(e){var t=this;return t.toolbars[t.getToolbarSection(e)]},getToolbarSection:function(e){return e||n.FOOTER},removeToolbar:function(e){var t=this,n=t.toolbars[t.getToolbarSection(e)];return n&&n.destroy(),n},_syncPrimaryButtonUI:function(){var t=this,n=t.get("boundingBox").one("."+e.ButtonCore.CLASS_NAMES.PRIMARY);n&&n.focus().focus()},_syncUIToolbars:function(){var e=this;e._uiSetToolbars(this.get("toolbars"))},_uiSetToolbars:function(t){var n=this;e.each(t,e.bind(n.addToolbar,n))}},e.WidgetToolbars=r},"3.1.0-deprecated.78",{requires:["widget-stdmod","aui-toolbar"]});

