YUI.add("pluginhost-base",function(e,t){function r(){this._plugins={}}var n=e.Lang;r.prototype={plug:function(e,t){var r,i,s;if(n.isArray(e))for(r=0,i=e.length;r<i;r++)this.plug(e[r]);else e&&!n.isFunction(e)&&(t=e.cfg,e=e.fn),e&&e.NS&&(s=e.NS,t=t||{},t.host=this,this.hasPlugin(s)?this[s].setAttrs&&this[s].setAttrs(t):(this[s]=new e(t),this._plugins[s]=e));return this},unplug:function(e){var t=e,r=this._plugins;if(e)n.isFunction(e)&&(t=e.NS,t&&(!r[t]||r[t]!==e)&&(t=null)),t&&(this[t]&&(this[t].destroy&&this[t].destroy(),delete this[t]),r[t]&&delete r[t]);else for(t in this._plugins)this._plugins.hasOwnProperty(t)&&this.unplug(t);return this},hasPlugin:function(e){return this._plugins[e]&&this[e]},_initPlugins:function(e){this._plugins=this._plugins||{},this._initConfigPlugins&&this._initConfigPlugins(e)},_destroyPlugins:function(){this.unplug()}},e.namespace("Plugin").Host=r},"patched-v3.18.1",{requires:["yui-base"]});

YUI.add("pluginhost-config",function(e,t){var n=e.Plugin.Host,r=e.Lang;n.prototype._initConfigPlugins=function(t){var n=this._getClasses?this._getClasses():[this.constructor],r=[],i={},s,o,u,a,f;for(o=n.length-1;o>=0;o--)s=n[o],a=s._UNPLUG,a&&e.mix(i,a,!0),u=s._PLUG,u&&e.mix(r,u,!0);for(f in r)r.hasOwnProperty(f)&&(i[f]||this.plug(r[f]));t&&t.plugins&&this.plug(t.plugins)},n.plug=function(t,n,i){var s,o,u,a;if(t!==e.Base){t._PLUG=t._PLUG||{},r.isArray(n)||(i&&(n={fn:n,cfg:i}),n=[n]);for(o=0,u=n.length;o<u;o++)s=n[o],a=s.NAME||s.fn.NAME,t._PLUG[a]=s}},n.unplug=function(t,n){var i,s,o,u;if(t!==e.Base){t._UNPLUG=t._UNPLUG||{},r.isArray(n)||(n=[n]);for(s=0,o=n.length;s<o;s++)i=n[s],u=i.NAME,t._PLUG[u]?delete t._PLUG[u]:t._UNPLUG[u]=i}}},"patched-v3.18.1",{requires:["pluginhost-base"]});

YUI.add("node-pluginhost",function(e,t){e.Node.plug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.plug.apply(e.Base,t),e.Node},e.Node.unplug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.unplug.apply(e.Base,t),e.Node},e.mix(e.Node,e.Plugin.Host,!1,null,1),e.Object.each(e.Node._instances,function(t){e.Plugin.Host.apply(t)}),e.NodeList.prototype.plug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.plug.apply(e.one(n),t)}),this},e.NodeList.prototype.unplug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.unplug.apply(e.one(n),t)}),this}},"patched-v3.18.1",{requires:["node-base","pluginhost"]});

