/* Copyright © 2015 Adobe Systems Incorporated. All rights reserved. Generated by Adobe RoboHelp 2015 */ (function(){var t,e,n;e=window.rh,n=e._,t=e.consts,n.getHostFolder=function(){var t;return t=null,function(){return null==t&&(t=n.isLocal()?window.gHostPath:""+document.location.protocol+"//"+window.gHost+window.gHostPath),t}}(),n.isRootUrl=function(t){var e,r;return null==t&&(t=document.location.href),r=n.getRootUrl(),e=n.filePath(t),e===n.filePath(r)||e===n.parentPath(r)},n.isExternalUrl=function(t){var e,r;return e=n.getHostFolder(),r=t.substring(0,e.length),r!==e},n.fixRelativeUrl=function(t){return null==t&&(t=""),t=t.replace(/\/\.\//g,"/"),"."===t[0]&&"/"===t[1]&&(t=t.substring(2)),t},n.isUrlAllowdInIframe=function(){var t;return t=["",".htm",".html",".asp",".aspx"],function(e){var r,i;return n.isExternalUrl(e)?!1:(i=e.substring(n.getHostFolder().length),r=n.getFileExtention(i).toLowerCase(),-1!==t.indexOf(r))}}()}).call(this),function(){var t,e,n,r,i;r=window.rh,i=r._,n=r.model,e=r.consts,t=e("KEY_MERGED_PROJECT_MAP"),i.parseProjectName=function(t){return t.replace(/\.\//g,"").replace(/\.$/,"").replace(/\/$/,"")},i.mapTagIndex=function(t,e){return null==e&&(e=""),t?t+"+"+e:t},i.getTags=function(e,r){var s,o,a;return null==r&&(r=""),null==e?e:(s=n.get(t),o=e.indexOf("+"),-1!==o&&(r=e.substring(o+1,e.length),e=e.substring(0,o)),r=i.parseProjectName(r),null!=(null!=(a=s[r])?a[e]:void 0)?s[r][e]:e)},i.getProjectName=function(e){var r,s,o;if(r=n.get(t),null!=e&&null!=r){for(e=i.parentPath(e),o=i.makeRelativePath(e,i.getHostFolder()),o=i.parseProjectName(o);null==r[o];){if(s=o.lastIndexOf("/"),0>s){o="";break}o=o.substring(0,s)}e=o}return e},i.evalTagExpression=function(t,e,n){var r,s,o;return null==n&&(n=""),e&&0!==e.length?(s=i.getTags(t,n),s&&0!==s.length&&(1!==s.length||""!==s[0]&&"$"!==s[0])?(o=!1,r=i.any(e,function(t){if(i.evalMultipleTagExpression(t.c,s))o=!0;else if(t.c.length&&i.evalMultipleTagExpression(t.u,s))return!0;return!1}),r?!1:o):!0):!0},i.evalMultipleTagExpression=function(t,e){return i.any(t,function(t){return i.evalSingleTagExpression(t,e)})},i.evalSingleTagExpression=function(){var t,e,n,r,s;return t={},s=["&","|","!"],e=function(t){var e;return e=t.splice(t.length-2),t.push(1===e[0]&&1===e[1]?1:0)},r=function(t){var e;return e=t.splice(t.length-2),t.push(1===e[0]||1===e[1]?1:0)},n=function(t){var e;return e=t.splice(t.length-1),t.push(1===e[0]?0:1)},function(o,a){var l,u,c,h,p,d,f;if(l=""+o+":"+a,u=t[l],null!=u)return u;if(p=i.map(o.split(" "),function(t){return-1!==s.indexOf(t)?t:-1===a.indexOf(t)?0:1}),p.length>1){for(c=[],d=0,f=p.length;f>d;d++)switch(h=p[d]){case"&":e(c);break;case"|":r(c);break;case"!":n(c);break;default:c.push(h)}u=c[0]}else u=p[0];return t[l]=u}}()}.call(this),function(){var t,e,n,r,i;r=window.rh,i=r._,t=r.$,e=r.consts,n=r.model,i.hookClick=function(r){var s,o,a,l,u,c;if(!("button"in r&&0!==r.button||r.defaultPrevented)){for(o=document.body,u=r.target;;){if(!u||u===document)break;if(l=t.getAttribute(u,"href"))break;u=u.parentNode}if(l&&(c=t.getAttribute(u,"target"),!c||"_self"===c)){if("#"===l[0]&&i.isRootUrl())return l.length>1&&(a=""+e("EVT_BOOKMARK")+l,n.isSubscribed(a)?n.publish(a,""):n.publish(e("EVT_NAVIGATE_TO_URL"),{absUrl:""+i.getRootUrl()+l})),i.preventDefault(r);if(i.isValidFileUrl(l)){if(i.isRelativeUrl(l)&&(s=window._getFullPath(i.parentPath(),l)),null==s&&(s=l),!c&&!i.isUrlAllowdInIframe(s))return t.setAttribute(u,"target","_blank");if(n.publish(e("EVT_NAVIGATE_TO_URL"),{absUrl:s}),!c)return i.preventDefault(r)}}}}}.call(this),function(){var t,e,n,r,i,s=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=window.rh,i=r._,t=r.$,n=r.consts,r.model.subscribe(n("EVT_PROJECT_LOADED"),function(){return r.model.subscribe(n("KEY_MERGED_PROJECT_MAP"),function(){var t;return t=i.getProjectName(document.location.href),r.model.publish(n("KEY_TOPIC_ORIGIN"),t)})}),e=function(e){function o(t){this.onTagExpr=s(this.onTagExpr,this),o.__super__.constructor.call(this,t),this.ids=t.ids,this.className=t.className||"rh-hide",this.node=t.node,this.hoverClass="rh-tag-content-hover",this.supClass="rh-applied-tag",this.createTagNode(),this.ids?this.subscribe(n("KEY_TOPIC_ORIGIN"),function(t){return function(){return t.subscribe(n("KEY_TAG_EXPRESSION"),t.onTagExpr)}}(this)):r._debug&&r._d("error","data-tags without any tag combination")}var l;return a(o,e),o.prototype.preventClick=function(t){return i.preventDefault(t),!1},o.prototype.onTagExpr=function(t){var e,r,s;return r=this.get(n("KEY_TOPIC_ORIGIN")),this.get("tags")||(s=i.union(this.ids,function(t){return i.getTags(t,r)}),this.publish("tags",s.join(","))),e=!i.any(this.ids,function(e){return i.evalTagExpression(e,t,r)}),this.toggleClass(e),"rh-hide"!==this.className&&this.toggleClick(e),this.applied=e},o.prototype.toggleClass=function(e){return e?this.applied?void 0:t.addClass(this.node,this.className):t.removeClass(this.node,this.className)},o.prototype.toggleClick=function(t){if(t){if(!this.applied)return i.addEventListener(this.node,"click",this.preventClick)}else if(this.applied)return i.removeEventListener(this.node,"click",this.preventClick)},o.prototype.onHover=function(){return t.addClass(this.node,this.hoverClass)},o.prototype.onMouseOut=function(){return t.removeClass(this.node,this.hoverClass)},l=["IMG","OBJECT","VIDEO"],o.prototype.appendNode=function(t){var e,n;return e=this.node,n=null,-1!==l.indexOf(this.node.nodeName)&&(e=this.node.parentNode,n=this.node.nextSibling),n?e.insertBefore(t,n):e.appendChild(t),this.resolveDataAttrs(t)},o.prototype.createTagNode=function(){return this.subscribe(n("KEY_SHOW_TAGS"),function(e){return function(n){var r;if(n&&!(t.find(e.node,"sup."+e.supClass).length>0))return r=document.createElement("sup"),t.setAttribute(r,"data-text","tags"),t.setAttribute(r,"data-mouseover","this.onHover()"),t.setAttribute(r,"data-mouseout","this.onMouseOut()"),t.setAttribute(r,"class",e.supClass),e.appendNode(r)}}(this))},o}(r.Widget),window.rh.widgets.ContentFilter=e}.call(this);