"undefined"===typeof ncbi&&(ncbi={});
(function(){var y=function(){function p(f,q){if(!r[f]){r[f]={};for(var t=0;t<f.length;t++)r[f][f.charAt(t)]=t}return r[f][q]}var l=String.fromCharCode,r={},m={compressToBase64:function(f){if(null==f)return"";f=m._compress(f,6,function(f){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(f){return null==f?"":""==f?null:m._decompress(f.length,
32,function(q){return p("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f.charAt(q))})},compressToUTF16:function(f){return null==f?"":m._compress(f,15,function(f){return l(f+32)})+" "},decompressFromUTF16:function(f){return null==f?"":""==f?null:m._decompress(f.length,16384,function(q){return f.charCodeAt(q)-32})},compressToUint8Array:function(f){f=m.compress(f);for(var q=new Uint8Array(2*f.length),t=0,k=f.length;t<k;t++){var h=f.charCodeAt(t);q[2*t]=h>>>8;q[2*t+1]=h%256}return q},
decompressFromUint8Array:function(f){if(null===f||void 0===f)return m.decompress(f);for(var q=Array(f.length/2),t=0,k=q.length;t<k;t++)q[t]=256*f[2*t]+f[2*t+1];var h=[];q.forEach(function(f){h.push(l(f))});return m.decompress(h.join(""))},compressToEncodedURIComponent:function(f){return null==f?"":m._compress(f,6,function(f){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$".charAt(f)})},decompressFromEncodedURIComponent:function(f){if(null==f)return"";if(""==f)return null;
f=f.replace(/ /g,"+");return m._decompress(f.length,32,function(q){return p("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",f.charAt(q))})},compress:function(f){return m._compress(f,16,function(f){return l(f)})},_compress:function(f,q,t){if(null==f)return"";var k,h,p={},l={},n,m,u="",a=2,b=3,c=2,d=[],e=0,g=0,x;for(x=0;x<f.length;x+=1)if(n=f.charAt(x),Object.prototype.hasOwnProperty.call(p,n)||(p[n]=b++,l[n]=!0),m=u+n,Object.prototype.hasOwnProperty.call(p,m))u=m;else{if(Object.prototype.hasOwnProperty.call(l,
u)){if(256>u.charCodeAt(0)){for(k=0;k<c;k++)e<<=1,g==q-1?(g=0,d.push(t(e)),e=0):g++;h=u.charCodeAt(0);for(k=0;8>k;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1}else{h=1;for(k=0;k<c;k++)e=e<<1|h,g==q-1?(g=0,d.push(t(e)),e=0):g++,h=0;h=u.charCodeAt(0);for(k=0;16>k;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1}a--;0==a&&(a=Math.pow(2,c),c++);delete l[u]}else for(h=p[u],k=0;k<c;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1;a--;0==a&&(a=Math.pow(2,c),c++);p[m]=b++;u=String(n)}if(""!==
u){if(Object.prototype.hasOwnProperty.call(l,u)){if(256>u.charCodeAt(0)){for(k=0;k<c;k++)e<<=1,g==q-1?(g=0,d.push(t(e)),e=0):g++;h=u.charCodeAt(0);for(k=0;8>k;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1}else{h=1;for(k=0;k<c;k++)e=e<<1|h,g==q-1?(g=0,d.push(t(e)),e=0):g++,h=0;h=u.charCodeAt(0);for(k=0;16>k;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1}a--;0==a&&(a=Math.pow(2,c),c++);delete l[u]}else for(h=p[u],k=0;k<c;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1;a--;0==
a&&c++}h=2;for(k=0;k<c;k++)e=e<<1|h&1,g==q-1?(g=0,d.push(t(e)),e=0):g++,h>>=1;for(;;)if(e<<=1,g==q-1){d.push(t(e));break}else g++;return d.join("")},decompress:function(f){return null==f?"":""==f?null:m._decompress(f.length,32768,function(q){return f.charCodeAt(q)})},_decompress:function(f,q,t){var k=[],h=4,p=4,m=3,n,r=[],u,a,b,c,d,e=t(0),g=q,x=1;for(u=0;3>u;u+=1)k[u]=u;a=0;c=Math.pow(2,2);for(d=1;d!=c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;switch(a){case 0:a=0;c=Math.pow(2,8);for(d=
1;d!=c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;n=l(a);break;case 1:a=0;c=Math.pow(2,16);for(d=1;d!=c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;n=l(a);break;case 2:return""}u=k[3]=n;for(r.push(n);;){if(x>f)return"";a=0;c=Math.pow(2,m);for(d=1;d!=c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;switch(n=a){case 0:a=0;c=Math.pow(2,8);for(d=1;d!=c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;k[p++]=l(a);n=p-1;h--;break;case 1:a=0;c=Math.pow(2,16);for(d=1;d!=
c;)b=e&g,g>>=1,0==g&&(g=q,e=t(x++)),a|=(0<b?1:0)*d,d<<=1;k[p++]=l(a);n=p-1;h--;break;case 2:return r.join("")}0==h&&(h=Math.pow(2,m),m++);if(k[n])n=k[n];else if(n===p)n=u+u.charAt(0);else return null;r.push(n);k[p++]=u+n.charAt(0);h--;u=n;0==h&&(h=Math.pow(2,m),m++)}}};return m}();"function"===typeof define&&define.amd?define(function(){return y}):"undefined"!==typeof module&&null!=module?module.exports=y:"undefined"!==typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",
function(){return y});ncbi.sgLZString=y})();ncbi.sgAppsWithScrolling=[{ncbi_app:"entrez",ncbi_db:"gene",ncbi_report:"full_report"},{ncbi_app:"entrez",ncbi_db:"pmc"},{ncbi_app:"smartblast"},{ncbi_app:"primerblast"},function(){var y=ncbi.sg.getInstance();return!(!y._cachedVals.ncbi_app||!y._cachedVals.ncbi_app.value||"pmc"!=y._cachedVals.ncbi_app.value||document.getElementById("jr"))}];
(function(){function y(a,b,c,d){var e={},g=ncbi.sg.pingCallbacks;a="undefined"!==typeof g[a]?g[a]:[];for(g=0;g<a.length;g++)ncbi.sg._urls.addDataToObj(e,a[g](b,c,d));for(var f in e){a:{b=ncbi.sg.reservedParams;for(c=0;c<b.length;c++)if(f==b[c]){b=!0;break a}b=!1}b&&(delete e[f],console.warn("You tried to add param '"+f+"' to ping data, but that parameter is reserved."))}return e}"undefined"===typeof ncbi&&(ncbi={});if(ncbi.sg)"undefined"!==typeof console&&console.warn&&console.warn("The logging JavaScript was added twice in the document. Please include it once.");
else{ncbi.sg=function(){};ncbi.sg.getInstance=function(){ncbi.sg._instance||(ncbi.sg._instance=new ncbi.sg);return ncbi.sg._instance};ncbi.sg._instance=null;ncbi.sg._version="57";(function(){var a=navigator.cookieEnabled?!0:!1;"undefined"!==typeof navigator.cookieEnabled||a||(document.cookie="testcookie",a=-1!==document.cookie.indexOf("testcookie")?!0:!1);ncbi.sg.isCookieEnabled=a;ncbi.sg.isClickingEnabled="undefined"===typeof __ncbi_sg_isClickingEnabled?!0:!!__ncbi_sg_isClickingEnabled;ncbi.sg.calcXY=
"undefined"===typeof __ncbi_sg_calcXY?!0:!!__ncbi_sg_calcXY;a="undefined"===typeof __ncbi_sg_gaMode?null:__ncbi_sg_gaMode;ncbi.sg.gaID="dev"==a?"UA-68648221-2":"clinicaltrials"==a?"UA-68648221-4":"UA-68648221-3";var a={},b;for(b in window){var c=b.match(/^__ncbi_sg_pingCallbacks_([A-Za-z]+)_(.+)$/);if(c&&"undefined"!==typeof c[1]){var c=c[1],d=window[b];a[c]=a[c]||[];a[c].push(d)}}ncbi.sg.pingCallbacks=a})();ncbi.sg.appLogIgnore=["ncbi_sessionid","ncbi_clickdisabled"];ncbi.sg.reservedParams="jsevent sgSource sgVersion hasScrolled ncbi_phid ncbi_timeonpage ncbi_timesinceload ncbi_timesincenavstart".split(" ");
ncbi.sg.prototype={init:function(){this.isProcessRunning=!0;this._setNextParamKeys();this._setScrollingEnabled();if(this._cachedVals.ncbi_db&&"pubmed"==this._cachedVals.ncbi_db.value.toLowerCase()&&this._cachedVals.ncbi_report&&"abstract"==this._cachedVals.ncbi_report.value.toLowerCase()&&this._cachedVals.ncbi_resultcount&&"1"==this._cachedVals.ncbi_resultcount.value.toLowerCase()||this._cachedVals.ncbi_db&&"pmc"==this._cachedVals.ncbi_db.value.toLowerCase()&&this._cachedVals.ncbi_report&&"record"==
this._cachedVals.ncbi_report.value.toLowerCase()&&this._cachedVals.ncbi_type&&"fulltext"==this._cachedVals.ncbi_type.value.toLowerCase())ncbi.sg.isHoverEnabled=!0;this._setUpPathParts();this._addOnScrollListeners();var a=this;this._sidPromise.then(function(b){a._setUpCustomProps();a._send("init");a._scheduleDOMReadyPing();a._sendPrev();a._addPrintPing()});ncbi.sg.isScrollingEnabled&&this._setBeforeScrollDetails()},_vals:{},_cachedVals:{},_hasInitRun:!1,_readyPinged:!1,_linkObjs:[],_pathParts:{part1:"",
part2:"",part3:"",part4:""},_nextParams:"ancestorClassName ancestorId ncbi_app ncbi_db ncbi_pdid ncbi_pcid ncbi_report ncbi_format ncbi_pagesize ncbi_sortorder ncbi_term ncbi_pageno ncbi_pingaction ncbi_resultcount ncbi_op ncbi_uidlist ncbi_filter ncbi_stat ncbi_hitstat prev_phid ncbi_phid pagename server sitesect1 sitesect2 subsect2 subsect3 subsect4 heir1 screenwidth screenheight screenavailwidth screenavailheight canscroll_x canscroll_y scrollwidth scrollheight colordepth ncbi_timeonpage ncbi_timesinceload ncbi_timesincenavstart ncbi_onloadtime sgsource sgversion jsevent eventid iscontextmenu evt_coor_x evt_coor_y link_class link_href link_id link_text browserwidth browserheight jsperf_basepage jsperf_connect jsperf_dns jsperf_frontend jsperf_navtype jsperf_redirectcount jsperf_ttfb searchdb searchtext".split(" "),
_scheduleDOMReadyPing:function(){var a=this,b=function(){var a={},b=jQuery.ui.jig._foundWidgets,c;for(c in b)a["jigWidget_"+c]=b[c];b="undefined"!==typeof jQuery&&"undefined"!==typeof jQuery.ui&&"undefined"!==typeof jQuery.ui.jig?"undefined"!==typeof jQuery.ui.jig.version&&jQuery.ui.jig.version?jQuery.ui.jig.version:"unknown":"unknown";a.jigVersion=b;return a},c=function(a){var b=ncbi.sg.getInstance();b.storeAllHeadings();for(var c=b.getVisibleHeadingIDs(),d=[],e=0;e<c.length;e++){var g=c[e];g&&d.push(encodeURIComponent(g))}for(var b=
b.getHiddenHeadingIDs(),f=[],e=0;e<b.length;e++)(g=b[e])&&f.push(encodeURIComponent(g));a["visible.headingIDs"]=d.join(",");a["numVisible.headingIDs"]=c.length;a["hidden.headingIDs"]=f.join(",");a["numHidden.headingIDs"]=b.length},d=function(){if(!a._readyPinged){var e={};if("undefined"!==typeof jQuery&&"undefined"!==typeof jQuery.ui&&"undefined"!==typeof jQuery.ui.jig&&"undefined"!==typeof jQuery.ui.jig.scanned)if(jQuery.ui.jig.scanned)e=b(),e.jsevent="domready",ncbi.sg.isScrollingEnabled&&c(e),
ncbi.sg._ping(e),a._readyPinged=!0;else{if("undefined"!==typeof jQuery.ui.jig.scan&&jQuery.ui.jig.scan){var g=jQuery.ui.jig.scan;jQuery.ui.jig.scan=function(){var a=g.apply(this,arguments);d();return a}}}else e.jigVersion="nojig",e.jsevent="domready",ncbi.sg.isScrollingEnabled&&c(e),ncbi.sg._ping(e),a._readyPinged=!0}};if(document.addEventListener){var e=function(a){document.removeEventListener("DOMContentLoaded",e,!1);d()};document.addEventListener("DOMContentLoaded",e)}else if(document.attachEvent){var g=
function(a){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",g),d())};document.attachEvent("onreadystatechange",g)}},_setScrollingEnabled:function(){if("undefined"!==typeof ncbi_isScrollingEnabled)ncbi.sg.isScrollingEnabled=!!ncbi_isScrollingEnabled;else try{ncbi.sg.isScrollingEnabled=!1;var a=ncbi.sgAppsWithScrolling;if("undefined"!==typeof a)for(var b=0;b<a.length;b++){var c=!0;if("function"===typeof a[b])c=a[b]();else{var d=a[b],e;for(e in d)if(!this._cachedVals[e]||
this._cachedVals[e].value.toLowerCase()!=d[e]){c=!1;break}}if(c){ncbi.sg.isScrollingEnabled=!0;break}}}catch(g){ncbi.sg.getInstance().noteEventData("jserror",{jserror:g.toString(),SELF_URL:window.location.href},["ncbi_sessionid","ncbi_phid"])}},_setUpMetaTagValues:function(){for(var a=document.getElementsByTagName("meta"),b=0;b<a.length;b++){var c=a[b].name;0!==c.indexOf("ncbi_")&&0!==c.indexOf("log_")||this.addEntry(c,a[b].content,a[b].dataset&&a[b].dataset.ignoreLimit?!0:!1)}},_setUpCachedMetaTagValues:function(a){for(var b=
0;b<a.length;b++){var c=this._cachedVals[a[b]];c&&this.addEntry(a[b],c.value)}},cachedNames:"ncbi_app ncbi_db ncbi_pcid ncbi_pdid ncbi_phid ncbi_sessionid ncbi_uidlist".split(" "),ignoreLengthRestrictions:["jserror","jserrorlocation"],addEntry:function(a,b,c){void 0!==b&&0!==b.length&&(100<b.length&&!c&&-1===this.ignoreLengthRestrictions.indexOf(a)&&(b=b.substr(0,100)),this._cachedVals[a]={sProp:a,value:b})},getVal:function(a){return"undefined"!==typeof this._cachedVals[a]&&this._cachedVals[a]&&"undefined"!==
typeof this._cachedVals[a].value?this._cachedVals[a].value:null},removeAllEntries:function(){for(var a={},b=this.cachedNames.length,c=0;c<b;c++){var d=this.cachedNames[c],e=this._cachedVals[d];e&&(a[d]=e)}this._cachedVals=a;for(var g in this._pathParts)this._pathParts[g]=""},_setUpCustomProps:function(){var a=this._pathParts.part1,b=0<this._pathParts.part2.length?":"+this._pathParts.part2:"",c=0<this._pathParts.part3.length?":"+this._pathParts.part3:"",d=0<this._pathParts.part4.length?":"+this._pathParts.part4:
"",a={pagename:a+b+c+d,server:window.location.hostname,sitesect2:a+b,subsect3:a+b+c,subsect4:a+b+c+d,heir1:(a+b+c+d).replace(/:/g,"|")},e;for(e in a)this.addEntry(e,a[e]);this._staticPageCheck();this._browserConfigurationSettings();this._hashCheck()},_staticPageCheck:function(){this._cachedVals.ncbi_app&&0<this._cachedVals.ncbi_app.value.length||this.addEntry("ncbi_app","static");this._cachedVals.ncbi_pdid&&0<this._cachedVals.ncbi_pdid.value.length||this.addEntry("ncbi_pdid","unknown")},_getSessionId:function(){if(this._cachedVals.ncbi_sessionid&&
0<this._cachedVals.ncbi_sessionid.value.length)return this._cachedVals.ncbi_sessionid&&this._cachedVals.ncbi_sessionid.value;if(this._cachedVals.ncbi_sid&&0<this._cachedVals.ncbi_sid.value.length)return this._cachedVals.ncbi_sid&&this._cachedVals.ncbi_sid.value;var a="",b=this.getCookie("ncbi_sid");0<b.length&&(a=b);0===a.length&&(b=this.getCookie("WebCubbyUser")||this.getCookie("WebEnv"),0<b.length&&(b=unescape(b).split("@"),1<b.length&&(a=b[b.length-1])));0===a.length&&(a=null);return a},_sessionIdCheck:function(){var a=
this;if("undefined"===typeof Promise){var b=function(){var b=a._getSessionId()||"UNK_SESSION";a.addEntry("ncbi_sessionid",b);a._prevHitCheck()};b.prototype.then=function(a){a()}}else b=Promise;a._sidPromise=new b(function(b,d){var c=a._getSessionId()||"UNK_SESSION";c&&"UNK_SESSION"!=c?(a.addEntry("ncbi_sessionid",c),a._prevHitCheck(),b()):a.makeSessionidRequest(function(){a.addEntry("ncbi_sessionid",a._getSessionId()||"UNK_SESSION");a._prevHitCheck();b()},function(){a.addEntry("ncbi_sessionid","UNK_SESSION");
a._prevHitCheck();b()})})},_isLoggedIn:function(){var a=this.getCookie("WebCubbyUser");return a?-1!==a.search(/logged-in=true/):!1},_isInnerLoginFrame:function(){return r&&"account"==r&&f&&("login-page"==f||"SigninPage"==f)?!0:!1},_isOuterLoginFrame:function(){for(var a=document.getElementsByTagName("meta"),b=!1,c=!1,d=0;d<a.length;d++){var e=a[d];"ncbi_app"==e.getAttribute("name")&&"account"==e.getAttribute("content")&&(b=!0);"ncbi_pdid"==e.getAttribute("name")&&"login-page"==e.getAttribute("content")&&
(c=!0)}return b&&c},_isLoginPage:function(){return this._isInnerLoginFrame()||this._isOuterLoginFrame()},getBrowserWidthHeight:function(){var a=this.getViewportWidth(),b=this.getViewportHeight();return{width:a,height:b}},_browserConfigurationSettings:function(){if(ncbi.sg.calcXY){var a=this.getBrowserWidthHeight();this.addEntry("browserwidth",a.width);this.addEntry("browserheight",a.height);this.addEntry("screenwidth",screen.width);this.addEntry("screenheight",screen.height);this.addEntry("screenavailwidth",
screen.availWidth);this.addEntry("screenavailheight",screen.availHeight);if(document&&document.body){var b=document.body.scrollWidth,c=document.body.scrollHeight,d=c>a.height?"true":"false";this.addEntry("canscroll_x",b>a.width?"true":"false");this.addEntry("canscroll_y",d);this.addEntry("scrollwidth",b);this.addEntry("scrollheight",c)}}screen.colorDepth?this.addEntry("colorDepth",screen.colorDepth):screen.pixelDepth&&this.addEntry("colorDepth",screen.pixelDepth)},_hashCheck:function(){var a=window.location.hash;
a&&(a=a.replace("#",""),this.addEntry("urlhash",a));(a=window.location.search.match(/[?&]campaign=([^&]*)/))&&this.addEntry("campaign",a[1])},_createPHID:function(){var a=this._cachedVals.ncbi_sessionid.value,b=a.substr(0,15)+"9"+(new Date).getTime().toString(),c=a.length,b=b+a.substr(c-(32-b.length),c),a={value:b};this.addEntry("ncbi_phid",b);return a},currentPageHitId:null,currentPHIDMatchesPrev:!1,_prevHitCheck:function(){var a=this.getCookie("ncbi_prevPHID"),b=this._cachedVals.ncbi_phid;0<a.length&&
this.addEntry("prev_phid",a);b&&b.value&&0!==b.value.length||(b=this._createPHID());b.value==a&&(this.currentPHIDMatchesPrev=!0);this.currentPageHitId=b.value;this.setCookie("ncbi_prevPHID",b.value)},_setUpPathParts:function(){var a=this._cachedVals.ncbi_app,b=this._cachedVals.ncbi_db,c=this._cachedVals.ncbi_pdid,d=this._cachedVals.ncbi_pcid;this._pathParts.part1=void 0!==a?a.value:"NONE";this._pathParts.part2=void 0!==b?b.value:"NONE";this._pathParts.part3=void 0!==c?c.value:"NONE";this._pathParts.part4=
void 0!==d?d.value:"NONE"},getPerfStats:function(){var a=window.performance;if(!a)return{};var b=a.timing;if(b)b={dns:b.domainLookupEnd-b.domainLookupStart,connect:b.connectEnd-b.connectStart,ttfb:b.responseStart-b.connectEnd,basePage:b.responseEnd-b.responseStart,frontEnd:b.loadEventStart-b.responseEnd};else return{};if(a=a.navigation)b.navType=a.type,b.redirectCount=a.redirectCount;return b},setPerfStats:function(a,b){var c=this.getPerfStats(),d;for(d in c){var e=c[d];if(0<=e){var g="jsperf_"+d;
b?a[g]=e:a.push(g+"="+e)}}},getExtraRenderStats:function(){var a={SELF_URL:encodeURIComponent(window.location.href)};"undefined"!==typeof document&&"undefined"!==typeof document.referrer&&(a.HTTP_REFERER=encodeURIComponent(document.referrer));return a},setExtraRenderStats:function(a){var b=this.getExtraRenderStats(),c;for(c in b)a.push(c+"="+b[c])},_addCachedVals:function(a){for(var b in this._cachedVals)-1===ncbi.sg.appLogIgnore.indexOf(b)&&a.push(b+"="+encodeURIComponent(this._cachedVals[b].value))},
_addCachedValsToString:function(a){for(var b in this._cachedVals)-1===ncbi.sg.appLogIgnore.indexOf(b)&&(a=ncbi.sg._urls.addAttrToStr(b,encodeURIComponent(this._cachedVals[b].value),a));return a},_send:function(a,b,c){if("undefined"===typeof c||null===c)c=!0;var d=[];"init"===a?(d.push("jsevent=render"),ncbi.sg.renderTime=new Date,"undefined"!==typeof ncbi_startTime&&(d.push("jsrendertime="+(ncbi.sg.renderTime-ncbi_startTime)),ncbi.sg.loadTime&&d.push("jsloadtime="+(ncbi.sg.loadTime-ncbi_startTime))),
this.setPerfStats(d),this.setExtraRenderStats(d),(a=ncbi.sg.getTimeSinceNavStart())&&d.push("ncbi_timesincenavstart="+a),d.push("cookieenabled="+(ncbi.sg.isCookieEnabled?"true":"false"))):"clicknext"!==a&&"searchnext"!==a&&"unloadnext"!==a&&this._addCachedVals(d);d=d.join("&");this._sendAl(d,b,!0,c);this._hasInitRun=!0;var e=this;setTimeout(function(){e.isProcessRunning=!1;e.runSGProcess()},300)},send:function(a,b){this._send(a,b,!1)},_sendPrev:function(){var a=ncbi.sg.getInstance(),b=a.getNext("clicknext");
b&&(a.currentPHIDMatchesPrev||ncbi.sg._ping(b),a._setNext("clicknext",""));if(b=a.getNext("prevsearch"))a.currentPHIDMatchesPrev||ncbi.sg._ping(b),a._setNext("prevsearch","");if(b=a.getNext("unloadnext"))a.currentPHIDMatchesPrev||ncbi.sg._ping(b),a._setNext("unloadnext","")},_isGADirectnav:function(){return"true"==this.getCookie("ncbi_is_ga")},_setGACookie:function(){ncbi.sg.ga_track?this.setCookie("ncbi_is_ga","true"):this.setCookie("ncbi_is_ga","false")},_unsetGACookie:function(){this.setCookie("ncbi_is_ga",
"")},_getCachedValsData:function(){var a={},b;for(b in this._cachedVals)-1===ncbi.sg.appLogIgnore.indexOf(b)&&(a[b]=encodeURIComponent(this._cachedVals[b].value));return a},_sendAl:function(a,b,c,d,e){function g(){reqURL=ncbi.sg.getStatUrl(a);k.makeRequest(reqURL,function(){"function"===typeof b&&b()},c)}if("undefined"===typeof d||null===d)d=!0;var f=ncbi.sg._urls.getAttrFromStr("jsevent",a),h=this._getCachedValsData();e=y(f,ncbi.sg._urls.getDataObj(a),e,"stat");a.match(/jsevent=(search|click|unload)next/i)||
(a=ncbi.sg._urls.addDataToStr(h,a));if(a.match(/jsevent=search/i)&&!a.match(/jsevent=searchnext/i)){h=ncbi.sg.addTimeonpageToAr([]);for(f=0;f<h.length;f++)a+="&"+h[f];a.match(/jsevent=searchnext/i)||(a+="&eventid="+ncbi.sg.getEventId());h=a.replace(/jsevent=search(next)?/i,"jsevent=searchnext");this._storeNext("prevsearch",h,null,d)}else if(a.match(/jsevent=click/i)&&!a.match(/jsevent=clicknext/i)){h=ncbi.sg.addTimeonpageToAr([]);for(f=0;f<h.length;f++)a+="&"+h[f];a+="&eventid="+ncbi.sg.getEventId();
h=a.replace(/jsevent=click/i,"jsevent=clicknext");this._storeNext("clicknext",h,null,d)}else if(a.match(/jsevent=unload/i)&&!a.match(/jsevent=unloadnext/i)){h=ncbi.sg.addTimeonpageToAr([]);for(f=0;f<h.length;f++)a+="&"+h[f];a+="&eventid="+ncbi.sg.getEventId();h=a.replace(/jsevent=unload/i,"jsevent=unloadnext");this._storeNext("unloadnext",h,null,d)}a+="&sgVersion="+ncbi.sg._version;-1===a.indexOf("sgSource")&&(a=this._setSgSource(a,d));a=ncbi.sg._urls.addDataToStr(e,a);var k=this;this._sidPromise.then(function(b){a=
k._addCachedValsToString(a);g()})},makeSessionidRequest:function(a,b){var c=document.createElement("iframe");url="undefined"!==typeof ncbi_signinUrl?ncbi_signinUrl:"/portal/signin.fcgi?cmd=Nop";c.style.display="none";c.style.width="1px";c.style.height="1px";c.onload=function(b){console.info("onload fired");console.info(b);a();document.body.removeChild(c)};c.onerror=function(a){console.info("onerror fired");console.info(a);b();document.body.removeChild(c)};c.setAttribute("src",url);document.body.appendChild(c);
setTimeout(b,1E3)},makeRequest:function(a,b,c){"undefined"!==typeof ncbi_pingWithImage&&ncbi_pingWithImage?this.makeImgRequest(reqURL,function(){"function"===typeof callbackFnc&&callbackFnc()},c):this.makeAjaxCall(reqURL,function(){"function"===typeof callbackFnc&&callbackFnc()},c);this._pushPingFired(a)},sendAl:function(a,b,c){this._sendAl(a,b,c,!1)},_processingQueue:[],isProcessRunning:!1,addSGProcess:function(a){this._processingQueue.push(a)},getSGProcess:function(a){return this._processingQueue.shift(a)},
runSGProcess:function(){if(this.isProcessRunning||0===this._processingQueue.length||!this._hasInitRun)return!1;this.isProcessRunning=!0;this.removeAllEntries();var a=this.getSGProcess();this._setUpCachedMetaTagValues(a.metadata);this.addEntry("jsevent",a.eventName);for(var b in a.props)this.addEntry(b,a.props[b]);this._send(a.eventName,a.callbackFnc);var c=this;setTimeout(function(){c.isProcessRunning=!1;c.runSGProcess()},300)},noteEventData:function(a,b,c,d){this._sidPromise.then(function(e){ncbi.sg._ping({jsevent:a,
props:b,metadata:c,callback:d},!0,a,{},!0)})},_setCookie:function(a,b,c,d,e){e&&(b=""==b?"":ncbi.sgLZString.compressToBase64(b));if(window.sessionStorage)try{sessionStorage.setItem(a,b)}catch(g){}d&&(document.cookie=a+"="+b+(null===c||0===c?"":"; expires="+c)+"; domain="+escape("undefined"!==typeof __ncgi_sgCookieDomain?__ncbi_sgCookieDomain:".ncbi.nlm.nih.gov")+"; path=/")},setCookie:function(a,b,c,d,e){if(0===c)c=0;else{var g=new Date;null!==c?(g.setDate(g.getDate()+c),c=g.toGMTString()):c=null}return this._setCookie(a,
b,c,d,e)},_setSgSource:function(a,b){return a+("&sgSource="+(b?"native":"api"))},_decodeStarNextObj:function(a){var b={};a=a.split(";");for(var c=0;c<a.length;c++){var d=a[c].split(":");2>d.length||(b[d[0]]=d[1])}return b},_encodeStarNextObj:function(a){var b="",c;for(c in a)b+=c+":"+a[c]+";";return b.replace(/;$/,"")},_addStarNextData:function(a,b,c){a=this._decodeStarNextObj(a);a[c]=b;return this._encodeStarNextObj(a)},_setNext:function(a,b,c,d){d=this.getCookie("starnext",!0);b=this._addStarNextData(d,
b,a);this.setCookie("starnext",b,c,!0,!0)},_getNextParamKey:function(a){var b=this._nextParamKeys[a.toLowerCase()];return void 0!==b?b.toString():a},_getNextParamName:function(a){return this._nextParams[parseInt(a)]||a},_setNextParamKeys:function(){this._nextParamKeys={};for(var a=this._nextParams,b=0;b<a.length;b++)this._nextParamKeys[a[b]]=b},_replaceKeysInObj:function(a,b){var c={},d;for(d in a){var e=b.call(this,d);c[e]=a[d]}return c},_compressNext:function(a){a=ncbi.sg._urls.getDataObj(a);a=
this._replaceKeysInObj(a,this._getNextParamKey);return ncbi.sg._urls.getDataStr(a)},_decompressNext:function(a){a=ncbi.sg._urls.getDataObj(a);a=this._replaceKeysInObj(a,this._getNextParamName);return ncbi.sg._urls.getDataStr(a)},_storeNext:function(a,b,c,d){if("undefined"===typeof d||null===d)d=!0;b=this._setSgSource(b,d);b=this._compressNext(b);this._setNext(a,b,c,d);this.setCookie("ncbi_prevPHID",this.currentPageHitId)},getNext:function(a){var b=this.getCookie("starnext",!0);return(a=this._decodeStarNextObj(b)[a])?
this._decompressNext(a):""},getCookie:function(a,b){var c;if(0<document.cookie.length){var d=document.cookie.indexOf(a+"=");if(-1!==d)return d=d+a.length+1,c=document.cookie.indexOf(";",d),-1===c&&(c=document.cookie.length),c=document.cookie.substring(d,c),b?""==c?"":ncbi.sgLZString.decompressFromBase64(c):c}if(window.sessionStorage){try{c=sessionStorage.getItem(a)||""}catch(e){c=""}if(0<c.length)return b?""==c?"":ncbi.sgLZString.decompressFromBase64(c):c}return""},getTransport:function(){var a=null;
if(window.XMLHttpRequest)try{a=new XMLHttpRequest,this.getTransport=function(){return new XMLHttpRequest}}catch(b){a=null}if(window.ActiveXObject&&null===a)try{a=new ActiveXObject("Msxml2.XMLHTTP"),this.getTransport=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP"),this.getTransport=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(c){a=!1}}null===a&&(this.getTransport=function(){return null});return this.getTransport()},_shouldStorePing:function(a){return-1!==
a.search(/jsevent=(click|search|unload)next/)||(-1!==a.search("jsevent=render")||-1!==a.search("jsevent=domready")||-1!==a.search("jsevent=jserror"))&&-1===a.search("sgSource=api")},_pushPingFired:function(a){this._shouldStorePing(a)&&ncbi.sg.pingsFired.push(a)},_pushPingSucceeded:function(a){this._shouldStorePing(a)&&ncbi.sg.pingsSucceeded.push(a)},makeAjaxCall:function(a,b,c){var d=this,e=this.getTransport();e._ncbi_skipOverride=!0;e.open("GET",a,c);c&&(e.onreadystatechange=function(){4===e.readyState&&
(--ncbi.sg.outstandingPings,d._pushPingSucceeded(a),b(e))});ncbi.sg.lastPing=e;ncbi.sg.outstandingPings+=1;e.send(null);return e},makeImgRequest:function(a,b,c){var d=this,e=document.createElement("img");e.setAttribute("src",a);e.style.display="none";e.onload=function(){this.complete&&"undefined"!==typeof this.naturalWidth&&0!=this.naturalWidth?(d._pushPingSucceeded(a),b()):console.warn("could not load stat img");--ncbi.sg.outstandingPings;document.body.removeChild(e)};ncbi.sg.outstandingPings+=1;
document.body.appendChild(e)},scrollDetails:{maxScroll_x:0,maxScroll_y:0,currScroll_x:0,currScroll_y:0,hasScrolled:!1},scrollEventDetails:{xTenths:0,yTenths:0,xMax:0,yMax:0},_visibleHeadings:[],_hiddenHeadings:[],_getScrollXYPx:function(){return[window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0]},_getScrollXY:function(){var a=this.getViewportHeight(),b=this.getViewportWidth(),c=document.body.scrollHeight,
d=document.body.scrollWidth,e=this._getScrollXYPx();return{xRel:Math.round(e[0]/b*10)/10,yRel:Math.round(e[1]/a*10)/10,viewportHeight:a,viewportWidth:b,pageHeight:c,pageWidth:d}},_addOnScrollListeners:function(){var a=this,b=function(){ncbi.sg.isScrollingEnabled?(a._setScrollDetails(),a.scrollDetails.hasScrolled=!0,a._sidPromise.then(function(b){a._addScrollEvent()})):(a._setScrollDetails(),a.scrollDetails.hasScrolled=!0);ncbi.sg.ga_track&&ncbi.sg.calcXY&&400<a.scrollDetails.maxScroll_y&&!ncbi.sg._hasLoggedGAScroll&&
(ncbi.sg.getGA()("send","event","scroll"),ncbi.sg._hasLoggedGAScroll=!0)};window.addEventListener?window.addEventListener("scroll",b):window.attachEvent&&document.attachEvent("onscroll",b)},getViewportHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:null!==document.body?document.body.clientHeight:"NA"},getViewportWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&
document.documentElement.clientWidth?document.documentElement.clientWidth:null!==document.body?document.body.clientWidth:"NA"},_setScrollDetails:function(){ncbi.sg.calcXY&&(this.scrollDetails.currScroll_y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,this.scrollDetails.currScroll_x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,this.getViewportWidth(),this.getViewportHeight(),this.scrollDetails.maxScroll_y<this.scrollDetails.currScroll_y&&
(this.scrollDetails.maxScroll_y=this.scrollDetails.currScroll_y),this.scrollDetails.maxScroll_x<this.scrollDetails.currScroll_x&&(this.scrollDetails.maxScroll_x=this.scrollDetails.currScroll_x))},isVisible:function(a){var b=this.findEffectiveStyleProperty(a,"visibility");a=this._isDisplayed(a);return"hidden"!=b&&a},_isDisplayed:function(a){return"none"==this.findEffectiveStyleProperty(a,"display")?!1:a.parentNode.style?this._isDisplayed(a.parentNode):!0},findEffectiveStyleProperty:function(a,b){var c=
this.findEffectiveStyle(a)[b];return"inherit"==c&&a.parentNode.style?this.findEffectiveStyleProperty(a.parentNode,b):c},findEffectiveStyle:function(a){if(void 0!=a.style)return window.getComputedStyle?window.getComputedStyle(a,null):a.currentStyle?a.currentStyle:window.document.defaultView&&window.document.defaultView.getComputedStyle?window.document.defaultView.getComputedStyle(a,null):null},findElementPos:function(a,b,c){var d=0,e=0;a.offsetLeft&&(d+=parseInt(a.offsetLeft));a.offsetTop&&(e+=parseInt(a.offsetTop));
a.scrollTop&&0<a.scrollTop&&(e-=parseInt(a.scrollTop),c=!0);a.scrollLeft&&0<a.scrollLeft&&(d-=parseInt(a.scrollLeft),b=!0);if(a.offsetParent){b=this.findElementPos(a.offsetParent,b,c);if(-1==b)return-1;d+=b[0];e+=b[1]}else if(a.ownerDocument){var g=a.ownerDocument.defaultView;!g&&a.ownerDocument.parentWindow&&(g=a.ownerDocument.parentWindow);if(g){var f=void 0!==g.pageXOffset?g.pageXOffset:(a.document.documentElement||a.document.body.parentNode||a.document.body).scrollLeft;a=void 0!==g.pageYOffset?
g.pageYOffset:(a.document.documentElement||a.document.body.parentNode||a.document.body).scrollTop;!c&&a&&0<a&&(e-=parseInt(a));!b&&f&&0<f&&(d-=parseInt(f))}}return[d,e]},getJoinedData:function(a){var b=[],c;for(c in a)b.push(c+"="+encodeURIComponent(a[c]));return b.join("&")},addScrollHeadingData:function(a,b){var c=this.scrollEventDetails.headings;if(c){a["numHeadings."+this._scrollOrder+".scrollInfo"]=c.length;for(var d=0;d<c.length;d++){var e=c[d];if(e.visible){var g={};e.innerText&&(g["innerText."+
e.index+".headings."+this._scrollOrder+".scrollInfo"]=e.innerText);e.id&&(g["id."+e.index+".headings."+this._scrollOrder+".scrollInfo"]=e.id);g["tagName."+e.index+".headings."+this._scrollOrder+".scrollInfo"]=e.tagName;b=b?b:1800;this.getJoinedData(a).length+this.getJoinedData(g).length<b&&ncbi.sg._urls.addDataToObj(a,g)}}}return a},storeAllHeadings:function(){for(var a=[],b=[],c=document.getElementsByTagName("*"),d=-1,e=0;e<c.length;e++){for(var g=c[e],f=!1,h=g.tagName.toLowerCase(),k=0;7>k;k++)h==
"h"+k&&(f=!0);if(f){var d=d+1,k=this.findElementPos(g),f=k[1],k=k[0],p=g.offsetHeight,n=g.offsetWidth,q=this.getViewportHeight(),t=this.getViewportWidth(),m={},v=g.getAttribute("id")||g.id;v&&(m.id=v);if(v=(g.getAttribute("innerText")||g.innerText||g.getAttribute("textContent")||g.textContent||"").replace(/^\s+|\s+$/g,""))m.innerText=v.substring(0,50);m.index=d;m.tagName=h;h=!1;0<=f+p&&f<=q&&0<=k+n&&k<=t&&this.isVisible(g)&&(h=!0);(m.visible=h)?a.push(m):b.push(m)}}this._visibleHeadings=a;this._hiddenHeadings=
b},getVisibleHeadings:function(){return this._visibleHeadings},getHiddenHeadings:function(){return this._hiddenHeadings},getVisibleHeadingIDs:function(){for(var a=this.getVisibleHeadings(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b},getHiddenHeadingIDs:function(){for(var a=this.getHiddenHeadings(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b},_setBeforeScrollDetails:function(a){this._lastScroll=a?a:null;if(ncbi.sg.calcXY){a=this._getScrollXY();var b=a.yRel;this.scrollEventDetails.xTenths=
Math.round(10*a.xRel);this.scrollEventDetails.yTenths=Math.round(10*b);this.scrollEventDetails.xMax=Math.max(this.scrollEventDetails.xTenths,this.scrollEventDetails.xMax);this.scrollEventDetails.yMax=Math.max(this.scrollEventDetails.yTenths,this.scrollEventDetails.yMax)}this.storeAllHeadings();this.scrollEventDetails.headings=this.getVisibleHeadings()},getScrollDetails:function(a,b){if(!ncbi.sg.isScrollingEnabled)return ncbi.sg.calcXY?(this._setScrollDetails(),this.scrollDetails):{};var c=this.scrollEventDetails;
c.tstamp=(new Date).getTime();var d=this._getScrollXY(),e=null;if(b||!this._lastScroll||1E3<c.tstamp-this._lastScroll){this._scrollOrder=void 0!=this._scrollOrder?this._scrollOrder+1:0;if(ncbi.sg.calcXY)var g="yTenths."+this._scrollOrder+".scrollInfo",f="xTenths."+this._scrollOrder+".scrollInfo",h="maxXTenths."+this._scrollOrder+".scrollInfo",k="maxYTenths."+this._scrollOrder+".scrollInfo";e={};e["duration."+this._scrollOrder+".scrollInfo"]=this._lastScroll?c.tstamp-this._lastScroll:new Date-ncbi.sg.loadTime;
ncbi.sg.calcXY&&(e[f]=this.scrollEventDetails.xTenths,e[g]=this.scrollEventDetails.yTenths,e[h]=this.scrollEventDetails.xMax,e[k]=this.scrollEventDetails.yMax,e["viewportHeight."+this._scrollOrder+".scrollInfo"]=d.viewportHeight,e["viewportWidth."+this._scrollOrder+".scrollInfo"]=d.viewportWidth,e["maxPossibleScrollTenthsY."+this._scrollOrder+".scrollInfo"]=Math.round(10*(d.pageHeight/d.viewportHeight-1)),e["maxPossibleScrollTenthsX."+this._scrollOrder+".scrollInfo"]=Math.round(10*(d.pageWidth/d.viewportWidth-
1)));e=this.addScrollHeadingData(e,a)}this._setBeforeScrollDetails(c.tstamp);return e},getScrollDetailsAr:function(a,b){var c=[],d=this.getScrollDetails(a,b),e;for(e in d)c.push(e+"="+encodeURIComponent(d[e]));return c},addScrollDetailsAr:function(a,b,c){b=this.getScrollDetailsAr(b,c);for(c=0;c<b.length;c++)a.push(b[c])},addScrollDetails:function(a,b,c){b=this.getScrollDetails(b,c);for(var d in b)a[d]=b[d]},_addScrollEvent:function(){try{var a=this.getScrollDetails();a&&(a.jsevent="scroll",ncbi.sg._ping(a))}catch(b){ncbi.sg.getInstance().noteEventData("jserror",
{jserror:b.toString(),SELF_URL:window.location.href},["ncbi_sessionid","ncbi_phid"])}},_addPrintPing:function(){function a(){var a=document.createElement("style");a.type="text/css";var c=document.createElement("style");c.type="text/css";c.media="print";for(var g=["jsevent=print"],f=0;f<b.cachedNames.length;f++){var h=b.cachedNames[f],k=b._cachedVals[h];k&&"ncbi_sessionid"!==h&&g.push(h+"="+encodeURIComponent(k.value))}g=".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }.print-log li { list-style-image: url('"+
ncbi.sg.getStatUrl(g.join("&"))+"'); }";c.styleSheet?(c.styleSheet.cssText=g,a.styleSheet.cssText=".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }"):(c.appendChild(document.createTextNode(g)),a.appendChild(document.createTextNode(".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }")));g=document.getElementsByTagName("head")[0];g.appendChild(c);g.appendChild(a);a=document.createElement("ul");a.className="print-log";
c=document.createElement("li");a.appendChild(c);document.body.appendChild(a)}var b=this;if("undefined"!==typeof jQuery)jQuery(a);else{var c=window.onload;window.onload=function(b){c&&c(b);a()}}},getMillisecondsSinceSunday:function(){var a=new Date,b=new Date;b.setDate(b.getDate()-b.getDay());b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);return(a-b).toString(36)},addLinkObjs:function(a){this._linkObjs.push(a)},isInLinkObjs:function(a){for(var b=this._linkObjs,c=0;c<b.length;c++)for(var d=
b[c],e=0;e<d.length;e++)if(a==d[e])return!0;return!1}};ncbi.sg.lastPing=null;ncbi.sg.hasNotedErrorEvent=!1;ncbi.sg.getTimeSinceNavStart=function(){return"undefined"!==typeof performance&&"undefined"!==typeof performance.now?Math.round(performance.now()):null};ncbi.sg.getTimeonpageData=function(){var a={};"undefined"!==typeof ncbi_startTime&&(a.ncbi_timeonpage=new Date-ncbi_startTime,"undefined"!==typeof ncbi_onloadTime&&ncbi_onloadTime&&(a.ncbi_onloadTime=ncbi_onloadTime-ncbi_startTime));return a};
ncbi.sg.addTimeonpageDetails=function(a){var b=ncbi.sg.getTimeonpageData(),c;for(c in b)a[c]=b[c];return a};ncbi.sg.addTimeonpageToAr=function(a){var b=ncbi.sg.getTimeonpageData(),c;for(c in b)a.push(c+"="+b[c]);return a};ncbi.sg.getStatUrl=function(a){var b=window.location.port?":"+window.location.port:"";return"undefined"!==typeof __ncbi_stat_url?__ncbi_stat_url+"?"+a:window.location.protocol+"//"+window.location.hostname+b+"/stat?"+a};(function(){function a(){ncbi.sg.getInstance()._sidPromise.then(function(a){if(0<
m.length)for(;0<m.length;)c(m.pop());a={jsevent:"unload",ncbi_pingaction:"unload"};a=ncbi.sg.addTimeonpageDetails(a);a.eventid=ncbi.sg.getEventId();ncbi.sg.getInstance().setPerfStats(a,!0);t||ncbi.sg._ping(a);t=!0})}function b(a,b){for(var e=m.length-1;-1<=e;e--)if(m[e]===a){m.slice(e,1);break}c(a,null,b)}function c(a,b,c){-1===n.indexOf(a.tstamp)&&(n.push(a.tstamp),q.push(a),d("click",a,b,!0,c))}function d(a,b,c,d,f){ncbi.sg.getInstance()._sidPromise.then(function(g){if("undefined"===typeof d||null===
d)d=!0;var v="click"===a?"link":"elem",w=b.link,h=e(w)||"",k=b.evt,D=w.id||"",E=w.name||"",m=w.sid||"",p=w.href||"",n=w.innerText||w.textContent||"";50<n.length&&(n=n.substr(0,50));var q=w.getAttribute?w.getAttribute("ref")||w.ref||"":"",t=w.className?w.className.replace(/^\s?/,"").replace(/\s?$/,"").split(/\s/g).join(",")||"":"";g=[];var A=[],l=w.parentNode;if(l)for(var r=0;6>r&&null!==l;r++)(parId=l.id)&&g.push(parId),(parClassName=l.className)&&(A=A.concat(parClassName.split(/\s/))),l=l.parentNode;
r=ncbi.sg.getInstance();l=[];0<D.length&&l.push(v+"_id="+encodeURIComponent(D));0<E.length&&l.push(v+"_name="+encodeURIComponent(E));0<m.length&&l.push(v+"_sid="+encodeURIComponent(m));0<p.length&&l.push(v+"_href="+encodeURIComponent(p));0<n.length&&l.push(v+"_text="+encodeURIComponent(n));0<t.length&&l.push(v+"_class="+encodeURIComponent(t));0<h.length&&l.push(v+"_section_name="+encodeURIComponent(h));ncbi.sg.calcXY&&(r=r.getBrowserWidthHeight(),null!==r.width&&l.push("browserwidth="+encodeURIComponent(r.width)),
null!==r.height&&l.push("browserheight="+encodeURIComponent(r.height)));for(var u in k)r=k[u],void 0!==r&&l.push(u.toLowerCase()+"="+r.toString());"click"===a&&l.push("eventid="+encodeURIComponent(ncbi.sg.getEventId()));l.push("jsevent="+a);0<q.length&&l.push(q);if("undefined"!==typeof jQuery&&(r=jQuery(w).attr("sg")))for(u=r.split(/\}\s*,\s*\{/),r=0;r<u.length;r++)k=u[r].match(/name\s*:\s*'(.+)',\s*selector\s*:\s*'(.+)'/),3===k.length&&(w="cust_"+k[1],k=jQuery(k[2]).val(),l.push(w+"="+encodeURIComponent(k)));
if(c&&0<c.length)for(;0<c.length;)l.push(c.shift());0<g.length&&l.push("ancestorId="+g.join(","));0<A.length&&l.push("ancestorClassName="+A.join(",").replace(/\s+/g," ").replace(/(^\s|\s$)/g,""));ncbi.sg._ping(l,!0,null,null,d,f)})}function e(a){var b;if(a=a.parentNode)for(;a&&a.dataset&&!(b=a.dataset.section);)a=a.parentNode;return b||null}function g(a){var b={};if(ncbi.sg.calcXY&&a)if(a.clientX||a.clientY){var c=ncbi.sg.getInstance()._getScrollXYPx();b.evt_coor_x=a.clientX+c[0];b.evt_coor_y=a.clientY+
c[1]}else if(a.pageX||a.pageY)b.evt_coor_x=a.pageX,b.evt_coor_y=a.pageY;return b}function f(a,b,c,e,f){ncbi.sg.getInstance()._sidPromise.then(function(v){v={};var w,h;"string"===typeof b?(w=b,h=c):(v=g(b),w=c,h=e);if(h){var k=typeof h;if("string"===k)h=[h];else if("object"===k&&!(h instanceof Array)){var k=[],l;for(l in h)k.push(l+"="+h[l]);h=k}}d(w,{link:a,evt:v},h,f)})}function h(a,b,c,e){ncbi.sg.getInstance()._sidPromise.then(function(d){d=[];"undefined"===typeof b&&(b=!0);if("object"!==typeof a||
a instanceof Array)"string"===typeof a?d.push(a):d=a;else for(var f in a)d.push(f+"="+encodeURIComponent(a[f]));f=ncbi.sg.getInstance().currentPageHitId||"";var g=null;"undefined"!==typeof ncbi.sg.loadTime&&(g=new Date-ncbi.sg.loadTime);var v=d.join("&");-1!==v.indexOf("jsevent=clicknext")||-1!==v.indexOf("jsevent=searchnext")||-1!==v.indexOf("jsevent=unloadnext")?(0<f.length&&d.push("next_phid="+encodeURIComponent(f)),null!==g&&d.push("next_ncbi_timesinceload="+g)):(0<f.length&&d.push("ncbi_phid="+
encodeURIComponent(f)),null!==g&&d.push("ncbi_timesinceload="+g));(f=ncbi.sg.getTimeSinceNavStart())&&d.push("ncbi_timesincenavstart="+f);ncbi.sg.getInstance()._sendAl(d.join("&"),null,b,c,e)})}var k=ncbi.sg.getInstance();k._setUpMetaTagValues();k._sessionIdCheck();var p=window.onerror;window.onerror=function(a,b,c){if(!ncbi.sg.hasNotedErrorEvent&&(ncbi.sg.getInstance().noteEventData("jserror",{jserror:a,jserrorlocation:b,jserrorline:c,SELF_URL:window.location.href},["ncbi_sessionid","ncbi_phid"]),
ncbi.sg.hasNotedErrorEvent=!0,"function"===typeof p))return p(a,b,c)};ncbi.sg._currentEventId=1;ncbi.sg.getEventId=function(){return ncbi.sg._currentEventId++};var m=[],n=[],q=[],t=!1;ncbi.sg.sendElementEvent=function(a,b,c){d(a,b,c,!1)};ncbi.sg.clickTimers=[];ncbi.sg.getGA=function(){function a(a){var b=a.GoogleAnalyticsObject;return b?a[b]:null}var b;return(b=a(window))?b:(b=a(window.top))?b:null};setClickEvent=function(){function c(b){a()}var d=ncbi.sg.getInstance(),f=function(a){return(a="undefined"!==
typeof a.parentNode?a.parentNode:null)?k(a)?a:f(a):!1},h=function(a){var b=a.target||a.srcElement;if("undefined"==typeof b||null==b)return null;3==b.nodeType&&(b=a.target.parentNode);k(b)||(b=f(b));return b},k=function(a){var b="undefined"!==typeof a.tagName?a.tagName.toLowerCase():null,c,d=!1;"undefined"!==typeof jQuery?c=jQuery(a).is("button, input[type=button], input[type=submit], input[type=reset]"):"input"===b?(c=a.type,c="button"==c||"submit"==c||"reset"==c):c="button"===b?!0:!1;c||(d="a"==
b||"area"==b);return d?"link":c?"button":ncbi.sg.getInstance().isInLinkObjs(a)?"linkObjs":null},l=function(a,b){var c=null;if("sciencv"==d.getVal("ncbi_app")&&"sciencv-splash"==d.getVal("ncbi_pdid")){if(a.href&&-1!==a.href.search(/\/account\/nih-sciencv\/\?back_url=/))var f="Big Green Button";else a.getAttribute("id")&&"sign_in"==a.getAttribute("id")&&(f="Standard Upper Right Link");c={event:"click",category:"Login Route",action:"1 - Login Link Click",label:f}}else if("account"==d.getVal("ncbi_app")&&
("login-page"==d.getVal("ncbi_pdid")||"SigninPage"==d.getVal("ncbi_pdid"))){var g=a.getAttribute("name");"partner_signin"==g?f=a.getAttribute("authid"):"signinBtn"==g&&(f="NCBI");f&&(d.setCookie("sg_logging_in","yes",0),c={event:"click",category:"Login Route",action:"3 - Click Login Option",label:f,cd5:f})}if(!c){var c="",f=a.dataset&&a.dataset.gaLabel||null,g=a.getAttribute("ref")||a.ref||null,h=a.href;f?c=f:g&&(c=g);h&&(c&&(c+=" "),c+=h);c||(c="NONE");c={event:"click",category:e(a)||"Link Click",
action:a.dataset&&a.dataset.gaAction||null||a.innerText||a.textContent||null||"NONE",label:c};f=y("click",c,b,"ga");ncbi.sg._urls.addDataToObj(c,f)}return c},m=function(a,c,d,f,h){ncbi.sg.getInstance()._sidPromise.then(function(d){if((!f||"click"!=f||!a.which||3!=a.which)&&c&&null!=k(c)&&(d=g(a),d.iscontextmenu="contextmenu"==f?"true":"false",d={evt:d,link:c,tstamp:(new Date).getTime(),floodTstamp:(new Date).getTime()},e(c),b(d,a),ncbi.sg.clickTimers&&window.clearTimeout(ncbi.sg.clickTimers),ncbi.sg.clickTimers=
window.setTimeout(function(){ncbi.sg.clickTimers=null},300),ncbi.sg.ga_track&&"contextmenu"!=f)){d=l(c,a);var h=ncbi.sg.getGA();h&&(d.cd5?h("send","event",d.category,d.action,d.label,{dimension5:d.cd5}):h("send","event",d.category,d.action,d.label));ncbi.sg.gaPingsFired.push(d)}})};window.addEventListener?(window.addEventListener("click",function(a){m(a,h(a),[],"click")}),window.addEventListener("contextmenu",function(a){m(a,h(a),[],"contextmenu")},!1),window.addEventListener("beforeunload",c)):window.attachEvent&&
(document.attachEvent("onclick",function(a){m(a,h(a),[],"click")}),document.attachEvent("oncontextmenu",function(a){m(a,h(a),[],"contextmenu")},!1),document.attachEvent("onbeforeunload",c));if(d._isOuterLoginFrame()){var p=function(a){if(a.contentWindow){var b=a.contentWindow;a=a.contentDocument||a.contentWindow.document;b.addEventListener?(b.addEventListener("click",function(a){m(a,h(a),[],"click")}),b.addEventListener("contextmenu",function(a){m(a,h(a),[],"contextmenu")},!1)):b.attachEvent&&(a.attachEvent("onclick",
function(a){m(a,h(a),[],"click")}),a.attachEvent("oncontextmenu",function(a){m(a,h(a),[],"contextmenu")},!1))}},n=document.getElementsByTagName("iframe");if(n.length){var q=n[0],n=function(a){(a=a.target||a.srcElement)&&a==q&&p(q)};q.addEventListener?q.addEventListener("load",n):q.attachEvent&&q.attachEvent("onload",n)}}if(Event.prototype.stopPropagation){var r=Event.prototype.stopPropagation;Event.prototype.stopPropagation=function(){var a=h(this);null!=k(a)&&("click"==this.type?m(this,a,[],"click"):
"contextmenu"==this.type&&m(this,a,[],"contextmenu"));return r.apply(this,arguments)}}};ncbi.sg.isClickingEnabled&&ncbi.sg.getInstance()._sidPromise.then(function(a){setClickEvent()});ncbi.sg.scanLinks=function(a){var b=ncbi.sg.getInstance();if(a){var c="undefined"!==typeof jQuery&&jQuery?a instanceof jQuery:!1;"object"!==typeof a||a instanceof Array||c||(a=[a]);b.addLinkObjs(a)}};ncbi.sg._ping=function(a,b,c,d,e,g){if("undefined"===typeof e||null===e)e=!0;"undefined"!==typeof a&&null!==a&&("object"===
typeof a&&void 0!==a.nodeName?f(a,b,c,d,e):h(a,b,e,g))};ncbi.sg.ping=function(a,b,c,d){ncbi.sg._ping(a,b,c,d,!1)};ncbi.sg.loadTime=new Date;ncbi.sg.gaPingsFired=[];ncbi.sg.pingsFired=[];ncbi.sg.pingsSucceeded=[];ncbi.sg.prevPingsFired=null;ncbi.sg.prevPingsSucceeded=null;ncbi.sg.outstandingPings=0;ncbi.sg._isGBPage=!1;ncbi.sg._urls={getDataObj:function(a){if("string"===typeof a||"undefined"!==typeof DOMString&&a instanceof DOMString||"undefined"!==typeof String&&a instanceof String){var b={};a=a.split("&");
for(var c=0;c<a.length;c++)if(a[c].length){var d=a[c].split("="),e=d[0],f;if(1==d.length)f="";else if(f=d[1],2<d.length)for(var g=2;g<d.length;g++)f+="="+d[g];b[e]=f}return b}return!1},getUrlParts:function(a){if("undefined"!==typeof a&&a){a=a.split("?");if(2>=a.length)return a;for(var b=a[1],c=2;c<a.length;c++)b+="?"+a[c];return[a[0],b]}return""},getQueryString:function(a){a=this.getUrlParts(a);return 1<a.length?"undefined"!==typeof a[1]&&a[1]?a[1]:"":null},getMainUrlPart:function(a){a=this.getUrlParts(a);
return 0<a.length?"undefined"!==typeof a[0]&&a[0]?a[0]:"":""},hasQuestionMark:function(a){return-1!==a.search(/\?/)},getDataStr:function(a){if("object"!==typeof a||a instanceof Array)return!1;var b=[],c;for(c in a)b.push(c+"="+a[c]);return b.join("&")},attrInStr:function(a,b){return"undefined"!==typeof b&&b&&0<b.length&&"undefined"!==typeof this.getDataObj(b)[a]?!0:!1},attrInUrl:function(a,b){var c=this.getQueryString(b);return this.attrInStr(c)},getAttrFromData:function(a,b){if("undefined"!==typeof b)return b[a]},
getAttrFromStr:function(a,b){return this.getAttrFromData(a,this.getDataObj(b))},addAttr:function(a,b,c,d){if(d||"undefined"===typeof c[a])c[a]=b;return c},addAttrToStr:function(a,b,c,d){c=this.getDataObj(c);c=this.addAttr(a,b,c,d);return this.getDataStr(c)},addDataToStr:function(a,b,c){for(var d in a)b=this.addAttrToStr(d,a[d],b,c);return b},addDataToObj:function(a,b){for(var c in b)a[c]=b[c]},addAttrWithIndex:function(a,b,c){var d=ncbi.sg.getInstance();if("undefined"===typeof a||!a)return b;"undefined"!==
typeof b&&b&&(d=d.getVal(a),b[a]=d?d:"unknown","undefined"!==typeof c&&c&&(b[a]+=".0"+ncbi.sg._ajaxRequestIndex));return b},addAttrWithIndexToUrl:function(a,b,c){var d=this.getMainUrlPart(b);b=this.getQueryString(b);b=this.addAttrWithIndexToStr(a,null!==b?b:"",c);return d+"?"+b},addAttrWithIndexToStr:function(a,b,c){b=this.getDataObj(b);ncbi.sg.getInstance();b=this.addAttrWithIndex(a,b,c);return this.getDataStr(b)}}})();Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>
0,d=Number(b)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=c);d<c;d++)if(d in this&&this[d]===a)return d;return-1});(function(){function a(){ncbi_onloadTime=new Date}ncbi_onloadTime=null;if("undefined"!==typeof jQuery&&jQuery&&jQuery.fn&&jQuery.fn.on)jQuery(window).on("load",a);else{var b=window.onload;window.onload=function(c){b&&b(c);a()}}})();(function(){ncbi.sg._ajaxRequestIndex=1;if("undefined"!==typeof XMLHttpRequest){var a,b=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){var c;
if("undefined"!==typeof this._ncbi_skipOverride&&this._ncbi_skipOverride)c=b.apply(this,arguments);else{c=b.apply(this,arguments);"undefined"!==typeof a&&a||(a=ncbi.sg.getInstance());var d=a.getVal("ncbi_phid"),d=(d?d:"unknown")+(".0"+ncbi.sg._ajaxRequestIndex);this.setRequestHeader("NCBI-PHID",d);ncbi.sg._ajaxRequestIndex+=1}return c}}})();var p="log debug info warn error assert dir dirxml group groupEnd time timeEnd count trace profile profileEnd".split(" ");if("undefined"===typeof console||"function"===
typeof console)console={};for(var l=0;l<p.length;++l)"undefined"===typeof console[p[l]]&&(console[p[l]]=function(){return!1});p=ncbi.sg.getInstance();p.init();l=p._cachedVals.ncbi_is_ga_pageview_enabled;ncbi.sg.isGAPageviewEnabled="undefined"===typeof __ncbi_sg_isGAPageviewEnabled||__ncbi_sg_isGAPageViewEnabled?l&&"false"==l.value?!1:!0:!1;ncbi.sg.ga_track=!1;var r=(l=p._cachedVals.ncbi_app)&&l.value||"NONE",l=(l=p._cachedVals.ncbi_db)&&l.value||"NONE",m=p._cachedVals.ncbi_pdid,f=m&&m.value||"NONE",
q=p._cachedVals.ncbi_program,q=q&&q.value||"NONE",t=p._cachedVals.ncbi_algorithm,t=t&&t.value||"NONE",k=p._cachedVals.ncbi_nwds,k=k&&k.value||"NONE",h,B;r&&"guide4beta"==r&&(f=(m=p._cachedVals.ncbi_page_type)&&m.value,l=(l=p._cachedVals.ncbi_page_name)&&l.value);!r||"Myncbi"!=r&&"myncbi"!=r||"home"!=f||(gaIsMyncbiHome=!0);!ncbi.sg.getInstance()._isLoggedIn()&&r&&"account"==r&&f&&"login-page"==f&&(h={category:"Login Route",action:"2 - Saw Login Page"},-1!==window.location.href.search(/\/account\/nih-sciencv\//)?
h.label="SciENcv Login Page":h.label="Standard Login Page");r&&"NONE"!=r&&(ncbi.sg.ga_track=!0);window.location&&window.location.hostname&&-1!==window.location.hostname.search("pubchem")&&(ncbi.sg.ga_track=!1);if(ncbi.sg.ga_track){var m=(m=p.getCookie("sg_logging_in"))&&""!==m?!0:!1,z=p.getCookie("labs_account_logging_in"),z=z&&""!==z?!0:!1;m&&p._isLoggedIn()&&!p._isOuterLoginFrame()&&!p._isInnerLoginFrame()&&(p.setCookie("sg_logging_in","",0),h={category:"Login Route",action:"4 - Login Confirmation",
label:r+":"+f});z&&p._isLoggedIn()&&!p._isOuterLoginFrame()&&!p._isInnerLoginFrame()&&(p.setCookie("labs_account_logging_in","",0),B={category:"New Login Route",action:"Login Confirmation",label:r+":"+f});window.GoogleAnalyticsObject||(m=p._cachedVals.ncbi_google_analytics_object,window.GoogleAnalyticsObject=m&&m.value?m.value:"ncbi_global_ga");var n=function(){n.q.push(arguments)};window[window.GoogleAnalyticsObject]=n;n.q=[];n.l=1*new Date;m=document.createElement("script");m.setAttribute("async",
"1");m.setAttribute("src","https://www.google-analytics.com/analytics.js");n("create",ncbi.sg.gaID,"auto");var z=p._isLoggedIn()?"YES":"NO",C=r+":"+l+":"+f,u=p._isGADirectnav()?"YES":"NO";n("set","dimension1",r);n("set","dimension2",l);n("set","dimension3",f);n("set","dimension4",z);n("set","dimension6",C);n("set","dimension7",u);n("set","dimension8",q);n("set","dimension9",t);n("set","dimension10",k);n("set","contentGroup1",r);n("set","contentGroup2",l);n("set","contentGroup3",f);n("set","contentGroup4",
r+":"+l+":"+f);ncbi.sg.isGAPageviewEnabled&&(n("send","pageview"),l={event:"pageview",cd1:r,contentGroup1:r,cd2:l,contentGroup2:l,cd3:f,contentGroup3:f,cd4:z,cd6:C,cd7:u},ncbi.sg.gaPingsFired.push(l));h&&(n("send","event","Login Route",h.action,h.label),l={event:"Login Route",action:h.action,label:h.label},ncbi.sg.gaPingsFired.push({event:"Login Route",action:h.action,label:h.label}));B&&(n("send","event","New Login Route","Login Confirmation",r+":"+f),l={event:"New Login Route",action:"Login Confirmation",
label:r+":"+f},ncbi.sg.gaPingsFired.push({event:"New Login Route",action:"Login Confirmation",label:r+":"+f}));document.getElementsByTagName("body")[0].appendChild(m)}p._isOuterLoginFrame()||p._isInnerLoginFrame()||p._setGACookie()}})();