YUI.add("dom-screen",function(e,t){(function(e){var t="documentElement",n="compatMode",r="position",i="fixed",s="relative",o="left",u="top",a="BackCompat",f="medium",l="borderLeftWidth",c="borderTopWidth",h="getBoundingClientRect",p="getComputedStyle",d=e.DOM,v=/^t(?:able|d|h)$/i,m;e.UA.ie&&(e.config.doc[n]!=="BackCompat"?m=t:m="body"),e.mix(d,{winHeight:function(e){var t=d._getWinSize(e).height;return t},winWidth:function(e){var t=d._getWinSize(e).width;return t},docHeight:function(e){var t=d._getDocSize(e).height;return Math.max(t,d._getWinSize(e).height)},docWidth:function(e){var t=d._getDocSize(e).width;return Math.max(t,d._getWinSize(e).width)},docScrollX:function(n,r){r=r||n?d._getDoc(n):e.config.doc;var i=r.defaultView,s=i?i.pageXOffset:0;return Math.max(r[t].scrollLeft,r.body.scrollLeft,s)},docScrollY:function(n,r){r=r||n?d._getDoc(n):e.config.doc;var i=r.defaultView,s=i?i.pageYOffset:0;return Math.max(r[t].scrollTop,r.body.scrollTop,s)},getXY:function(){return e.config.doc[t][h]?function(r){var i=null,s,o,u,f,l,c,p,v,g,y;if(r&&r.tagName){p=r.ownerDocument,u=p[n],u!==a?y=p[t]:y=p.body,y.contains?g=y.contains(r):g=e.DOM.contains(y,r);if(g){v=p.defaultView,v&&"pageXOffset"in v?(s=v.pageXOffset,o=v.pageYOffset):(s=m?p[m].scrollLeft:d.docScrollX(r,p),o=m?p[m].scrollTop:d.docScrollY(r,p)),e.UA.ie&&(!p.documentMode||p.documentMode<8||u===a)&&(l=y.clientLeft,c=y.clientTop),f=r[h](),i=[f.left,f.top];if(l||c)i[0]-=l,i[1]-=c;if(o||s)if(!e.UA.ios||e.UA.ios>=4.2)i[0]+=s,i[1]+=o}else i=d._getOffset(r)}return i}:function(t){var n=null,s,o,u,a,f;if(t)if(d.inDoc(t)){n=[t.offsetLeft,t.offsetTop],s=t.ownerDocument,o=t,u=e.UA.gecko||e.UA.webkit>519?!0:!1;while(o=o.offsetParent)n[0]+=o.offsetLeft,n[1]+=o.offsetTop,u&&(n=d._calcBorders(o,n));if(d.getStyle(t,r)!=i){o=t;while(o=o.parentNode){a=o.scrollTop,f=o.scrollLeft,e.UA.gecko&&d.getStyle(o,"overflow")!=="visible"&&(n=d._calcBorders(o,n));if(a||f)n[0]-=f,n[1]-=a}n[0]+=d.docScrollX(t,s),n[1]+=d.docScrollY(t,s)}else n[0]+=d.docScrollX(t,s),n[1]+=d.docScrollY(t,s)}else n=d._getOffset(t);return n}}(),getScrollbarWidth:e.cached(function(){var t=e.config.doc,n=t.createElement("div"),r=t.getElementsByTagName("body")[0],i=.1;return r&&(n.style.cssText="position:absolute;visibility:hidden;overflow:scroll;width:20px;",n.appendChild(t.createElement("p")).style.height="1px",r.insertBefore(n,r.firstChild),i=n.offsetWidth-n.clientWidth,r.removeChild(n)),i},null,.1),getX:function(e){return d.getXY(e)[0]},getY:function(e){return d.getXY(e)[1]},setXY:function(e,t,n){var i=d.setStyle,a,f,l,c,h,p,v;e&&t&&(a=d.getStyle(e,r),h=d.OFFSET_XY,h||(p=d.getComputedStyle(e,"direction"),h=p==="rtl"?"right":o),f=d._getOffset(e,h),a=="static"&&(a=s,i(e,r,a)),c=d._getDirXY(e,h),v=t[0],h==="right"&&(v=d.winWidth()-(t[0]+parseInt(d.getComputedStyle(e,"width"),10)),!f[0]&&!n&&(n=!1)),v!==null&&i(e,h,v-c[0]+f[0]+"px"),t[1]!==null&&i(e,u,t[1]-c[1]+f[1]+"px"),n||(l=d.getXY(e),(l[0]!==t[0]||l[1]!==t[1])&&d.setXY(e,t,!0)))},setX:function(e,t){return d.setXY(e,[t,null])},setY:function(e,t){return d.setXY(e,[null,t])},swapXY:function(e,t){var n=d.getXY(e);d.setXY(e,d.getXY(t)),d.setXY(t,n)},_calcBorders:function(t,n){var r=parseInt(d[p](t,c),10)||0,i=parseInt(d[p](t,l),10)||0;return e.UA.gecko&&v.test(t.tagName)&&(r=0,i=0),n[0]+=i,n[1]+=r,n},_getWinSize:function(r,i){i=i||r?d._getDoc(r):e.config.doc;var s=i.defaultView||i.parentWindow,o=i[n],u=s.innerHeight,a=s.innerWidth,f=i[t];return o&&!e.UA.opera&&(o!="CSS1Compat"&&(f=i.body),u=f.clientHeight,a=f.clientWidth),{height:u,width:a}},_getDocSize:function(r){var i=r?d._getDoc(r):e.config.doc,s=i[t];return i[n]!="CSS1Compat"&&(s=i.body),{height:s.scrollHeight,width:s.scrollWidth}},_getDirXY:function(e,t){var n=d.getXY(e);return t==="right"&&(n[0]=d.winWidth()-(n[0]+parseInt(d.getComputedStyle(e,"width"),10))),n}})})(e),function(e){var t="top",n="right",r="bottom",i="left",s=function(e,s){var o=Math.max(e[t],s[t]),u=Math.min(e[n],s[n]),a=Math.min(e[r],s[r]),f=Math.max(e[i],s[i]),l={};return l[t]=o,l[n]=u,l[r]=a,l[i]=f,l},o=e.DOM;e.mix(o,{region:function(e){var t=o.getXY(e),n=!1;return e&&t&&(n=o._getRegion(t[1],t[0]+e.offsetWidth,t[1]+e.offsetHeight,t[0])),n},intersect:function(u,a,f){var l=f||o.region(u),c={},h=a,p;if(h.tagName)c=o.region(h);else{if(!e.Lang.isObject(a))return!1;c=a}return p=s(c,l),{top:p[t],right:p[n],bottom:p[r],left:p[i],area:(p[r]-p[t])*(p[n]-p[i]),yoff:p[r]-p[t],xoff:p[n]-p[i],inRegion:o.inRegion(u,a,!1,f)}},inRegion:function(u,a,f,l){var c={},h=l||o.region(u),p=a,d;if(p.tagName)c=o.region(p);else{if(!e.Lang.isObject(a))return!1;c=a}return f?h[i]>=c[i]&&h[n]<=c[n]&&h[t]>=c[t]&&h[r]<=c[r]:(d=s(c,h),d[r]>=d[t]&&d[n]>=d[i]?!0:!1)},inViewportRegion:function(e,t,n){return o.inRegion(e,o.viewportRegion(e),t,n)},_getRegion:function(e,s,o,u){var a={};return a[t]=a[1]=e,a[i]=a[0]=u,a[r]=o,a[n]=s,a.width=a[n]-a[i],a.height=a[r]-a[t],a},viewportRegion:function(t){t=t||e.config.doc.documentElement;var n=!1,r,i;return t&&(r=o.docScrollX(t),i=o.docScrollY(t),n=o._getRegion(i,o.winWidth(t)+r,i+o.winHeight(t),r)),n}})}(e)},"patched-v3.18.1",{requires:["dom-base","dom-style"]});

