function resolveHelp2Keyword(e,t){var n="";try{if(n=findHelp2Keyword(getCurrentHelp2Namespace(),e),""==n&&(n=findHelp2Keyword("MS.VSCC.v80",e),""==n&&(n=findHelp2Keyword("MS.VSCC.2003",e),""==n&&(n=findHelp2Keyword("MS.VSCC",e)))),""!=n)return n;var i,o,a=new ActiveXObject("HxDs.HxRegistryWalker"),s=a.RegisteredNamespaceList("MS.VSCC");if(s.Count>0)for(var r=1;r<=s.Count;r++)if(i=s.Item(r),o=i.Name,"MS.VSCC"==o.substring(0,7))switch(o){case"MS.VSCC.v80":break;case"MS.VSCC.2003":break;case"MS.VSCC":break;default:if(n=findHelp2Keyword(o,""),""!=n)return n}}catch(c){}var l=t.indexOf("(");return-1!=l&&(t=t.substring(0,l)),"http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k("+t+")&rd=true"}function findHelp2Keyword(e,t){var n,i;if(e.length>0)try{if(n=new ActiveXObject("HxDs.HxSession"),n.Initialize("ms-help://"+e,0),i=n.Query(t,"!DefaultAssociativeIndex",0,""),i.Count>0)return i(1).URL}catch(o){}return""}function navigateToHelp2Keyword(e,t,n){window.status="Resolving link. Please wait a moment...";var i=resolveHelp2Keyword(e,t);window.status="","http://msdn.microsoft.com"===i.substring(0,25)&&null!=window.parent?window.open(i,"_blank"):1==n?location.replace(i):location.href=i}function getCurrentHelp2Namespace(){var e="",t=window.location;return"ms-help:"==t.protocol&&(e=t.hostname,"//"==e.substring(0,2)&&(e=e.substring(2))),e}var __extends=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Innovasys;!function(e){var t;!function(t){var n=function(){function e(){this.test="test";var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];this.name=t[1]||"",this.version=parseInt(t[2]||"0")}return e}();t.BrowserInfo=n;var i=function(){function t(){}return t.msIeVersion=function(){return"msie"==t.info.name?t.info.version:0},t.getDocumentInstance=function(t){var n=null;n=t instanceof jQuery?t:$(t);var i=n.hasClass("content-root")?n:n.parents(".content-root");if(i=0==i.length?$("body"):$(i.get(0)),null!=i.data("innovasys-document"))return i.data("innovasys-document");var o=new e.Content.Document(i.get(0));return i.data("innovasys-document",o),o},t.getWindowLocationHref=function(){return window.location.href},t.navigateTo=function(e,t){void 0===t&&(t=!1),t?window.location.replace(e):window.location.href=e},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.returnValue=!1},t.loadStylesheet=function(e,t,n,i){void 0===i&&(i=null);var o="file"+this.dynamicallyLoadedFileIndex;this.dynamicallyLoadedFileIndex++;var a={"data-stylesheet-id":t};return yepnope.injectCss({href:e,attrs:a},function(){i(o)}),o},t.loadScript=function(e,t,n,i){void 0===i&&(i=null);var o="file"+this.dynamicallyLoadedFileIndex;this.dynamicallyLoadedFileIndex++;var a={"data-script-id":t};return yepnope.injectJs({src:e,attrs:a},function(){i(o)}),o},t.resizeIFrames=function(e,t){void 0===t&&(t=!1);var n=0,i=0;try{i=$(window.top).height()}catch(o){i=$(window).height()}$("iframe",e).each(function(e,o){if($(o).is(":visible")&&(t||$(o).offset().left>=0)){var a=0,s=null;try{s=o.contentDocument?o.contentDocument:o.contentWindow.document||o.document}catch(r){}if(null!=s)try{a=$(s).height()}catch(r){a=i}else a=i;var c=$(o).data("last-height");c||(c=0);var l=a-c;if(l>10||0>l&&10>l){var u=$(o).parent();"DIV"==u.get(0).tagName&&aa&&(a=i),$(o).height(a+"px"),$(o).data("last-height",a)}}else $(o).is(":visible")||($(o).height(0),$(o).data("last-height",0));a>n&&(n=a)});var a=$("#i-busy");return 0!=a.length&&a.height(n),n},t.showElement=function(e){e.show(),"none"==e.css("display")&&$("body").css("display","block")},t.checkForIe7ModeJqueryBug=function(){if("msie"==t.info.name&&t.info.version<=7){var e={set:function(e,t,n){return e.setAttribute(n,t),e.getAttributeNode(n)}};if(null!=$&&null!=$.attrHooks){var n=$.attrHooks;n["aria-describedby"]=e,n["aria-live"]=e,n["aria-atomic"]=e,n["aria-hidden"]=e}}},t.isDesignTime=!1,t.isAnimationDisabled=!1,t.info=new n,t.dynamicallyLoadedFileIndex=0,t}();t.Browser=i}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var overrides=Innovasys.overrides;("BackCompat"!=document.compatMode||"ms-xhelp:"!=location.protocol&&-1==location.href.indexOf("ms.help?")&&-1==location.href.indexOf("?method=page&"))&&(null!=overrides&&overrides.isHideBodyDuringLoadDisabled||document.write(''));var Innovasys;!function(e){var t;!function(e){var t=function(){function e(e,t){this.left=e,this.top=t}return e}();e.ElementPosition=t}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(e){var t=function(){function t(){}return t.getElementPosition=function(t){for(var n=0,i=0;t;)e.Browser.msIeVersion()>4?(n+=t.offsetLeft-t.scrollLeft,i+=t.offsetTop-t.scrollTop):(n+=t.offsetLeft,i+=t.offsetTop),t=t.offsetParent;return-1!=navigator.userAgent.indexOf("Mac")&&"undefined"!=typeof document.body.leftMargin&&(n+=document.body.leftMargin,i+=document.body.topMargin),new e.ElementPosition(n,i)},t.getTextFromContainingTable=function(e){var t=$($(e).parents("table").get(0)),n=t.find("td").get(0);return null!=n?null!=n.textContent?n.textContent:null!=n.innerText?n.innerText:$(n).text():void 0},t}();e.DomHelpers=t}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(e){var t=function(){function e(e){void 0===e&&(e=""),this.attributePrefix=e,this.storageMethod="native",this.cookieData=null,this.storageElement=null;var t;try{t=window.localStorage}catch(n){}if(!t)if("ms-its:"==location.protocol){this.storageMethod="userdata";var i=$("");i.css("behavior","url(#default#userdata)"),i.appendTo("body"),this.storageElement=i.get(0),this.storageElement.load("localStorage")}else{this.storageMethod="cookie";var o=$.cookie("localStorage");o?this.cookieData=JSON.parse(o):this.cookieData={}}}return e.prototype.load=function(e){},e.prototype.save=function(e){},e.prototype.setAttribute=function(e,t){null!=this.attributePrefix&&(e=this.attributePrefix+e),"native"==this.storageMethod?null==t||void 0==t?window.localStorage.removeItem(e):window.localStorage.setItem(e,t):"cookie"==this.storageMethod?(null==t?this.cookieData[e]=null:this.cookieData[e]=t+"",$.cookie("localStorage",JSON.stringify(this.cookieData),{expires:365,path:"/",domain:""})):"userdata"==this.storageMethod&&(this.storageElement.setAttribute(e,t+""),this.storageElement.save("localStorage"))},e.prototype.getAttribute=function(e){return null!=this.attributePrefix&&(e=this.attributePrefix+e),"native"==this.storageMethod?window.localStorage.getItem(e):"cookie"==this.storageMethod?void 0===this.cookieData[e]?null:this.cookieData[e]:"userdata"==this.storageMethod?this.storageElement.getAttribute(e):void 0},e}();e.LocalStorageHandler=t}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(e){var t=function(){function e(e,t){this.messageType=e,this.messageData=t}return e}();e.WindowMessage=t;var n=function(){function e(){}return e.isPostMessageEnabled=function(){return null!=window.postMessage},e.addMessageListener=function(t){e.isPostMessageEnabled()&&(window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent("onmessage",t))},e.removeMessageListener=function(t){e.isPostMessageEnabled()&&(window.addEventListener?window.removeEventListener("message",t,!1):window.detachEvent("onmessage",t))},e.getMessageFromData=function(e){var n=e.indexOf("|"),i=null,o=null;return-1!=n?(i=e.substring(0,n),o=e.substring(n+1)):(i=e,o=""),new t(i,o)},e.routeMessageToFrameElement=function(t,n,i){var o=document.getElementById(t);null!=o&&null!=o.contentWindow&&e.routeMessageToWindow(o.contentWindow,n,i)},e.routeMessageToWindow=function(e,t,n){null!=e&&self!=e&&null!=e&&null!=e.postMessage&&e.postMessage(t+"|"+n,"*")},e.routeMessageToParentFrame=function(e,t){null!=parent&&self!=parent&&this.routeMessageToWindow(parent,e,t)},e}();e.Messaging=n}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(e){var t=function(){function e(e){this.documentInstance=null,this._responsiveConfiguration=null,this.documentInstance=e}return e.prototype.initializeDocument=function(){},e.prototype.initializeContent=function(e,t){void 0===t&&(t=!1)},e.prototype.onMessage=function(e){},e.prototype.getName=function(){throw new Error("Feature name not implemented")},e.prototype.ensureElementVisible=function(e){},e.prototype.beforeSetElementVisibility=function(e,t,n){return!1},e.prototype.afterSetElementVisibility=function(e,t){},e.prototype.populateResponsiveConfiguration=function(e){},e.prototype.applyResponsiveConfiguration=function(e){},e.prototype.initializeContentOrdinal=function(){return 0},e}();e.DocumentFeatureBase=t;var n=function(){function e(){}return e.registerDocumentFeatureFactory=function(t){e._featureFactories.push(t)},e.getFeatureFactories=function(){return e._featureFactories},e._featureFactories=[],e}();e.DocumentFeatureConfiguration=n;var i=function(){function e(e,t){void 0===t&&(t=[]),this.profileName=e,this.clickTargets=t,this.stylesheetUrls=[],this.tablesToPivot=[]}return e}();e.ResponsiveConfiguration=i;var o=function(){function e(e,t){this.className=e,this.kind=t}return e}();e.ResponsiveClickTarget=o;var a=function(){function e(e,t){void 0===t&&(t=null),this.selector=e,this.onAfterPivot=t}return e}();e.ResponsiveTable=a,function(e){e[e.auto=0]="auto",e[e.inline=1]="inline",e[e.block=2]="block"}(e.ResponsiveClickTargetKind||(e.ResponsiveClickTargetKind={}));e.ResponsiveClickTargetKind}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(t){var n=function(){function n(e,n){var i=this;void 0===n&&(n=""),this._localStorageInstance=null,this._isUnloaded=!0,this.id="",this.rootElement=null,this.rootSelector=null,this.isNew=!1,this.isResponsiveEnabled=!1,this.setBodyVisibleAfterLoadComplete=!0,this.isContentDocument=!0,this._features=null,this.id=n,this.rootElement=e,this.rootSelector=$(e),this.rootSelector.data("innovasys-document",this),this._features=$.map(t.DocumentFeatureConfiguration.getFeatureFactories(),function(e,t){return e.createInstance(i)}),$.each(this._features,function(e,t){t.initializeDocument()})}return n.prototype.getLocalStorage=function(){if(t.Browser.isDesignTime)try{window.external.IsInnovasysDesigner&&(this._localStorageInstance=window.external)}catch(e){}return this._localStorageInstance||(this._localStorageInstance=new t.LocalStorageHandler(this.id)),this._localStorageInstance},n.prototype.load=function(){var n=this;""==this.id&&e.Content.Messaging.isPostMessageEnabled()&&(this._windowMessageEventListener=function(e){return n.receiveMessage(e)},e.Content.Messaging.addMessageListener(this._windowMessageEventListener),this.isContentDocument&&(t.Messaging.routeMessageToParentFrame("loaded",location.href),t.Messaging.routeMessageToParentFrame("updatePageTitle",document.title))),this.initializeContent(this.rootSelector,!0),""==this.id&&this.setBodyVisibleAfterLoadComplete&&$("body").css("display","block")},n.prototype.unload=function(){""==this.id&&e.Content.Messaging.isPostMessageEnabled()&&null!=this._windowMessageEventListener&&e.Content.Messaging.removeMessageListener(this._windowMessageEventListener),this._isUnloaded=!0},n.prototype.initializeContent=function(e,t){void 0===t&&(t=!1),$.each(this._features.sort(function(e,t){return e.initializeContentOrdinal()-t.initializeContentOrdinal()}),function(n,i){i.initializeContent(e,t)})},n.prototype.getResponsiveConfiguration=function(e){var n=new t.ResponsiveConfiguration(e);return $.each(this._features,function(e,t){t.populateResponsiveConfiguration(n)}),n},n.prototype.applyResponsiveConfiguration=function(e){$.each(this._features,function(t,n){n.applyResponsiveConfiguration(e)})},n.prototype.receiveMessage=function(t){var n=null;try{n=e.Content.Messaging.getMessageFromData(t.data)}catch(i){}this.processWindowMessage(n)},n.prototype.processWindowMessage=function(e){if(e)switch(e.messageType){case"refresh":document.location.reload();break;default:null!=this._features&&$.each(this._features,function(t,n){n.onMessage(e)})}},n.prototype.ensureElementVisible=function(e){$.each(this._features,function(t,n){n.ensureElementVisible(e)})},n.prototype.setElementVisibility=function(e,n,i){var o=this;return e.each(function(e,a){var s=!1;if($.each(o._features,function(e,t){s||1==t.beforeSetElementVisibility(a,n,i)&&(s=!0)}),!s){if("none"!=$(a).css("display")!=n)if("none"==$(a).css("display"))if(i||t.Browser.isAnimationDisabled){var r=$(a).data("i-original-display");null!=r?($(a).css("display",r),$(a).data("i-original-display",null)):"TR"==a.tagName?$(a).css("display","table-row"):$(a).css("display","block")}else $(a).slideDown("fast");else $(a).data("i-original-display",$(a).css("display")),i||t.Browser.isAnimationDisabled?$(a).hide():$(a).slideUp("fast");$.each(o._features,function(e,t){t.afterSetElementVisibility(a,n)})}})},n.prototype.getFeatureByName=function(e){if(null==e)return null;var t=$.map(this._features,function(t,n){return t.getName().toLowerCase()===e.toLowerCase()?t:null});return t.length>0?t[0]:void 0},n}();t.Document=n;var i=function(){function e(){}return e.quickSearch="quickSearch",e.resetQuickSearch="resetquicksearch",e.insertNavigationHeader="insertNavigationHeader",e.searchHighlightComplete="searchHighlightComplete",e}();t.DocumentMessageNames=i}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(t){var n;!function(n){var i=function(){function e(){}return e.prototype.createInstance=function(e){return new o(e)},e}();n.ResponsiveDocumentFeatureFactory=i;var o=function(n){function i(e){n.call(this,e),this._pendingResponsiveFiles=new Array,this._configuration=null}return __extends(i,n),i.prototype.getName=function(){return"Responsive"},i.prototype.initializeDocument=function(){e.Content.Messaging.addMessageListener(function(e){})},i.prototype.checkPendingResponsiveFilesLoad=function(e){this._pendingResponsiveFiles=$.map(this._pendingResponsiveFiles,function(t,n){return t==e?null:t}),0==this._pendingResponsiveFiles.length&&this.onResponsiveFilesLoaded()},i.prototype.initializeContent=function(e,n){var i=this;if(void 0===n&&(n=!1),1==n){var o=this.getDeviceType().toLowerCase(),a=this.documentInstance.getResponsiveConfiguration(o);if(this.documentInstance.isResponsiveEnabled){switch(o){case"mobile":$(".i-hidden-mobile, .i-visible-tablet, .i-visible-desktop").css("display","hidden");break;case"tablet":$(".i-hidden-tablet, .i-visible-mobile, .i-visible-desktop").css("display","hidden");break;case"desktop":$(".i-hidden-desktop, .i-visible-mobile, .i-visible-tablet").css("display","hidden")}if("desktop"!=o&&($("link[data-responsive-"+o+"]").each(function(e,n){var a=$(n).attr("data-responsive-"+o);null!=a&&(i.documentInstance.setBodyVisibleAfterLoadComplete=!1,$.each(a.split(","),function(e,n){i._pendingResponsiveFiles.push(t.Browser.loadStylesheet(n,"data-responsive-"+o,"responsive-marker",function(e){i.checkPendingResponsiveFilesLoad(e)}))}))}),$("script[type='i-url-container/css']").each(function(e,n){var a=$(n),s=a.data("responsive-display-modes");if(null!=s&&-1!=s.toLowerCase().indexOf(o)){var r=$.trim(a.html());i.documentInstance.setBodyVisibleAfterLoadComplete=!1,i._pendingResponsiveFiles.push(t.Browser.loadStylesheet(r,"data-responsive-"+o,"responsive-marker",function(e){i.checkPendingResponsiveFilesLoad(e)}))}}),$("script[type='i-url-container/script']").each(function(e,n){var a=$(n),s=a.data("responsive-display-modes");if(null!=s&&-1!=s.toLowerCase().indexOf(o)){var r=$.trim(a.html());i.documentInstance.setBodyVisibleAfterLoadComplete=!1,i._pendingResponsiveFiles.push(t.Browser.loadScript(r,"data-responsive-"+o,"responsive-marker",function(e){i.checkPendingResponsiveFilesLoad(e)}))}})),"mobile"==a.profileName||"tablet"==a.profileName){switch(a.profileName){case"mobile":a.clickTargets.push(new t.ResponsiveClickTarget(".i-link>a,.i-member-link a",t.ResponsiveClickTargetKind.block));break;case"tablet":a.clickTargets.push(new t.ResponsiveClickTarget(".i-breadcrumbs-container a,#i-after-header-content .i-page-link,#i-after-header-content .i-popup-link,#i-after-header-content .i-function-link",t.ResponsiveClickTargetKind.inline)),a.clickTargets.push(new t.ResponsiveClickTarget("a[href='#top']",t.ResponsiveClickTargetKind.block))}a.clickTargets.push(new t.ResponsiveClickTarget("#i-footer-content>a,#i-after-header-content .i-function-link",t.ResponsiveClickTargetKind.inline)),a.clickTargets.push(new t.ResponsiveClickTarget("#i-seealso-section-content a,.i-in-this-topic-container a",t.ResponsiveClickTargetKind.block)),a.tablesToPivot.push(new t.ResponsiveTable("table.pivot-table,table.i-pivot-table"))}}this._configuration=a,0==this._pendingResponsiveFiles.length&&this.onResponsiveFilesLoaded()}},i.prototype.initializeContentOrdinal=function(){return 999},i.prototype.applyResponsiveConfiguration=function(e){var t=this;$.each(e.clickTargets,function(e,n){t.applyClickTarget(n)}),$.each(e.tablesToPivot,function(e,t){$(t.selector).each(function(e,n){var o=i.pivotTable(n);null!=o&&null!=t.onAfterPivot&&t.onAfterPivot($(n),o)})})},i.prototype.onMessage=function(e){if(e)switch(e.messageType){case t.DocumentMessageNames.insertNavigationHeader:this.insertNavigationHeader();break;case t.DocumentMessageNames.searchHighlightComplete:$("a#i-remove-highlighting").css("display","inline")}},i.prototype.insertNavigationHeader=function(){var e=this;if(0==$("body > div.navigation-header").length){var n=$('
'),i=n.find(".i-inner-container").first();$('').appendTo(i),$('').appendTo(i),$('').appendTo(i),$('').appendTo(i),$('').appendTo(i),$('').appendTo(i),$(".i-search-highlight").length&&i.children("#i-remove-highlighting").css("display","inline"),i.children("a").off("click.responsive").on("click.responsive",function(n){var i=window.parent;if("undefined"!=typeof i)switch($(n.currentTarget).attr("id")){case"i-nav-previous":t.Messaging.routeMessageToParentFrame("navigate","previous");break;case"i-nav-next":t.Messaging.routeMessageToParentFrame("navigate","next");break;case"i-nav-index":case"i-nav-toc":case"i-nav-search":var o=$(n.currentTarget).attr("id");"i-"==o.substring(0,2)&&(o=o.substring(2)),t.Messaging.routeMessageToParentFrame("openNavigationPane",o);break;case"i-remove-highlighting":e.documentInstance.processWindowMessage(new t.WindowMessage(t.DocumentMessageNames.resetQuickSearch,null))}}),n.prependTo($("body")),1==$("html").data("responsive-load-complete")&&($("html").addClass("i-loaded"),t.Browser.showElement($("body")),$("html").data("responsive-load-complete",null))}},i.prototype.applyClickTarget=function(e){var n=e.kind==t.ResponsiveClickTargetKind.inline?"btn btn-mini btn-xs":"btn";$(e.className).addClass(n)},i.prototype.getDeviceType=function(){if(!this.documentInstance.isResponsiveEnabled)return"DESKTOP";var e=this.getForcedDisplayMode();return null!=e?e:Modernizr.touch?Modernizr.mq("screen and (orientation: portrait) and (max-device-width: 600px)")?"MOBILE":Modernizr.mq("screen and (orientation: landscape) and (max-device-width: 767px)")?"MOBILE":"TABLET":-1!=navigator.userAgent.indexOf("Windows Phone OS")?"MOBILE":"DESKTOP"},i.prototype.getForcedDisplayMode=function(){var t=e.overrides||{};if(null!=t&&"undefined"!=typeof t.forcedDisplayMode&&null!=t.forcedDisplayMode)return t.forcedDisplayMode;if("#ForceDisplayDesktop"==window.location.hash)return"DESKTOP";if("#ForceDisplayMobile"==window.location.hash)return"MOBILE";if("#ForceDisplayTablet"==window.location.hash)return"TABLET";if(self!=top){var n=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")),i="innovasys-responsive-"+n.replace(/[^a-zA-Z0-9_\-]/g,"");if(null!=this.documentInstance.getLocalStorage().getAttribute(i))return this.documentInstance.getLocalStorage().getAttribute(i)}return null},i.prototype.setForcedDisplayMode=function(e){var t=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")),n="innovasys-responsive-"+t.replace(/[^a-zA-Z0-9_\-]/g,"");this.documentInstance.getLocalStorage().setAttribute(n,e)},i.prototype.onResponsiveFilesLoaded=function(){this.documentInstance.applyResponsiveConfiguration(this._configuration),"desktop"!=this._configuration.profileName&&(this.documentInstance.isContentDocument&&0==$("body > div.i-navigation-header").length?$("html").data("responsive-load-complete",!0):($("html").addClass("i-loaded"),t.Browser.showElement($("body"))))},i.pivotTable=function(e){var t=$(e),n=$('
'),i={},o=t.find("tr").children("td.i-pivot-column, th.i-pivot-column").first().index();return-1==o?null:(t.find("tr:first-child").children("td:not(.i-pivot-column), th:not(.i-pivot-column)").each(function(e,t){i[e.toString()]=$(t).text()}),t.find("tr").each(function(e,t){if(e>0){var a,s=$('
');$(t).children("td").each(function(e,t){if(e==o)a=$('
'+$(t).text()+"
");else{var n=$(""+i[e.toString()]+"");$(t).clone().appendTo(n),n.find("td a").addClass("btn btn-mini btn-xs"),n.appendTo(s)}}),a.appendTo(n),s.appendTo(n)}}),n)},i}(t.DocumentFeatureBase);n.ResponsiveDocumentFeature=o}(n=t.Features||(t.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.ResponsiveDocumentFeatureFactory);var __extends=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Innovasys;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.syncTableOfContents="syncToC",e.select="select",e.shrinkIFrames="shrinkIframes",e.loaded="loaded",e.toggleTocPrevious="toggle-toc-previous",e.toggleTocNext="toggle-toc-next",e.navigate="navigate",e.activated="activated",e.updateNavigationButtons="update-navigation-buttons",e.updatePageTitle="updatePageTitle",e.openNavigationPane="openNavigationPane",e.closeNavigationPane="closeNavigationPane",e.insertRemoveHighlighting="insertRemoveHighlighting",e}();e.NavigationMessageNames=t}(t=e.Features||(e.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={}));var Innovasys;!function(e){var t;!function(e){var t;!function(t){var n=function(){function e(){}return e.prototype.createInstance=function(e){return new i(e)},e}();t.NavigationDocumentFeatureFactory=n;var i=function(n){function i(e){n.call(this,e),this._rootSelector=null,this._isIframeResizeTimerDisabled=!1,this._isAccordionView=!0,this._navigationFrames=["i-toc","i-index","i-search"],this._isEnabled=!1,this.isTocNavigationEnabled=!1,this.isStartOfToc=!1,this.isEndOfToc=!1}return __extends(i,n),i.prototype.getName=function(){return"Navigation"},i.prototype.initializeContent=function(e,t){void 0===t&&(t=!1),this._rootSelector=e,$("#i-navigation-container",this._rootSelector).length>0&&(this._isEnabled=!0)},i.prototype.populateResponsiveConfiguration=function(e){!this._isEnabled},i.prototype.onMessage=function(n){if(this._isEnabled)switch(n.messageType){case t.NavigationMessageNames.syncTableOfContents:e.Messaging.routeMessageToFrameElement("i-toc",n.messageType,n.messageData);break;case t.NavigationMessageNames.select:this.selectNavigationFrame(n.messageData);break;case t.NavigationMessageNames.shrinkIFrames:this.shrinkFrame($("iframe#i-toc,iframe#i-index,iframe#i-search"));break;case t.NavigationMessageNames.loaded:e.Messaging.routeMessageToFrameElement("i-search",n.messageType,n.messageData);break;case e.DocumentMessageNames.quickSearch:case e.DocumentMessageNames.searchHighlightComplete:e.Messaging.routeMessageToWindow(parent,n.messageType,n.messageData);break;case t.NavigationMessageNames.toggleTocPrevious:this.isStartOfToc="true"==n.messageData,$("#i-toc-header #i-previous").toggleClass("i-arrow-left-disabled",this.isStartOfToc);break;case t.NavigationMessageNames.toggleTocNext:this.isEndOfToc="true"==n.messageData,$("#i-toc-header #i-next").toggleClass("i-arrow-right-disabled",this.isEndOfToc);break;case t.NavigationMessageNames.navigate:"previous"==n.messageData||"next"==n.messageData?this.navigateToc(n.messageData):e.Messaging.routeMessageToWindow(parent,n.messageType,n.messageData)}},i.prototype.navigateToc=function(n){e.Messaging.routeMessageToFrameElement("i-toc",t.NavigationMessageNames.navigate,n)},i.prototype.applyResponsiveConfiguration=function(n){var i=this;if(this._isEnabled)if("desktop"!=n.profileName)this._isAccordionView=!1,$(".i-header, .i-header.ui-state-active").css("display","none"),Modernizr.touch&&$("iframe").attr("scrolling","no"),$(window).off("resize.navigation").on("resize.navigation",function(){i.addCloseButtonChevrons()}),$("#i-close-pane",this._rootSelector).off("click.navigation","a.btn, i.i-image").on("click.navigation","a.btn, i.i-image",function(n){n.preventDefault();var i=window.parent;e.Messaging.routeMessageToWindow(i,t.NavigationMessageNames.closeNavigationPane,null)}),e.Browser.resizeIFrames(this._rootSelector),setInterval(function(){i._isIframeResizeTimerDisabled||e.Browser.resizeIFrames(i._rootSelector)},500);else{if(this._isAccordionView=!0,$("#i-accordion",this._rootSelector).length>0)$("#i-accordion",this._rootSelector).accordion({heightStyle:"fill"}),setTimeout(function(){$("#i-accordion",i._rootSelector).accordion("refresh")},1),$(window).off("resize.navigation").on("resize.navigation",function(){null!=$("#i-accordion",i._rootSelector).data("ui-accordion")&&$("#i-accordion",i._rootSelector).accordion("refresh")}),setInterval(function(){},500),$("#i-accordion",this._rootSelector).off("accordionactivate.navigation").on("accordionactivate.navigation",function(n,i){"i-search-header"==i.newHeader.attr("id")&&e.Messaging.routeMessageToFrameElement("i-search",t.NavigationMessageNames.activated,null)});else if($("#i-tabstrip",this._rootSelector).length>0){var o={heightStyle:"fill"};$("#i-tabstrip",this._rootSelector).tabs(o),setTimeout(function(){$("#i-tabstrip",i._rootSelector).tabs("refresh")},1),$(window).off("resize.navigation").on("resize.navigation",function(){null!=$("#i-tabstrip",i._rootSelector).data("ui-tabs")&&$("#i-tabstrip",i._rootSelector).tabs("refresh")})}if(this.isTocNavigationEnabled){var a=$('
');a.append('
'),a.append('
'),$("#i-toc-header",this._rootSelector).append(a),$("#i-toc-header #i-next",this._rootSelector).off("click.tocnavigation").on("click.tocnavigation",function(){i.isEndOfToc||i.navigateToc("next")}),$("#i-toc-header #i-previous",this._rootSelector).off("click.tocnavigation").on("click.tocnavigation",function(){i.isStartOfToc||i.navigateToc("previous")})}}},i.prototype.shrinkFrame=function(e){e.height(null),e.data("last-height",null),e.css("display","none")},i.prototype.selectNavigationFrame=function(t){null!=t&&0==t.indexOf("nav-")&&(t="i-"+t.substring(4));for(var n=0;n i.i-image").remove();for(var i=e/2;n>i;i+=e){var o=$('');o.css("top",i+"px"),o.appendTo("#i-close-pane")}},i}(e.DocumentFeatureBase);t.NavigationDocumentFeature=i}(t=e.Features||(e.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.NavigationDocumentFeatureFactory);var Innovasys;!function(e){var t;!function(e){var t;!function(t){var n=function(){function e(){}return e.prototype.createInstance=function(e){return new i(e)},e}();t.TableOfContentsDocumentFeatureFactory=n;var i=function(n){function i(e){n.call(this,e),this._lastSelectedNode=null,this._ignoreSyncRequest=!1,this._selectedNodeIndex=-1,this._firstNodeIndex=-1,this._lastNodeIndex=-1,this._tocNodeCount=-1,this._selectedNodeHref=null,this._rootSelector=null,this._isTocConstructed=!1,this._isMobileToc=!1,this._isEnabled=!1,this.syncTocUrl=null}return __extends(i,n),i.prototype.getName=function(){return"TableOfContents"},i.prototype.initializeContent=function(e,t){void 0===t&&(t=!1),t&&(this._rootSelector=e,$("#i-toc-container",this._rootSelector).length>0&&(this._isEnabled=!0,this._indexNodes()))},i.prototype.populateResponsiveConfiguration=function(e){!this._isEnabled},i.prototype.applyResponsiveConfiguration=function(e){if(this._isEnabled&&("desktop"==e.profileName?($("html").removeClass("ui-mobile").removeClass("ui-mobile-rendering"),this.constructDesktopToc($("ul#i-root",this._rootSelector)),this._isTocConstructed=!0):($("ul#i-root",this._rootSelector).css("display","none"),this.constructMobileToC(),this._isMobileToc=!0,this._isTocConstructed=!0,$("ul#i-root",this._rootSelector).addClass("visible")),null!=this.syncTocUrl)){var t=this.syncTocUrl;this.syncTocUrl=null,this.syncTocNodeToUrl(t)}},i.prototype.onMessage=function(n){if(this._isEnabled)switch(n.messageType){case t.NavigationMessageNames.navigate:if(n.messageData){var i=null;if("next"==n.messageData?i=this.moveToNextNode():"previous"==n.messageData&&(i=this.moveToPreviousNode()),null!=i&&i.length&&(this._ignoreSyncRequest=!1,this.syncTocNode(i),this._ignoreSyncRequest=!0,"#"!=i.attr("href").substring(0,1))){var o=window.parent.parent;e.Messaging.routeMessageToWindow(o,t.NavigationMessageNames.navigate,i.attr("href"))}}break;case t.NavigationMessageNames.updateNavigationButtons:this.updateNavigationButtons();break;case t.NavigationMessageNames.syncTableOfContents:this.syncTocNodeToUrl(n.messageData)}},i.prototype.updateNavigationButtons=function(){e.Messaging.routeMessageToWindow(window.parent,t.NavigationMessageNames.toggleTocNext,this.isLastNodeSelected()?"true":"false"),e.Messaging.routeMessageToWindow(window.parent,t.NavigationMessageNames.toggleTocPrevious,this.isFirstNodeSelected()?"true":"false")},i.prototype.moveToNextNode=function(){return this._moveNode(!1)},i.prototype.moveToPreviousNode=function(){return this._moveNode(!0)},i.prototype.setSelectedNode=function(e){this._selectedNodeIndex=parseInt(e.attr("data-node-index")),this._selectedNodeHref=e.attr("href")},i.prototype.isLastNodeSelected=function(){return-1==this._tocNodeCount&&(this._tocNodeCount=this._getAnchors().length),this._selectedNodeIndex==this._lastNodeIndex},i.prototype.isFirstNodeSelected=function(){return this._selectedNodeIndex==this._firstNodeIndex},i.prototype._getAnchors=function(){return this._rootSelector.find("#i-toc-container > ul#i-root a[data-node-index]")},i.prototype._moveNode=function(e){var t=this._getAnchors();if(e){if(this._selectedNodeIndex>0)do this._selectedNodeIndex--;while("#"==t.eq(this._selectedNodeIndex).attr("href").substring(0,1)&&this._selectedNodeIndex>0); }else if(t.length-1>this._selectedNodeIndex)do this._selectedNodeIndex++;while("#"==t.eq(this._selectedNodeIndex).attr("href").substring(0,1)&&t.length-1>this._selectedNodeIndex);return t.eq(this._selectedNodeIndex)},i.prototype.isPageSelected=function(e){return e.attr("href")==this._selectedNodeHref},i.prototype.constructDesktopToc=function(e){this.processListElement(e)},i.prototype.expandOrCollapseClickHandler=function(e){var t=$(e.target).nextAll("ul");this.expandOrCollapseNode(t,!0)},i.prototype.nodeClickHandler=function(n){if(this.selectNodeElement(n),"#"!=n.attr("href")&&e.Messaging.routeMessageToWindow(window.parent.parent,t.NavigationMessageNames.navigate,n.attr("href")),!$(n).prev("ins").hasClass("i-collapse")){var i=n.nextAll("ul");this.expandOrCollapseNode(i,!0)}this.updateNavigationButtons()},i.prototype.selectNodeElement=function(e){null!=this._lastSelectedNode&&this._lastSelectedNode.removeClass("i-selected"),e.removeClass("i-hover"),e.addClass("i-selected"),this._lastSelectedNode=e,this.setSelectedNode(e)},i.prototype.expandOrCollapseNode=function(e,t){var n=this;if(void 0===t&&(t=!0),e.length){if(e.length>1)return void e.each(function(e,i){n.expandOrCollapseNode($(i),t)});e.hasClass("i-visible")||this.processListElement(e),t?e.slideToggle(200,function(){e.toggleClass("i-visible"),e.css("display","")}):e.toggleClass("i-visible");var i=e.prev("a").children("ins");i.hasClass("i-icon-1")?i.removeClass("i-icon-1").addClass("i-icon-2"):i.hasClass("i-icon-2")?i.removeClass("i-icon-2").addClass("i-icon-1"):i.hasClass("i-icon-3")?i.removeClass("i-icon-3").addClass("i-icon-4"):i.hasClass("i-icon-4")&&i.removeClass("i-icon-4").addClass("i-icon-3"),e.prevAll("ins").toggleClass("i-expand i-collapse")}},i.prototype.processListElement=function(t){var n=this;if(t.length){if(t.length>1)return void t.each(function(e,t){n.processListElement($(t))});t.hasClass("i-root")&&t.addClass("i-visible"),t.children("li").each(function(t,i){var o=!1,a=$(i);a.children("ul").each(function(e,t){$(t).children().length>0?o=!0:$(t).remove()});var s=a.children("a");if("INS"!=i.firstChild.nodeName){var r=$('');o&&(r.addClass("i-expandorcollapse"),r.addClass("i-expand"),r.off("click.toc").on("click.toc",function(e){n.expandOrCollapseClickHandler(e)})),r.prependTo(a)}if(0==s.children("ins").length){var c=$(''),l=parseInt(a.attr("rel")),u=l,d="True"==a.data("is-new");o?0>=l&&(u=d?3:1):0>=l&&(u=d?10:9),c.addClass("i-icon-"+u),c.prependTo(s)}s.off("click.toc").on("click.toc",function(t){n.nodeClickHandler($(t.currentTarget)),t.preventDefault(),e.Browser.stopPropagation(t)}),s.off("hover.toc").on("hover.toc",function(){$(this).hasClass("i-selected")||$(this).addClass("i-hover")},function(){$(this).removeClass("i-hover")})})}},i.prototype.syncTocNodeToUrl=function(e){if(!this._isTocConstructed)return void(this.syncTocUrl=e);var t=$('div#i-toc-container > ul a[href="'+decodeURIComponent(e)+'"]',this._rootSelector).first();null==t||!t.length||this._ignoreSyncRequest||this.isPageSelected(t)||(this.setSelectedNode(t),this.syncTocNode(t)),this._ignoreSyncRequest&&(this._ignoreSyncRequest=!1)},i.prototype.syncTocNode=function(e){if(this._isMobileToc){this.setSelectedNode(e);var t=e.parent().closest("ul");this.buildToCPage(t.attr("id"))}else e.length&&(null!=this._lastSelectedNode&&e.data("node-index")!=this._lastSelectedNode.data("node-index")||null==this._lastSelectedNode)&&(this.selectNodeElement(e),this.expandParents(e,!1),$("html, body").animate({scrollTop:e.offset().top},200),this.updateNavigationButtons())},i.prototype.expandParents=function(e,t,n){void 0===n&&(n=null);var i=e.parent().closest("ul");if(0!=i.length){if(void 0!=n&&null!=n||(n=[]),!i.hasClass("i-root")){var o=i.prevAll("ins.i-spacer");(0==o.length||o.hasClass("i-expand"))&&n.push(i)}this.expandParents(i,t,n)}else for(var a=n.length-1;a>-1;a--)this.expandOrCollapseNode(n[a],t)},i.prototype.buildToCPage=function(e){"i-root"==e&&(e="i-root-node");var t=e;if("i-root-node"==e&&(e="i-root"),$.mobile.activePage.length&&$.mobile.activePage.attr("id")==e)return void this._highlightSelectedNode();if($("div#"+t,this._rootSelector).length)return void $.mobile.changePage($("div#"+t,this._rootSelector),{dataUrl:t});var n=$("ul#"+e,this._rootSelector).first(),i=n.prev("a").text(),o=n.parent().closest("ul").attr("id"),a=$('
'),s=$('
');"i-root"==o&&(o="i-root-node"),"i-root"!=e&&($('Back').appendTo(s),$("

"+i+"

").appendTo(s),s.appendTo(a));var r=n.clone();r.find("ul").remove(),r.css("display",""),r.attr("data-role","listview"),r.removeAttr("id"),r.find("a:not(a[href^='#node-'])").closest("li").attr("data-icon","false"),r.appendTo(a),a.appendTo($("div#i-toc-container",this._rootSelector)),a.page(),$.mobile.changePage(a,{dataUrl:t}),this._highlightSelectedNode()},i.prototype._onBeforePageChange=function(e,t){if("string"==typeof t.toPage)if(t.toPage.match(/(#node-(\d+)|#i-root-node)/)){var n=t.toPage.substring(t.toPage.lastIndexOf("#")+1,t.toPage.length);0==$("div#"+n).length&&(this.buildToCPage(n),e.preventDefault())}else e.preventDefault()},i.prototype._onVirtualClick=function(n){var i=$(n.target);if(null!=i.attr("href")&&"#"!=i.attr("href").substring(0,1)){n.preventDefault(),this.setSelectedNode(i),this._highlightSelectedNode(),this._ignoreSyncRequest=!0;var o=window.parent.parent;"undefined"!=typeof o&&e.Messaging.routeMessageToWindow(o,t.NavigationMessageNames.navigate,i.attr("href"))}},i.prototype._onPageChange=function(e,t){"undefined"!=typeof t.options.fromPage&&t.toPage.attr("id")!=t.options.fromPage.attr("id")&&t.options.fromPage.remove(),this._highlightSelectedNode()},i.prototype.constructMobileToC=function(){var e=this;$(document).off("pagebeforechange.toc").on("pagebeforechange.toc",function(t,n){e._onBeforePageChange(t,n)}),$(document).off("pagechange.toc").on("pagechange.toc",function(t,n){e._onPageChange(t,n)}),this._rootSelector.off("vclick.toc").on("vclick.toc",function(t,n){e._onVirtualClick(t)});var t=0;$("li>a",this._rootSelector).each(function(e){var n=$(this).next("ul");if(n.length){if("#"!=$(this).attr("href")){var i=$("
  • ").prepend($(this).clone());n.prepend(i)}n.attr("id","node-"+t),$(this).attr("href","#node-"+t),t++}}),this._indexNodes();var n=$('
    '),i=$("ul#i-root").clone().removeAttr("id").removeAttr("style").attr("data-role","listview");i.find("ul").remove(),i.find("a:not(a[href*=#node-])").closest("li").attr("data-icon","false"),i.appendTo(n),n.appendTo($("div#i-toc-container",this._rootSelector)),$.mobile.initializePage()},i.prototype._highlightSelectedNode=function(){$("div.ui-page a.ui-btn-active",this._rootSelector).removeClass("ui-btn-active"),$("div.ui-page li",this._rootSelector).find('a[data-node-index="'+this._selectedNodeIndex+'"]').first().addClass("ui-btn-active")},i.prototype._indexNodes=function(){var e=this,t=0;$("ul.i-root a",this._rootSelector).each(function(n,i){-1==e._firstNodeIndex&&"#"!=$(i).attr("href").substring(0,1)&&(e._firstNodeIndex=t),$(i).attr("data-node-index",t),t++}),this._lastNodeIndex=t-1},i}(e.DocumentFeatureBase);t.TableOfContentsDocumentFeature=i}(t=e.Features||(e.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.TableOfContentsDocumentFeatureFactory),$(document).off("mobileinit.navigation").on("mobileinit.navigation",function(){$.mobile.autoInitializePage=!1,$.mobile.defaultPageTransition="none"});var Innovasys;!function(e){var t;!function(t){var n;!function(n){var i=function(){function e(){}return e.prototype.createInstance=function(e){return new o(e)},e}();n.TopFrameDocumentFeatureFactory=i;var o=function(i){function o(e){i.call(this,e),this.defaultTopic=null,this.baseTitle=null,this._rootSelector=null,this._responsiveProfileName="desktop",this._isIframeResizeTimerDisabled=!1,this._isEnabled=!1,this.layout=null}return __extends(o,i),o.prototype.getName=function(){return"TopFrame"},o.prototype.initializeContent=function(e,t){void 0===t&&(t=!1),t&&(this._rootSelector=e,this.baseTitle=document.title),this._isEnabled=$("#i-top-frame-container",e).length>0},o.prototype.populateResponsiveConfiguration=function(e){!this._isEnabled},o.prototype.applyResponsiveConfiguration=function(e){var n=this;this._isEnabled&&(this._responsiveProfileName=e.profileName,"desktop"==e.profileName?(this.layout=$(".i-layout-container",this.documentInstance.rootSelector).layout({resizeWhileDragging:!0,west__size:270,maskIframesOnResize:!0}),this.onContentLoaded(null)):($("iframe#i-nav",this.documentInstance.rootSelector).css("left",-$(window).width()).css("display","block"),$(window).resize(function(){"0px"!=$("iframe#i-nav",n.documentInstance.rootSelector).css("left")&&$("iframe#i-nav",n.documentInstance.rootSelector).css("left",-$(window).width()),o._fixSubPixelWidth($("iframe#i-nav",n.documentInstance.rootSelector))}),$("iframe#i-content",this._rootSelector).load(function(){n._rootSelector.scrollTop(0)}),this.onContentLoaded(null),t.Browser.resizeIFrames(this._rootSelector),setInterval(function(){if(!n._isIframeResizeTimerDisabled){var e=t.Browser.resizeIFrames(n._rootSelector);e>0&&e!=$("body").height()&&n._rootSelector.height(e)}},500)),this.navigate(this.getDefaultTopic()))},o.prototype.onMessage=function(e){if(this._isEnabled)switch(e.messageType){case n.NavigationMessageNames.updateNavigationButtons:t.Messaging.routeMessageToFrameElement("i-nav",e.messageType,e.messageData);break;case n.NavigationMessageNames.loaded:this.onContentLoaded(e.messageData),t.Messaging.routeMessageToFrameElement("i-nav",e.messageType,e.messageData);break;case n.NavigationMessageNames.updatePageTitle:this.updatePageTitle(e.messageData);break;case t.DocumentMessageNames.quickSearch:case t.DocumentMessageNames.searchHighlightComplete:case n.NavigationMessageNames.insertRemoveHighlighting:t.Messaging.routeMessageToFrameElement("i-content",e.messageType,e.messageData);break;case n.NavigationMessageNames.navigate:this.navigate(e.messageData);break;case n.NavigationMessageNames.openNavigationPane:this.openNavigationPane(e.messageData);break;case n.NavigationMessageNames.closeNavigationPane:this.closeNavigationPane()}},o.prototype.openNavigationPane=function(e){var i=this;switch(this._isIframeResizeTimerDisabled=!0,t.Messaging.routeMessageToFrameElement("i-nav",n.NavigationMessageNames.select,e),this._responsiveProfileName){case"mobile":$("#i-nav",this.documentInstance.rootSelector).css("width","100%");break;case"tablet":$("iframe#i-nav",this.documentInstance.rootSelector).css("width","50%").data("widthDivisor",.5),o._fixSubPixelWidth($("iframe#i-nav",this.documentInstance.rootSelector))}"desktop"!=this._responsiveProfileName&&(t.Browser.resizeIFrames(this._rootSelector,!0),$("#i-busy",this.documentInstance.rootSelector).show(),$("iframe#i-nav",this.documentInstance.rootSelector).css("visibility","visible").animate({left:"0"},600,"swing",function(){i._isIframeResizeTimerDisabled=!1}))},o.prototype.closeNavigationPane=function(){var e=this;"desktop"!=this._responsiveProfileName&&"0px"==$("iframe#i-nav",this.documentInstance.rootSelector).css("left")&&(this._isIframeResizeTimerDisabled=!0,$("iframe#i-nav",this.documentInstance.rootSelector).animate({left:"-"+$("iframe#i-nav").css("width")},400,"swing",function(){$("iframe#i-nav",e.documentInstance.rootSelector).css("visibility","hidden"),$("#i-busy",e.documentInstance.rootSelector).hide(),$("iframe#i-nav",e.documentInstance.rootSelector).height($(window).height()).data("last-height",$(window).height()),t.Messaging.routeMessageToFrameElement("i-nav",n.NavigationMessageNames.shrinkIFrames,null),e._isIframeResizeTimerDisabled=!1}))},o.prototype.getCurrentPageName=function(){return""!=window.location.hash?window.location.hash.substring(1):this.getDefaultTopic()},o.prototype.onContentLoaded=function(e){var i=this;this.updateLocation(e),setTimeout(function(){t.Messaging.routeMessageToFrameElement("i-nav",n.NavigationMessageNames.syncTableOfContents,i.getCurrentPageName())},500),"desktop"!=this._responsiveProfileName&&t.Messaging.routeMessageToFrameElement("i-content",t.DocumentMessageNames.insertNavigationHeader,null)},o.prototype.updatePageTitle=function(e){null!=e&&(document.title=this.baseTitle+" - "+e)},o.prototype.updateLocation=function(e){if(null!=e){var t=e.substring(e.lastIndexOf("/")+1);if("#"+t!=document.location.hash)if(window.history.replaceState)try{window.history.replaceState("","","#"+t)}catch(n){}else window.location.replace("#"+t)}},o.prototype.getDefaultTopic=function(){var e=window.location.search;return null!=e&&e.length>0?e.substring(1)+window.location.hash:null!=window.location.hash&&window.location.hash.length>0?window.location.hash.substring(1):this.defaultTopic},o.prototype.navigate=function(e){"next"==e||"previous"==e?t.Messaging.routeMessageToFrameElement("i-nav","navigate",e):(($("#i-content",this._rootSelector).attr("src")!=e||window.location.hash.length>0&&window.location.hash.substring(1)!=e||window.location.search.length>0&&window.location.search.substring(1)!=e||0==window.location.hash.length&&0==window.location.search.length)&&("desktop"!=this._responsiveProfileName&&$("#i-content",this._rootSelector).height($(window).height()),$("#i-content",this._rootSelector).attr("src",e)),"desktop"!=this._responsiveProfileName&&this.closeNavigationPane())},o._fixSubPixelWidth=function(e){e.width(Math.floor($(window).width()*e.data("widthDivisor")))},o.prototype.setForcedDisplayMode=function(t){if(this.documentInstance.getFeatureByName("Responsive").setForcedDisplayMode(t),null!=t){var n=e.overrides||(e.overrides={});$.extend(n,{forcedDisplayMode:t})}},o}(t.DocumentFeatureBase);n.TopFrameDocumentFeature=o}(n=t.Features||(t.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.TopFrameDocumentFeatureFactory);var Innovasys;!function(Innovasys){var Content;!function(Content){var Features;!function(Features){var SearchDocumentFeatureFactory=function(){function e(){}return e.prototype.createInstance=function(e){return new SearchDocumentFeature(e)},e}();Features.SearchDocumentFeatureFactory=SearchDocumentFeatureFactory;var SearchDocumentFeature=function(_super){function SearchDocumentFeature(e){_super.call(this,e),this._webSearchPendingHighlight=null,this._highlightColors=[],this._rootSelector=null,this._isEnabled=!1,this._isFullTextSearchPositionDataAvailable=!1,this._isFullTextSearchObjects=!1,this._results=null,this._clickedResult=null}return __extends(SearchDocumentFeature,_super),SearchDocumentFeature.prototype.getName=function(){return"Search"},SearchDocumentFeature.prototype.initializeContent=function(e,t){var n=this;if(void 0===t&&(t=!1),t){this._rootSelector=e;var i=Innovasys.overrides;null!=i&&i.isFullTextSearchPositionDataAvailable&&(this._isFullTextSearchPositionDataAvailable=!0),null!=i&&i.isFullTextSearchObjects&&(this._isFullTextSearchObjects=!0)}$("#i-search-container",this._rootSelector).length>0&&(this._isEnabled=!0,$("#i-search",e).off("keyup.search").on("keyup.search",function(e){13==e.keyCode&&$("#i-execute-search").click()}),$("#i-execute-search",e).off("click.search").on("click.search",function(){n.executeSearch()}),$("#i-search-container",this._rootSelector).off("click.search",".i-result").on("click.search",".i-result",function(e){e.preventDefault(),n.showSearchResult($(e.target).attr("href"),parseInt($(e.target).attr("data-result-index")))}))},SearchDocumentFeature.prototype.populateResponsiveConfiguration=function(e){this._isEnabled&&"desktop"!=e.profileName&&e.clickTargets.push(new Content.ResponsiveClickTarget("#i-execute-search",Content.ResponsiveClickTargetKind.block))},SearchDocumentFeature.prototype.applyResponsiveConfiguration=function(e){this._isEnabled&&"desktop"!=e.profileName&&$("#i-highlight",this._rootSelector).attr("checked","true")},SearchDocumentFeature.prototype.executeSearch=function(){$("#i-search-container",this._rootSelector).hide(),$("#i-searching-overlay",this._rootSelector).show();var e=this.buildSearchResults();$("#i-searching-overlay",this._rootSelector).hide(),$("#i-search-container",this._rootSelector).show(),1==e&&$("#i-results",this._rootSelector).show()},SearchDocumentFeature.prototype.buildSearchResults=function(){var e=$("#i-search",this._rootSelector).val();if(0==e.length)return!1;e=e.toLowerCase();for(var t=e.split(" "),n="",i=!0,o=!1,a=null,s=0,r=[],c=0;c0){var l=t[c];l=l.replace(new RegExp(",","ig"),""),null!=a?(a+=" "+l,'"'==l.charAt(l.length-1)?(l=a.substring(1,a.length-1),a=null):l=null):'"'==l.charAt(0)&&(a=l,l=null),null!=l&&("or"==l||"and"==l?0==i&&("or"==l?n+=" || ":"and"==l&&(n+=" && "),i=!0,o=!1):(o&&(n+=" || "),n+='(searchTerms.indexOf("'+l+'") >= 0)',i=!1,o=!0,r[s]=l,s++))}if(0==r.length)return!1;""!=n&&n.length>4&&(" && "!=n.substring(n.length-4)&&" || "!=n.substring(n.length-4)||(n=n.substring(0,n.length-4)));var u=[],d=[];if(this._isFullTextSearchObjects)Innovasys.Content.Features.buildSearchFilesAndKeywords(u,d,SearchFile);else{var h=[],p=[];Innovasys.Content.Features.buildSearchIndexArray(h,p,d);for(var g=0;g0?e:null});if(d.length>0)return e.searchTerms=a+",",e.keywords+=t.keywords,e.rank+=t.rank,e}}}return null});return n.length>0?e:null}})}return l}if(-1!=a.indexOf("*")||-1!=a.indexOf("?")){var h=new RegExp("^"+SearchDocumentFeature.escapeForRegEx(a).replace(/\*/g,".*").replace(/\?/g,".")+"$","i");for(var p in t)t.hasOwnProperty(p)&&null!=p.substring(1).match(h)&&s.matchedWords.push(p.substring(1));s.matchedWords=s.matchedWords.sort(function(e,t){return t.length-e.length})}else void 0!=t["_"+a]&&s.matchedWords.push(a);if(null!=s)for(var g=0;g0&&(b=_[0])}else w=parseInt(m[y]);var S=null;void 0==i[w]?(S=new SearchResult(w,b,f+",",s.searchTerm+","),void 0!=e[w]&&(S.searchFile=e[w]),i[w]=S):(S=i[w],-1==S.keywords.indexOf(f+",")&&(S.rank+=b,S.keywords+=f+","),-1==S.searchTerms.indexOf(s.searchTerm+",")&&(S.rank+=b,S.searchTerms+=s.searchTerm+",")),null!=_&&(null==S.keywordPositions&&(S.keywordPositions=[]),S.keywordPositions[f]=_)}}return this._isFullTextSearchPositionDataAvailable&&(i=i.sort(function(e,t){var n=e.rank-t.rank;return 0==n&&(n=e.searchFile.rank-t.searchFile.rank,0==n)?e.fileIndex-t.fileIndex:n})),i},SearchDocumentFeature.prototype.buildResultsArray=function(query,searchResults){for(var results=[],index=0;index0?t.html():void 0},SearchDocumentFeature.prototype.outputResults=function(e){var t='

    '+this.getPhrase("Search_SearchResults")+"

    ";t+='';for(var n=0,i=0,n=0;n",i++)}t+="
    '+(i+1)+':'+o.searchFile.title+"

    "+i+" "+this.getPhrase("Search_ResultCount")+"

    ",$("#i-results",this._rootSelector).html(t)},SearchDocumentFeature.prototype.showSearchResult=function(e,t){var n=$("#i-highlight",this._rootSelector),i=null;null!=window.parent&&null!=window.parent.parent&&(i=window.parent.parent),n.is(":checked")&&(this._webSearchPendingHighlight=e),null!=i&&(Content.Messaging.routeMessageToWindow(i,Features.NavigationMessageNames.navigate,e),Content.Messaging.routeMessageToWindow(i,Features.NavigationMessageNames.closeNavigationPane,null),null!=t&&(this._clickedResult=this._results[t]))},SearchDocumentFeature.prototype.highlightContentFrame=function(){if(Content.Messaging.routeMessageToWindow(parent,Content.DocumentMessageNames.resetQuickSearch,null),null!=this._clickedResult)for(var e=this._clickedResult.keywords.split(","),t=0;t0){var o=t[i];o=o.replace(new RegExp("'","ig"),""),o=o.replace(new RegExp('"',"ig"),""),o=o.replace(new RegExp(",","ig"),""),"or"!=o&&"and"!=o&&n.push(o)}return n},SearchDocumentFeature.prototype.onMessage=function(e){if(this._isEnabled)switch(e.messageType){case Features.NavigationMessageNames.activated:$("#i-search",this._rootSelector).focus();break;case Features.NavigationMessageNames.loaded:-1!=e.messageData.indexOf(this._webSearchPendingHighlight)&&this.highlightContentFrame(),this._webSearchPendingHighlight=null;break;case Content.DocumentMessageNames.quickSearch:case Content.DocumentMessageNames.searchHighlightComplete:Content.Messaging.routeMessageToWindow(parent,e.messageType,e.messageData)}},SearchDocumentFeature}(Content.DocumentFeatureBase);Features.SearchDocumentFeature=SearchDocumentFeature;var SearchResult=function(){function e(e,t,n,i){this.fileIndex=e,this.rank=t,this.keywords=n,this.searchTerms=i,this.rank=t}return e}();Features.SearchResult=SearchResult;var SearchFile=function(){function e(e,t,n){this.url=e,this.title=t,this.rank=n}return e}();Features.SearchFile=SearchFile;var SearchTermWordMatch=function(){function e(e,t){this.searchTerm=e,this.matchedWords=t}return e}();Features.SearchTermWordMatch=SearchTermWordMatch}(Features=Content.Features||(Content.Features={}))}(Content=Innovasys.Content||(Innovasys.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.SearchDocumentFeatureFactory);var Innovasys;!function(e){var t;!function(e){var t;!function(t){var n=function(){function e(){}return e.prototype.createInstance=function(e){return new i(e)},e}();t.IndexDocumentFeatureFactory=n;var i=function(n){function i(e){n.call(this,e),this._isFilterVisibility=!1,this._isEnabled=!1,this._rootSelector=null}return __extends(i,n),i.prototype.getName=function(){return"Index"},i.prototype.initializeContent=function(n,i){var o=this;void 0===i&&(i=!1),this._rootSelector=n,$("#i-index-container",n).length>0&&(this._isEnabled=!0,$("#i-search",this._rootSelector).off("keyup.index").on("keyup.index",function(n){if(13==n.keyCode){var i=$("a.i-selected",o._rootSelector).filter("[href]").first().attr("href");null!=i&&e.Messaging.routeMessageToWindow(parent,t.NavigationMessageNames.navigate,i)}else setTimeout(function(){o.findIndexEntry()},1)}),$("#i-index-container",n).off("resize.index").on("resize.index",function(){setTimeout(function(){var e=$("#i-index-container");$("#i-index-body");e.css("height",e.height()-20+"px"),e.css("width",e.width()+"px")},1)}))},i.prototype.populateResponsiveConfiguration=function(t){this._isEnabled&&"desktop"!=t.profileName&&t.clickTargets.push(new e.ResponsiveClickTarget("#i-index-body a",e.ResponsiveClickTargetKind.block))},i.prototype.applyResponsiveConfiguration=function(n){this._isEnabled&&"desktop"!=n.profileName&&(this._isFilterVisibility=!0,$("#i-index-body",this._rootSelector).off("click.index","a").on("click.index","a",function(){null!=window.parent&&null!=window.parent.parent&&e.Messaging.routeMessageToWindow(window.parent.parent,t.NavigationMessageNames.closeNavigationPane,null)}))},i.prototype.findIndexEntry=function(){var e=$("#i-search",this._rootSelector).val();if(e=e.toLowerCase(),this._isFilterVisibility){var t=new RegExp("^"+e,"i");$("a,span",this._rootSelector.find("#i-index-body")).each(function(e,n){$(n).text().match(t)?($(n).css("display","inline-block"),$(n).next("br").css("display","inline"),$(n).next("blockquote").css("display","block")):($(n).css("display","none"),$(n).next("br").css("display","none"),$(n).next("blockquote").css("display","none"))}),$("a,span",this._rootSelector.find("#i-index-body")).each(function(e,t){"inline-block"==$(t).css("display")&&$(t).parents("blockquote").each(function(e,t){var n=$(t).prev("a,span");n.css("display","inline-block"),n.next("br").css("display","inline"),n.next("blockquote").css("display","block")})})}else if($(".i-selected",this._rootSelector).removeClass("i-selected"),null!=e){var n=$("a,span",this._rootSelector.find("#i-index-body")).filter(function(t,n){return null!=e&&""!=e&&$(n).text().substring(0,e.length).toLowerCase()===e?n:void 0}),i=$("#i-index-body",this._rootSelector).get(0);n.length>0?(i.scrollTop=n.get(0).offsetTop-n.outerHeight(!0),n.toggleClass("i-selected",!0)):i.scrollTop=0}},i}(e.DocumentFeatureBase);t.IndexDocumentFeature=i}(t=e.Features||(e.Features={}))}(t=e.Content||(e.Content={}))}(Innovasys||(Innovasys={})),Innovasys.Content.DocumentFeatureConfiguration.registerDocumentFeatureFactory(new Innovasys.Content.Features.IndexDocumentFeatureFactory); //# sourceMappingURL=innovasys.navigation.min.js.map