/* Copyright (c) 2005-2020 Oracle and/or its affiliates. Contains software licensed under the MIT license. Removal of this notice is prohibited. Full attribution and licensing at: http://ccexperimentsstatic.oracleoutsourcing.com/api/license.html */ (function(){var F=window.ATGSvcs||{};if(!F.REC_VERSION){F.CFG||(F.CFG={});var Fb=function(){var a=null,b=function(a,b,c){var d="object"===typeof a?a:{complete:c||!c&&b||M(a)&&a,duration:a,easing:c&&b||b&&!M(b)&&b};d.old=d.complete;d.complete=function(){M(d.old)&&d.old.call(this)};return d},d={linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},c=[],e=function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig||(b.orig={})},g={opacity:function(a){O(a.elem, "opacity",a.now)},_default:function(a){a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}};e.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(g[this.prop]||g._default)(this);"height"!=this.prop&&"width"!=this.prop||!this.elem.style||(this.elem.style.display="block")},cur:function(a){return null==this.elem[this.prop]||this.elem.style&&null!=this.elem.style[this.prop]?(a=parseFloat(O(this.elem,this.prop,a)))&& -1E4=this.options.duration+this.startTime){this.now=this.end; this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=!0;for(var c in this.options.curAnim)!0!==this.options.curAnim[c]&&(a=!1);if(a){null!=this.options.display&&(this.elem.style.overflow=this.options.overflow,this.elem.style.display=this.options.display,"none"==O(this.elem,"display")&&(this.elem.style.display="block"));if(this.options.hide||this.options.show)for(var e in this.options.curAnim)O(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return!1}c=b-this.startTime; this.state=c/this.options.duration;this.pos=d[this.options.easing||(d.swing?"swing":"linear")](this.state,c,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();return!0}};return function(a,c,d,g,m){var f=b(d,g,m);a.length||(a=[a]);return q(a,function(){var a=ua({},f),b,d=this;for(b in c)"height"!=b&&"width"!=b||!this.style||(a.display=O(this,"display"),a.overflow=this.style.overflow);null!=a.overflow&&(this.style.overflow="hidden");a.curAnim=ua({},c);q(c,function(b, c){var g=new e(d,a,b),f=c.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),l=g.cur(!0)||0;if(f){c=parseFloat(f[2]);var v=f[3]||"px";"px"!=v&&(d.style[b]=(c||1)+v,l*=(c||1)/g.cur(!0),d.style[b]=l+v);f[1]&&(c=("-="==f[1]?-1:1)*c+l);g.custom(l,c,v)}else g.custom(l,c,"")});return!0})}}(),r={match:function(a){var b=document.cookie.split(/; ?/),d=0;for(6!=z(a)&&(a=J(a));dparseFloat(d))return a;"string"===typeof c&&(g={},g[c]=d);for(e in g)g.hasOwnProperty(e)&&(d=g[e],"number"!==typeof d||b.test(e)||(d+="px"),f(a.style,e,d));return a},f=function(a,b,c){l||m();b=h[b]||b;E.opacity||"opacity"!=b?(b=b.replace(/-([a-z])/ig,function(a,b){return b.toUpperCase()}),a[b]=c):(a.zoom=1,a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+("NaN"==parseInt(c)+""?"":"alpha(opacity="+100*c+")"))},l=!1,E={},h={},m=function(){if(!l){var a=document.createElement("div"); a.style.display="none";a.innerHTML='a';a=a.getElementsByTagName("a")[0];var b=a.style.cssFloat?"cssFloat":"styleFloat";E={opacity:"0.5"===a.style.opacity,cssFloat:!!a.style.cssFloat};h["float"]=b;h.cssFloat=b;h.styleFloat=b;l=!0}};window.setTimeout(m,0);return function(){return"object"===typeof arguments[1]||arguments[2]!==n&&"boolean"!==typeof arguments[2]?g.apply(this,arguments):c.apply(this,arguments)}}(),Ga=[],k=function(){window.console&&window.console.log&& console.log([].slice.call(arguments))},qc=k,K={create:function(a,b){a=document.createElement(a);var d=b[0]||{},c=1,e,g;b[0]&&(b[0].constructor!=Object||b[0].tagName)&&(d={},c=0);for(e in d)switch(e){case "Class":case "class":a.className=d[e];break;case "style":a.style.cssText=d[e];break;default:a[e]=d[e]}for(;c|\+|\-|\*|~|\]|\w]*(>|\s)+(?!\+|\-|\*|~)/,h=function(b,d,q){b=b.replace(/^\s+|\s+$/g,"");var C=b.match(E),w=[],I=[],ha;if(C){C=C[0];var Ha=b.indexOf(C);var n=b.substr(0,Ha)}else n=b;c.test(n)?(n=m(n.substring(1),d))&&w.push(n):e.test(n)?w.push.apply(w,a.call(d.getElementsByTagName(n),0)):g.test(n)?w.push.apply(w,v(n.substring(1),d)):f.test(n)?w.push.apply(w,x(n,d)):(ha=n.match(l))&&w.push.apply(w, k(ha[1],ha[2],d));if(Ha)for(ha=w.length,n=b.substr(Ha+C.length);ha;)I=I.concat(h(n,w[--ha],~C.indexOf(">")));else I=w;if(Ha||q)I=p(I,q?d:"");return I},m=b.all?function(a,b){for(var c=b=b.all[a],d=0;c;){if(c.id==a)return c;c=b[d++]}return null}:function(a,b){return"undefined"!==typeof b.getElementById?b.getElementById(a):(a=document.getElementById(a))?a.compareDocumentPosition(b)&8?a:null:null},v=b.getElementsByClassName?function(b,c){return a.call(c.getElementsByClassName(b),0)}:function(a,b){return x("*."+ a,b)},x=function(a,b){a=a.split(".");for(var c=b.getElementsByTagName(a.shift()),d=new RegExp("(?:\\s|^)"+a.shift()+"(?:\\s|$)"),g=c.length,e=0,f=0;eO(g,"opacity")||Fb([g],{opacity:0}, a.t||0,n,function(){a.j&&Z(a.j,"()");a.h&&b.showHide(a)})},a.d));p.rules.faders=c},displayPagePeek:function(a,b){N.enabled&&!N.active&&(N.active=1,N.host=Gb(1)+("//"+(p.ESTARA_HOST||F.ESTARA_HOST||"as00.estara.com")),a=function(){var a=p,b=a.cobrowse;a.pagepeek.launch=1;b&&M(b.uploadPP)&&b.uploadPP()},t.cond("eeAccepted")?a():t.wait({eeAccepted:!0},a),ca(ja("js/pp.js")))},runJavaScript:function(a,b){Z(a.callBack,"()")},loadJavaScript:function(a,b){a.url&&ca(a.url,n,na()||/^https:/i.test(a.url))}, loadLegacyRules:yc,rnSynProactiveChat:function(a,b){var c=a.rnJSON||{};c.type=2;a.divId=c.div_id=c.div_id||"myDiv";qa("ProactiveChat",c,b,a)},rnSynConditionalChatLink:function(a,b){var c=a.rnJSON||{};c.type=7;c.info_element_id=c.info_element_id||"myChatLinkInfo";c.link_element_id=c.link_element_id||"myChatLink";c.container_element_id=c.container_element_id||"myChatLinkContainer";a.divId=[c.info_element_id,c.link_element_id,c.container_element_id];qa("ConditionalChatLink",c,b,a)},rnSynKnowledgeSyndication:function(a, b){var c=a.rnJSON||{};c.type=3;a.divId=c.div_id=c.div_id||"myDiv";qa("KnowledgeSyndication",c,b,a)},rnSynPollingSyndication:function(a,b){var c=a.rnJSON||{};W(c.survey_id)?(c.type=5,a.divId=c.div_id=c.div_id||"myDiv",qa("PollingSyndication",c,b,a)):k("ERROR: missing survey_id")},rnCPProactiveChat:function(a,b){qa("ProactiveChat",a,b,a)},rnCPConditionalChatLink:function(a,b){qa("ConditionalChatLink",a,b,a)},showLink:function(){},stopProcessingRules:function(a,b){ra.clearAll();p.rules.page.stopProcessing= 1},paramToJavaScriptVar:function(a,b){(b=ic(a.select))&&Z(a.value,"=",b)},populateCustomDataSegment:function(a,b){a:{var c=a.select;for(var d=(location.pathname+"//"+location.hash.slice(1)).split("/"),e=0,E=d.length;e >= bt in pin r ~ ! +< +> -< ->".split(" ")[b?d-18:d];var g=+c[2]||0;c=c[3]||null;f=a.value;e=a.s||e;g=u(a.f)?a.f:g;a.o&&(b=/!/.test(a.o),d=a.o.replace("!",""));var m=Ac(e,g,a,d,c,b);if(3==g||"L"==e)f=!0;"N"==e&&(/in/.test(d)&&(f=m,m=a.value),"r"==d&&(d="="));if(!u(m)||!u(f)||!u(d))return"";1==g&&(c=Va(m),m=a.p,1==z(c)?(m=Math.pow(10,m||0),m=W(c*m)/m):m=void 0);if("r"==e)return c=m,null==f&&"~"==d&&(f=""),D(f)||(f= [f]),"r"==d&&(f=Wa(f,U,a)),a=jc(c,f,d,a),b?!a:a;if(2==g)if(/[+-]/.test(d)&&(/-/.test(d)&&(f=-f),d=d.slice(1),c=m,e=Ea,g=new Date,Xa(g)?(g.setDate(g.getDate()+W(f)),f=g):f=null,m=e(f),f=c),"bt"==d){if(!D(f)||2!=f.length)return!1;f=Ya(f,2)}else f=Ea(f);"r"==d&&(f=U(f,a));return ia(m,f,d,b)},d={matchTextEQElementName:0,matchTextEQElementID:1,matchTextEQVar:2,matchTextNEQElementName:3,matchTextNEQElementID:4,matchTextNEQVar:5,matchTextContainsElementName:6,matchTextContainsElementID:7,matchTextContainsPage:8, matchRendTextContainsPage:9,matchTextContainsVar:10,matchTextNContainsElementName:11,matchTextNContainsElementID:12,matchTextNContainsPage:13,matchRendTextNContainsPage:14,matchTextNContainsVar:15,matchTextRegElementName:16,matchTextRegElementID:17,matchTextRegPage:18,matchRendTextRegPage:19,matchTextRegVar:20,matchTextInElementName:21,matchTextInElementID:22,matchTextInPage:23,matchRendTextInPage:24,matchTextInVar:25,matchTextNInElementName:26,matchTextNInElementID:27,matchTextNInPage:28,matchRendTextNInPage:29, matchTextNInVar:30,matchNumEQElementName:31,matchNumEQElementID:32,matchNumEQVar:33,matchNumNEQElementName:34,matchNumNEQElementID:35,matchNumNEQVar:36,matchNumLTElementName:37,matchNumLTElementID:38,matchNumLTVar:39,matchNumLTEQElementName:40,matchNumLTEQElementID:41,matchNumLTEQVar:42,matchNumGTElementName:43,matchNumGTElementID:44,matchNumGTVar:45,matchNumGTEQElementName:46,matchNumGTEQElementID:47,matchNumGTEQVar:48,matchNumInElementName:49,matchNumInElementID:50,matchNumInVar:51,matchNumNInElementName:52, matchNumNInElementID:53,matchNumNInVar:54,matchNumRegElementName:55,matchNumRegElementID:56,matchNumRegVar:57,matchDateEQElementName:58,matchDateEQElementID:59,matchDateEQVar:60,matchDateNEQElementName:61,matchDateNEQElementID:62,matchDateNEQVar:63,matchDateAfterElementName:64,matchDateAfterElementID:65,matchDateAfterVar:66,matchDateBeforeElementName:67,matchDateBeforeElementID:68,matchDateBeforeVar:69,matchDateBetweenElementName:70,matchDateBetweenElementID:71,matchDateBetweenVar:72,matchDateNBetweenElementName:73, matchDateNBetweenElementID:74,matchDateNBetweenVar:75,matchBooleanTVar:76,matchBooleanFVar:77,matchDropDownEQElementName:78,matchDropDownFormEQElementName:79,matchDropDownDisplayEQElementName:80,matchDropDownEQElementID:81,matchDropDownFormEQElementID:82,matchDropDownDisplayEQElementID:83,matchDropDownNEQElementName:84,matchDropDownFormNEQElementName:85,matchDropDownDisplayNEQElementName:86,matchDropDownNEQElementID:87,matchDropDownFormNEQElementID:88,matchDropDownDisplayNEQElementID:89,matchDropDownFormContainsElementName:90, matchDropDownDisplayContainsElementName:91,matchDropDownFormContainsElementID:92,matchDropDownDisplayContainsElementID:93,matchDropDownFormNContainsElementName:94,matchDropDownDisplayNContainsElementName:95,matchDropDownFormNContainsElementID:96,matchDropDownDisplayNContainsElementID:97,matchDropDownInElementName:98,matchDropDownFormInElementName:99,matchDropDownDisplayInElementName:100,matchDropDownInElementID:101,matchDropDownFormInElementID:102,matchDropDownDisplayInElementID:103,matchDropDownNInElementName:104, matchDropDownFormNInElementName:105,matchDropDownDisplayNInElementName:106,matchDropDownNInElementID:107,matchDropDownFormNInElementID:108,matchDropDownDisplayNInElementID:109,matchDropDownLTElementName:110,matchDropDownFormLTElementName:111,matchDropDownDisplayLTElementName:112,matchDropDownLTElementID:113,matchDropDownFormLTElementID:114,matchDropDownDisplayLTElementID:115,matchDropDownLTEQElementName:116,matchDropDownFormLTEQElementName:117,matchDropDownDisplayLTEQElementName:118,matchDropDownLTEQElementID:119, matchDropDownFormLTEQElementID:120,matchDropDownDisplayLTEQElementID:121,matchDropDownGTElementName:122,matchDropDownFormGTElementName:123,matchDropDownDisplayGTElementName:124,matchDropDownGTElementID:125,matchDropDownFormGTElementID:126,matchDropDownDisplayGTElementID:127,matchDropDownGTEQElementName:128,matchDropDownFormGTEQElementName:129,matchDropDownDisplayGTEQElementName:130,matchDropDownGTEQElementID:131,matchDropDownFormGTEQElementID:132,matchDropDownDisplayGTEQElementID:133,matchDropDownRegElementName:134, matchDropDownFormRegElementName:135,matchDropDownDisplayRegElementName:136,matchDropDownRegElementID:137,matchDropDownFormRegElementID:138,matchDropDownDisplayRegElementID:139,matchChoiceCheckedElementName:140,matchChoiceCheckedElementID:141,matchChoiceNCheckedElementName:142,matchChoiceNCheckedElementID:143,currentDateOffsetPlusGTVar:144,currentDateOffsetPlusLTVar:145,currentDateOffsetMinusGTVar:146,currentDateOffsetMinusLTVar:147,runJavaScript:148,timeOnPageEQ:149,timeOnPageNEQ:150,timeOnPageGT:151, timeOnPageLT:152,timeOnPageGTEQ:153,timeOnPageLTEQ:154,cookieIsEnabled:155,cookieNameEQName:156,cookieNameNEQName:157,cookieNameContainsName:158,cookieNameNContainsName:159,cookieNameRegName:160,cookieNameInName:161,cookieNameNInName:162,cookieTextEQName:163,cookieTextNEQName:164,cookieTextContainsName:165,cookieTextNContainsName:166,cookieTextRegName:167,cookieTextInName:168,cookieTextNInName:169,cookieNumEQName:170,cookieNumNEQName:171,cookieNumGTName:172,cookieNumGTEQName:173,cookieNumLTName:174, cookieNumLTEQName:175,cookieNumRegName:176,mouseClickOnID:177,mouseClickOnName:178,mouseClickOnButtonText:179,mouseClickOnSourceUrl:180,mouseClickOnAltText:181,mouseClickOnUrl:182,mouseClickOnTitleText:183,mouseMoveOutOfZone:184,mouseMoveAnywhere:185,timeout:186,maxInvitesPerVisitor:187,livehelpLaunched:188,custom:189};return{runConditions:function(c,e){if(!ba(c))return 0;e||(e={});var g={finalResult:0,groupResult:[]},f,l=c.conditions||[],n=c.operator||"and";if(!l.length)return 1;c=0;for(f=l.length;c< f;c++)u(l[c].name)||(l[c].name=189),g.groupResult[c]=l[c].name+"@x";try{for(c=0,f=l.length;c=c&&d.shift(),d.push({ts:ta(e),browserTime:e,event:a,data:b||{}}));t.occur(a,b)},pb=function(a){a=window.eStara_fsguid||mc("fs_nocache_guid")||a&&L()&&L().slice(0,50)||n;B&&(window.eStara_fsguid=a);return a},yc=function(){k("noNothing called with",arguments)},y=function(a,b){var d=p.CFG[a];a=F.CFG[a];return u(d)?d:u(a)?a:b},na=function(){return"s"==y("-eeFlag")||V},Gb=function(a){var b=location.protocol; return na()&&!a?"https:":/file:/i.test(b)?"http:":b},Cc=function(a){var b=fa("body")||fa("html")||fa("head");b?b.appendChild(a):k("error adding to the body - no body, html or head found")},nc=function(a){return M(a)||Jb&&!!a&&!u(a.toString)&&/^\s*\bfunction\b/.test(a)},ta=function(a){return(+a||+new Date)+p.rules.page.serverDelta},u=function(a){return a!==n},Wa=function(a,b){var d=[],c=[].slice.call(arguments,1);q(a,function(a,g){c[0]=g;d[a]=b.apply(null,c)});return d},pa=function(a,b){for(var d= [].slice.call(arguments,1),c=0,e=a.length;cr&&C.push(a.slice(r,b)),C.push(a.charAt(b)),r=b+1;r? */i,"");var b=document,d=b.body, c=/^([^:]+):eq\((\d*)\)/i,e=J(a).split(">"),g,f;a&&q(e,function(a,e){e=J(e);if(!a&&e.match(/^#/))d=b.getElementById(e.slice(1));else{if(g=e.match(c))e=g[1];f=[];d&&(q(d.children,function(a,b){b&&S(b.tagName||"")==S(e)&&f.push(b)}),d=g?f[W(g[2])||0]:f)}});return d?[].concat(d):[]},Ca=function(a){var b=a.select,d="i"==a.s?"id":"name";return"c"==a.s?Cb(b)[0]:(a=gb(a.regex?U(b,a):b,"*["+d+"]",d,a))&&0<=a.length?a[0]:a},Ac=function(a,b,d,c,e,g){g=d.select||"";var f=d.value,l=function(a,b){b||(b="");if(D(a))return a.length? Wa(a,l,b):void 0;if("c"==b)var c="radio"==a.type||"checkbox"==a.type?a.checked:null;else if(/[ifd]/.test(b)){if("select-one"!=a.type)return;c=a.selectedIndex;if(~c&&"i"!=b)return"f"==b?a[c].value:a[c].text}else{if(0==z(a.value))return a.value;if(0==z(a.innerHTML))return a.innerHTML}return c},k=function(a,b,c,d){if(b||!c){if(D(a))return Wa(a,k,b,c,d);0!=z(a)&&(a=aa(a));b&&(a=J(a));"r"==d||c||(a=S(a))}return a};if("t"==a)return+new Date-p.rules.page.startedAt;if("r"==a)return document.body;if("a"== a)return(da||{})[g];if("N"==a){if("A"==e){var h=r.has(ma);return f?h:!h}"r"!=c&&(d["case"]=d["case"]||0);if("="==c||"!"==c)return!!r.has(U("^"+f+"$",d));h=Dc("in"==c?/^/:U(f,d));h=k(h,d.trim,d["case"],c);return"in"==c?h:"r"==c?0":return a>b;case ">=":return a>=b; case "r":return b?b.test(a):!1;case "~":a=!!~a.indexOf(b);break;case "in":a=jb(a,b);break;case "bt":a=a>=b[0]&&a<=b[1];break;case "pin":a=pc(b,a);break;default:return!1}return c?!a:a},jc=function(a,b,d,c){if(a){var e=a.childNodes.length,g=0,f;if(e)for(f=a.childNodes[g];f;){if(3==f.nodeType&&f.parentNode&&!f.parentNode.tagName.match(/^script$/i)){var l=f.nodeValue;if("r"==d){if(pa(b,function(a){return a.test(l)},l))return!0}else if(c["case"]||(l=S(l)),D(b)){if(pc(b,l))return!0}else if(l.match(b))return!0}if(jc(f, b,d,c))return!0;g++;f=ga&&(a+=70>a?2E3:1900);a=new Date(a,d,b);if(a.getDate()!=b)return null}else if(1==b)a=new Date(W(a));else{if(4==b)return Ea(a());if(2!=b)return null}if(!Xa(a))return null;b=a.getDate();d=a.getMonth()+1;return a.getFullYear()+ "-"+(10>d?"0"+d:d)+"-"+(10>b?"0"+b:b)},Va=function(a){if(null!=a){switch(z(a)){case 0:a=parseFloat(a);break;case 2:return Xa(a)?+a:null;case 3:return+a;case 4:return Va(a())}return isNaN(a)?null:a}},aa=function(a){if(null!=a){switch(z(a)){case 0:return a;case 1:return isNaN(a)?null:a+"";case 2:return Ea(a);case 3:return a+"";case 4:return aa(a());case 7:return a.innerHTML;case 8:case 9:return a.length?aa(a[0]):null;case 10:case 5:return u(a.value)?a.value:a.length?aa(a[0]):u(a.innerHTML)?a.innerHTML: null}return u(a.value)?a.value:u(a.toString)?a.toString():null}},oc=function(a){if(null!=a){var b=z(a);return 0==b?"1"===a||/^t(rue)?$/i.test(a):1==b?!isNaN(a)&&0a)return;a="var"+a}p.rules.page.customVars[a]=b;d&&d.exp||/^total/.test(a)|| Z("eStara_"+a,"=",b)}},ic=function(a,b){u(b)||(b=location.href);a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(b);return u(a)&&null!==a?decodeURIComponent(a[1].replace(/\+/g," ")):null},Gc=function(a,b){a=a[b.type]||[];var d=0;if(!u(b.timeframe))return a.length;q(a,function(a,e){ia(e,b.boundary,">")&&++d});return d},Ec=function(a){var b=p.rules.page,d=0;"any-call"!=a&&(d+=(b.chats||0)+(b.ischats||0));"any-chat"!=a&&(d+=b.calls||0);return!!d},Hc=function(a){var b=a.type;var d=a.select,c="id name value src alt href title".split(" ")[b]; if(7==b)return Cb(d);0==b&&(d=d.slice(1));1==b&&(d=d.slice(7,-1));b=2==b?"input[type=button],input[type=submit],input[type=reset]":"* * img img a a".split(" ")[b]+"["+c+"]";a.compare=a.compare||"r";return gb("r"==a.compare?U(d,a):d,b,c,a)},Db=function(a){var b=a.freq||0,d=a.freqOp||">",c=a.not,e=a.select+"",g=[],f=Eb.logs,l=0,k;a.boundary=ta(+new Date-(a.timeframe||0));/!/.test(d)&&(d=d.replace("!",""),c=!c);var h=/any(-ca|$)/.test(e),m=/any(-ch|$)/.test(e),v=/rn/.test(e);h||m||v?q(f,function(a, b){k=S(b.type)||"";(m&&/chat$/.test(k)||h&&"call"==k||v&&k==e)&&g.push(a)}):g=e.split(",");q(g,function(b,c){l+=Gc(f[c]||{},a)});b=ia(l,b,d);return c?!b:b},Ic=function(a){var b={freqOp:">=",type:"offered",select:"any"};if(a){var d=a.ruleMaxInvite;-1>d&&(d=n);if(u(d)&&~d){b.freq=d;var c=Db(b)&&"hiddenRule"}!c&&u(a.siteMaxInvite)&&~d&&(b.freq=a.siteMaxInvite,c=Db(b)&&"hiddenSite")}return c},Sa=function(a){var b=p.rules.page.customVars;return u(a)?b[a]:b},R=function(a,b,d){k("log to server: "+a);d=new Ka(2== d?sc:d?Ob:Ia,d);d.addResource(a,b);d.send(na())},Q=function(a,b,d,c,e){try{d&1&&(a.from=b,vb("eeError",{error:a,rule:c||{},exp:e})),d&2&&document&&R("error",{type:a.name||"?",message:p.REC_VERSION+"|"+a.message,from:b,ruleId:c&&c.id||0,ts:ta(),siteId:p.rules.page[e?"expSiteId":"siteId"]||0},e?2:0)}catch(g){k("ERROR when logging error:"+a.name+", message:"+a.message+(c&&c.id?", rule id:"+c.id:""))}k("ERROR: "+b+" error, name:"+a.name+", message:"+a.message+(c&&c.id?", rule id:"+c.id:""))},Xb="eeDebugKey", Yb="eeDebugIP",Jc=function(){var a=window.eeDebugger&&window.eeDebugger.reset;a&&M(a)?a():(a=ja("css/debugger.css"),a=K.LINK({rel:"stylesheet",href:ib(a),type:"text/css"}),Pb(a),ca(ja("js/debugger.js")))},qa=function(a,b,d,c){var e=b.type,g=c.divId,f=1,k;b[e?"module":"name"]=a;b.rule=d;pb(1);3!=e&&5!=e&&(b.suppress="suppressed"==c.state?c.message:Ic(c));u(g)&&(q(D(g)?g:[g],function(a,b){(f=f&&u(b)&&!Ta(b,1,1))&&(k=K.DIV({id:b},k||""))}),f&&Cc(k));Ua(e?"synWidget":"cpWidget",b)},Ua=function(a,b){var d= window._vsq;a&&d&&nc(d.push)&&ba(b)&&(b.ts||(b.ts=+new Date),d.push([a,b]))},Kc=function(a){this.rule=a;this.name=a.properties.name;this.id=a.properties.id;this.exp=a.exp;this.properties=a.properties||{};this.maxRunCount=a.properties.maxRunCount||0;this.conditionGroup=a.conditionGroup||{};this.conditions=this.conditionGroup.conditions||[];this.actionGroup=a.actionGroup||{};this.trueActions=this.actionGroup.trueActions||[];this.falseActions=this.actionGroup.falseActions||[];this.runCount=this.scheduled= 0;this.active=1;this.triggers=a.triggers||[];this.runUntil=u(this.properties.until)?this.properties.until:-1;this.runRule=function(a){var b=p.rules;if(!this.exp){if(G&&1!=G&&G!=location.href)return k("skipped running rule "+this.id+" for "+G+" as we are on "+location.href),0;if(b.page.stopProcessing)return this.active=0}if(this.chained)return 1;if(!this.active)return 0;this.runCount++;k("Run rule "+this.name+" id:"+this.id+", count:"+this.runCount);a=1;var d=b.conditions.runConditions(this.conditionGroup, this),g=+new Date,f=d.finalResult,l=f?this.trueActions:this.falseActions,n=this.runUntil,h=b.maxRuleLog;b=b.ruleLog;this.lastEvaluation=!!f;this.lastEvaluationDetail=d.groupResult;wb.runActions(l,this);h&&(0=h&&b.shift(),b.push({ts:ta(g),browserTime:g,id:this.id,ran:f}));t.occur("eeRuleRan",{source:this});k("Rule "+this.id+" conditions evaluated as "+!!f);this.maxRunCount&&this.runCount>=this.maxRunCount&&(k("Rule "+this.id+" reached maxRunCount - setting inactive"),a=0);~n&&!!n==!!f&& (k("Rule "+this.id+" set to inactive as the 'run until' check was met"),a=0);return this.active=a};var b=[];q(this.conditions,function(a,c){c.args||(c.args={});a=c.args;var d="viname-"+p.rules.page.tracker.s++;if(c.track){var g=c.track.args||(c.track.args={});"mousemove"==g.name&&(a.viname=g.set="mouse");a.viname||(a.viname=g.set=d);b.push(c)}});b.length&&(this.trackConditions=b)},Za={},$a=function(a,b){return function(){return a.apply(b,arguments)}},Lc=function(a,b,d){var c=b.args,e=c.after||0,g= c.times||0,f=c.wait||0,k=d||0,n=0,h=0,m=function(){n++;if(g&&h>=g)k&&t.unbind(c.name,m);else if(n>e){var b=function(){a.runRule.apply(a,arguments);h++};f?setTimeout(b,f):b()}};return m},ra=function(){var a=0,b={},d={},c=[],e=function(){return{rules:{},args:{},id:0,run:function(){for(var a in this.rules)this.rules.hasOwnProperty(a)&&(this.rules[a].runRule.apply(this.rules[a],this.args[a]||[])||delete this.rules[a]);a:if(a=this.rules,ba(a)){for(b in a)if(a.hasOwnProperty(b)){var b=0;break a}b=1}else b= 0;b&&(this.remove(),this.stop())},stop:function(){},remove:function(){delete this.scheduled[this.name]}}},g=function(){var a={},b,c,d,e=[],g=function(){var a=window,b=document||{},c=b.documentElement||0;if(u(c.clientWidth)&&c.clientWidth)return c.clientWidth;if(b.body)return b.body.clientWidth;if(u(a.innerWidth))return a.innerWidth},f=function(a){var b=a.region,c=a.set,d=b.x,f=b.y,h=b.height,k=b.length;b=b.count;var l={id:"region:"+d+":"+f+":"+k+":"+h+":"+b,type:a.name,state:0,timestamp:[],count:0, x:d,y:f,zoneY:f+h,zoneX:~k?d+k:g()-2,limit:b,set:c,fire:a.fire||c};a.wait?(l.active=0,setTimeout(function(){l.active=1},a.wait)):l.active=1;c&&(p.rules.page.tracker[c]=l);e.push(l)},h=function(){try{q(a,function(b,c){var d=Z(b),e=p.rules.page.tracker[b]||{};c!=d&&(k("Tracked variable "+b+" changed from "+c+" to "+d),a[b]=d,e.state=1,e.old=c,e.current=d,t.occur("varchanged-"+b,{name:b,oldValue:c,newValue:d,tracker:e}))})}catch(I){Q(I,"track-var",0)}},l=function(a,b){var c=u(b.type)?Hc(b):xa(b.select); q(c,function(c,d){wa(d,b.name,function(b){a.count++;a.state=1;a.timestamp.push(+new Date);a.fire&&t.occur(a.fire,a)},b.select+"-"+c)});return c};wa(document,"mousemove",function(a){a||(a=window.event);var g=p.rules.page.tracker.mouse;g.y=d=a.clientY;g.x=c=a.clientX;g.state=1;if(b)for(a=0,g=e.length;a=f.y&&c>=f.x&&(k("Mouse region "+f.id+" entered, count:"+f.count),f.entered=1),f.entered&&(d>f.zoneY||c>f.zoneX||da.logEvents&&Ga.shift();Ga.push(b);qc.apply(this,arguments)}),p.rules.page=d)},Zb=function(a){a=a||{};Eb.loadData(a.sessiondata)},qb=function(){r.set(nb,1);A&&(B=0,ka())},Eb=function(){return{loadData:function(a){k("Load invite session data"); this.logs=a||{}},logs:{},logInvite:function(a,b){var d=p.rules.page,c=a.id||a.ulbid||0,e=this.logs[c]||{type:a.type||""},g=e.type||"",f={inviteId:c,ruleId:a.ruleid,siteId:d.siteId,status:b,type:g,timeStamp:a.timestamp||d.serverPageStart+(+new Date-p.rules.page.startedAt)};a.children&&(f.children=a.children);a={estaraFsGuid:pb(),customVars:Sa()};a.invite=f;R("inviteEvent",a);"accepted"==b&&g&&(d[g+"s"]=++d[g+"s"]||1);/^offered/.test(b)&&(b="offered");e[b]||(e[b]=[]);e[b].push(ta());this.logs[c]=e}}}(), uc=function(a){for(var b="cb"+ +new Date;p[b];)b+=0;p[b]=a;return"ATGSvcs."+b},p=window.ATGSvcs={CFG:F.CFG||{},visitorId:L,sessionId:hb,cfg:y,setCfg:Lb,setXD:mb,setUOID:la,setEEID:la,setEXPID:Aa,ee:{cfg:y,keepAlive:function(){B&&R("ping",{});A&&R("ping",{},1)},logInvite:function(a){a||(a={});var b=""+a.state,d={offer:"eeOffered",accep:"eeAccepted",decli:"eeDeclined",hidde:"eeHidden",suppr:"eeSuppressed",close:"eeClosed"}[b.substr(0,5)];d&&a.id&&a.type&&a.ruleid?(a.rule=Za[a.ruleid],a.timestamp=ta(a.timestamp), Eb.logInvite(a,b),vb(d,a)):k("ERROR: invite not logged - state is invalid or id/ruleid/type not set, state:"+b+", id:"+a.id+",type:"+a.type)},reset:zb,stopRules:function(){Ab=0;zb()},enableLogView:function(a,b){r.set(Xb,a);r.set(Yb,b||"",b?n:-1);return"OK"}},debugLog:Ga,erg:t,dom:K,Selector:xa,start:oa,RESTRequest:Ka,util:{each:q,makeRegExp:U,getStaticURL:ja,paramToURL:function(a,b){a=a.replace(/\?$/,"");(b=Ja(b))&&(a+=(~a.indexOf("?")?"&":"?")+b);return a},debug:k,css:O,animate:Fb},loadExpRules:dc, loadExpABTests:bc,loadExpTopics:cc,loadExpConfig:ac,visitIDsLoaded:function(){var a=Ma(),b=lb();k("Called from Unified Visit");a&&b?(mb(a),r.set(ma,a,!0),T=b,Wb(),Vb(),p.start(),ka()):k("Called from Unified Visit but no ids set.")},loadRules:tb,loadABTests:sb,loadInvites:Zb,loadConfig:rb,doNotCall:qb,eventSubscribe:cb,getCustomData:Sa,getSessionId:function(){return xb},getVisitId:function(){return T},pagepeek:N,rules:{ruleLog:[],eventLog:[],ruledata:[],rulehash:Za,page:{},analytics:zc,scheduler:ra, conditions:Bc,actions:wb},REC_VERSION:215};Bb();K.tags("A|BR|DIV|IMG|LI|P|SCRIPT|SPAN|UL|B|LINK");F.uoid&&la(F.uoid);F.eeid&&la(F.eeid);F.expid&&Aa(F.expid);var V=!!fa("html#oracle-cc");fb?k("Gomez Browser Detected. Skipping DOMContentLoaded Handlers."):vc();if(/[?;&]eeExpLoad=(\d+)/.test(location.search)||r.has("eeExpKey")){r.set("eeExpKey",1);try{window.self!==window.top&&(za=1)}catch(a){za=1}}}})();