YUI.add("node-screen",function(e,t){e.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(t){e.Node.ATTRS[t]={getter:function(){var n=Array.prototype.slice.call(arguments);return n.unshift(e.Node.getDOMNode(this)),e.DOM[t].apply(this,n)}}}),e.Node.ATTRS.scrollLeft={getter:function(){var t=e.Node.getDOMNode(this);return"scrollLeft"in t?t.scrollLeft:e.DOM.docScrollX(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollLeft"in n?n.scrollLeft=t:(n.document||n.nodeType===9)&&e.DOM._getWin(n).scrollTo(t,e.DOM.docScrollY(n)))}},e.Node.ATTRS.scrollTop={getter:function(){var t=e.Node.getDOMNode(this);return"scrollTop"in t?t.scrollTop:e.DOM.docScrollY(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollTop"in n?n.scrollTop=t:(n.document||n.nodeType===9)&&e.DOM._getWin(n).scrollTo(e.DOM.docScrollX(n),t))}},e.Node.importMethod(e.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]),e.Node.ATTRS.region={getter:function(){var t=this.getDOMNode(),n;return t&&!t.tagName&&t.nodeType===9&&(t=t.documentElement),e.DOM.isWindow(t)?n=e.DOM.viewportRegion(t):n=e.DOM.region(t),n}},e.Node.ATTRS.viewportRegion={getter:function(){return e.DOM.viewportRegion(e.Node.getDOMNode(this))}},e.Node.importMethod(e.DOM,"inViewportRegion"),e.Node.prototype.intersect=function(t,n){var r=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.intersect(r,t,n)},e.Node.prototype.inRegion=function(t,n,r){var i=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.inRegion(i,t,n,r)}},"patched-v3.18.1",{requires:["dom-screen","node-base"]});

