YUI.add("widget-htmlparser",function(d,e){var o=d.Widget,t=d.Node,a=d.Lang,i="srcNode";o.HTML_PARSER={},o._buildCfg={aggregates:["HTML_PARSER"]},o.ATTRS[i]={value:null,setter:t.one,getter:"_getSrcNode",writeOnce:!0},d.mix(o.prototype,{_getSrcNode:function(e){return e||this.get("contentBox")},_preAddAttrs:function(e,t,n){var r={id:e.id,boundingBox:e.boundingBox,contentBox:e.contentBox,srcNode:e.srcNode||d.Object(o.ATTRS[i])};this.addAttrs(r,t,n),delete e.boundingBox,delete e.contentBox,delete e.srcNode,delete e.id,this._applyParser&&this._applyParser(t)},_applyParsedConfig:function(e,t,n){return n?d.mix(t,n,!1):t},_applyParser:function(e){var r,o,i=this,s=this._getNodeToParse(),t=i._getHtmlParser();t&&s&&d.Object.each(t,function(e,t,n){o=null,a.isFunction(e)?o=e.call(i,s):a.isArray(e)?(o=s.all(e[0])).isEmpty()&&(o=null):o=s.one(e),null!==o&&o!==undefined&&((r=r||{})[t]=o)}),i._applyParsedConfig(s,e,r)},_getNodeToParse:function(){var e=this.get("srcNode");return this._cbFromTemplate?null:e},_getHtmlParser:function(){for(var e,t=this._getClasses(),n={},r=t.length-1;0<=r;r--)(e=t[r].HTML_PARSER)&&d.mix(n,e,!0);return n}})},"patched-v3.18.3",{requires:["widget-base"]});