AUI.add("liferay-sign-in-modal",function(a){var c="signinmodal";var b=a.config.win;var d=a.Component.create({ATTRS:{resetFormValidator:{value:true},signInPortlet:{setter:a.one,value:"#p_p_id_58_"}},EXTENDS:a.Plugin.Base,NAME:c,NS:c,prototype:{initializer:function(g){var e=this;var f=e.get("signInPortlet");if(f){e._signInPortletBody=f.one(".portlet-body")}var i=e.get("host");e._host=i;e._signInPortlet=f;e._signInURL=i.attr("href");if(f){var j=f.one("form");if(j){var h=Liferay.Form.get(j.attr("id"));e._formValidator=h.formValidator;e._hasSignInForm=j.hasClass("sign-in-form")}}e._bindUI()},_bindUI:function(){var e=this;e._host.on("click",a.bind("_load",e))},_load:function(f){var e=this;f.preventDefault();if(e._signInPortletBody&&e._hasSignInForm){e._loadDOM()}else{e._loadIO()}},_loadDOM:function(){var e=this;var f=e._signInPortletBody;if(!e._originalParentNode){e._originalParentNode=f.ancestor()}e._setModalContent(f);Liferay.Util.focusFormField("input:text")},_loadIO:function(){var e=this;var f=Liferay.Util.addParams("windowState=exclusive",e._signInURL);a.io.request(f,{on:{failure:a.bind("_redirectPage",e),success:function(h,j,i){var g=this.get("responseData");if(g){e._setModalContent(g)}else{e._redirectPage()}}}})},_redirectPage:function(){var e=this;b.location.href=e._signInURL},_setModalContent:function(g){var e=this;var f=Liferay.Util.getWindow(c);if(!f){Liferay.Util.openWindow({dialog:{after:{visibleChange:function(j){var h=e._signInPortletBody;var k=e._formValidator;if(k&&e.get("resetFormValidator")){k.resetAllFields()}if(!j.newVal&&h){var i=e._originalParentNode;if(i){i.append(h)}}}},height:390,width:560},id:c,title:'\u767b\u5f55'},function(i){var h=i.bodyNode;h.plug(a.Plugin.ParseContent);h.setContent(g)})}else{f.bodyNode.setContent(g);f.show()}}}});Liferay.SignInModal=d},"",{requires:["aui-base","aui-component","aui-io-request","aui-parse-content","liferay-portlet-url","liferay-util-window","plugin"]});AUI.add("liferay-widget-zindex",function(a){var d=a.Lang;var b="host";var c=a.Component.create({EXTENDS:a.Plugin.Base,NAME:"widgetzindex",NS:"zindex",prototype:{initializer:function(){var e=this;var f=e.get(b);if(!f.get("rendered")&&f.get("visible")){e._setHostZIndex()}e.onHostEvent("visibleChange",function(g){if(g.newVal){e._setHostZIndex()}})},_setHostZIndex:function(){var e=this;e.get(b).set("zIndex",++Liferay.zIndex.WINDOW)}}});Liferay.WidgetZIndex=c},"",{requires:["aui-modal","plugin"]});YUI.add("dd-drop-plugin",function(e,t){var n=function(e){e.node=e.host,n.superclass.constructor.apply(this,arguments)};n.NAME="dd-drop-plugin",n.NS="drop",e.extend(n,e.DD.Drop),e.namespace("Plugin"),e.Plugin.Drop=n},"patched-v3.11.0",{requires:["dd-drop"]});YUI.add("dd-ddm-drop",function(e,t){e.mix(e.DD.DDM,{_noShim:!1,_activeShims:[],_hasActiveShim:function(){return this._noShim?!0:this._activeShims.length},_addActiveShim:function(e){this._activeShims.push(e)},_removeActiveShim:function(t){var n=[];e.Array.each(this._activeShims,function(e){e._yuid!==t._yuid&&n.push(e)}),this._activeShims=n},syncActiveShims:function(t){e.later(0,this,function(t){var n=t?this.targets:this._lookup();e.Array.each(n,function(e){e.sizeShim.call(e)},this)},t)},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:!0,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(e){return this.validDrops.push(e),this},_removeValid:function(t){var n=[];return e.Array.each(this.validDrops,function(e){e!==t&&n.push(e)}),this.validDrops=n,this},isOverTarget:function(e){if(this.activeDrag&&e){var t=this.activeDrag.mouseXY,n,r=this.activeDrag.get("dragMode"),i,s=e.shim;if(t&&this.activeDrag){i=this.activeDrag.region;if(r===this.STRICT)return this.activeDrag.get("dragNode").inRegion(e.region,!0,i);if(e&&e.shim)return r===this.INTERSECT&&this._noShim?(n=i||this.activeDrag.get("node"),e.get("node").intersect(n,e.region).inRegion):(this._noShim&&(s=e.get("node")),s.intersect({top:t[1],bottom:t[1],left:t[0],right:t[0]},e.region).inRegion)}}return!1},clearCache:function(){this.validDrops=[],this.otherDrops={},this._activeShims=[]},_activateTargets:function(){this._noShim=!0,this.clearCache(),e.Array.each(this.targets,function(e){e._activateShim([]),e.get("noShim")===!0&&(this._noShim=!1)},this),this._handleTargetOver()},getBestMatch:function(t,n){var r=null,i=0,s;return e.Array.each(t,function(e){var t=this.activeDrag.get("dragNode").intersect(e.get("node"));e.region.area=t.area,t.inRegion&&t.area>i&&(i=t.area,r=e)},this),n?(s=[],e.Array.each(t,function(e){e!==r&&s.push(e)},this),[r,s]):r},_deactivateTargets:function(){var t=[],n,r=this.activeDrag,i=this.activeDrop;r&&i&&this.otherDrops[i]?(r.get("dragMode")?(n=this.getBestMatch(this.otherDrops,!0),i=n[0],t=n[1]):(t=this.otherDrops,delete t[i]),r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),i&&(i.fire("drop:hit",{drag:r,drop:i,others:t}),r.fire("drag:drophit",{drag:r,drop:i,others:t}))):r&&r.get("dragging")&&(r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),r.fire("drag:dropmiss",{pageX:r.lastXY[0],pageY:r.lastXY[1]})),this.activeDrop=null,e.Array.each(this.targets,function(e){e._deactivateShim([])},this)},_dropMove:function(){this._hasActiveShim()?this._handleTargetOver():e.Array.each(this.otherDrops,function(e){e._handleOut.apply(e,[])})},_lookup:function(){if(!this.useHash||this._noShim)return this.validDrops;var t=[];return e.Array.each(this.validDrops,function(e){e.shim&&e.shim.inViewportRegion(!1,e.region)&&t.push(e)}),t},_handleTargetOver:function(){var t=this._lookup();e.Array.each(t,function(e){e._handleTargetOver.call(e)},this)},_regTarget:function(e){this.targets.push(e)},_unregTarget:function(t){var n=[],r;e.Array.each(this.targets,function(e){e!==t&&n.push(e)},this),this.targets=n,r=[],e.Array.each(this.validDrops,function(e){e!==t&&r.push(e)}),this.validDrops=r},getDrop:function(t){var n=!1,r=e.one(t);return r instanceof e.Node&&e.Array.each(this.targets,function(e){r.compareTo(e.get("node"))&&(n=e)}),n}},!0)},"patched-v3.11.0",{requires:["dd-ddm"]});YUI.add("event-tap",function(e,t){function a(t,n){n=n||e.Object.values(u),e.Array.each(n,function(e){var n=t[e];n&&(n.detach(),t[e]=null)})}var n=e.config.doc,r=e.Event._GESTURE_MAP,i=r.start,s="tap",o=/pointer/i,u={START:"Y_TAP_ON_START_HANDLE",END:"Y_TAP_ON_END_HANDLE",CANCEL:"Y_TAP_ON_CANCEL_HANDLE"};e.Event.define(s,{publishConfig:{preventedFn:function(e){var t=e.target.once("click",function(e){e.preventDefault()});setTimeout(function(){t.detach()},100)}},processArgs:function(e,t){if(!t){var n=e[3];return e.splice(3,1),n}},on:function(e,t,n){t[u.START]=e.on(i,this._start,this,e,t,n)},detach:function(e,t,n){a(t)},delegate:function(e,t,n,r){t[u.START]=e.delegate(i,function(r){this._start(r,e,t,n,!0)},r,this)},detachDelegate:function(e,t,n){a(t)},_start:function(e,t,n,i,s){var a={canceled:!1,eventType:e.type},f=n.preventMouse||!1;if(e.button&&e.button===3)return;if(e.touches&&e.touches.length!==1)return;a.node=s?e.currentTarget:t,e.touches?a.startXY=[e.touches[0].pageX,e.touches[0].pageY]:a.startXY=[e.pageX,e.pageY],e.touches?(n[u.END]=t.once("touchend",this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once("touchcancel",this.detach,this,t,n,i,s,a),n.preventMouse=!0):a.eventType.indexOf("mouse")!==-1&&!f?(n[u.END]=t.once("mouseup",this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once("mousecancel",this.detach,this,t,n,i,s,a)):a.eventType.indexOf("mouse")!==-1&&f?n.preventMouse=!1:o.test(a.eventType)&&(n[u.END]=t.once(r.end,this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once(r.cancel,this.detach,this,t,n,i,s,a))},_end:function(e,t,n,r,i,o){var f=o.startXY,l,c,h=15;n._extra&&n._extra.sensitivity>=0&&(h=n._extra.sensitivity),e.changedTouches?(l=[e.changedTouches[0].pageX,e.changedTouches[0].pageY],c=[e.changedTouches[0].clientX,e.changedTouches[0].clientY]):(l=[e.pageX,e.pageY],c=[e.clientX,e.clientY]),Math.abs(l[0]-f[0])<=h&&Math.abs(l[1]-f[1])<=h&&(e.type=s,e.pageX=l[0],e.pageY=l[1],e.clientX=c[0],e.clientY=c[1],e.currentTarget=o.node,r.fire(e)),a(n,[u.END,u.CANCEL])}})},"patched-v3.11.0",{requires:["node-base","event-base","event-touch","event-synthetic"]});YUI.add("aui-toolbar",function(e,t){var n=e.Lang,r=n.isArray,i=n.isString,s=n.isFunction,o="boundingBox",u="btn",a="button",f="checkbox",l="children",c="click",h="createDocumentFragment",p="enclosingWidgetInitialized",d="focus",v="group",m="id",g="mousemove",y="normal",b="radio",w="title",E="toolbar",S="toolbarRenderer",x="vertical",T=".",N=" ",C=e.getClassName,k=C(u),L=C(u,v),A=C(u,v,f),O=C(u,v,b),M=C(u,v,x);e.Toolbar=e.Component.create({NAME:E,ATTRS:{children:{validator:r},toolbarRenderer:{valueFn:function(){return new e.ToolbarRenderer}}},UI_ATTRS:[l],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:'',icon:'',group:'
'},bindUI:function(){var e=this,t=e.get(o);t.delegate([c,g,d],e._onUserInitInteraction,T+k,e)},add:function(t,n){var r=this,i=r.get(o),s=r.get(S);i.insert(s.render(e.Array(t)),n)},clear:function(){var e=this,t=e.get(o);t.get(l).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,r=n.get(o).get(l).item(t),i;return n._initEnclosingWidgetIfNeeded(r),i=n.getEnclosingWidget(r),e.Toolbar.isSupportedWidget(i)?i:r},remove:function(e){var t=this,n=t.get(o);return n.get(l).item(e).remove()},_onUserInitInteraction:function(e){var t=this,n=e.currentTarget;t._initEnclosingWidgetIfNeeded(n)},_initEnclosingWidgetIfNeeded:function(t){if(!t||t.getData(p))return;t.setData(p,!0);var n=e.Widget.getByNode(t),r=e.instanceOf(n,e.Button)||e.instanceOf(n,e.ToggleButton),i=e.instanceOf(n,e.ButtonGroup);if(r||i)return;var s=t.ancestor(T+k,!0);s&&(e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button));var o=t.ancestor(T+L,!0);if(o){var u;o.hasClass(A)?u=f:o.hasClass(O)&&(u=b),u&&new e.ButtonGroup({boundingBox:o,type:u,render:!0})}},_uiSetChildren:function(e){var t=this;if(!e)return;t.clear(),t.add(e)}}});var _=function(){};_.prototype={TEMPLATES:{button:e.Button.prototype.TEMPLATE,group:'
',icon:''},RENDERER:{button:function(t){var r=this,i=t.value,s=i.domType||a,u,f;if(e.instanceOf(i,e.Button)||e.instanceOf(i,e.ToggleButton))return i.get(o);f=e.one(i.boundingBox||i.srcNode);if(f)try{f.setAttribute("type",s)}catch(l){}else f=e.Node.create(e.ButtonExt.getTypedButtonTemplate(r.TEMPLATES.button,s));u=[k,i.cssClass],i.primary&&u.push(e.ButtonCore.CLASS_NAMES.PRIMARY),f.addClass(u.join(N)),i.id&&f.setAttribute(m,i.id),i.label&&f.append(i.label);if(i.icon){var c=n.sub(r.TEMPLATES.icon,{cssClass:i.icon});e.Button.syncIconUI(f,c,i.iconAlign)}return i.title&&f.setAttribute(w,i.title),e.Button.setWidgetLazyConstructorNodeData(f,i),f},group:function(t){var r=this,i=t.value,s=t.groupType,u=t.orientation,a=[];if(e.instanceOf(i,e.ButtonGroup))return i.get(o);s===f?a.push(A):s===b&&a.push(O),u===x&&a.push(M);var l=e.Node.create(n.sub(r.TEMPLATES.group,{cssClass:a.join(N)}));return e.Array.each(i,function(t,n){var s=r.renderNode(t);l.appendChild(s),e.Toolbar.isSupportedWidget(t)||e.Button.setWidgetLazyConstructorNodeData(s,i[n])}),l}},render:function(t){var n=this;if(!t)return;var r=e.one(e.config.doc).invoke(h);return e.Array.each(t,function(e){r.appendChild(n.renderNode(e))}),r},renderNode:function(t){var n=this,r,i;if(e.Toolbar.isSupportedWidget(t))return t.render().get(o);r=n._getChildRenderHints(t),i=n.RENDERER[r.renderer];if(s(i))return i.call(n,r)},_getChildRenderHints:function(t){var n=null,s=y,o;return e.instanceOf(t,e.Button)?o=a:e.instanceOf(t,e.ButtonGroup)?o=v:r(t)?(o=v,n=i(t[0])?t.shift():null,s=i(t[0])?t.shift():y):o=a,{groupType:n,orientation:s,renderer:o,value:t}}},e.ToolbarRenderer=_},"2.0.0",{requires:["arraylist","arraylist-add","aui-component","aui-button-core"]});YUI.add("aui-button-core",function(e,t){var n=e.Lang,r=n.isArray,i=n.isNumber,s=n.isString,o=n.isUndefined,u="active",a="boundingBox",f="btn",l="btngroup",c="button",h="className",p="disabled",d="group",v="i",m="icon",g="iconAlign",y="iconElement",b="label",w="left",E="primary",S="right",x="submit",T="syncUI",N="togglebtn",C="checkbox",k="type",L="widgetConstructor",A=e.getClassName,O={BUTTON:A(f),BUTTON_GROUP:A(f,d),DISABLED:A(p),LABEL:A(b),PRIMARY:A(f,E),SELECTED:A(u),TOGGLE:A(N)},M=function(e){var t=this;t._setEarlyButtonDomType(e.domType)};M.ATTRS={domType:{writeOnce:!0,validator:function(e){return e.toLowerCase()===c||e.toLowerCase()===x}},icon:{},iconElement:{valueFn:function(){var t=this;return e.Node.create(t.ICON_TEMPLATE)}},iconAlign:{value:w,validator:s},primary:{value:!1}},M.HTML_PARSER={iconElement:v},M.getTypedButtonTemplate=function(e,t){return n.sub(e,{type:t?' type="'+t+'"':""})},M.prototype={TEMPLATE:"",ICON_TEMPLATE:"",iconElement:null,initializer:function(){var e=this;e.after(e.syncButtonExtUI,e,T),e.after({iconChange:e._afterIconChange,iconAlignChange:e._afterIconAlignChange,primaryChange:e._afterPrimaryChange})},syncButtonExtUI:function(){var e=this;e._uiSetIcon(e.get(m)),e._uiSetPrimary(e.get(E))},_afterIconChange:function(e){var t=this;t._uiSetIcon(e.newVal)},_afterIconAlignChange:function(e){var t=this;t._uiSetIconAlign(e.newVal)},_afterPrimaryChange:function(e){var t=this;t._uiSetPrimary(e.newVal)},_setEarlyButtonDomType:function(t){var n=this;n.BOUNDING_TEMPLATE=e.ButtonExt.getTypedButtonTemplate(M.prototype.TEMPLATE,t)},_uiSetPrimary:function(e){var t=this;t.get(a).toggleClass(O.PRIMARY,e)},_uiSetIcon:function(e){var t=this;if(!e)return;var n=t.get(y);n.set(h,e),t._uiSetIconAlign(t.get(g))},_uiSetIconAlign:function(t){var n=this;e.Button.syncIconUI(n.get(a),n.get(y),t)}},e.ButtonExt=M;var _=e.ButtonCore;_.CLASS_NAMES=O,_.prototype._uiSetLabel=function(e){return function(t){var n=this,r=n.getNode();if(t!==""||r.one("."+_.CLASS_NAMES.LABEL))return e.apply(n,arguments)}}(_.prototype._uiSetLabel);var D=e.Button;D.NAME=f,D.CSS_PREFIX=O.BUTTON,D.CLASS_NAMES=O,e.Button=e.Base.create(D.NAME,D,[M,e.WidgetCssClass,e.WidgetToggle],{},{CSS_PREFIX:O.BUTTON,getWidgetLazyConstructorFromNodeData:function(e){var t=e.getData(L)||{};return t.boundingBox=e,t.render=!0,t},hasWidgetLazyConstructorData:function(e){return e.getData(L)!==undefined},setWidgetLazyConstructorNodeData:function(e,t){e.setData(L,t)},syncIconUI:function(t,n,r){var i=e.config.doc.createTextNode(" "),s=0;r===S&&(s=null),t.insert(i,s),t.insert(n,s)}});var P=e.ToggleButton;P.NAME=N,P.CSS_PREFIX=O.TOGGLE,P.CLASS_NAMES=O,e.ToggleButton=e.Base.create(P.NAME,P,[M,e.WidgetCssClass],{},{});var H=e.ButtonGroup;H.NAME=l,H.CSS_PREFIX=O.BUTTON_GROUP,H.CLASS_NAMES=O,e.mix(H.prototype,{CONTENT_TEMPLATE:null,item:function(t){var n=this,r=n.getButtons().item(t),i=e.Widget.getByNode(r);return e.instanceOf(i,D)?i:r},renderUI:function(){var t=this;t.getButtons().each(function(t){!t.button&&!e.instanceOf(e.Widget.getByNode(t),e.Button)&&(e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button))})},select:function(e){var t=this;return t.toggleSelect(e,!0)},toggleSelect:function(t,n){var s=this,u=s.get(k),a=s.getButtons();o(t)&&(t=a.getDOMNodes()),r(t)||(t=e.Array(t)),e.Array.each(t,function(t){i(t)&&(t=a.item(t)),t=e.one(t);if(u===C)if(t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED)){if(n===!0)return}else if(n===!1)return;s._handleClick({target:t})})},unselect:function(e){var t=this;return t.toggleSelect(e,!1)}},!0)},"2.0.0",{requires:["button","button-group","button-plugin","aui-component","aui-widget-cssclass","aui-widget-toggle"]});YUI.add("dd-ddm",function(e,t){e.mix(e.DD.DDM,{_pg:null,_debugShim:!1,_activateTargets:function(){},_deactivateTargets:function(){},_startDrag:function(){this.activeDrag&&this.activeDrag.get("useShim")&&(this._shimming=!0,this._pg_activate(),this._activateTargets())},_endDrag:function(){this._pg_deactivate(),this._deactivateTargets()},_pg_deactivate:function(){this._pg.setStyle("display","none")},_pg_activate:function(){this._pg||this._createPG();var e=this.activeDrag.get("activeHandle"),t="auto";e&&(t=e.getStyle("cursor")),t==="auto"&&(t=this.get("dragCursor")),this._pg_size(),this._pg.setStyles({top:0,left:0,display:"block",opacity:this._debugShim?".5":"0",cursor:t})},_pg_size:function(){if(this.activeDrag){var t=e.one("body"),n=t.get("docHeight"),r=t.get("docWidth");this._pg.setStyles({height:n+"px",width:r+"px"})}},_createPG:function(){var t=e.Node.create("
"),n=e.one("body"),r;t.setStyles({top:"0",left:"0",position:"absolute",zIndex:"99999",overflow:"hidden",backgroundColor:"red",display:"none",height:"5px",width:"5px"}),t.set("id",e.stamp(t)),t.addClass(e.DD.DDM.CSS_PREFIX+"-shim"),n.prepend(t),this._pg=t,this._pg.on("mousemove",e.throttle(e.bind(this._move,this),this.get("throttleTime"))),this._pg.on("mouseup",e.bind(this._end,this)),r=e.one("win"),e.on("window:resize",e.bind(this._pg_size,this)),r.on("scroll",e.bind(this._pg_size,this))}},!0)},"patched-v3.11.0",{requires:["dd-ddm-base","event-resize"]});YUI.add("resize-plugin",function(e,t){var n=function(t){t.node=e.Widget&&t.host instanceof e.Widget?t.host.get("boundingBox"):t.host,t.host instanceof e.Widget?t.widget=t.host:t.widget=!1,n.superclass.constructor.call(this,t)};n.NAME="resize-plugin",n.NS="resize",n.ATTRS={node:{value:undefined},widget:{value:undefined}},e.extend(n,e.Resize,{initializer:function(e){this.set("node",e.node),this.set("widget",e.widget),this.on("resize:resize",function(e){this._correctDimensions(e)})},_correctDimensions:function(e){var t=this.get("node"),n={old:t.getX(),cur:e.currentTarget.info.left},r={old:t.getY(),cur:e.currentTarget.info.top};this.get("widget")&&this._setWidgetProperties(e,n,r),this._isDifferent(n.old,n.cur)&&t.set("x",n.cur),this._isDifferent(r.old,r.cur)&&t.set("y",r.cur)},_setWidgetProperties:function(t,n,r){var i=this.get("widget"),s=i.get("height"),o=i.get("width"),u=t.currentTarget.info.offsetWidth-t.currentTarget.totalHSurrounding,a=t.currentTarget.info.offsetHeight-t.currentTarget.totalVSurrounding;this._isDifferent(s,a)&&i.set("height",a),this._isDifferent(o,u)&&i.set("width",u),i.hasImpl&&i.hasImpl(e.WidgetPosition)&&(this._isDifferent(i.get("x"),n.cur)&&i.set("x",n.cur),this._isDifferent(i.get("y"),r.cur)&&i.set("y",r.cur))},_isDifferent:function(e,t){var n=!1;return e!==t&&(n=t),n}}),e.namespace("Plugin"),e.Plugin.Resize=n},"patched-v3.11.0",{requires:["resize-base","plugin"],optional:["resize-constrain"]});YUI.add("aui-widget-toolbars",function(e,t){var n=e.WidgetStdMod,r="boundingBox",i="toolbars",s="syncUI",o="toolbarsChange",u=function(){};u.ATTRS={toolbars:{},toolbarPosition:{value:{body:n.AFTER,footer:n.AFTER,header:n.BEFORE}}},u.prototype={toolbars:null,initializer:function(){var t=this;t.toolbars={},e.after(t._syncUIToolbars,t,s),t.after(o,t._afterToolbarsChange)},addToolbar:function(t,n){var i=this;return n=i.getToolbarSection(n),i.removeToolbar(n),e.instanceOf(t,e.Toolbar)||(t=new e.Toolbar({children:t,render:i.getStdModNode(n,!0)})),t.addTarget(i),i.toolbars[n]=t,i.setStdModContent(n,t.get(r),i.get("toolbarPosition."+n)),i._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(r).one("."+e.ButtonCore.CLASS_NAMES.PRIMARY);n&&n.focus().focus()},_syncUIToolbars:function(){var e=this;e._uiSetToolbars(this.get(i))},_uiSetToolbars:function(t){var n=this;e.each(t,e.bind(n.addToolbar,n))}},e.WidgetToolbars=u},"2.0.0",{requires:["widget-stdmod","aui-toolbar"]});YUI.add("dd-delegate",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)},r="container",i="nodes",s=e.Node.create("
Temp Node
");e.extend(n,e.Base,{_bubbleTargets:e.DD.DDM,dd:null,_shimState:null,_handles:null,_onNodeChange:function(e){this.set("dragNode",e.newVal)},_afterDragEnd:function(){e.DD.DDM._noShim=this._shimState,this.set("lastNode",this.dd.get("node")),this.get("lastNode").removeClass(e.DD.DDM.CSS_PREFIX+"-dragging"),this.dd._unprep(),this.dd.set("node",s)},_delMouseDown:function(t){var n=t.currentTarget,r=this.dd,s=n,o=this.get("dragConfig");n.test(this.get(i))&&!n.test(this.get("invalid"))&&(this._shimState=e.DD.DDM._noShim,e.DD.DDM._noShim=!0,this.set("currentNode",n),r.set("node",n),o&&o.dragNode?s=o.dragNode:r.proxy&&(s=e.DD.DDM._proxy),r.set("dragNode",s),r._prep(),r.fire("drag:mouseDown",{ev:t}))},_onMouseEnter:function(){this._shimState=e.DD.DDM._noShim,e.DD.DDM._noShim=!0},_onMouseLeave:function(){e.DD.DDM._noShim=this._shimState},initializer:function(){this._handles=[];var t=this.get("dragConfig")||{},n=this.get(r);t.node=s.cloneNode(!0),t.bubbleTargets=this,this.get("handles")&&(t.handles=this.get("handles")),this.dd=new e.DD.Drag(t),this.dd.after("drag:end",e.bind(this._afterDragEnd,this)),this.dd.on("dragNodeChange",e.bind(this._onNodeChange,this)),this.dd.after("drag:mouseup",function(){this._unprep()}),this._handles.push(e.delegate(e.DD.Drag.START_EVENT,e.bind(this._delMouseDown,this),n,this.get(i))),this._handles.push(e.on("mouseenter",e.bind(this._onMouseEnter,this),n)),this._handles.push(e.on("mouseleave",e.bind(this._onMouseLeave,this),n)),e.later(50,this,this.syncTargets),e.DD.DDM.regDelegate(this)},syncTargets:function(){if(!e.Plugin.Drop||this.get("destroyed"))return;var t,n,s;return this.get("target")&&(t=e.one(this.get(r)).all(this.get(i)),n=this.dd.get("groups"),s=this.get("dragConfig"),s&&s.groups&&(n=s.groups),t.each(function(e){this.createDrop(e,n)},this)),this},createDrop:function(t,n){var r={useShim:!1,bubbleTargets:this};return t.drop||t.plug(e.Plugin.Drop,r),t.drop.set("groups",n),t},destructor:function(){this.dd&&this.dd.destroy();if(e.Plugin.Drop){var t=e.one(this.get(r)).all(this.get(i));t.unplug(e.Plugin.Drop)}e.Array.each(this._handles,function(e){e.detach()})}},{NAME:"delegate",ATTRS:{container:{value:"body"},nodes:{value:".dd-draggable"},invalid:{value:"input, select, button, a, textarea"},lastNode:{value:s},currentNode:{value:s},dragNode:{value:s},over:{value:!1},target:{value:!1},dragConfig:{value:null},handles:{value:null}}}),e.mix(e.DD.DDM,{_delegates:[],regDelegate:function(e){this._delegates.push(e)},getDelegate:function(t){var n=null;return t=e.one(t),e.Array.each(this._delegates,function(e){t.test(e.get(r))&&(n=e)},this),n}}),e.namespace("DD"),e.DD.Delegate=n},"patched-v3.11.0",{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]});YUI.add("button",function(e,t){function s(){s.superclass.constructor.apply(this,arguments)}function o(){s.superclass.constructor.apply(this,arguments)}var n=e.ButtonCore.CLASS_NAMES,r=e.ButtonCore.ARIA_STATES,i=e.ButtonCore.ARIA_ROLES;e.extend(s,e.Widget,{BOUNDING_TEMPLATE:e.ButtonCore.prototype.TEMPLATE,CONTENT_TEMPLATE:null,initializer:function(e){this._host=this.get("boundingBox"),e.disabled&&this.set("disabled",e.disabled)},bindUI:function(){var e=this;e.after("labelChange",e._afterLabelChange),e.after("disabledChange",e._afterDisabledChange)},syncUI:function(){var t=this;e.ButtonCore.prototype._uiSetLabel.call(t,t.get("label")),e.ButtonCore.prototype._uiSetDisabled.call(t,t.get("disabled"))},_afterLabelChange:function(t){e.ButtonCore.prototype._uiSetLabel.call(this,t.newVal)},_afterDisabledChange:function(t){e.ButtonCore.prototype._uiSetDisabled.call(this,t.newVal)}},{NAME:"button",ATTRS:{label:{value:e.ButtonCore.ATTRS.label.value}},HTML_PARSER:{label:function(e){return this._host=e,this._getLabel()},disabled:function(e){return e.getDOMNode().disabled}},CLASS_NAMES:n}),e.mix(s.prototype,e.ButtonCore.prototype),e.extend(o,s,{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");o.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=o.ARIA_ROLES,i=n==="checkbox"?r.CHECKBOX:r.TOGGLE,s=e.selectedAttrName;o.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=o.ARIA_STATES,i=t.get("type"),u=i==="checkbox"?r.CHECKED:r.PRESSED;n.toggleClass(s.CLASS_NAMES.SELECTED,e),n.set(u,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(n.SELECTED)},pressed:function(e){return e.hasClass(n.SELECTED)}},ARIA_STATES:r,ARIA_ROLES:i,CLASS_NAMES:n}),e.Button=s,e.ToggleButton=o},"patched-v3.11.0",{requires:["button-core","cssbutton","widget"]});AUI.add("liferay-util-window",function(a){var d=a.Lang;var c=a.DOM;var f=Liferay.Util;var b=f.Window;var e=a.Component.create({NAME:a.Modal.NAME,ATTRS:{autoHeight:{value:false},autoHeightRatio:{value:0.95},autoSizeNode:{setter:a.one},autoWidth:{value:false},autoWidthRatio:{value:0.95}},EXTENDS:a.Modal,prototype:{}});a.mix(b,{DEFAULTS:{centered:true,modal:true,headerContent:" ",visible:true,zIndex:Liferay.zIndex.WINDOW},IFRAME_SUFFIX:"_iframe_",TITLE_TEMPLATE:"

",_winResizeHandler:null,getByChild:function(i){var g=this;var h=a.one(i).ancestor(".modal",true);return a.Widget.getByNode(h)},getById:function(h){var g=this;return g._map[h]},getWindow:function(h){var g=this;g._ensureDefaultId(h);var i=g._getWindow(h);g._setWindowDefaultSizeIfNeeded(i);g._bindDOMWinResizeIfNeeded();i.render();return i},hideByChild:function(h){var g=this;return g.getByChild(h).hide()},refreshByChild:function(i){var g=this;var h=g.getByChild(i);if(h&&h.io){h.io.start()}},_bindDOMWinResizeIfNeeded:function(){var g=this;if(!g._winResizeHandler){g._winResizeHandler=a.getWin().after("windowresize",g._syncWindowsUI,g)}},_bindWindowHooks:function(j,i){var g=this;var m=j.get("id");var h=i.openingWindow;var l=i.refreshWindow;j._opener=h;j._refreshWindow=l;j.after("destroy",function(n){g._unregister(j);j=null});var k=j._liferayHandles;k.push(Liferay.after("hashChange",function(n){j.iframe.set("uri",n.uri)}));k.push(Liferay.after("popupReady",function(o){var p=m+g.IFRAME_SUFFIX;if(o.windowName===p){o.dialog=j;o.details[0].dialog=j;if(o.doc){f.afterIframeLoaded(o);var n=o.win.Liferay.Util;n.Window._opener=j._opener;n.Window._name=m}j.iframe.node.focus()}}))},_ensureDefaultId:function(h){var g=this;if(!d.isValue(h.id)){h.id=a.guid()}if(!h.iframeId){h.iframeId=h.id+g.IFRAME_SUFFIX}},_getWindow:function(j){var h=this;var n=j.id;var k=h._getWindowConfig(j);var g=h._getDialogIframeConfig(j);var l=h.getById(n);if(!l){var m=a.Node.create(h.TITLE_TEMPLATE);if(j.stack!==false){a.mix(k,{plugins:[Liferay.WidgetZIndex]})}l=new e(a.merge({headerContent:m,id:n},k));l.titleNode=m;h._register(l);h._bindWindowHooks(l,j)}else{if(!j.zIndex&&l.hasPlugin("zindex")){delete k.zIndex}var i=j.openingWindow;l._opener=i;l._refreshWindow=j.refreshWindow;h._map[n]._opener=i;l.setAttrs(k)}if(g){l.plug(a.Plugin.DialogIframe,g)}if(!d.isValue(j.title)){j.title=h.DEFAULTS.headerContent}l.titleNode.html(j.title);l.fillHeight(l.bodyNode);return l},_getWindowConfig:function(i){var h=this;var k=a.merge(h.DEFAULTS,i.dialog);var g=k.height;var j=k.width;if(g==="auto"||g===""||g===undefined||g>c.winHeight()){k.autoHeight=true}if(j==="auto"||j===""||j===undefined||j>c.winWidth()){k.autoWidth=true}k.id=i.id;delete k.headerContent;return k},_getDialogIframeConfig:function(i){var h=this;var g;var k=i.iframeId;var j=i.uri;if(j){if(i.cache===false){j=Liferay.Util.addParams(a.guid()+"="+d.now(),j)}g=a.merge(i.dialogIframe,{bindLoadHandler:function(){var l=this;var m=l.get("host");var n=false;var o=m._liferayHandles;o.push(Liferay.on("popupReady",function(p){l.fire("load",p);n=true}));o.push(l.node.on("load",function(p){if(!n){Liferay.fire("popupReady",{windowName:k})}n=false}))},iframeId:k,uri:j})}return g},_register:function(h){var g=this;var i=h.get("id");h._liferayHandles=[];g._map[i]=h;g._map[i+g.IFRAME_SUFFIX]=h},_setWindowDefaultSizeIfNeeded:function(k){var h=this;var i=k.get("autoSizeNode");if(k.get("autoHeight")){var g;if(i){g=i.get("offsetHeight")}else{g=c.winHeight()}g*=k.get("autoHeightRatio");k.set("height",g)}if(k.get("autoWidth")){var j;if(i){j=i.get("offsetWidth")}else{j=c.winWidth()}j*=k.get("autoWidthRatio");k.set("width",j)}},_syncWindowsUI:function(){var g=this;var h=g._map;a.each(h,function(i){if(i.get("visible")){g._setWindowDefaultSizeIfNeeded(i);i.align()}})},_unregister:function(h){var g=this;var i=h.get("id");delete g._map[i];delete g._map[i+g.IFRAME_SUFFIX];a.Array.invoke(h._liferayHandles,"detach")}})},"",{requires:["aui-dialog-iframe-deprecated","aui-modal","event-resize","liferay-widget-zindex"]});YUI.add("resize-base",function(e,t){function Lt(){Lt.superclass.constructor.apply(this,arguments)}var n=e.Lang,r=n.isArray,i=n.isBoolean,s=n.isNumber,o=n.isString,u=e.Array,a=n.trim,f=u.indexOf,l=",",c=".",h="",p="{handle}",d=" ",v="active",m="activeHandle",g="activeHandleNode",y="all",b="autoHide",w="border",E="bottom",S="className",x="color",T="defMinHeight",N="defMinWidth",C="handle",k="handles",L="handlesWrapper",A="hidden",O="inner",M="left",_="margin",D="node",P="nodeName",H="none",B="offsetHeight",j="offsetWidth",F="padding",I="parentNode",q="position",R="relative",U="resize",z="resizing",W="right",X="static",V="style",$="top",J="width",K="wrap",Q="wrapper",G="wrapTypes",Y="resize:mouseUp",Z="resize:resize",et="resize:align",tt="resize:end",nt="resize:start",rt="t",it="tr",st="r",ot="br",ut="b",at="bl",ft="l",lt="tl",ct=function(){return Array.prototype.slice.call(arguments).join(d)},ht=function(e){return Math.round(parseFloat(e))||0},pt=function(e,t){return e.getComputedStyle(t)},dt=function(e){return C+e.toUpperCase()},vt=function(t){return t instanceof e.Node},mt=e.cached(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}),gt=e.cached(function(){var e=[],t=u(arguments,0,!0);return u.each(t,function(t,n){n>0&&(t=mt(t)),e.push(t)}),e.join(h)}),yt=e.ClassNameManager.getClassName,bt=yt(U),wt=yt(U,C),Et=yt(U,C,v),St=yt(U,C,O),xt=yt(U,C,O,p),Tt=yt(U,C,p),Nt=yt(U,A,k),Ct=yt(U,k,Q),kt=yt(U,Q);e.mix(Lt,{NAME:U,ATTRS:{activeHandle:{value:null,validator:function(t){return e.Lang.isString(t)||e.Lang.isNull(t)}},activeHandleNode:{value:null,validator:vt},autoHide:{value:!1,validator:i},defMinHeight:{value:15,validator:s},defMinWidth:{value:15,validator:s},handles:{setter:"_setHandles",value:y},handlesWrapper:{readOnly:!0,setter:e.one,valueFn:"_valueHandlesWrapper"},node:{setter:e.one},resizing:{value:!1,validator:i},wrap:{setter:"_setWrap",value:!1,validator:i},wrapTypes:{readOnly:!0,value:/^canvas|textarea|input|select|button|img|iframe|table|embed$/i},wrapper:{readOnly:!0,valueFn:"_valueWrapper",writeOnce:!0}},RULES:{b:function(e,t,n){var r=e.info,i=e.originalInfo;r.offsetHeight=i.offsetHeight+n},l:function(e,t){var n=e.info,r=e.originalInfo;n.left=r.left+t,n.offsetWidth=r.offsetWidth-t},r:function(e,t){var n=e.info,r=e.originalInfo;n.offsetWidth=r.offsetWidth+t},t:function(e,t,n){var r=e.info,i=e.originalInfo;r.top=i.top+n,r.offsetHeight=i.offsetHeight-n},tr:function(){this.t.apply(this,arguments),this.r.apply(this,arguments)},bl:function(){this.b.apply(this,arguments),this.l.apply(this,arguments)},br:function(){this.b.apply(this,arguments),this.r.apply(this,arguments)},tl:function(){this.t.apply(this,arguments),this.l.apply(this,arguments)}},capitalize:gt}),e.Resize=e.extend(Lt,e.Base,{ALL_HANDLES:[rt,it,st,ot,ut,at,ft,lt],REGEX_CHANGE_HEIGHT:/^(t|tr|b|bl|br|tl)$/i,REGEX_CHANGE_LEFT:/^(tl|l|bl)$/i,REGEX_CHANGE_TOP:/^(tl|t|tr)$/i,REGEX_CHANGE_WIDTH:/^(bl|br|l|r|tl|tr)$/i,HANDLES_WRAP_TEMPLATE:'
',WRAP_TEMPLATE:'
',HANDLE_TEMPLATE:'
'+'
 
'+"
",totalHSurrounding:0,totalVSurrounding:0,nodeSurrounding:null,wrapperSurrounding:null,changeHeightHandles:!1,changeLeftHandles:!1,changeTopHandles:!1,changeWidthHandles:!1,delegate:null,info:null,lastInfo:null,originalInfo:null,initializer:function(){this._eventHandles=[],this.renderer()},renderUI:function(){var e=this;e._renderHandles()},bindUI:function(){var e=this;e._createEvents(),e._bindDD(),e._bindHandle()},syncUI:function(){var e=this;this.get(D).addClass(bt),e._setHideHandlesUI(e.get(b))},destructor:function(){var t=this,n=t.get(D),r=t.get(Q),i=r.get(I);e.each(t._eventHandles,function(e){e.detach()}),t._eventHandles.length=0,t.eachHandle(function(e){t.delegate.dd.destroy(),e.remove(!0)}),t.delegate.destroy(),t.get(K)&&(t._copyStyles(r,n),i&&i.insertBefore(n,r),r.remove(!0)),n.removeClass(bt),n.removeClass(Nt)},renderer:function(){this.renderUI(),this.bindUI(),this.syncUI()},eachHandle:function(t){var n=this;e.each(n.get(k),function(e,r){var i=n.get(dt(e));t.apply(n,[i,e,r])})},_bindDD:function(){var t=this;t.delegate=new e.DD.Delegate({bubbleTargets:t,container:t.get(L),dragConfig:{clickPixelThresh:0,clickTimeThresh:0,useShim:!0,move:!1},nodes:c+wt,target:!1}),t._eventHandles.push(t.on("drag:drag",t._handleResizeEvent),t.on("drag:dropmiss",t._handleMouseUpEvent),t.on("drag:end",t._handleResizeEndEvent),t.on("drag:start",t._handleResizeStartEvent))},_bindHandle:function(){var t=this,n=t.get(Q);t._eventHandles.push(n.on("mouseenter",e.bind(t._onWrapperMouseEnter,t)),n.on("mouseleave",e.bind(t._onWrapperMouseLeave,t)),n.delegate("mouseenter",e.bind(t._onHandleMouseEnter,t),c+wt),n.delegate("mouseleave",e.bind(t._onHandleMouseLeave,t),c+wt))},_createEvents:function(){var e=this,t=function(t,n){e.publish(t,{defaultFn:n,queuable:!1,emitFacade:!0,bubbles:!0,prefix:U})};t(nt,this._defResizeStartFn),t(Z,this._defResizeFn),t(et,this._defResizeAlignFn),t(tt,this._defResizeEndFn),t(Y,this._defMouseUpFn)},_renderHandles:function(){var e=this,t=e.get(Q),n=e.get(L);e.eachHandle(function(e){n.append(e)}),t.append(n)},_buildHandle:function(t){var n=this;return e.Node.create(e.Lang.sub(n.HANDLE_TEMPLATE,{handle:t}))},_calcResize:function(){var t=this,n=t.handle,r=t.info,i=t.originalInfo,s=r.actXY[0]-i.actXY[0],o=r.actXY[1]-i.actXY[1];n&&e.Resize.RULES[n]&&e.Resize.RULES[n](t,s,o)},_checkSize:function(e,t){var n=this,r=n.info,i=n.originalInfo,s=e===B?$:M;r[e]=t;if(s===M&&n.changeLeftHandles||s===$&&n.changeTopHandles)r[s]=i[s]+i[e]-t},_copyStyles:function(t,n){var r=t.getStyle(q).toLowerCase(),i=this._getBoxSurroundingInfo(t),s;r===X&&(r=R),s={position:r,left:pt(t,M),top:pt(t,$)},e.mix(s,i.margin),e.mix(s,i.border),n.setStyles(s),t.setStyles({border:0,margin:0}),n.sizeTo(t.get(j)+i.totalHBorder,t.get(B)+i.totalVBorder)},_extractHandleName:e.cached(function(e){var t=e.get(S),n=t.match(new RegExp(yt(U,C,"(\\w{1,2})\\b")));return n?n[1 ]:null}),_getInfo:function(e,t){var n=[0,0],r=t.dragEvent.target,i=e.getXY(),s=i[0],o=i[1],u=e.get(B),a=e.get(j);return t&&(n=r.actXY.length?r.actXY:r.lastXY),{actXY:n,bottom:o+u,left:s,offsetHeight:u,offsetWidth:a,right:s+a,top:o}},_getBoxSurroundingInfo:function(t){var n={padding:{},margin:{},border:{}};return vt(t)&&e.each([$,W,E,M],function(e){var r=gt(F,e),i=gt(_,e),s=gt(w,e,J),o=gt(w,e,x),u=gt(w,e,V);n.border[o]=pt(t,o),n.border[u]=pt(t,u),n.border[s]=pt(t,s),n.margin[i]=pt(t,i),n.padding[r]=pt(t,r)}),n.totalHBorder=ht(n.border.borderLeftWidth)+ht(n.border.borderRightWidth),n.totalHPadding=ht(n.padding.paddingLeft)+ht(n.padding.paddingRight),n.totalVBorder=ht(n.border.borderBottomWidth)+ht(n.border.borderTopWidth),n.totalVPadding=ht(n.padding.paddingBottom)+ht(n.padding.paddingTop),n},_syncUI:function(){var t=this,n=t.info,r=t.wrapperSurrounding,i=t.get(Q),s=t.get(D);i.sizeTo(n.offsetWidth,n.offsetHeight),(t.changeLeftHandles||t.changeTopHandles)&&i.setXY([n.left,n.top]),i.compareTo(s)||s.sizeTo(n.offsetWidth-r.totalHBorder,n.offsetHeight-r.totalVBorder),e.UA.webkit&&s.setStyle(U,H)},_updateChangeHandleInfo:function(e){var t=this;t.changeHeightHandles=t.REGEX_CHANGE_HEIGHT.test(e),t.changeLeftHandles=t.REGEX_CHANGE_LEFT.test(e),t.changeTopHandles=t.REGEX_CHANGE_TOP.test(e),t.changeWidthHandles=t.REGEX_CHANGE_WIDTH.test(e)},_updateInfo:function(e){var t=this;t.info=t._getInfo(t.get(Q),e)},_updateSurroundingInfo:function(){var e=this,t=e.get(D),n=e.get(Q),r=e._getBoxSurroundingInfo(t),i=e._getBoxSurroundingInfo(n);e.nodeSurrounding=r,e.wrapperSurrounding=i,e.totalVSurrounding=r.totalVPadding+i.totalVBorder,e.totalHSurrounding=r.totalHPadding+i.totalHBorder},_setActiveHandlesUI:function(e){var t=this,n=t.get(g);n&&(e?(t.eachHandle(function(e){e.removeClass(Et)}),n.addClass(Et)):n.removeClass(Et))},_setHandles:function(t){var n=this,i=[];return r(t)?i=t:o(t)&&(t.toLowerCase()===y?i=n.ALL_HANDLES:e.each(t.split(l),function(e){var t=a(e);f(n.ALL_HANDLES,t)>-1&&i.push(t)})),i},_setHideHandlesUI:function(e){var t=this,n=t.get(Q);t.get(z)||(e?n.addClass(Nt):n.removeClass(Nt))},_setWrap:function(e){var t=this,n=t.get(D),r=n.get(P),i=t.get(G);return i.test(r)&&(e=!0),e},_defMouseUpFn:function(){var e=this;e.set(z,!1)},_defResizeFn:function(e){var t=this;t._resize(e)},_resize:function(e){var t=this;t._handleResizeAlignEvent(e.dragEvent),t._syncUI()},_defResizeAlignFn:function(e){var t=this;t._resizeAlign(e)},_resizeAlign:function(e){var t=this,n,r,i;t.lastInfo=t.info,t._updateInfo(e),n=t.info,t._calcResize(),t.con||(r=t.get(T)+t.totalVSurrounding,i=t.get(N)+t.totalHSurrounding,n.offsetHeight<=r&&t._checkSize(B,r),n.offsetWidth<=i&&t._checkSize(j,i))},_defResizeEndFn:function(e){var t=this;t._resizeEnd(e)},_resizeEnd:function(e){var t=this,n=e.dragEvent.target;n.actXY=[],t._syncUI(),t._setActiveHandlesUI(!1),t.set(m,null),t.set(g,null),t.handle=null},_defResizeStartFn:function(e){var t=this;t._resizeStart(e)},_resizeStart:function(e){var t=this,n=t.get(Q);t.handle=t.get(m),t.set(z,!0),t._updateSurroundingInfo(),t.originalInfo=t._getInfo(n,e),t._updateInfo(e)},_handleMouseUpEvent:function(e){this.fire(Y,{dragEvent:e,info:this.info})},_handleResizeEvent:function(e){this.fire(Z,{dragEvent:e,info:this.info})},_handleResizeAlignEvent:function(e){this.fire(et,{dragEvent:e,info:this.info})},_handleResizeEndEvent:function(e){this.fire(tt,{dragEvent:e,info:this.info})},_handleResizeStartEvent:function(e){this.get(m)||this._setHandleFromNode(e.target.get("node")),this.fire(nt,{dragEvent:e,info:this.info})},_onWrapperMouseEnter:function(){var e=this;e.get(b)&&e._setHideHandlesUI(!1)},_onWrapperMouseLeave:function(){var e=this;e.get(b)&&e._setHideHandlesUI(!0)},_setHandleFromNode:function(e){var t=this,n=t._extractHandleName(e);t.get(z)||(t.set(m,n),t.set(g,e),t._setActiveHandlesUI(!0),t._updateChangeHandleInfo(n))},_onHandleMouseEnter:function(e){this._setHandleFromNode(e.currentTarget)},_onHandleMouseLeave:function(){var e=this;e.get(z)||e._setActiveHandlesUI(!1)},_valueHandlesWrapper:function(){return e.Node.create(this.HANDLES_WRAP_TEMPLATE)},_valueWrapper:function(){var t=this,n=t.get(D),r=n.get(I),i=n;return t.get(K)&&(i=e.Node.create(t.WRAP_TEMPLATE),r&&r.insertBefore(i,n),i.append(n),t._copyStyles(n,i),n.setStyles({position:X,left:0,top:0})),i}}),e.each(e.Resize.prototype.ALL_HANDLES,function(t){e.Resize.ATTRS[dt(t)]={setter:function(){return this._buildHandle(t)},value:null,writeOnce:!0}})},"patched-v3.11.0",{requires:["base","widget","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0});YUI.add("aui-modal",function(e,t){var n=e.Lang,r=e.UA,i=e.WidgetStdMod,s="ownerDocument",o=e.getClassName,u=".",a="",f=" ",l="br",c="click",h="destroyOnHide",p="draggable",d="draggableChange",v="fillHeight",m="height",g="modal",y="mousemove",b="resizable",w="resizableChange",E="visibleChange",S="width",x=o("modal-body"),T=o("modal-footer"),N=o("modal-header");e.Modal=e.Base.create(g,e.Widget,[e.WidgetCssClass,e.WidgetPosition,e.WidgetStdMod,e.WidgetToggle,e.WidgetAutohide,e.WidgetToolbars,e.WidgetPositionAlign,e.WidgetPositionConstrain,e.WidgetStack,e.WidgetModality],{initializer:function(){var t=this,n=[e.after(t._afterFillHeight,t,v),t.after("resize:end",e.bind(t._syncResizeDimensions,t)),t.after(d,t._afterDraggableChange),t.after(w,t._afterResizableChange),t.after(E,t._afterVisibleChange)];t._applyPlugin(t._onUserInitInteraction),t._eventHandles=n},destructor:function(){var t=this;(new e.EventHandle(t._eventHandles)).detach(),t._userInteractionHandle&&t._userInteractionHandle.detach()},_addBubbleTargets:function(t){var r=this;return n.isObject(t)||(t={}),e.mix(t,{bubbleTargets:r})},_afterFillHeight:function(e){var t=this;t._fillMaxHeight(t.get(m))},_afterDraggableChange:function(t){var n=this;t.newVal?n._applyPlugin(n._plugDrag):n.unplug(e.Plugin.Drag)},_afterResizableChange:function(t){var n=this;t.newVal?n._applyPlugin(n._plugResize):n.unplug(e.Plugin.Resize)},_afterVisibleChange:function(e){var t=this;!e.newVal&&t.get(h)&&t.destroy()},_applyPlugin:function(e){var t=this;r.touchEnabled?e.call(t):t._userInteractionHandle||(t._userInteractionHandle=t.once([c,y],t._onUserInitInteraction,t))},_fillMaxHeight:function(e){var t=this,n=t.get(v),r=t.getStdModNode(n,!0);r&&r.setStyle("maxHeight",e)},_getStdModTemplate:function(t){return e.Node.create(e.Modal.TEMPLATES[t],this._stdModNode.get(s))},_beforeResizeCorrectDimensions:function(t){var n=this;if(n.resize.proxy)return new e.Do.Prevent},_onUserInitInteraction:function(){var e=this,t=e.get(p),n=e.get(b);e._userInteractionHandle=null,t&&e._plugDrag(),n&&e._plugResize()},_plugDrag:function(){var t=this,n=t.get(p);t.plug(e.Plugin.Drag,t._addBubbleTargets(n))},_plugResize:function(){var t=this,n=t.get(b);t.plug(e.Plugin.Resize,t._addBubbleTargets(n)),e.before(t._beforeResizeCorrectDimensions,t.resize,"_correctDimensions",t)},_syncResizeDimensions:function(e){var t=this,n=e.info;t.set(S,n.offsetWidth),t.set(m,n.offsetHeight)}},{CSS_PREFIX:o(g),ATTRS:{bodyContent:{value:a},destroyOnHide:{validator:n.isBoolean,value:!1},draggable:{value:{handles:[u+N],plugins:[{fn:e.Plugin.DDConstrained}]}},resizable:{value:{handles:l}},toolbars:{valueFn:function(){var e=this;return{header:[{cssClass:"close",label:"\u00d7",on:{click:function(t){e.hide(),t.domEvent.stopPropagation()}},render:!0}]}}}},TEMPLATES:{header:'
',body:'
',footer:'
'}})},"2.0.0",{requires:["widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod","dd-plugin","dd-constrain","resize-plugin","aui-classnamemanager","aui-widget-cssclass","aui-widget-toggle","aui-widget-toolbars"]});YUI.add("dd-drop",function(e,t){var n="node",r=e.DD.DDM,i="offsetHeight",s="offsetWidth",o="drop:over",u="drop:enter",a="drop:exit",f=function(){this._lazyAddAttrs=!1,f.superclass.constructor.apply(this,arguments),e.on("domready",e.bind(function(){e.later(100,this,this._createShim)},this)),r._regTarget(this)};f.NAME="drop",f.ATTRS={node:{setter:function(t){var n=e.one(t);return n||e.error("DD.Drop: Invalid Node Given: "+t),n}},groups:{value:["default"],getter:function(){return this._groups?e.Object.keys(this._groups):(this._groups={},[])},setter:function(t){return this._groups=e.Array.hash(t),t}},padding:{value:"0",setter:function(e){return r.cssSizestoObject(e)}},lock:{value:!1,setter:function(e){return e?this.get(n).addClass(r.CSS_PREFIX+"-drop-locked"):this.get(n).removeClass(r.CSS_PREFIX+"-drop-locked"),e}},bubbles:{setter:function(e){return this.addTarget(e),e}},useShim:{value:!0,setter:function(t){return e.DD.DDM._noShim=!t,t}}},e.extend(f,e.Base,{_bubbleTargets:e.DD.DDM,addToGroup:function(e){return this._groups[e]=!0,this},removeFromGroup:function(e){return delete this._groups[e],this},_createEvents:function(){var t=[o,u,a,"drop:hit"];e.Array.each(t,function(e){this.publish(e,{type:e,emitFacade:!0,preventable:!1,bubbles:!0,queuable:!1,prefix:"drop"})},this)},_valid:null,_groups:null,shim:null,region:null,overTarget:null,inGroup:function(t){this._valid=!1;var n=!1;return e.Array.each(t,function(e){this._groups[e]&&(n=!0,this._valid=!0)},this),n},initializer:function(){e.later(100,this,this._createEvents);var t=this.get(n),i;t.get("id")||(i=e.stamp(t),t.set("id",i)),t.addClass(r.CSS_PREFIX+"-drop"),this.set("groups",this.get("groups"))},destructor:function(){r._unregTarget(this),this.shim&&this.shim!==this.get(n)&&(this.shim.detachAll(),this.shim.remove(),this.shim=null),this.get(n).removeClass(r.CSS_PREFIX+"-drop"),this.detachAll()},_deactivateShim:function(){if(!this.shim)return!1;this.get(n).removeClass(r.CSS_PREFIX+"-drop-active-valid"),this.get(n).removeClass(r.CSS_PREFIX+"-drop-active-invalid"),this.get(n).removeClass(r.CSS_PREFIX+"-drop-over"),this.get("useShim")&&this.shim.setStyles({top:"-999px",left:"-999px",zIndex:"1"}),this.overTarget=!1},_activateShim:function(){if(!r.activeDrag)return!1;if(this.get(n)===r.activeDrag.get(n))return!1;if(this.get("lock"))return!1;var e=this.get(n);this.inGroup(r.activeDrag.get("groups"))?(e.removeClass(r.CSS_PREFIX+"-drop-active-invalid"),e.addClass(r.CSS_PREFIX+"-drop-active-valid"),r._addValid(this),this.overTarget=!1,this.get("useShim")||(this.shim=this.get(n)),this.sizeShim()):(r._removeValid(this),e.removeClass(r.CSS_PREFIX+"-drop-active-valid"),e.addClass(r.CSS_PREFIX+"-drop-active-invalid"))},sizeShim:function(){if(!r.activeDrag)return!1;if(this.get(n)===r.activeDrag.get(n))return!1;if(this.get("lock"))return!1;if(!this.shim)return e.later(100,this,this.sizeShim),!1;var t=this.get(n),o=t.get(i),u=t.get(s),a=t.getXY(),f=this.get("padding"),l,c,h;u=u+f.left+f.right,o=o+f.top+f.bottom,a[0]=a[0]-f.left,a[1]=a[1]-f.top,r.activeDrag.get("dragMode")===r.INTERSECT&&(l=r.activeDrag,c=l.get(n).get(i),h=l.get(n).get(s),o+=c,u+=h,a[0]=a[0]-(h-l.deltaXY[0]),a[1]=a[1]-(c-l.deltaXY[1])),this.get("useShim")&&this.shim.setStyles({height:o+"px",width:u+"px",top:a[1]+"px",left:a[0]+"px"}),this.region={0:a[0],1:a[1],area:0,top:a[1],right:a[0]+u,bottom:a[1]+o,left:a[0]}},_createShim:function(){if(!r._pg){e.later(10,this,this._createShim);return}if(this.shim)return;var t=this.get("node");this.get("useShim")&&(t=e.Node.create('
'),t.setStyles({height:this.get(n).get(i)+"px",width:this.get(n).get(s)+"px",backgroundColor:"yellow",opacity:".5",zIndex:"1",overflow:"hidden",top:"-900px",left:"-900px",position:"absolute"}),r._pg.appendChild(t),t.on("mouseover",e.bind(this._handleOverEvent,this)),t.on("mouseout",e.bind(this._handleOutEvent,this))),this.shim=t},_handleTargetOver:function(){r.isOverTarget(this)?(this.get(n).addClass(r.CSS_PREFIX+"-drop-over"),r.activeDrop=this,r.otherDrops[this]=this,this.overTarget?(r.activeDrag.fire("drag:over",{drop:this,drag:r.activeDrag}),this.fire(o,{drop:this,drag:r.activeDrag})):r.activeDrag.get("dragging")&&(this.overTarget=!0,this.fire(u,{drop:this,drag:r.activeDrag}),r.activeDrag.fire("drag:enter",{drop:this,drag:r.activeDrag}),r.activeDrag.get(n).addClass(r.CSS_PREFIX+"-drag-over"))):this._handleOut()},_handleOverEvent:function(){this.shim.setStyle("zIndex","999"),r._addActiveShim(this)},_handleOutEvent:function(){this.shim.setStyle("zIndex","1"),r._removeActiveShim(this)},_handleOut:function(e){(!r.isOverTarget(this)||e)&&this.overTarget&&(this.overTarget=!1,e||r._removeActiveShim(this),r.activeDrag&&(this.get(n).removeClass(r.CSS_PREFIX+"-drop-over"),r.activeDrag.get(n).removeClass(r.CSS_PREFIX+"-drag-over"),this.fire(a,{drop:this,drag:r.activeDrag}),r.activeDrag.fire("drag:exit",{drop:this,drag:r.activeDrag}),delete r.otherDrops[this]))}}),e.DD.Drop=f},"patched-v3.11.0",{requires:["dd-drag","dd-ddm-drop"]});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)},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.11.0",{requires:["button-plugin","cssbutton","widget"]});