YUI.add("node-style",function(e,t){(function(e){e.mix(e.Node.prototype,{setStyle:function(t,n){return e.DOM.setStyle(this._node,t,n),this},setStyles:function(t){return e.DOM.setStyles(this._node,t),this},getStyle:function(t){return e.DOM.getStyle(this._node,t)},getComputedStyle:function(t){return e.DOM.getComputedStyle(this._node,t)}}),e.NodeList.importMethod(e.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"])})(e);var n=e.Node;e.mix(n.prototype,{show:function(e){return e=arguments[arguments.length-1],this.toggleView(!0,e),this},_show:function(){this.removeAttribute("hidden"),this.setStyle("display","")},_isHidden:function(){return this.hasAttribute("hidden")||e.DOM.getComputedStyle(this._node,"display")==="none"},toggleView:function(e,t){return this._toggleView.apply(this,arguments),this},_toggleView:function(e,t){return t=arguments[arguments.length-1],typeof e!="boolean"&&(e=this._isHidden()?1:0),e?this._show():this._hide(),typeof t=="function"&&t.call(this),this},hide:function(e){return e=arguments[arguments.length-1],this.toggleView(!1,e),this},_hide:function(){this.setAttribute("hidden","hidden"),this.setStyle("display","none")}}),e.NodeList.importMethod(e.Node.prototype,["show","hide","toggleView"])},"patched-v3.18.1",{requires:["dom-style","node-base"]});

YUI.add("aui-node-base",function(e,t){var n=e.Lang,r=n.isArray,i=n.isFunction,s=n.isObject,o=n.isString,u=n.isUndefined,a=n.isValue,f=e.Array,l=e.Node,c=e.NodeList,h=e.getClassName,p=e.DOM._getRegExp,d=e.config,v=d.doc,m=d.win,g=l.prototype,y=g._hide,b=g._show,w=c.prototype,E=["",""],S=h("hide"),x="none",T="text",N=!1,C={b:"borderBottomWidth",l:"borderLeftWidth",r:"borderRightWidth",t:"borderTopWidth"},k={b:"marginBottom",l:"marginLeft",r:"marginRight",t:"marginTop"},L={b:"paddingBottom",l:"paddingLeft",r:"paddingRight",t:"paddingTop"},A=v.createElement("div");A.style.display="none",A.innerHTML="   <table></table>&nbsp;",A.attachEvent&&A.fireEvent&&(A.attachEvent("onclick",function H(){N=!0,A.detachEvent("onclick",H)}),A.cloneNode(!0).fireEvent("onclick"));var O=!A.getElementsByTagName("tbody").length,M=/^\s+/,_=/\=([^=\x27\x22>\s]+\/)>/g,D=/<([\w:]+)/;A=null;var P=function(e,t,n){var r,i=t?"on":"",s,o;e.setAttribute("unselectable",i);if(!n){r=e.getElementsByTagName("*");for(s=0;o=r[s];s++)o.setAttribute("unselectable",i)}};e.mix(g,{ancestorsByClassName:function(t,n){var r=this,i=[],s=new RegExp("\\b"+t+"\\b"),o=r.getDOM();n||(o=o.parentNode);while(o&&o.nodeType!==9)o.nodeType===1&&s.test(o.className)&&i.push(o),o=o.parentNode;return e.all(i)},attr:function(e,t){var r=this,i;if(!u(t)){var o=r.getDOM();return e in o?r.set(e,t):r.setAttribute(e,t),r}if(s(e)){for(i in e)e.hasOwnProperty(i)&&r.attr(i,e[i]);return r}var a=r.get(e);return n.isValue(a)||(a=r.getAttribute(e)),a},clone:function(){var t;return N?t=function(){var t=this.getDOM(),n;if(t.nodeType!==3){var r=this.outerHTML();r=r.replace(_,'="$1">').replace(M,""),n=l.create(r)}else n=e.one(t.cloneNode());return n}:t=function(){return this.cloneNode(!0)},t}(),center:function(t){var n=this,i=n.get("region"),o,u;if(r(t))o=t[0],u=t[1];else{var a;s(t)&&!e.instanceOf(t,l)?a=t:a=(e.one(t)||e.getBody()).get("region"),o=a.left+a.width/2,u=a.top+a.height/2}n.setXY([o-i.width/2,u-i.height/2])},empty:function(){var e=this;e.all(">*").remove().purge();var t=l.getDOMNode(e);while(t.firstChild)t.removeChild(t.firstChild);return e},getDOM:function(){var e=this;return l.getDOMNode(e)},getBorderWidth:function(e){var t=this;return t._getBoxStyleAsNumber(e,C)},getCenterXY:function(){var e=this,t=e.get("region");return[t.left+t.width/2,t.top+t.height/2]},getMargin:function(e){var t=this;return t._getBoxStyleAsNumber(e,k)},getPadding:function(e){var t=this;return t._getBoxStyleAsNumber(e,L)},guid:function(){var t=this,n=t.get("id");return n||(n=e.stamp(t),t.set("id",n)),n},hover:function(t,n){var r=this,i,o=r._defaultHoverOptions;return s(t,!0)?(i=t,i=e.mix(i,o),t=i.over,n=i.out):i=e.mix({over:t,out:n},o),r._hoverOptions=i,i.overTask=e.debounce(r._hoverOverTaskFn,null,r),i.outTask=e.debounce(r._hoverOutTaskFn,null,r),new e.EventHandle([r.on(i.overEventType,r._hoverOverHandler,r),r.on(i.outEventType,r._hoverOutHandler,r)])},html:function(){var e=arguments,t=e.length;return t?(this.set("innerHTML",e[0]),this):this.get("innerHTML")},outerHTML:function(){var e=this,t=e.getDOM();if("outerHTML"in t)return t.outerHTML;var n=l.create("<div></div>").append(this.clone());try{return n.html()}catch(r){}finally{n=null}},placeAfter:function(e){var t=this;return t._place(e,t.get("nextSibling"))},placeBefore:function(e){var t=this;return t._place(e,t)},prependTo:function(t){var n=this;return e.one(t).prepend(n),n},radioClass:function(e){var t=this,n=t.siblings();if(o(e))n.removeClass(e),t.addClass(e);else if(r(e)){var i=n.getDOM(),s=p("(?:^|\\s+)(?:"+e.join("|")+")(?=\\s+|$)","g"),u,a;for(a=i.length-1;a>=0;a--)u=i[a],u.className=u.className.replace(s,"");t.addClass(e.join(" "))}return t},resetId:function(t){var n=this;return n.attr("id",e.guid(t)),n},selectText:function(e,t){var n=this,r=n.getDOM(),i=n.val().length;t=a(t)?t:i,e=a(e)?e:0;try{if(r.setSelectionRange)r.setSelectionRange(e,t);else if(r.createTextRange){var s=r.createTextRange();s.moveStart("character",e),s.moveEnd("character",t-i),s.select()}else r.select();r!==v.activeElement&&r.focus()}catch(o){}return n},selectable:function(t){var n=this;return n.setStyles({"-webkit-user-select":T,"-khtml-user-select":T,"-moz-user-select":T,"-ms-user-select":T,"-o-user-select":T,"user-select":T}),(e.UA.ie||e.UA.opera)&&P(n._node,!1,t),n},swallowEvent:function(e,t){var n=this,i=function(e){return e.stopPropagation(),t&&(e.preventDefault(),e.halt()),!1};return r(e)?(f.each(e,function(e){n.on(e,i)}),this):(n.on(e,i),n)},text:function(t){var n=this,r=n.getDOM();return u(t)?n._getText(r.childNodes):(t=e.DOM._getDoc(r).createTextNode(t),n.empty().append(t))},toggle:function(){var e=this;return e._toggleView.apply(e,arguments),e},unselectable:function(t){var n=this;return n.setStyles({"-webkit-user-select":x,"-khtml-user-select":x,"-moz-user-select":x,"-ms-user-select":x,"-o-user-select":x,"user-select":x}),(e.UA.ie||e.UA.opera)&&P(n._node,!0,t),n},val:function(e){var t=this;return u(e)?t.get("value"):t.set("value",e)},_getBoxStyleAsNumber:function(e,t){var n=this,r=e.match(/\w/g),i=0,s,o,u;for(u=r.length-1;u>=0;u--)o=r[u],s=0,o&&(s=parseFloat(n.getComputedStyle(t[o])),s=Math.abs(s),i+=s||0);return i},_getText:function(e){var t=this,n=e.length,r,i=[],s;for(s=0;s<n;s++)r=e[s],r&&r.nodeType!==8&&(r.nodeType!==1&&i.push(r.nodeValue),r.childNodes&&i.push(t._getText(r.childNodes)));return i.join("")},_hide:function(){var e=this;return e.addClass(S),y.apply(e,arguments)},_hoverOutHandler:function(e){var t=this,n=t._hoverOptions;n.outTask.delay(n.outDelay,e)},_hoverOverHandler:function(e){var t=this,n=t._hoverOptions;n.overTask.delay(n.overDelay,e)},_hoverOutTaskFn:function(e){var t=this,n=t._hoverOptions;n.overTask.cancel(),n.out.apply(n.context||e.currentTarget,arguments)},_hoverOverTaskFn:function(e){var t=this,n=t._hoverOptions;n.outTask.cancel(),n.over.apply(n.context||e.currentTarget,arguments)},_place:function(e,t){var n=this,r=n.get("parentNode");return r&&(o(e)&&(e=l.create(e)),r.insertBefore(e,t)),n},_show:function(){var e=this;return e
.removeClass(S),b.apply(e,arguments)},_defaultHoverOptions:{overEventType:"mouseenter",outEventType:"mouseleave",overDelay:0,outDelay:0,over:n.emptyFn,out:n.emptyFn}},!0),g.__isHidden=g._isHidden,g._isHidden=function(){var e=this;return g.__isHidden.call(e)||e.hasClass(e._hideClass||S)},e.each(["Height","Width"],function(e,t){var n=t?"lr":"tb",r=e.toLowerCase();g[r]=function(t){var i=this,s=i;if(u(t)){var o=i._node,a;if(o)if(!o.tagName&&o.nodeType===9||o.alert)a=i.get("region")[r];else{a=i.get("offset"+e);if(!a){var f=i.getStyle("display"),l=i.getStyle("position"),c=i.getStyle("visibility");i.setStyles({display:"block !important",position:"absolute !important",visibility:"hidden !important"}),a=i.get("offset"+e),i.setStyles({display:f,position:l,visibility:c})}a&&(a-=i.getPadding(n)+i.getBorderWidth(n))}s=a}else i.setStyle(r,t);return s},g["inner"+e]=function(){var e=this;return e[r]()+e.getPadding(n)},g["outer"+e]=function(t){var r=this,i=r["inner"+e](),s=r.getBorderWidth(n),o=i+s;return t&&(o+=r.getMargin(n)),o}}),O||(e.DOM._ADD_HTML=e.DOM.addHTML,e.DOM.addHTML=function(t,n,r){var i=t.nodeName&&t.nodeName.toLowerCase()||"",s="";u(n)||(o(n)?s=(D.exec(n)||E)[1]:n.nodeType&&n.nodeType===11&&n.childNodes.length?s=n.childNodes[0].nodeName:n.nodeName&&(s=n.nodeName),s=s&&s.toLowerCase());if(i==="table"&&s==="tr"){t=t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody"));var a=(r&&r.nodeName||"").toLowerCase();a==="tbody"&&r.childNodes.length>0&&(r=r.firstChild)}return e.DOM._ADD_HTML(t,n,r)}),c.importMethod(g,["after","appendTo","attr","before","empty","getX","getXY","getY","hover","html","innerHeight","innerWidth","outerHeight","outerHTML","outerWidth","prepend","prependTo","purge","selectText","selectable","setX","setXY","setY","text","toggle","unselectable","val"]),e.mix(w,{all:function(t){var n=this,r=[],i=n._nodes,s=i.length,o,u;for(u=0;u<s;u++)o=e.Selector.query(t,i[u]),o&&o.length&&r.push.apply(r,o);return r=f.unique(r),e.all(r)},first:function(){var e=this;return e.item(0)},getDOM:function(){return c.getDOMNodes(this)},last:function(){var e=this;return e.item(e._nodes.length-1)},one:function(t){var n=this,r=null,i=n._nodes,s=i.length,o;for(o=0;o<s;o++){r=e.Selector.query(t,i[o],!0);if(r){r=e.one(r);break}}return r}}),w.__filter=w.filter,w.filter=function(t,n){var r=this,s;if(i(t)){var o=[];r.each(function(e,r,i){t.call(n||e,e,r,i)&&o.push(e._node)}),s=e.all(o)}else s=w.__filter.call(r,t);return s},e.mix(c,{create:function(t){var n=e.getDoc().invoke("createDocumentFragment");return n.append(t).get("childNodes")}}),e.mix(e,{getBody:function(){var t=this;return t._bodyNode||(t._bodyNode=e.one(v.body)),t._bodyNode},getDoc:function(){var t=this;return t._documentNode||(t._documentNode=e.one(v)),t._documentNode},getWin:function(){var t=this;return t._windowNode||(t._windowNode=e.one(m)),t._windowNode}})},"3.1.0-deprecated.79",{requires:["array-extras","aui-base-lang","aui-classnamemanager","aui-debounce","node"]});

YUI.add("aui-timer",function(e,t){var n=e.Lang,r=n.now,i=e.Object.isEmpty,s=e.Array,o={clearInterval:function(e){var t=o;t.unregister(!0,e)},clearTimeout:function(e){var t=o;t.unregister(!1,e)},intervalTime:function(e){var t=o;return arguments.length&&(t._INTERVAL=e),t._INTERVAL},isRepeatable:function(e){return e.repeats},setTimeout:function(e,t,n){var r=o,i=s(arguments,3,!0);return r.register(!1,e,t,n,i)},setInterval:function(e,t,n){var r=o,i=s(arguments,3,!0);return r.register(!0,e,t,n,i)},register:function(t,n,r,i,s){var u=o,a=++e.Env._uidx;return s=s||[],s.unshift(n,i),u._TASKS[a]=u._create(t,u._getNearestInterval(r),e.rbind.apply(e,s)),u._lazyInit(),a},run:function(e){return e.lastRunTime=r(),e.fn()},unregister:function(e,t){var n=o,r=n._TASKS,i=r[t];return n._lazyDestroy(),i&&i.repeats===e&&delete r[t]},_create:function(e,t,n){return{fn:n,lastRunTime:r(),next:t,repeats:e,timeout:t}},_decrementNextRunTime:function(e){return e.next=e.timeout-(r()-e.lastRunTime)},_getNearestInterval:function(e){var t=o,n=t._INTERVAL,r=e%n,i;return r<n/2?i=e-r:i=e+n-r,i},_lazyDestroy:function(){var e=o;e._initialized&&i(e._TASKS)&&(clearTimeout(e._globalIntervalId),e._initialized=!1)},_lazyInit:function(){var e=o;!e._initialized&&!i(e._TASKS)&&(e._lastRunTime=r(),e._globalIntervalId=setTimeout(e._runner,e._INTERVAL),e._initialized=!0)},_loop:function(e,t,n){var i=o,s=i._INTERVAL,u=i._TASKS,a=s/2;for(var f=r();e<n&&r()-f<50;e++){var l=t[e],c=u[l];c&&i._decrementNextRunTime(c)<a&&(i.run(c),i.isRepeatable(c)?i._resetNextRunTime(c):i.unregister(!1,l))}i._initialized&&(e<n?i._globalIntervalId=setTimeout(i._loop,10):i._globalIntervalId=setTimeout(i._runner,s))},_runner:function(){var t=o,n=0,r=e.Object.keys(t._TASKS),i=r.length;t._loop(n,r,i)},_resetNextRunTime:function(e){return e.next=e.timeout},_INTERVAL:50,_TASKS:{},_lastRunTime:0,_globalIntervalId:0,_initialized:!1};e.clearInterval=o.clearInterval,e.clearTimeout=o.clearTimeout,e.setInterval=o.setInterval,e.setTimeout=o.setTimeout,e.Timer=o},"3.1.0-deprecated.79",{requires:["oop"]});

YUI.add("event-touch",function(e,t){var n="scale",r="rotation",i="identifier",s=e.config.win,o={};e.DOMEventFacade.prototype._touch=function(t,s,o){var u,a,f,l,c;if(t.touches){this.touches=[],c={};for(u=0,a=t.touches.length;u<a;++u)l=t.touches[u],c[e.stamp(l)]=this.touches[u]=new e.DOMEventFacade(l,s,o)}if(t.targetTouches){this.targetTouches=[];for(u=0,a=t.targetTouches.length;u<a;++u)l=t.targetTouches[u],f=c&&c[e.stamp(l,!0)],this.targetTouches[u]=f||new e.DOMEventFacade(l,s,o)}if(t.changedTouches){this.changedTouches=[];for(u=0,a=t.changedTouches.length;u<a;++u)l=t.changedTouches[u],f=c&&c[e.stamp(l,!0)],this.changedTouches[u]=f||new e.DOMEventFacade(l,s,o)}n in t&&(this[n]=t[n]),r in t&&(this[r]=t[r]),i in t&&(this[i]=t[i])},e.Node.DOM_EVENTS&&e.mix(e.Node.DOM_EVENTS,{touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1,MSPointerCancel:1,pointerdown:1,pointerup:1,pointermove:1,pointercancel:1}),s&&"ontouchstart"in s&&!(e.UA.chrome&&e.UA.chrome<6)?(o.start=["touchstart","mousedown"],o.end=["touchend","mouseup"],o.move=["touchmove","mousemove"],o.cancel=["touchcancel","mousecancel"]):s&&s.PointerEvent?(o.start="pointerdown",o.end="pointerup",o.move="pointermove",o.cancel="pointercancel"):s&&"msPointerEnabled"in s.navigator?(o.start="MSPointerDown",o.end="MSPointerUp",o.move="MSPointerMove",o.cancel="MSPointerCancel"):(o.start="mousedown",o.end="mouseup",o.move="mousemove",o.cancel="mousecancel"),e.Event._GESTURE_MAP=o},"patched-v3.18.1",{requires:["node-base"]});

YUI.add("event-synthetic",function(e,t){function c(e,t){this.handle=e,this.emitFacade=t}function h(e,t,n){this.handles=[],this.el=e,this.key=n,this.domkey=t}function p(){this._init.apply(this,arguments)}var n=e.CustomEvent,r=e.Env.evt.dom_map,i=e.Array,s=e.Lang,o=s.isObject,u=s.isString,a=s.isArray,f=e.Selector.query,l=function(){};c.prototype.fire=function(t){var n=i(arguments,0,!0),r=this.handle,s=r.evt,u=r.sub,a=u.context,f=u.filter,l=t||{},c;if(this.emitFacade){if(!t||!t.preventDefault)l=s._getFacade(),o(t)&&!t.preventDefault?(e.mix(l,t,!0),n[0]=l):n.unshift(l);l.type=s.type,l.details=n.slice(),f&&(l.container=s.host)}else f&&o(t)&&t.currentTarget&&n.shift();return u.context=a||l.currentTarget||s.host,c=s.fire.apply(s,n),t.prevented&&s.preventedFn&&s.preventedFn.apply(s,n),t.stopped&&s.stoppedFn&&s.stoppedFn.apply(s,n),u.context=a,c},h.prototype={constructor:h,type:"_synth",fn:l,capture:!1,register:function(e){e.evt.registry=this,this.handles.push(e)},unregister:function(t){var n=this.handles,i=r[this.domkey],s;for(s=n.length-1;s>=0;--s)if(n[s].sub===t){n.splice(s,1);break}n.length||(delete i[this.key],e.Object.size(i)||delete r[this.domkey])},detachAll:function(){var e=this.handles,t=e.length;while(--t>=0)e[t].detach()}},e.mix(p,{Notifier:c,SynthRegistry:h,getRegistry:function(t,n,i){var s=t._node,o=e.stamp(s),u="event:"+o+n+"_synth",a=r[o];return i&&(a||(a=r[o]={}),a[u]||(a[u]=new h(s,o,u))),a&&a[u]||null},_deleteSub:function(e){if(e&&e.fn){var t=this.eventDef,r=e.filter?"detachDelegate":"detach";this._subscribers=[],n.keepDeprecatedSubs&&(this.subscribers={}),t[r](e.node,e,this.notifier,e.filter),this.registry.unregister(e),delete e.fn,delete e.node,delete e.context}},prototype:{constructor:p,_init:function(){var e=this.publishConfig||(this.publishConfig={});this.emitFacade="emitFacade"in e?e.emitFacade:!0,e.emitFacade=!1},processArgs:l,on:l,detach:l,delegate:l,detachDelegate:l,_on:function(t,n){var r=[],s=t.slice(),o=this.processArgs(t,n),a=t[2],l=n?"delegate":"on",c,h;return c=u(a)?f(a):i(a||e.one(e.config.win)),!c.length&&u(a)?(h=e.on("available",function(){e.mix(h,e[l].apply(e,s),!0)},a),h):(e.Array.each(c,function(i){var s=t.slice(),u;i=e.one(i),i&&(n&&(u=s.splice(3,1)[0]),s.splice(0,4,s[1],s[3]),(!this.preventDups||!this.getSubs(i,t,null,!0))&&r.push(this._subscribe(i,l,s,o,u)))},this),r.length===1?r[0]:new e.EventHandle(r))},_subscribe:function(t,n,r,i,s){var o=new e.CustomEvent(this.type,this.publishConfig),u=o.on.apply(o,r),a=new c(u,this.emitFacade),f=p.getRegistry(t,this.type,!0),l=u.sub;return l.node=t,l.filter=s,i&&this.applyArgExtras(i,l),e.mix(o,{eventDef:this,notifier:a,host:t,currentTarget:t,target:t,el:t._node,_delete:p._deleteSub},!0),u.notifier=a,f.register(u),this[n](t,l,a,s),u},applyArgExtras:function(e,t){t._extra=e},_detach:function(t){var n=t[2],r=u(n)?f(n):i(n),s,o,a,l,c;t.splice(2,1);for(o=0,a=r.length;o<a;++o){s=e.one(r[o]);if(s){l=this.getSubs(s,t);if(l)for(c=l.length-1;c>=0;--c)l[c].detach()}}},getSubs:function(e,t,n,r){var i=p.getRegistry(e,this.type),s=[],o,u,a,f;if(i){o=i.handles,n||(n=this.subMatch);for(u=0,a=o.length;u<a;++u){f=o[u];if(n.call(this,f.sub,t)){if(r)return f;s.push(o[u])}}}return s.length&&s},subMatch:function(e,t){return!t[1]||e.fn===t[1]}}},!0),e.SyntheticEvent=p,e.Event.define=function(t,n,r){var s,o,f;t&&t.type?(s=t,r=n):n&&(s=e.merge({type:t},n));if(s){if(r||!e.Node.DOM_EVENTS[s.type])o=function(){p.apply(this,arguments)},e.extend(o,p,s),f=new o,t=f.type,e.Node.DOM_EVENTS[t]=e.Env.evt.plugins[t]={eventDef:f,on:function(){return f._on(i(arguments))},delegate:function(){return f._on(i(arguments),!0)},detach:function(){return f._detach(i(arguments))}}}else(u(t)||a(t))&&e.Array.each(i(t),function(t){e.Node.DOM_EVENTS[t]=1});return f}},"patched-v3.18.1",{requires:["node-base","event-custom-complex"]});

YUI.add("event-move",function(e,t){var n=e.Event._GESTURE_MAP,r={start:n.start,end:n.end,move:n.move},i="start",s="move",o="end",u="gesture"+s,a=u+o,f=u+i,l="_msh",c="_mh",h="_meh",p="_dmsh",d="_dmh",v="_dmeh",m="_ms",g="_m",y="minTime",b="minDistance",w="preventDefault",E="button",S="ownerDocument",x="currentTarget",T="target",N="nodeType",C=function(e){var t;return e&&("PointerEvent"in e?t="touchAction":"msPointerEnabled"in e.navigator&&(t="msTouchAction")),t},k=C(e.config.win),L=k==="msTouchAction"||k==="touchAction",A="msTouchActionCount",O="msInitTouchAction",M=function(t,n,r){var i=r?4:3,s=n.length>i?e.merge(n.splice(i,1)[0]):{};return w in s||(s[w]=t.PREVENT_DEFAULT),s},_=function(e,t){return t._extra.root||e.get(N)===9?e:e.get(S)},D=function(t){var n=t.getDOMNode();return t.compareTo(e.config.doc)&&n.documentElement?n.documentElement:!1},P=function(e,t,n){e.pageX=t.pageX,e.pageY=t.pageY,e.screenX=t.screenX,e.screenY=t.screenY,e.clientX=t.clientX,e.clientY=t.clientY,e[T]=e[T]||t[T],e[x]=e[x]||t[x],e[E]=n&&n[E]||1},H=function(t){var n=t.getDOMNode(),r=t.getData(A);L&&(r||(r=0,t.setData(O,n.style[k])),n.style[k]=e.Event._DEFAULT_TOUCH_ACTION,r++,t.setData(A,r))},B=function(e){var t=e.getDOMNode(),n=e.getData(A),r=e.getData(O);L&&(n--,e.setData(A,n),n===0&&t.style[k]!==r&&(t.style[k]=r))},j=function(e,t){t&&(!t.call||t(e))&&e.preventDefault()},F=e.Event.define;e.Event._DEFAULT_TOUCH_ACTION="none",F(f,{on:function(e,t,n){D(e)||H(e),t[l]=e.on(r[i],this._onStart,this,e,t,n)},delegate:function(e,t,n,s){var o=this;t[p]=e.delegate(r[i],function(r){o._onStart(r,e,t,n,!0)},s)},detachDelegate:function(e,t,n,r){var i=t[p];i&&(i.detach(),t[p]=null),D(e)||B(e)},detach:function(e,t,n){var r=t[l];r&&(r.detach(),t[l]=null),D(e)||B(e)},processArgs:function(e,t){var n=M(this,e,t);return y in n||(n[y]=this.MIN_TIME),b in n||(n[b]=this.MIN_DISTANCE),n},_onStart:function(t,n,i,u,a){a&&(n=t[x]);var f=i._extra,l=!0,c=f[y],h=f[b],p=f.button,d=f[w],v=_(n,i),m;t.touches?t.touches.length===1?P(t,t.touches[0],f):l=!1:l=p===undefined||p===t.button,l&&(j(t,d),c===0||h===0?this._start(t,n,u,f):(m=[t.pageX,t.pageY],c>0&&(f._ht=e.later(c,this,this._start,[t,n,u,f]),f._hme=v.on(r[o],e.bind(function(){this._cancel(f)},this))),h>0&&(f._hm=v.on(r[s],e.bind(function(e){(Math.abs(e.pageX-m[0])>h||Math.abs(e.pageY-m[1])>h)&&this._start(t,n,u,f)},this)))))},_cancel:function(e){e._ht&&(e._ht.cancel(),e._ht=null),e._hme&&(e._hme.detach(),e._hme=null),e._hm&&(e._hm.detach(),e._hm=null)},_start:function(e,t,n,r){r&&this._cancel(r),e.type=f,t.setData(m,e),n.fire(e)},MIN_TIME:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1}),F(u,{on:function(e,t,n){var i,o;D(e)||H(e),o=_(e,t,r[s]),i=o.on(r[s],this._onMove,this,e,t,n),t[c]=i},delegate:function(e,t,n,i){var o=this;t[d]=e.delegate(r[s],function(r){o._onMove(r,e,t,n,!0)},i)},detach:function(e,t,n){var r=t[c];r&&(r.detach(),t[c]=null),D(e)||B(e)},detachDelegate:function(e,t,n,r){var i=t[d];i&&(i.detach(),t[d]=null),D(e)||B(e)},processArgs:function(e,t){return M(this,e,t)},_onMove:function(e,t,n,r,i){i&&(t=e[x]);var s=n._extra.standAlone||t.getData(m),o=n._extra.preventDefault;s&&(e.touches&&(e.touches.length===1?P(e,e.touches[0]):s=!1),s&&(j(e,o),e.type=u,r.fire(e)))},PREVENT_DEFAULT:!1}),F(a,{on:function(e,t,n){var i,s;D(e)||H(e),s=_(e,t),i=s.on(r[o],this._onEnd,this,e,t,n),t[h]=i},delegate:function(e,t,n,i){var s=this;t[v]=e.delegate(r[o],function(r){s._onEnd(r,e,t,n,!0)},i)},detachDelegate:function(e,t,n,r){var i=t[v];i&&(i.detach(),t[v]=null),D(e)||B(e)},detach:function(e,t,n){var r=t[h];r&&(r.detach(),t[h]=null),D(e)||B(e)},processArgs:function(e,t){return M(this,e,t)},_onEnd:function(e,t,n,r,i){i&&(t=e[x]);var s=n._extra.standAlone||t.getData(g)||t.getData(m),o=n._extra.preventDefault;s&&(e.changedTouches&&(e.changedTouches.length===1?P(e,e.changedTouches[0]):s=!1),s&&(j(e,o),e.type=a,r.fire(e),t.clearData(m),t.clearData(g)))},PREVENT_DEFAULT:!1})},"patched-v3.18.1",{requires:["node-base","event-touch","event-synthetic"]});

