cdn.optimizely.com
Open in
urlscan Pro
2a02:26f0:2100:285::13b8
Public Scan
URL:
https://cdn.optimizely.com/js/131001974.js
Submission Tags: falconsandbox
Submission: On August 17 via api from US — Scanned from DE
Submission Tags: falconsandbox
Submission: On August 17 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
var _gaq=_gaq||[]; (function(){ geolocation = {}; geolocation.requestGeo=function(c){geolocation.cdn3Requested=+new Date;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=c;b.insertBefore(a,b.firstChild)}; var optly={nativity:{}};optly.nativity.getNativeGetElementsByClassName=function(){var a=document.getElementsByClassName;if(!optly.nativity.isNativeFunction(a))var a=(window.optimizely||{}).getElementsByClassName,b=(window.optly||{}).getElementsByClassName,a=optly.nativity.isNativeFunction(a)?a:optly.nativity.isNativeFunction(b)?b:null;return a};optly.nativity.isNativeFunction=function(a){return a&&-1!==String(a).indexOf("[native code]")};optly.Cleanse={};optly.Cleanse.each=function(a,b,d){var h=!!Object.prototype.__lookupGetter__,e=!!Object.prototype.__lookupSetter__,c;for(c in a)if(a.hasOwnProperty(c)){var f=h?a.__lookupGetter__(c):null,g=e?a.__lookupSetter__(c):null;try{b.call(d,c,!f?a[c]:null,f,g)}catch(i){}}}; optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,d){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,b){d.prototype.__defineGetter__(c,b);optly.Cleanse.log("restored getter",a,c)});Object.prototype.__defineSetter__&&optly.Cleanse.each(optly.Cleanse.setters[a],function(c,b){d.prototype.__defineSetter__(c,b);optly.Cleanse.log("restored setter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a], function(b,f){d.prototype[b]=f;optly.Cleanse.log("restored property",a,b)})});optly.Cleanse.unfixGetElementsByClassName();optly.Cleanse.log("finish");var a=window.console;if((-1!==window.location.hash.indexOf("optimizely_log=true")||-1!==window.location.search.indexOf("optimizely_log=true"))&&a&&a.log)for(var b=optly.Cleanse.logs,d=0;d<b.length;d++)a.log(b[d])}}; optly.Cleanse.log=function(a,b,d){b?(b=b.replace(/_/g,""),optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a+": "+b+"."+d)):optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a)}; optly.Cleanse.start=function(){var a=window.location.hostname;if(!(-1!==a.indexOf("optimizely")&&-1===a.indexOf("edit")&&-1===a.indexOf("preview")&&-1===a.indexOf("test")))if(optly.Cleanse.running)optly.Cleanse.log("already running so didn't start");else{optly.Cleanse.log("start");optly.Cleanse.running=!0;for(var b in optly.Cleanse.types)optly.Cleanse.types[b]||delete optly.Cleanse.types[b];optly.Cleanse.each(optly.Cleanse.types,function(a,b){optly.Cleanse.getters[a]={};optly.Cleanse.properties[a]= {};optly.Cleanse.setters[a]={};optly.Cleanse.each(b.prototype,function(e,c,f,g){optly.nativity.isNativeFunction(c)||optly.nativity.isNativeFunction(f)||optly.nativity.isNativeFunction(g)?optly.Cleanse.log("ignore native code",a,e):(f?(optly.Cleanse.getters[a][e]=f,optly.Cleanse.log("cleansed getter",a,e)):(optly.Cleanse.properties[a][e]=c,optly.Cleanse.log("cleansed property",a,e)),g&&(optly.Cleanse.setters[a][e]=g,optly.Cleanse.log("cleansed setter",a,e)),delete b.prototype[e])})});optly.Cleanse.fixGetElementsByClassName(); optly.Cleanse.hasRunStart=!0}};optly.Cleanse.fixGetElementsByClassName=function(){if(!optly.nativity.isNativeFunction(document.getElementsByClassName)){var a=optly.nativity.getNativeGetElementsByClassName();a?(optly.Cleanse.getElementsByClassName=document.getElementsByClassName,document.getElementsByClassName=a):optly.Cleanse.log("Error: native HTMLElement.prototype.getElementsByClassName missing")}}; optly.Cleanse.unfixGetElementsByClassName=function(){optly.Cleanse.getElementsByClassName&&(document.getElementsByClassName=optly.Cleanse.getElementsByClassName,optly.Cleanse.getElementsByClassName=null)};optly.Cleanse.getElementsByClassName=null;optly.Cleanse.getters={};optly.Cleanse.logs=[];optly.Cleanse.properties={};optly.Cleanse.setters={};optly.Cleanse.types={Object_:Object};window.optly=window.optly||{};window.optly.Cleanse={finish:optly.Cleanse.finish,logs:optly.Cleanse.logs,start:optly.Cleanse.start}; optly.Cleanse.start(); var $=jQuery; var optimizelyCode = function(){ var DATA={"log_host":"log.optimizely.com","goal_expressions":{"2288350944":["(.*)node/1001013/done(.*)","(.*)node/1020029/done(.*)","(.*)node/1021046/done(.*)","(.*)node/5521/done(.*)"],"131237063":["^change\\_option$"],"131231112":["^call\\_to\\_action$"],"2321420009":["^lead\\_form\\_submitted\\_after\\_button\\_click$"],"2286070871":["^topcta\\_button\\_click$"],"131079791":["^change\\_options$"],"131165910":["^call\\_to\\_action\\_new$"],"131001975":["^engagement$"]},"experiments":{"2333200045":{"name":"FA Sitewide - Call to Action - PROD","variation_ids":["2319440104","2337510037"],"urls":[{"match":"regex","value":"http[s]?://www.fertilityauthority.com/[a-zA-Z0-9/]+"}],"enabled_variation_ids":["2319440104","2337510037"]},"2295110769":{"name":"FA Sitewide - Call to Action","variation_ids":["2299261546","2291271232"],"urls":[{"match":"regex","value":"http[s]?://dev.fertilityauthority.com/[a-zA-Z0-9/]+"}],"enabled_variation_ids":["2299261546","2291271232"]},"131208061":{"conditions":[{"type":"url","values":[{"value":"http://dev.fertilityauthority.com","match":"simple"}]},{"only_first_time":true,"type":"visitor","value":"all"}],"name":"Homepage - Call to Action","variation_ids":["131166469","131192320"],"enabled_variation_ids":["131166469","131192320"]},"131607375":{"conditions":[{"type":"url","values":[{"value":"http://www.fertilityauthority.com","match":"simple"}]},{"only_first_time":true,"type":"visitor","value":"all"}],"name":"Homepage - Call to Action - PROD","variation_ids":["131626189","131617433"],"enabled_variation_ids":["131626189","131617433"],"google_analytics":{"slot":1}}},"www_host":"app.optimizely.com","public_suffixes":{"fertilityauthority.com":["dev.fertilityauthority.com","www.fertilityauthority.com"]},"version":"master-3-29-4.409578482477947278","admin_account_id":131001974,"project_id":131001974,"revision":66,"summary_revenue_goal_id":131186496,"installation_verified":true,"preview_host":"//optimizely.s3.amazonaws.com","api_host":"api.optimizely.com","variations":{"131192320":{"code":"$(\"#block-findlocalexpert-expertcalltoaction\").css({\"display\":\"none\"});\n$(\"#block-findlocalexpert-expertheader\").css({\"display\":\"block\"});","name":"Variation #1"},"2291271232":{"code":"$(\"#findlocalexpert-expertsearchnav\").css({\"display\":\"none\"});\n$(\"#findlocalexpert-expertsearchnav-test1\").css({\"display\":\"block\"});","name":"Variation #1"},"131166469":{"name":"Original Page"},"2319440104":{"name":"Original"},"2299261546":{"name":"Original"},"131626189":{"name":"Original Page"},"2337510037":{"code":"$(\"#findlocalexpert-expertsearchnav\").css({\"display\":\"none\"});\n$(\"#findlocalexpert-expertsearchnav-test1\").css({\"display\":\"block\"});","name":"Variation #1"},"131617433":{"code":"$(\"#block-findlocalexpert-expertcalltoaction\").css({\"display\":\"none\"});\n$(\"#block-findlocalexpert-expertheader\").css({\"display\":\"block\"});","name":"Variation #1"}},"segments":{"299855397":{"segment_value_type":"browser","api_name":"optimizely_browser","id":299855397,"name":"Browser"},"298884766":{"segment_value_type":"mobile","api_name":"optimizely_mobile","id":298884766,"name":"Mobile Visitors"},"299160439":{"segment_value_type":"source_type","api_name":"optimizely_source_type","id":299160439,"name":"Source Type"}},"click_goals":[{"event_name":"change_options","experiments":{"131208061":true,"131607375":true},"selector":"#edit-search-type"},{"event_name":"call_to_action_new","experiments":{"131208061":true,"131607375":true},"selector":"#edit-submit--3"},{"event_name":"call_to_action","experiments":{"131208061":true,"131607375":true},"selector":"#edit-submit--3"},{"event_name":"change_option","experiments":{"131208061":true,"131607375":true},"selector":"#findlocalexpert-headerclinicarrow img,#findlocalexpert-headeradfarrow .findlocalexpert-arrowlabel,#findlocalexpert-headerschedulearrow img"},{"event_name":"topcta_button_click","experiments":{"2295110769":true,"2333200045":true},"selector":".findlocalexpert_topcta_button"}]}; function h(a){throw a;}var i=void 0,j=!0,k=null,o=!1;function aa(){return function(a){return a}}function ba(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){a||h(Error());if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}} function p(a,b,c){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return p.apply(k,arguments)}function r(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}};function u(a){try{return window.JSON.stringify(a)}catch(b){h(Error("JSON: Unable to stringify ("+b.message+")"))}}function ea(a){try{return window.JSON.parse(a)}catch(b){h(Error("JSON: Unable to parse ("+b.message+")"))}};function fa(){return v("admin_account_id")}function ha(a){return v("audiences",a)}function ia(a){a=v("audiences",a,"segment_id");return!a?k:a} function ja(){if(!ka){var a=v("click_goals")||[];ka=[];for(var b=0,c=a.length;b<c;b++)for(var d=a[b],e=d.selector.split(","),f=0,g=e.length;f<g;f++){var l=e[f];l&&(l={event_name:d.event_name,selector:l},"experiments"in d?l.experiments=d.experiments:"url_conditions"in d&&(l.url_conditions=d.url_conditions),"revenue"in d&&(l.revenue=d.revenue),ka.push(l))}}return ka}function la(a,b){return v("dimensions",a,b)}function ma(a){a=la(a,"condition_type");return!a?k:a} function na(a){a=la(a,"name");return!a?k:a}function oa(){pa||(pa=w(ra(),sa));return pa}function ta(a){var b=v("goal_expressions"),c=[],d;for(d in b)if(b.hasOwnProperty(d))for(var e=b[d],f=0;f<e.length;f++)try{if(RegExp(e[f],"i").test(a)){c.push(d);break}}catch(g){}return c}function ua(a){var b=va(),c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c];if(d&&d.api_name===a)return String(c)}return k}function wa(){return v("experiments")||{}} function ra(){return x(v("experiments")||{})}function xa(a){return"manual"===y(a,"activation_mode")}function ya(a){return"conditional"===y(a,"activation_mode")}function za(a){return y(a,"name")||"Exp "+a}function Aa(a){return'experiment "'+za(a)+'" ('+a+")"}function Ba(a){return y(a,"section_ids")||[]}function Ca(a){return y(a,"variation_ids")||[]}function Da(){return v("list_targeted_keys")||{}}function z(){return v("project_id")}function va(){return v("segments")||{}} function Ea(a,b){for(var c=Ba(a),d=0;d<c.length;d++){var e=Fa(c[d]);if(C(e,b))return c[d]}return""}function Ga(a){var b={},c=v("public_suffixes")||{};D(c,function(a,c){D(c,function(c){b[c]=a})});Ga=function(a){return b[a]||""};return Ga.call(k,a)}function Fa(a){return v("sections",a,"variation_ids")||[]}function Ha(a){var b=[];D(a.split("_"),function(a){(a=v("variations",a,"code"))&&b.push(a)});return b.join("\n")} function E(a){if(!Ia){var b={};D(ra(),function(a){D(Ba(a),function(d){D(Fa(d),function(d){b[d]=a})});D(Ca(a),function(d){b[d]=a})});Ia=b}return Ia[a.split("_")[0]]||""}function Ja(a){var b=E(a),c=Ba(b);if(0===c.length){c=Ca(b);for(b=0;b<c.length;b++)if(c[b]===a)return b}else{for(var a=a.split("_"),b=[],d=0;d<c.length;d++)for(var e=Fa(c[d]),f=0;f<e.length;f++)e[f]===a[d]&&b.push(f);if(b!==[])return b}return-1}function Ka(a){var b;return La(a).join(b||", ")} function La(a){var b=[];D(a.split("_"),function(a){b.push(v("variations",a,"name")||"Var "+a)});return b}function Ma(){return v("www_host")}function sa(a){return!!y(a,"enabled")}function Na(){return!!v("simple_cookies")}function y(a,b){return v("experiments",a,b)}function Oa(a){a=y(a,"comscore");return F(a)?a.url:k}function Pa(a){return y(a,"google_analytics")}function Qa(a,b){var c=y(a,"universal_analytics");return F(c)?c[b]:k} function v(a){var b=DATA;if(D(arguments,function(a){a=b[a];if(F(a))b=a;else return k})!==k)return b}function Ra(a,b){return v("segments",a,b)}function Ta(){var a=v("rum_sampling_rate");return F(a)?a:0.003}var ka=k,pa=k,Ia=k;var Ua=/\s*;\s*/,Va=/^([^=]+)=?(.*)$/;function H(a){var b=[];D(Wa(),function(c){a===c.name&&b.push(Xa(c.value))});if(0===b.length)return k;1<b.length&&I("Cookie","Values found for %s: %s",a,b.length);return b.pop()}var Ya=o;function Wa(){var a,b=[];a=a||"";D((document.cookie||"").split(Ua),function(c){var d=c.match(Va);d&&0===d[1].indexOf(a)&&b.push({name:d[1],value:d[2],P:c})});return b} function J(a,b,c){if(Ya)I("Cookie","Already initialized.");else{I("Cookie","Initializing.");var d=document.location.hostname;if(Na()){Za=d;for(var d=document.location.hostname.split("."),e=[],f=d.length-1;0<=f;--f){var g=d.slice(f).join("."),l="optimizelyDomainTest-"+Math.random().toString(16).replace("0.",""),m=Math.random().toString(16).replace("0.","");$a(l,m,g,3);H(l)===m&&e.push(g)}ab=e;0<ab.length?(Za=ab[0],I("Cookie","Highest level domain: %s",Za)):(I("Cookie","Disabling event tracking because cookies could not be set"), bb=o)}else e=d.split("."),f=d,g=e[e.length-1],2<e.length&&"appspot"===e[e.length-2]&&"com"===g?f=e[e.length-3]+".appspot.com":1<e.length&&cb(g,db)&&(f=e[e.length-2]+"."+g),eb=f,I("Cookie","Guessed public suffix: %s",eb),fb=Ga(d),I("Cookie","Public suffix (from data): %s",fb);gb&&I("Cookie","Domain specified by API: %s",gb);Ya=j;I("Cookie","Done initializing.")}b=b||"";Na()?(D(ab,function(b){hb(a,b)}),d=ib(),$a(a,b,d,c),c=H(a)===b?"Succeeded":"Failed",I("Cookie","%s setting %s=%s on %s",c,a,b,d)): (d=ib(),e=document.location.hostname,!fb&&v("remote_public_suffix")&&jb.push({xb:c,name:a,value:b}),d&&(d===fb&&d!==eb)&&(hb(a,e),hb(a,eb)),$a(a,b,d,c),f=H(a),f===b)?I("Cookie","Successfully set %s=%s on %s",a,b,d):(I("Cookie","Setting %s on %s apparently failed (%s != %s)",a,d,f,b),I("Cookie","Setting %s on %s",a,e),$a(a,b,e,c),f=H(a),f===b?(I("Cookie","Setting %s on %s worked; saving as new public suffix",a,e),eb=e):(I("Cookie","Could not set cookie %s, disabling event tracking.",a),bb=o))} function hb(a,b){var c=[a,"=","; ",kb(b),"; path=/","; expires=",(new Date(0)).toUTCString()];document.cookie=c.join("")}function ib(){return Na()?gb||Za:gb||fb||eb}function kb(a){var b=[];b.push("domain=");"localhost"!==a&&(b.push("."),b.push(a));return b.join("")}function $a(a,b,c,d){a=[a,"=",encodeURIComponent(b),"; ",kb(c),"; path=/"];d&&a.push("; expires=",(new Date(+new Date+1E3*d)).toUTCString());document.cookie=a.join("")} function lb(a){ib()!==a&&(gb=String(a)||"",I("Cookie","Api public suffix set to: %s",gb))}var eb="",gb="",Za="",ab=[],fb="",jb=[];var mb=window.OPTIMIZELY_TEST_MODULE,db="com local net org xxx edu es gov biz info fr nl ca de kr it me ly tv mx cn jp il in iq test".split(" "),nb=/\/\*\s*_optimizely_variation_url( +include="([^"]*)")?( +exclude="([^"]*)")?( +match_type="([^"]*)")?( +include_match_types="([^"]*)")?( +exclude_match_types="([^"]*)")?( +id="([^"]*)")?\s*\*\//;var ob=0,pb=o,K=j,qb=j,rb=o,sb=o,tb=o,ub=o,vb="",wb=o,xb=o,yb=o,zb=o,Bb=o,Cb=o,bb=j,Db=15552E3;function Eb(){var a=H("optimizelyEndUserId");a||(a="oeu"+ +new Date+"r"+Math.random());J("optimizelyEndUserId",a,Db);return a}function Fb(){if(v("legacy_uuid"))return H("optimizelyPPID");hb("optimizelyPPID",ib());return k};function Gb(a,b){var c=j;D(a,function(a){if(!b(a))return c=o});return c}function L(a,b){var c=o;D(a,function(a){if(b(a))return c=j});return c}function C(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return j;return o}function Hb(a,b){var c=Ib(arguments,1);return function(){var b=Ib(arguments);b.unshift.apply(b,c);return a.apply(this,b)}} function D(a,b){var c=k;if(M(a))for(var d=a.length,e=0;e<d&&!(c=b.call(i,a[e],e),F(c));++e);else for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&(c=b.call(i,d,a[d]),F(c)))break;return c}function N(a,b){if("function"===typeof a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}function O(a,b){D(b,function(b,d){a[b]=d});return a}function Jb(a,b){if(M(b)){for(var c=a,d=0;d<b.length;d++){var e=b[d];if(!ba(c)||!c.hasOwnProperty(e))return;c=c[e]}return c}} function w(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f)&&c.push(f)}return c}function cb(a,b){return D(b,function(b){if(b===a)return j})||o}function M(a){return!!a&&"object"===typeof a&&"number"===typeof a.length}function F(a){return"undefined"!==typeof a}function Kb(a){return"object"===typeof a&&a!==k}function Lb(a){return("number"===typeof a||"string"===typeof a)&&Number(a)==a}function Mb(a){return"string"===typeof a} function x(a){x=Object.yb||function(a){var c=[];D(a,function(a){c.push(a)});return c};return x.call(k,a)} function Nb(a,b){function c(){var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.src=a;c.type="text/javascript";b.appendChild(c)}if(b)try{if("loading"===document.readyState){var d="optimizely_synchronous_script_"+Math.floor(1E5*Math.random());-1!==a.indexOf('"')?P("loadScript","Blocked attempt to load unsafe script: "+a):(document.write('<script id="'+d+'" src="'+a+'"><\/script>'),1!==$("#"+d).length&&h(Error("Document.write failed to append script")))}else h(Error("Not safe to attempt document.write"))}catch(e){try{var f= new XMLHttpRequest;f.open("GET",a,o);f.onload=function(){eval(f.responseText)};f.onerror=function(){h(Error())};f.send()}catch(g){I("Common","Failed to load %s synchronously",a),c()}}else c()}function I(a,b,c){var d=window.console;if(yb&&d&&d.log){var e=Ib(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function Xa(a){try{return decodeURIComponent(a)}catch(b){return a}}function Ib(a,b){return Array.prototype.slice.call(a,b||0,a.length)} function Ob(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Pb(a){this.r=a;this.c={totalGets:0,totalGetLength:0,totalGetTime:0,totalSets:0,totalSetLength:0,totalSetTime:0,numKeys:0,totalSize:0}}Pb.prototype.get=function(a){try{var b=+new Date,c=this.r.getItem([Qb,a].join("$$")),d=ea(c);this.c.totalGetTime+=+new Date-b;this.c.totalGets++;this.c.totalGetLength+=(c||"").length;return d}catch(e){return k}}; Pb.prototype.set=function(a,b){try{var c=+new Date,d=u(b);F(b)?this.r.setItem([Qb,a].join("$$"),d):this.r.removeItem([Qb,a].join("$$"));this.c.totalSetTime+=+new Date-c;this.c.totalSets++;this.c.totalSetLength+=d.length}catch(e){}};Pb.prototype.wa=function(){var a=0,b=0,c;for(c in this.r)if(0===c.indexOf(Qb)){b++;var d=this.r.getItem(c),a=a+(c.length+(d?d.length:0))}this.c.numKeys=b;this.c.totalSize=a;return this.c}; var Rb={get:function(){},set:function(){},wa:function(){return{}}},Qb="optimizely_data",Q=Rb,Sb=Rb; try{var Q=new Pb(window.localStorage),Sb=new Pb(window.sessionStorage),Tb=Q,Ub=Tb.r.getItem(Qb),Vb={};try{Vb=ea(Ub)||{}}catch(Wb){}if(0!==x(Vb).length){var Xb=Fb()||H("optimizelyEndUserId"),Yb=Vb[Xb]||{},Zb;for(Zb in Yb)if(Yb.hasOwnProperty(Zb)){var $b=[Xb,Zb].join("$$");Tb.get($b)===k&&Tb.set($b,Yb[Zb])}delete Vb[Xb];for(Zb in Vb)Vb.hasOwnProperty(Zb)&&(Tb.get(Zb)===k&&Tb.set(Zb,Vb[Zb]),delete Vb[Zb]);try{Ub=u(Vb)}catch(ac){Ub={}}Tb.r.setItem(Qb,Ub)}}catch(bc){};function cc(a,b){function c(a,b){var c=b&65535;return((b-c)*a|0)+(c*a|0)|0}for(var d=a.length,e=b||0,f=d&-4,g,l=0;l<f;l+=4)g=a.charCodeAt(l)&255|(a.charCodeAt(l+1)&255)<<8|(a.charCodeAt(l+2)&255)<<16|(a.charCodeAt(l+3)&255)<<24,g=c(g,3432918353),g=(g&131071)<<15|g>>>17,g=c(g,461845907),e^=g,e=(e&524287)<<13|e>>>19,e=5*e+3864292196|0;g=0;switch(d%4){case 3:g=(a.charCodeAt(f+2)&255)<<16;case 2:g|=(a.charCodeAt(f+1)&255)<<8;case 1:g|=a.charCodeAt(f)&255,g=c(g,3432918353),e^=c((g&131071)<<15|g>>>17,461845907)}e^= d;e=c(e^e>>>16,2246822507);e=c(e^e>>>13,3266489909);return e^e>>>16};var dc=Math.pow(2,32);function ec(a,b){var c=cc(a,b);return(c>>>16).toString(16)+(c&65535).toString(16)};function fc(){return gc=gc||hc()}function ic(){return fc().aa}function jc(){return fc().ba}function kc(){return fc().F}function lc(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function mc(){return fc().platform}function nc(a){return Q.get([Fb()||Eb(),a].join("$$"))}function oc(a){Q.set([Fb()||Eb(),"asyncInfo"].join("$$"),a)} function pc(){var a="android;blackberry;ipad;iphone;ipod;windows phone".split(";");return C(a,kc().id)?kc().id:C(a,mc().id)?mc().id:qc()?"mobile":"unknown"}function qc(){return kc().w}function rc(){return sc?"returning":"new"}mc=function(){return fc().platform};function tc(a){I("User","Setting current URL to %s",a);uc=a}var uc=i,gc=i,sc=i;function P(a,b,c){vc.push({Fa:new Date,Da:a,message:b,ua:c||o});wc&&xc()}function yc(){yb=j}function zc(){zb=yb=j}function xc(){yb&&(D(vc,function(a){if(!a.cb&&(!a.ua||a.ua===zb)){var b=+a.Fa;I(a.Da,a.message+(" [time "+(Ac?b-Ac:0)+" +"+(Bc?b-Bc:0)+"]"));Bc=b;Ac||(Ac=b);a.cb=j}}),wc=j)}var Bc=k,Ac=k,vc=[],wc=o;var R={};function Cc(a,b){R[a]=b}function Dc(a,b){var c=nc("asyncInfo")||{};c[a]=b;oc(c)}function Fc(){var a=(R.odds||k)&&(R.odds||k).ip||(R.cdn3||k)&&(R.cdn3||k).ip;return a?Gc(a):k}function Hc(){return!R.odds?k:(R.odds||k).lists||{}} function Ic(a){if(!Hc())return P("Async Info","Invalid response from ODDS"),{value:i,M:o};if(!Hc().hasOwnProperty(a))return P("Async Info","Deduced cachetime value that was checked for presence in list: "+a),{value:i,M:j};var b=!R.odds?k:(R.odds||k).lists_metadata||{};if(!b||!b[a]||!b[a][0])return P("Async Info","Can't find cachetime value that was checked for presence in list: "+a),{value:i,M:o};P("Async Info","Found cachetime value that was checked for presence in list: "+a);return{value:b[a][0].value, M:j}}function Jc(a){var b=Da()[a],c=F(b)&&Kc(b);if(c){var d=Lc(b);if(d===k)return P("Async Info","Deduced membership status (false) for list: "+a),o;P("Async Info","Found current value to check for presence in list: "+a)}b=Hc();if(!b)return P("Async Info","No list membership info."),k;if(c&&(c=Ic(a),c.M&&c.value!==d))return P("Async Info","Ignoring out-of-date membership status for list: "+a),k;d=!!b[a];P("Async Info","Found membership status ("+d+") for list: "+a);return d} function Mc(){if(!R.cdn3)return k;var a=(R.cdn3||k).location||{};return{continent:Gc(a.continent),country:Gc(a.country),region:Gc(a.region),city:Gc(a.city)}}var Nc={get:function(){return R.dcps||k},set:function(a){Dc("dcps",a);R.dcps=a}};function Oc(){var a=Nc.get();return!a||a.rulesResults===k?k:a.rulesResults||{}}function Gc(a){return"string"!==typeof a||"N/A"===a.toUpperCase()?k:a.toUpperCase()};function Pc(a){a=a||{};if(bb){a&&a.sVariable&&(Qc=a.sVariable);var b=Qc||("undefined"!==typeof window.s?window.s:k);if(b)if(Rc){a=Sc;if(a!==k&&b)try{I("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){I("Integrator","Error setting SiteCatalyst referrer: %s",c)}I("Integrator","Tracking with SiteCatalyst");D(Tc(),function(a){var c=E(a),a=S(c,a,100,100,25,j),f=a.key+": "+a.value,a=[],g=y(c,"site_catalyst_evar")||k,c=y(c,"site_catalyst_prop")||k;g!==k&&a.push("eVar"+g); c!==k&&a.push("prop"+c);D(a,function(a){I("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else Uc=j;else P("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function Vc(a){a=Lb(a)?Number(a):-1;if(-1!==[1,2,3].indexOf(a))Wc=a;else return Wc} function Xc(){if(bb){var a=Sc;if(a!==k)try{I("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){I("Integrator","Error setting Google Analytics referrer: %s",b)}var c=[];D(Tc(),function(a){var b=E(a);if(y(b,"chartbeat")){var d=Yc;Yc="";var e=S(b,a,10,10,5,o);Yc=d;d=Ja(a);Zc=e.key+": "+String(d);try{I("Integrator","Calling _cbq.push"),_cbq.push(["_optlyx",Zc])}catch(n){P("Integrator","Error sending Chartbeat data for "+Aa(b))}}if(Oa(b)){var e=Oa(b), d=S(b,a,100,100,25,j),t=e+(-1!==e.indexOf("?")?"&":"?")+"optimizely_experiment_id="+b+"&optimizely_experiment_name="+encodeURIComponent(d.key)+"&optimizely_variation_id="+a+"&optimizely_variation_name="+encodeURIComponent(d.value)+"&ns_m_exp=("+b+") "+encodeURIComponent(d.key)+"&ns_m_chs=("+a+") "+encodeURIComponent(d.value)+"&type=hidden";try{$(window).load(function(){P("Integrator","Sending comScore log call");$c(t,k)})}catch(q){P("Integrator","Error sending comScore data for "+Aa(b))}}if(y(b,"crazyegg")){e= S(b,a,100,100,15,o);try{I("Integrator","Defining CE_SNAPSHOT_NAME"),window.CE_SNAPSHOT_NAME=e.key+": "+e.value}catch(A){P("Integrator","Error sending CrazyEgg data for "+Aa(b))}}if(Pa(b)){e=Pa(b);d=0;F(e)&&(d=e.slot||d);var e=d,d=Pa(b),G="";F(d)&&(G=d.tracker||G);d=G;G=S(b,a,28,24,5,j);try{var B="";""!==d&&(B=d+".");I("Integrator","Calling _gaq._setCustomVar for slot %d and scope %d",e,Wc);_gaq.push([B+"_setCustomVar",e,G.key,G.value,Wc])}catch(qa){P("Integrator","Error sending Google Analytics data for "+ Aa(b))}}if(y(b,"inspectlet")){e=Yc;Yc="";d=S(b,a,100,100,25,o);Yc=e;try{P("Integrator","Calling __insp.push for sending data to Inspectlet"),window.__insp=window.__insp||[],window.__insp.push(["tagSession",{"Optimizely Experiment Name":d.key,"Optimizely Variation Name":d.value,"Optimizely Experiment ID":b,"Optimizely Variation ID":a}])}catch(Sa){P("Integrator","Error sending Inspectlet data for "+Aa(b))}}if(v("kissmetrics")){e=S(b,a,100,100,15,j);d={};d[e.key]=e.value;try{I("Integrator","Calling _kmq.set"), _kmq.push(["set",d])}catch(Ae){P("Integrator","Error sending KISSmetrics data for "+Aa(b))}}if(y(b,"mixpanel")){e=S(b,a,100,100,15,o);d={};d[e.key]=e.value;try{I("Integrator","Calling mixpanel.push"),mixpanel.push(["register",d])}catch(Gh){P("Integrator","Error sending Mixpanel data for "+Aa(b))}}if(y(b,"moat")){e=S(b,a,100,100,15,o);e=e.key+": "+e.value;try{I("Integrator","Calling optimizelyMoat.push"),optimizelyMoat.push(e)}catch(Hh){P("Integrator","Error sending Moat data for "+Aa(b))}}y(b,"sessioncam")&& (c=c.concat(ad(b,a)));y(b,"at_internet")&&(e=S(b,a,28,24,5,j),a=b+"["+encodeURIComponent(e.key)+"]-0-"+a+"["+encodeURIComponent(e.value)+"]",a in bd||(I("Integrator","Queueing AT Internet log call: %s",a),bd[a]=o))});if(0<c.length){a=c;try{P("Integrator","Calling sessioncamConfiguration object"),window.sessioncamConfiguration=window.sessioncamConfiguration||{},window.sessioncamConfiguration.customDataObjects=window.sessioncamConfiguration.customDataObjects||[],window.sessioncamConfiguration.customDataObjects= window.sessioncamConfiguration.customDataObjects.concat(a)}catch(d){P("Integrator","Error sending sessioncam data "+a)}}0<x(bd).length&&("function"===typeof window.xt_mvt?cd():$(window).bind("load.ATInternet",cd));a=H("optimizelyChartbeat")||"";try{if(a&&Zc!=a&&(I("Integrator","Calling _cbq.push for referral"),_cbq.push(["_optlyr",a])),Zc!=a)I("Integrator","Set new Chartbeat referral cookie."),J("optimizelyChartbeat",Zc)}catch(e){P("Integrator","Error sending Chartbeat referral for "+a)}Rc=j;dd&& (ed(),dd=o);Uc&&(Pc(),Uc=o)}} function fd(){if(window.ClickTaleContext){try{window.ClickTaleContext.getAggregationContextAsync("1",function(a){a.Location&&window.optimizely.push(["overrideUrl",a.Location]);for(var b in a.PageEvents){var e=a.PageEvents[b][2].match(/x[0-9]+=[0-9_]+/g);I("Integrator","Playback ClickTale Integration - %s",e);for(b=0;b<e.length;b++){I("Integrator","Playback ClickTale Integration - %s",e[b]);for(var f=e[b].split("=")[0].substr(1),g=e[b].split("=")[1].split("_"),l=0;l<g.length;l++)gd(g[l])?I("Integrator", "Skip activation for redirect."):window.optimizely.push(["activate",f,g[l],{force:j}])}}})}catch(a){I("Integrator","Playback ClickTale Aggregation Integration failed.")}try{window.ClickTaleContext.getRecordingContextAsync("1.1",function(a){if(a.inSingleRecordingScope){a.location&&window.optimizely.push(["overrideUrl",a.location]);I("Integrator","Playback ClickTale getRecordingContextAsync callback");for(var b in a.fields)I("Integrator","Playback ClickTale Integration - %s=%s",b,a.fields[b]),gd(a.fields[b])? I("Integrator","Skip activation for redirect."):window.optimizely.push(["activate",b,a.fields[b],{force:j}])}})}catch(b){I("Integrator","Playback ClickTale Recording Integration failed.")}}else I("Integrator","ClickTaleContext not defined.")} function hd(){I("Integrator","Tracking with ClickTale.");"function"==typeof window.ClickTaleField?D(Tc(),function(a){var b=E(a),c=S(b,a,100,100,15,o),c=c.key+": "+c.value+" (x"+b+"="+a+")";I("Integrator","Setting ClickTale - %s",c);window.ClickTaleField(b,a);window.ClickTaleEvent(c)}):I("Integrator","ClickTaleField() not defined.")}function id(a){Yc=a}function jd(a){Qc=a}function kd(a,b){return a.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_").substring(0,b)} function Tc(){var a=ld.concat(T),b=[];D(md(),function(c){var e=E(c),f=o;if(sa(e)){var g=Ka(c);C(a,e)&&(I("Integrator",'"%s" relevant because experiment active',g),f=j);f&&b.push(c)}});var c=nd;c&&b.push(c);return b}function gd(a){if(a=Ha(a))if(a=od(a.toString()))return a[1];return k} function ed(){if(bb)if(Rc){var a=window[window.GoogleAnalyticsObject||"ga"];if(a){var b=Sc;if(b!==k)try{I("Integrator","Fixing Universal Analytics set referrer with %s",b),(0,window[window.GoogleAnalyticsObject||"ga"])("set","referrer",b)}catch(c){I("Integrator","Error setting Universal Analytics referrer: %s",c)}I("Integrator","Tracking with Universal Analytics");D(Tc(),function(b){var c=E(b);if(Qa(c,"slot")){var f=Qa(c,"slot"),g=Qa(c,"tracker"),l=S(c,b,100,100,25,j),b=l.key+" ("+c+"): "+l.value; 150<b.length&&(b=l.key.substring(0,80)+" ("+c+"): "+l.value,b=b.substring(0,149));c=g?g+".":"";I("Integrator","Calling ua set dimension - ga(%sset, dimension%d, %s)",c,f,b);a(c+"set","dimension"+f,b)}})}else P("Integrator","Error with Universal Analytics integration: 'GoogleAnalyticsObject' not defined")}else dd=j}function ad(a,b){P("Integrator","Preparing to send data to Sessioncam");return[S(a,b,100,100,15,o),{key:"Optimizely Exp "+a,value:"Optimizely Var "+b}]} function cd(){try{$(window).unbind("load.ATInternet"),window.xt_mvt&&D(bd,function(a,c){c||(I("Integrator","Sending AT Internet log call: %s",a),window.xt_mvt("","",a),bd[a]=j)})}catch(a){P("Integrator","Error sending AT Internet data: "+a.toString())}}function S(a,b,c,d,e,f){a=Yc+za(a);b=La(b);1<b.length?(b=$.map(b,function(a){return a.substr(0,e-1)}),b=b.join("~")):b=b[0];f?(a=kd(a,c),b=kd(b.replace("#",""),d)):(a=a.substring(0,c),b=b.substring(0,d));return{key:a,value:b}} function pd(a,b,c){try{var d=Q.get(qd)||{},e=d[a],f;if(c&&e){var c={},g;if(e)for(g in e)e.hasOwnProperty(g)&&(c[g]=e[g]);if(b)for(g in b)if(b.hasOwnProperty(g)){var e=c,l=g,m;if(c[g]){var n=c[g],t=b[g];M(n)||(n=[n]);M(t)||(t=[t]);for(var q=[].concat(n),A=i,A=0;A<t.length;A++)cb(t[A],q)||q.push(t[A]);m=q}else m=b[g];e[l]=m}f=c}else f=b;d[a]=f;Q.set(qd,d)}catch(G){}}var dd=o,Uc=o,bd={},Zc="",Wc=2,Rc=o,Yc="Optimizely ",Qc=k,qd="thirdParty";function rd(a,b,c,d){if(!K)return o;var e="number"===typeof c||"string"===typeof c?String(c):k,f=!!(c===j||c&&c.force===j||d&&d.force===j),d=("object"===typeof c?c:d)||{},c=d.skip===j,g=d.skipPageview===j,d=d.enabledStatus;if(e)try{sd(b,e,j)}catch(l){P("Activator","Error while activating experiment "+b+" for variation "+e+" -- proceeding without bucketing user.")}var m=[];Lb(b)?m.push(b):D(ra(),function(a){xa(a)&&m.push(a)});td(a,m,{Ha:f,fb:j,Ga:d,hb:c,Aa:g})} function ud(a,b,c){if(!K)return o;if(!("object"===typeof b&&"string"===typeof c))if("object"===typeof b&&!F(c))c=b.hasOwnProperty("lists")?"odds":"cdn3";else if(F(b)||F(c)){P("Activator","Unrecognized arguments to activateGeoDelayedExperiment: "+arguments);return}if("object"===typeof b&&"string"===typeof c){P("Activator","Saving async info from '"+c+"'");"cdn3"===c&&U("geoArrive");Dc(c,b);var d=(R[c]=b)&&b.lists||{},e={},f,g,l,m,n;for(n in d)d.hasOwnProperty(n)&&(0===n.indexOf("_")&&d[n])&&(f=n.substring(1).split("__"), g=f.shift(),l=f.shift(),f=f.join("__"),g&&(l&&f)&&(m=e,m[g]||(m[g]={}),m=m[g],m[l]||(m[l]=[]),m=m[l],m.push(f)));for(g in e)pd(g,e[g],o);vd?(P("Activator","Post-timeout; too late to act on new async info."),geolocation.cdn3Requested&&U("geoFailed")):(d=wd.slice(),P("Activator","Trying to activate "+d.length+" delayed segments"),xd(d),d=yd.slice(),P("Activator","Trying to activate "+d.length+" experiments"),td(a,d,{Aa:Cb}),zd(),"object"===typeof b&&"string"===typeof c&&"cdn3"===c&&U("geoSuccess"))}else P("Activator", "Timeout: will not act on future async info."),U("geoTimeout"),vd=j} function td(a,b,c){P("Activator","Triaging "+b.length+" experiments.");var d=[],e=[],f=[];D(b,function(b){c.Ha?(P("Activator","Force-ignoring conditions for experiment "+b),d.push(b)):Ad(b)?Bd(b,{manualActivation:c.fb,objectType:"experiment",enabledStatus:c.Ga,visitor:a})?(P("Activator","Passed conditions for experiment "+b),d.push(b)):(P("Activator","Failed conditions for experiment "+b),f.push(b)):(P("Activator","Can't test conditions for experiment "+b),e.push(b))});D(e,Cd);Dd(d);Dd(f);var g=[]; D(d,function(a){Ed(a,c.hb)&&g.push(a)});Fd(g,b);Gd();Xc();K&&!c.Aa&&Hd()} function xd(a){P("Activator","Triaging "+a.length+" segments.");var b=[],c=[],d=[],e=[];D(a,function(a){Ra(a,"is_api_only")?(P("Activator","Ignoring API-only segment "+a),e.push(a)):Ad(a)?Bd(a,{objectType:"segment"})?(P("Activator","Passed conditions for segment "+a),b.push(a)):(P("Activator","Failed conditions for segment "+a),d.push(a)):(P("Activator","Can't test conditions for segment "+a),c.push(a))});D(c,Id);Jd(b);Jd(d);Jd(e);D(b,Kd)} function Cd(a){P("Activator","Deferring test for experiment "+a);C(yd,a)||yd.push(a)}function Id(a){P("Activator","Deferring test for segment "+a);C(wd,a)||wd.push(a)}function Dd(a){yd=w(yd,function(b){return!cb(b,a)})}function Jd(a){wd=w(wd,function(b){return!cb(b,a)})}var yd=[],wd=[],vd=o;/* UAParser.js v0.7.12 Lightweight JavaScript-based User-Agent string parser https://github.com/faisalman/ua-parser-js Copyright ? 2012-2016 Faisal Salman <fyzlman@gmail.com> Dual licensed under GPLv2 & MIT */ function Ld(){}var Md={extend:function(a,b){var c={},d;for(d in a)c[d]=b[d]&&0===b[d].length%2?b[d].concat(a[d]):a[d];return c},has:function(a,b){return"string"===typeof a?-1!==b.toLowerCase().indexOf(a.toLowerCase()):o},N:function(a){return a.toLowerCase()},va:function(a){return"string"===typeof a?a.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}; function Nd(){for(var a,b=0,c,d,e,f,g,l,m=arguments;b<m.length&&!g;){var n=m[b],t=m[b+1];if("undefined"===typeof a)for(e in a={},t)t.hasOwnProperty(e)&&(f=t[e],"object"===typeof f?a[f[0]]=i:a[f]=i);for(c=d=0;c<n.length&&!g;)if(g=n[c++].exec(this.ra()))for(e=0;e<t.length;e++)l=g[++d],f=t[e],"object"===typeof f&&0<f.length?2==f.length?a[f[0]]="function"==typeof f[1]?f[1].call(this,l):f[1]:3==f.length?a[f[0]]="function"===typeof f[1]&&(!f[1].exec||!f[1].test)?l?f[1].call(this,l,f[2]):i:l?l.replace(f[1], f[2]):i:4==f.length&&(a[f[0]]=l?f[3].call(this,l.replace(f[1],f[2])):i):a[f]=l?l:i;b+=2}return a}function Rd(a,b){for(var c in b)if("object"===typeof b[c]&&0<b[c].length)for(var d=0;d<b[c].length;d++){if(Md.has(b[c][d],a))return"?"===c?i:c}else if(Md.has(b[c],a))return"?"===c?i:c;return a} var Sd={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2E3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Td={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],["name","version"],[/(opios)[\/\s]+([\w\.]+)/i],[["name","Opera Mini"],"version"],[/\s(opr)\/([\w\.]+)/i],[["name","Opera"],"version"],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],["name","version"],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[["name","IE"],"version"],[/(edge)\/((\d+)?[\w\.]+)/i],["name","version"],[/(yabrowser)\/([\w\.]+)/i],[["name","Yandex"],"version"],[/(comodo_dragon)\/([\w\.]+)/i],[["name",/_/g," "],"version"],[/(micromessenger)\/([\w\.]+)/i], [["name","WeChat"],"version"],[/xiaomi\/miuibrowser\/([\w\.]+)/i],["version",["name","MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[["name",/(.+)/,"$1 WebView"],"version"],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],["version",["name","Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],["name","version"],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i, /juc.+(ucweb)[\/\s]?([\w\.]+)/i],[["name","UCBrowser"],"version"],[/(dolfin)\/([\w\.]+)/i],[["name","Dolphin"],"version"],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[["name","Chrome"],"version"],[/;fbav\/([\w\.]+);/i],["version",["name","Facebook"]],[/fxios\/([\w\.-]+)/i],["version",["name","Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],["version",["name","Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],["version","name"],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], ["name",["version",Rd,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],["name","version"],[/(navigator|netscape)\/([\w\.-]+)/i],[["name","Netscape"],"version"],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],["name","version"]],ca:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",Md.N]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",Md.N]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [["architecture",Md.N]]],F:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],["model","vendor",["type","tablet"]],[/applecoremedia\/[\w\.]+ \((ipad)/],["model",["vendor","Apple"],["type","tablet"]],[/(apple\s{0,1}tv)/i],[["model","Apple TV"],["vendor","Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],["vendor","model",["type","tablet"]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],["model",["vendor", "Amazon"],["type","tablet"]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[["model",Rd,{"Fire Phone":["SD","KF"]}],["vendor","Amazon"],["type","mobile"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],["model","vendor",["type","mobile"]],[/\((ip[honed|\s\w*]+);/i],["model",["vendor","Apple"],["type","mobile"]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],["vendor","model", ["type","mobile"]],[/\(bb10;\s(\w+)/i],["model",["vendor","BlackBerry"],["type","mobile"]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],["model",["vendor","Asus"],["type","tablet"]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[["vendor","Sony"],["model","Xperia Tablet"],["type","tablet"]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[["vendor","Sony"],["model","Xperia Phone"],["type","mobile"]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i], ["vendor","model",["type","console"]],[/android.+;\s(shield)\sbuild/i],["model",["vendor","Nvidia"],["type","console"]],[/(playstation\s[34portablevi]+)/i],["model",["vendor","Sony"],["type","console"]],[/(sprint\s(\w+))/i],[["vendor",Rd,{HTC:"APA",Sprint:"Sprint"}],["model",Rd,{"Evo Shift 4G":"7373KT"}],["type","mobile"]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],["vendor","model",["type","tablet"]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i], ["vendor",["model",/_/g," "],["type","mobile"]],[/(nexus\s9)/i],["model",["vendor","HTC"],["type","tablet"]],[/(nexus\s6p)/i],["model",["vendor","Huawei"],["type","mobile"]],[/(microsoft);\s(lumia[\s\w]+)/i],["vendor","model",["type","mobile"]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],["model",["vendor","Microsoft"],["type","console"]],[/(kin\.[onetw]{3})/i],[["model",/\./g," "],["vendor","Microsoft"],["type","mobile"]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],["model",["vendor","Motorola"],["type","mobile"]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],["model",["vendor","Motorola"],["type","tablet"]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[["vendor",Md.trim],["model",Md.trim],["type","smarttv"]],[/hbbtv.+maple;(\d+)/i],[["model",/^/,"SmartTV"],["vendor","Samsung"],["type","smarttv"]],[/\(dtv[\);].+(aquos)/i],["model",["vendor","Sharp"],["type","smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i],[["vendor","Samsung"],"model",["type","tablet"]],[/smart-tv.+(samsung)/i],["vendor",["type","smarttv"],"model"],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[["vendor","Samsung"],"model",["type","mobile"]],[/sie-(\w+)*/i],["model",["vendor","Siemens"],["type","mobile"]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[["vendor","Nokia"],"model",["type","mobile"]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i], ["model",["vendor","Acer"],["type","tablet"]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[["vendor","LG"],"model",["type","tablet"]],[/(lg) netcast\.tv/i],["vendor","model",["type","smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],["model",["vendor","LG"],["type","mobile"]],[/android.+(ideatab[a-z0-9\-\s]+)/i],["model",["vendor","Lenovo"],["type","tablet"]],[/linux;.+((jolla));/i],["vendor","model",["type","mobile"]],[/((pebble))app\/[\d\.]+\s/i],["vendor","model",["type","wearable"]],[/android.+;\s(glass)\s\d/i], ["model",["vendor","Google"],["type","wearable"]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[["model",/_/g," "],["vendor","Xiaomi"],["type","mobile"]],[/android.+a000(1)\s+build/i],["model",["vendor","OnePlus"],["type","mobile"]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[["type",Md.N],"vendor","model"]],ea:[[/windows.+\sedge\/([\w\.]+)/i],["version",["name","EdgeHTML"]], [/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],["name","version"],[/rv\:([\w\.]+).*(gecko)/i],["version","name"]],xa:[[/microsoft\s(windows)\s(vista|xp)/i],["name","version"],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],["name",["version",Rd,Sd]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[["name", "Windows"],["version",Rd,Sd]],[/\((bb)(10);/i],[["name","BlackBerry"],"version"],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],["name","version"],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[["name","Symbian"],"version"],[/\((series40);/i],["name"],[/mozilla.+\(mobile;.+gecko.+firefox/i],[["name","Firefox OS"],"version"],[/(nintendo|playstation)\s([wids34portablevu]+)/i, /(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],["name","version"],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[["name","Chromium OS"],"version"],[/(sunos)\s?([\w\.]+\d)*/i],[["name","Solaris"],"version"],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],["name","version"],[/(haiku)\s(\w+)/i],["name", "version"],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[["name","iOS"],["version",/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[["name","Mac OS"],["version",/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],["name","version"]]}; function Ud(a,b){if(!(this instanceof Ud))return(new Ud(a,b)).Ua();var c=a||(Ld&&Ld.navigator&&Ld.navigator.userAgent?Ld.navigator.userAgent:""),d=b?Md.extend(Td,b):Td;this.u=function(){var a=Nd.apply(this,d.browser);a.va=Md.va(a.version);return a};this.La=function(){return Nd.apply(this,d.ca)};this.K=function(){return Nd.apply(this,d.F)};this.Qa=function(){return Nd.apply(this,d.ea)};this.oa=function(){return Nd.apply(this,d.xa)};this.Ua=function(){return{Ab:this.ra(),browser:this.u(),ea:this.Qa(), xa:this.oa(),F:this.K(),ca:this.La()}};this.ra=function(){return c};this.zb=function(a){c=a;return this};return this}Ud.VERSION="0.7.12";Ud.jb={e:"name",pb:"major",VERSION:"version"};Ud.lb={ib:"architecture"};Ud.mb={rb:"model",VENDOR:"vendor",g:"type",kb:"console",qb:"mobile",ub:"smarttv",vb:"tablet",wb:"wearable",nb:"embedded"};Ud.ob={e:"name",VERSION:"version"};Ud.sb={e:"name",VERSION:"version"};Ld.Ca=Ud;function hc(){var a=new Ld.Ca(window.navigator.userAgent),b=a.u(),c=a.oa(),a=a.K(),d=a.model in Vd?Vd[a.model]:"unknown",e=(c.name||"unknown").toLowerCase(),f;a:if(C(["mobile","tablet"],a.type))f=j;else{if(d&&"unknown"!==d)for(f in Vd)if(d===Vd[f]){f=j;break a}f=C(["android","blackberry","ios","windows phone"],e)?j:o}return{aa:Wd(b.name),ba:b.version,platform:{id:e,version:c.version},F:{id:d,type:a.type||(f?"mobile":"desktop"),w:f}}} function Wd(a){a=(a||"").toLowerCase();if(a in Xd)return a;for(var b in Xd)if(L(Xd[b]||[],function(b){return b.toLowerCase()===a}))return b;return"unknown"}var Xd={gc:["Chrome","chromium","silk","yandex","maxthon"],ie:["Internet Explorer","iemobile"],edge:["Edge"],ff:["Firefox","iceweasel"],opera:["Opera","opera mini","opera tablet"],safari:["Safari","mobile safari","webkit"],ucbrowser:["UC Browser"]},Vd={iPhone:"iphone",iPad:"ipad"};function od(a){return a.match(/_optimizely_redirect(?:_no_cookie)?=(\S+)/)}function Yd(a){return-1!==a.indexOf("_optimizely_redirect_no_cookie")}function Zd(a){var a=a||"",b=H("optimizelyRedirect");return Yd(a)||!b||b&&"true"===b.split("|")[1]?j:o}function $d(){var a;a=F(a)?a:document.referrer;J("optimizelyReferrer",a,v("redirect_timeout")||5)} var Sc=k,nd="",ae=/^\/\* _optimizely_redirect.+\*\/[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,be=/^\/\* _optimizely_redirect.+\*\/[ ]*\nvar[ ]*_optly[ ]*=[ ]*\{[ ]*redir:document\.createElement\("a"\)\}[;]?\n_optly\.redir\.href=.*\n_optly\.cur=.+\nif \(_optly.cur\)[ ]?\{.+\}[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,ce=/^\/\* _optimizely_redirect.+\*\/[ ]*[\n]+window\.location\.replace\([ ]*redirectFirst.*\)[ ]*[;]?$/;var de,ee;function fe(){var a={disable:ge,optOut:he,setCookieDomain:lb,setCookieExpiration:ie,verifyPreviewProject:function(a){z()!==a&&P("API","Preview projectId ("+z()+") does not match expected ("+a+"), disabling.")}},b=window.optimizely,c=[];M(b)&&(D(b,function(b){var e=b;M(b)?e=b[0]:Kb(b)&&(e=b.type);a[e]?je([a],b,j):c.push(b)}),window.optimizely=c)}function ke(a,b,c){pd(a,b,!!c);zd()} function le(a,b){var c=ua(a)||a,d=va()[c];d?d.audience_id?V.D(d.audience_id):d.dimension_id?V.B(d.dimension_id,b||j,o):me(c,b):P("API","Unable to find segment: "+c)} function sd(a,b,c){Bb=j;K&&c!==j&&Hd();var a=String(a),b=String(b),d=k,e=b.split("_"),f=Ba(a),b=f&&0!==f.length;if("-1"===e[0]){c=a;ne[c]&&delete ne[c];oe[c]&&delete oe[c];for(e=0;e<W.length;e++)W[e].H===c&&W.splice(e,1);pe()}else if(b&&e.length==f.length)d=[],D(e,function(a,b){256>=Number(a)?d.push(Fa(f[b])[a]):d.push(a)}),d=d.join("_");else if(!b&&1==e.length&&256>=Number(e[0])){var c=String,e=e[0],g=Ca(a),l=k;try{l=g[e]}catch(m){}d=c(l)}else 1==e.length?d=e[0]:P("API","Error: could not bucket user. Unknown arguments."); d&&(b&&Ea(a,d)?(b=d,c=Ea(a,b),qe[a]=qe[a]||{},qe[a][c]=b,P("Distributor","Preferring variation partial "+b+" of section "+c+" of experiment "+a),a=re(a),1===a.length&&se(a[0],"api.bucketUser",j)):se(d,"api.bucketUser",j));Gd()}function ge(a){a&&"tracking"===a||(P("API","Optimizely disabled"),qb=K=o);bb=o}function te(){P("API","Finalizing API.");zd();de=j}function ue(){if(v("slave"))return SLAVE_CLIENT.optimizely.get.apply(k,Array.prototype.slice.call(arguments))}var ve=[]; function we(a){ve.push(a);zd()}function je(a,b,c){var d=[],e=b,c=F(c)?c:o,f=0;M(b)?(e=b[0],d=Ib(b,1)):Kb(b)&&(f=F(b.version)?b.version:1,e=b.type,d=[b]);var a=a[f],g;a&&(g=a[e]);g?(P("API",'Called function "'+e+'"'),g.apply(k,d),xe.R[0===f?e:"v"+f+"."+e]=j):c||P("API",'Error for unknown function "'+e+'"');v("slave")&&SLAVE_CLIENT.optimizely.push(b);xc()} function ye(a,b){de?P("API","Error: can't add custom tags after Optimizely loads"):(ee=ee||{},2==arguments.length?ee[a]=b:1==arguments.length&&$.extend(j,ee,a))}function ze(a,b){var c=ua(a)||a,b=F(b)?b:j,d=va()[c];d?d.audience_id?V.Y(d.audience_id):d.dimension_id?V.B(d.dimension_id,k):Be(c,b):P("API","Unable find segment for: "+c)}function Ce(){var a=x(va());D(a,function(a){ze(a,o)});De()} function zd(){Ee={};Fe={};Ge={};D(md(),function(a){var b=E(a);Ee[b]=a.split("_");Fe[b]=Ja(a);Ge[b]=Ka(a)});He={};var a=v("audiences");X(He,"audiences",a||i,"data.audiences");X(He,"customTags",ee,"data.customTags");X(He,"thirdParty",Q.get(qd)||{},"data.thirdParty");for(var b={},c=ra(),a=0;a<c.length;a++){var d=c[a],e={};e.code=y(d,"code")||"";e.name=za(d);e.conditional=ya(d);e.manual=xa(d);e.section_ids=Ba(d);e.variation_ids=Ca(d);b[d]=e}X(He,"experiments",b,"data.experiments");b={};c=x(va());for(a= 0;a<c.length;a++)d=c[a],e={name:Ra(d,"name")||"Seg "+d},b[d]=e;X(He,"segments",b,"data.segments");b={};c=x(v("sections")||{});for(a=0;a<c.length;a++)d=c[a],e={},e.name=v("sections",d,"name")||"Sec "+d,e.variation_ids=Fa(d),b[d]=e;X(He,"sections",b,"data.sections");b={};c=x(v("variations")||{});for(a=0;a<c.length;a++)d=c[a],e={},e.name=Ka(d),e.code=Ha(d),b[d]=e;X(He,"variations",b,"data.variations");var a=ic(),a=Xd[a]?Xd[a][0]:a,b=jc(),c=kc().id,d=kc().type,e=mc(),f=qc(),g=pc(),l=mc().id,m={};D(Da(), function(a){m[a]=Jc(a)});var b={browser:a,browserVersion:b,device:c,deviceType:d,platform:e,mobile:f,mobileId:g,os:l,lists:m,location:Mc(),ip:Fc(),matchingRules:Oc(),referrer:String(document.referrer),segments:Ie(),dimensions:V.t,audiences:V.p},n;for(n in b)X(b,n,b[n],"data.visitor."+n);n={};c=Je();c.reverse();a=0;for(d=c.length;a<d;a++)try{n[Xa(c[a][0])]=Xa(c[a][1])}catch(t){P("API","Failed to decode parameter "+c[a][0]+"="+c[a][1])}X(b,"params",n,"data.visitor.params");He.visitor=b;n={};X(n,"activeExperiments", ld||[],"data.state.activeExperiments");a:{if(a=nd)if(b=E(a)){a={variationId:a,experimentId:b,referrer:Sc};break a}a=i}X(n,"redirectExperiment",a,"data.state.redirectExperiment");X(n,"variationIdsMap",Ee,"data.state.variationIdsMap");X(n,"variationMap",Fe,"data.state.variationMap");X(n,"variationNamesMap",Ge,"data.state.variationNamesMap");X(n,"enabled",K,"data.state.enabled");n.integrations={};X(n.integrations,"activeOAuthClientIds",ve,"data.state.integrations.activeOAuthClientIds");He.state=n;n= {activeExperiments:ld,allExperiments:wa(),all_experiments:wa(),variationIdsMap:Ee,variationMap:Fe,variationNamesMap:Ge,variation_map:Fe};window.optimizely.data=He;D(n,function(a,b){X(window.optimizely,a,b)})}function X(a,b,c,d){try{var e="o.",e=d?e+d:e+b;Object.defineProperty(a,b,{configurable:j,enumerable:j,get:function(){xe.R[e]=j;return c},set:function(a){c=a}})}catch(f){a[b]=c}}function Ke(a){if(!Lb(a))return o;ob=Number(a)}function Le(){ub=j} function ie(a){var b="";"number"!==typeof a?(b="must be a number.",a=15552E3):a=Math.floor(86400*a);7776E3>a&&(b="less then minimum.",a=7776E3);P("API",(b&&"Days argument "+b)+" Cookie expiration set to "+a+" seconds.");Db=a}function Me(){Cb=j}function Ne(){H("optimizelyReportableFix")?P("API","skipping because cookie is set"):(D(v("audiences"),function(a){ia(a)&&(P("API","Removing from reportable audience: "+a),V.Y(a))}),J("optimizelyReportableFix","1",7776E3))} function Oe(a){var b=Fb();!a&&0!==a?(P("API","Clearing PPID"),hb("optimizelyPPID",ib())):"string"===typeof a||"number"===typeof a?(P("API","Setting PPID to "+a),a=String(a),v("legacy_uuid")&&J("optimizelyPPID",a,Db)):P("API","Ignoring non-string, non-number PPID: "+a);Fb()!==b&&(P("API","Clearing plan because of PPID change"),P("Plan","Resetting visitor buckets"),Pe={},ne={},oe={},W=[],Gd())} var Re={event:function(a){Qe(a.eventName,a.tags)},user:function(a){a.userId&&Oe(a.userId);a.attributes&&D(a.attributes,function(a,c){V.B(a,c)})},integration:function(a){a.OAuthClientId&&we(a.OAuthClientId)}},He={},Se={},Ee={},Fe={},Ge={},V=k;function Qe(a,b){var c;a:{c={};var d,e=v("custom_revenue_goals");e&&(a in e&&Lb(e[a]))&&(d=Number(e[a]));if(b)if(Lb(b))d=Number(b);else if("object"===typeof b){if(c=O({},b),"revenue"in c)if(Lb(c.revenue))d=Number(c.revenue),delete c.revenue;else{I("tracker","Revenue field %s not a number.",c.revenue);c=k;break a}}else{I("tracker","Revenue argument %s not a number.",b);c=k;break a}F(d)&&(c.Z=d)}if(c===k)I("tracker","Bad options. Will not track this event.");else{d=oa();var f={};D(d,function(a){f[a]= j});$.extend(c,{fa:f});Te(a,"custom",c)}}function Te(a,b,c,d){c=c||{};bb&&(Ue.push({name:a,type:b,da:d||+new Date/1E3,options:c}),Ve?(We(),P("Tracker","Tracking event '"+a+"'")):P("Tracker","Queued tracking event '"+a+"'"))}function Xe(){Ye();$("html").bind("mousedown",Ze);$("html").bind("touchstart",$e)}function Ye(){$("html").unbind("touchstart",$e);$("html").unbind("mousedown touchend",Ze);$("html").unbind("touchmove",Xe)} function $e(){$("html").bind("touchend",Ze);$("html").bind("touchmove",Xe)}function Hd(){var a=document.location.href,b=ta(a);0<b.length?(Te("optly_activate","activate"),D(b,function(b){Te(a,"pageview",{sa:[b]},af)})):Te(a,"activate")}function bf(){var a=H("optimizelyPendingLogEvents")||"[]",b=[];try{b=ea(a)}catch(c){}if(M(b))for(var a=0,d=b.length;a<d;a++){var e=b[a];if("string"!==typeof e){b=[];break}else try{ea(e);b=[];break}catch(f){}}else b=[];return b} function cf(a){a=N(a.split("&"),function(a){return a.split("=")});a.sort(function(a,c){return a[0]<c[0]?-1:a[0]>c[0]?1:0});return N(a,function(a){return a.join("=")}).join("&")} function $c(a,b){if(df&&-1!==a.indexOf(ef))try{var c=new XMLHttpRequest;if("withCredentials"in c){c.onload=b;c.open("GET",a,j);c.withCredentials=j;c.send();return}df=o;P("Tracker","Found that XHR with credentials is not supported in this browser.")}catch(d){P("Tracker","XHR not supported"),df=o}var c=a,e=new Image;e.onload=b;c=c.replace("&"+ef,"");e.src=c;ff.push(e)} function he(a,b){a=!F(a)||"true"===String(a);F(b)||(b=window.alert);var c=a?"true":"false";a?(J("optimizelyOptOut",c,Db),J("optimizelyBuckets",c,Db),b("You have successfully opted out of Optimizely for this domain.")):(J("optimizelyOptOut",c,Db),b("You are NOT opted out of Optimizely for this domain."))}function hf(){return"true"===H("optimizelyOptOut")}function Ze(){Ye();Te("engagement","engagement")}var Ue=[],Ve=o; function We(){var a=["a="+z(),"d="+fa(),"y="+!!v("ip_anonymization"),"src=js"];Bb&&a.push("override=true");D(md(),function(b){var c=E(b);a.push("x"+c+"="+b)});D(Ie(),function(b,c){c=encodeURIComponent(Xa(c));a.push("s"+b+"="+c)});a.push("tsent="+ +new Date/1E3);var b=[],c=Eb(),d=Fb();D(Ue,function(a){var e=[],f;if(a.options.sa)f=a.options.sa;else if("activate"===a.type){f=ld.concat(T);var g=nd;g&&(g=E(g),f.push(g))}else f=a.name?ta(a.name):[];a.name&&e.push("n="+encodeURIComponent(a.name));a.options.anonymous!== j&&(e.push("u="+c),d&&e.push("p="+encodeURIComponent(d)));df&&e.push(ef);a.da&&e.push("time="+a.da);ub&&e.push("dtpc="+ub);var l=!!a.options&&!!a.options.Z&&a.options.fa||{},g=x(l),Ae=w(oa(),function(a){return!l[a]});f=[{S:g,ta:f.concat([v("summary_revenue_goal_id")||k]),ga:["v="+encodeURIComponent(a.options.Z)]},{S:Ae,ta:f,ga:[]}];D(f,function(a){(a.S.length||pb)&&b.push(e.concat(a.ga).concat(["f="+a.S.join(","),"g="+a.ta.join(",")]).join("&"))});if("custom"===a.type)try{var m=a.name,n=Eb(),q=Q.get("customEvents")|| {},t=q[n]||(q[n]=[]),t=M(t)?t:[];-1!==$.inArray(m,t)&&t.splice($.inArray(m,t),1);t.push(m);100<t.length&&t.shift();q[n]=t;Q.set("customEvents",q);hb("optimizelyCustomEvents",ib())}catch(gf){}});var e=b.concat(bf());jf(e);var f=a.join("&"),e=kf?b:e;kf=j;for(var g=0,l=e.length;g<l;g++){var m=e[g],n=f+"&"+m;P("Tracker","Making a log request.");var n=n+("&cx2="+ec(cf(n),65259)),t=z(),q=v("log_host");t&&(q=t.toString()+"."+q);$c("https://"+q+"/event?"+n,function(){for(var a=m,b=bf(),c=0,d=b.length;c<d;c++)if(b[c]=== a){b.splice(c,1);break}jf(b);P("Tracker","Removed a pending log event from the pending events cookie.")})}Ue=[];Ve=j}function jf(a){for(var b=u(a);1536<b.length;)a=a.slice(0,-1),b=u(a);J("optimizelyPendingLogEvents",b,15)}var ff=[],kf=o,ef="wxhr=true",df=j,af=+new Date/1E3;var Y={e:"n",b:"t",g:"y",l:"c",m:"r",o:"s",f:"o"};function lf(a,b,c,d,e){this[Y.e]=a;this[Y.g]=b;"string"===typeof c&&0<Ob(c).length&&(this[Y.l]=Ob(c));d&&0<x(d).length&&(this[Y.f]=d);F(e)&&(this[Y.m]=e)} lf.prototype.hash=function(){if(this.v)return this.v;var a;a=[];a.push(encodeURIComponent(Y.e)+"="+encodeURIComponent(this[Y.e]));a.push(encodeURIComponent(Y.g)+"="+encodeURIComponent(this[Y.g]));this[Y.l]&&a.push(encodeURIComponent(Y.l)+"="+encodeURIComponent(this[Y.l]));this[Y.m]&&a.push(encodeURIComponent(Y.m)+"="+encodeURIComponent(this[Y.m]));if(this[Y.f])for(var b=this[Y.f]||{},c=w(x(b),function(a){return b.hasOwnProperty(a)}),c=c.sort(),d=0;d<c.length;d++)a.push(encodeURIComponent(c[d])+"="+ encodeURIComponent(b[c[d]]));a=a.join("&");var e=String.fromCharCode;a=a.replace(/[\S\s]/gi,function(a){var a=a.charCodeAt(0),b=e(a&255);255<a&&(b=e(a>>>8&255)+b);65535<a&&(b=e(a>>>16)+b);return b});return this.v=ec(a,2716770798)}; function mf(a,b){if(a.hash()!==b.hash()||a[Y.e]!==b[Y.e]||a[Y.g]!==b[Y.g]||a[Y.l]!==b[Y.l]||a[Y.m]!==b[Y.m])return o;if(!a[Y.f]&&!b[Y.f])return j;var c=a[Y.f]||{},d=b[Y.f]||{},e=w(x(c),function(a){return c.hasOwnProperty(a)}),f=w(x(d),function(a){return d.hasOwnProperty(a)});if(e.length!==f.length)return o;for(f=0;f<e.length;f++){var g=e[f];if(!d.hasOwnProperty(g)||c[g]!==d[g])return o}return j}lf.prototype.k=function(a,b){var c=Jb(this,a);return F(c)?c:b}; lf.prototype.Q=function(a,b){if(a===Y.e||a===Y.g||a===Y.l||a===Y.m||a===Y.f)this[a]=b,this.v=k,this.hash()};function nf(a,b,c){this.G=a;this[Y.b]=b;F(c)&&(this[Y.o]=c)}nf.prototype.k=function(a,b){if(0===a.length)return this;var c={};c[Y.b]=this[Y.b];c[Y.o]=this[Y.o];c=Jb(c,a);return F(c)?c:this.G.k(a,b)};nf.prototype.Q=function(a,b){a===Y.b||a===Y.o?this[a]=b:this.G.Q(a,b)};var of={},pf=[];function qf(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=rf(d);b[c]=new nf(e,d[Y.b])}return b}function rf(a,b){var c=new lf(a[Y.e],a[Y.g],a[Y.l],a[Y.f],a[Y.m]);F(b)&&(c.v=b);return c}function sf(a){for(var b=[],c=0;c<a.length;c++)for(var d=a[c],e=rf(d.eb,d.h),f=d.tb,d=d.ts,g=0;g<d.length;g++){var l=d[g];b[l.i]=new nf(e,f+l.d)}return b};function tf(){try{var a;if(v("is_behavior_enabled")){if(0===pf.length&&v("is_behavior_enabled")){var b=nc("events")||[],c=nc("event_queue")||[];if(0===b.length&&0===c.length)pf=[];else{"eb"in(b[0]||c[0])?(b=sf(b),c=sf(c)):(b=qf(b),c=qf(c));pf=b.concat(c);1E3<pf.length&&(pf=pf.slice(-1E3));c=pf;for(b=0;b<c.length;b++){var d=c[b],e;b:{var f=c[b].G,g=f.hash(),l=of[g];if("undefined"===typeof l)of[g]=[f];else{for(var m=0;m<l.length;m++)if(mf(f,l[m])){e=l[m];break b}l.push(f)}e=f}d.G=e}}var d=pf,n=d.length; if(0!==n){d[0].Q(Y.o,d[0].k([Y.b]));for(e=1;e<n;e++){var t=d[e-1],q=d[e];q.Q(Y.o,18E5>Math.abs(t.k([Y.b],0)-q.k([Y.b],0))?t.k([Y.o]):q.k([Y.b]))}}}a=pf.slice(-1E3)}else a=[];return a}catch(A){I("Behavior","Error "+A.toString()+" getting events")}return[]};function uf(){return(new Date).getTime()-(vf||0)}var vf=uf();function wf(a,b,c){for(var a=a.slice(),d=a.length-1;0<d;d--){var e=Math.floor(Math.random()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}for(d=a.join(b);d.length>c;)a.pop(),d=a.join(b);return d}function U(a){var b=xe;b.n[a]||(b.n[a]=uf())}var xf;try{xf=!document.getElementsByTagName("body")[0]}catch(yf){xf=k}var zf=k;try{window.requestAnimationFrame(function(){zf=uf()})}catch(Af){} var Bf=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi,xe=new function(){this.n={};this.R={};this.$a=Math.random()<Ta();geolocation.cdn3Requested&&(this.n.geoRequest=geolocation.cdn3Requested-vf)};function Ed(a,b){var b=b===j,c,d=k;D(W,function(b){a==b.H&&(d=b.id)});if((c=d)&&0<c.length)return P("Distributor","Not distributing experiment "+a+" (already in plan)"),j;if(b||a in ne)return P("Distributor","Not distributing experiment "+a+" (is ignored)"),o;c=y(a,"enabled_variation_ids")||[];if(0===c.length)return P("Distributor","Permanently ignoring experiment "+a+" (no enabled variations)"),Cf(a),o;var e=y(a,"ignore")||0,f=Df();if(e>Math.floor(1E4*((cc(f+a,0)>>>0)/dc)))return P("Distributor", "Permanently ignoring experiment "+a+"("+e/100+"% likelihood)"),Cf(a),o;e=c;qe[a]!==i&&(P("Distributor","Taking into account bucketUser variations for experiment "+a),e=re(a));var f=e,g=[],l=y(a,"variation_weights")||{};D(f,function(a){g.push(l[a])});f=Ef(a,g);e=e[f];P("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");se(e,"distributor");return j} function Ff(a,b){b=b||{};P("Distributor","Configuring conditionally-activated experiment: "+a);Se[a]?P("Distributor","Not configuring conditionally-activated experiment (already done): "+a):!sa(a)&&b.force!==j?P("Distributor","Not configuring conditionally-activated experiment (not enabled): "+a):(Gf(a,b),de&&zd())} function Gf(a,b){function c(){rd(V,a,b);m.isActive=C(ld.concat(T),a);P("Distributor","Activating conditionally activated experiment "+a)}var d=y(a,"conditional_code"),e=j,f,g;if("function"===typeof d)e=o,f=d;else try{g=eval("(function() {return "+("("+d+")")+";})()"),"function"===typeof g&&(e=o,f=g)}catch(l){}var m={isActive:o,experimentId:a};if(e){if(e={objectType:"experiment",enabledStatus:b.enabledStatus},b.force||!Ad(a)||Bd(a,e)){var n=function(){Ad(a)&&(Hf(0,{value:d})||g)?c():setTimeout(n,50)}; n();P("Distributor","Set up conditional polling for "+a);Se[a]=j}}else try{f(c,m),P("Distributor","Set up conditional callback for "+a),Se[a]=j}catch(t){P("Distributor","Error running conditional callback function for "+a)}}function Df(){return Fb()||Eb()}function Ef(a,b){var c=b.length;if(0===c)return k;if(1===c)return 0;for(var d=0,e=0;e<c;e++)d+=b[e];e=Df();d*=(cc(e+a,1)>>>0)/dc;for(e=0;e<c;e++){if(d<b[e])return e;d-=b[e]}d=Df();return Math.floor((cc(d+a,2)>>>0)/dc*c)} function re(a){var b=[];D(y(a,"enabled_variation_ids")||[],function(c){var d=j,e;for(e in qe[a])-1===c.indexOf(qe[a][e])&&(d=o);d&&b.push(c)});return b}var qe={};function If(){for(var a=v("dcp_keyfield_locators")||[],b=k,c=[],d=0;d<a.length;d++){var e=a[d],f=e.dcp_datasource_id||k,g=e.is_optimizely||o,l=e.type,e=e.name||"";if(f===k)P("DCP","No DCP datasource id specified");else{var m=k;l===Jf?m=Z.I(e):l===Kf?m=Z.la(e):l===Lf?m=Z.j(e):l===Mf&&(m=Nf());if(Lb(m)||"string"===typeof m)f={datasourceId:f,id:m},g?b=f:c.push(f)}}return{q:b,z:c}}var Nf=Df;function Of(){var a=If(),b=Nc.get()||{};if(Pf(a.z,b.aliases||{}))return o;b.rulesResults=k;Nc.set(b);return j} function Pf(a,b){b=b||{};return Gb(a,function(a){return b[a.datasourceId]===a.id})}var Jf="cookie",Kf="js_variable",Lf="query_param",Mf="uid";function Lc(a){if(!Kc(a))return P("Async Request","Can't determine a value for this list-targeted key: "+a),k;var b=a.split("_"),c=b[0],b=b.slice(1).join("_"),d=i;if("c"===c)d=Z.I(b);else if("j"===c)d=Z.la(b);else if("q"===c)d=Z.j(b);else return P("Async Request","Can't determine a value for this list-targeted key: "+a),k;if("string"===typeof d||"number"===typeof d||"boolean"===typeof d)d=d.toString();else return d===k||"undefined"===typeof d?P("Async Request","No value is set for this list-targeted key: "+ a):P("Async Request","Unacceptable value (must be string, number, or boolean) for this list-targeted key: "+a),k;if(100<d.length)return P("Async Request","Withholding the overlong value for this list-targeted key: "+a),k;P("Async Request","Returning a value for this list-targeted key: "+a);return d}function Kc(a){return-1!==a.indexOf("_")?C(["c","j","q"],a.split("_")[0]):o};function Qf(a){if(0===$("body").length)setTimeout(function(){Qf(a)},20);else{var b;b='<div id="optimizely-loading" style="position:absolute;top:0;right:0;left:0;bottom:0;background-color:white;opacity:0.9;z-index: 3271000;"><h2 style="color:#9a9a9a;top:40%;position:absolute;font-size:2.25em;text-align:center;width:100%;font-family:\'Lucida Grande\',sans-serif;">'+a+"</h2></div>";$("#optimizely-loading").remove();$("body").append(b)}}var Rf=v("preview_host");function Je(){var a=window.location.search||"";0===a.indexOf("?")&&(a=a.substring(1));for(var a=a.split("&"),b=[],c=0;c<a.length;c++){var d="",e="",f=a[c].split("=");0<f.length&&(d=f[0]);1<f.length&&(e=f[1]);b.push([d,e])}return b}function Sf(){for(var a=window.location.search,b,c=/optimizely_([^=]+)=([^&]*)/g,d={};b=c.exec(a);)d[b[1]]=b[2];return d}var Tf=/x(\d+)/;function Uf(a){return a&&-1!==String(a).indexOf("[native code]")};function Vf(a){var b=a||Wf;P("Segmenter","Loading segments cookie.");if(a=H("optimizelySegments")){try{a=ea(a)}catch(c){a={}}D(a,function(a,c){var d=va()[a];P("Segmenter","Segments cookie contains segment id: "+a);d&&d.audience_id?b.D(d.audience_id):d&&d.dimension_id?b.B(d.dimension_id,c,o):Xf[a]=c})}xd(x(va()));Yf.push(Zf);De();P("Integrator","Loading third-party segments.");if(window.bk_results){a=window.bk_results;P("Integrator","Loading BlueKai segments.");try{D(a.campaigns,function(a){a=a.seg_id; va()[a]?me(a,j):ha(a)&&b.D(a)})}catch(d){P("Integrator","Error loading BlueKai segments.")}}}function Zf(){var a={};D(Xf,function(b,c){c&&(a[b]=c)});J("optimizelySegments",u(a),Db)}function me(a,b){a&&!isNaN(parseInt(a,10))?(!b&&""!==b&&(b=j),Xf[a]=b,De()):P("Segmenter","Unable to find segment for ID: "+a)}function De(){D(Yf,function(a){a()})}function Kd(a){P("Segmenter","Evaluating Segment "+a);var b=$f(a);b!==k&&me(a,b)} function $f(a){if(Ra(a,"is_api_only"))return k;var b=k,c=k;switch(Ra(a,"segment_value_type")||""){case "browser":b=Z.ia();c="unknown";break;case "campaign":b=Z.Ma();c="none";break;case "country":b=Z.L().country;c="unknown";break;case "language":b=Z.T();c="none";break;case "mobile":b=Z.w();break;case "os":b=Z.pa().id;c="unknown";break;case "referrer":b=Z.Ta();c="none";break;case "source_type":b=Z.Va();c="direct";break;default:return"true"}if(b===k){if(Xf.hasOwnProperty(a))return k;b=c}return ag(b)} function bg(){var a=Z.V();if(Z.j("utm_source")||Z.j("utm_campaign")||Z.j("gclid")||Z.j("otm_source"))return"campaign";for(var b=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","https://(www\\.)?google\\..*?/$","http(s)?://www\\.bing\\.\\w{2,3}(\\.\\w{2,3})?/","r\\.search\\.yahoo\\.\\w{2,3}(\\.\\w{2,3})?/","baidu\\.\\w{2,3}(\\.\\w{2,3})?/"],c=0;c<b.length;c++){var d=b[c];try{if(a.match(d))return"search"}catch(e){I("Segmenter","%s: %s while matching %s",e.name,e.message,d)}}return a&&lc(a)!==lc(Z.J())? "referral":k}function cg(){var a=[];D(Xf,function(b,c){c&&a.push(b)});return a}function Ie(){var a={};D(Xf,function(b,c){c&&(a[String(b)]=c)});return a}function dg(a){return D(Xf,function(b,c){if((Ra(b,"segment_value_type")||"")==a)return c})}function Be(a,b){var c=ua(a)||a;Xf[c]?(Xf[c]=o,("undefined"===typeof b||b)&&De()):P("Segmenter","Not removing "+a+", not found")} function ag(a,b){var c,b=F(b)?b:j;c=c||eg;a=Xa(a);a=String(a);b&&(a=a.toLowerCase());a=a.substring(0,c);return encodeURIComponent(a)}var Yf=[],Xf={},eg=20;function fg(){} O(fg.prototype,{ia:ic,Ka:jc,Sa:pc,w:qc,u:function(){return{id:this.ia(),version:this.Ka(),mobileId:this.Sa()}},Ma:function(){return this.j("utm_campaign")},I:H,K:kc,U:Fc,la:function(a){try{return window[a]}catch(b){return k}},Ja:tf,T:function(){var a="";try{a=navigator.userLanguage||window.navigator.language,a=a.toLowerCase()}catch(b){a=""}return a},Oa:function(){return(nc("visitor_profile")||{}).defaultBehavior||{}},L:Mc,J:function(){return uc||window.location.href},na:rc,Ra:function(){return!sc?j: !!Sb.get("first_session")},Ia:Je,pa:mc,V:function(){return H("optimizelyReferrer")||document.referrer||""},Wa:function(a){var a=a.split("."),b=a[0];a:{for(var a=a.slice(1),b=(Q.get(qd)||{})[b],c=0,d=a.length;c<d;c++)if(ba(b)&&b.hasOwnProperty(a[c]))b=b[a[c]];else{a=i;break a}a=b}return a},Ya:function(){return Fb()!==k},Ta:function(){return lc(this.V())},qa:cg,Va:bg,Pa:function(){return document.referrer},j:function(a){a:{for(var b=this.Ia(),b=b||Je(),c=0;c<b.length;c++){var d=b[c];if(d[0]===a){a= d[1];a=a.replace(/\+/g," ");a=Xa(a);break a}}a=k}return a},Na:function(){return ee},ja:function(a){return(this.Na()||{})[a]},Xa:function(){var a=(Q.get("customEvents")||{})[Eb()]||[];return M(a)?a:[]},Za:function(a){var b=this.qa();return C(b,a)},Ba:function(a){return C(this.Xa(),a)},getDate:function(){return new Date},ma:Jc,ka:Oc});var Z=new fg;function gg(a,b,c){if(a.k)return a.k(b,c);a=Jb(a,b);"undefined"===typeof a&&(a=c);return a}function hg(a){return"string"===typeof a?Ob(a).toLowerCase():a} var ig=["*"],kg={eq:function(a){a=N(a,hg);return a[0]==a[1]},is:function(a){return a[0]===a[1]},gt:function(a){return a[0]>a[1]},lt:function(a){return a[0]<a[1]},gte:function(a){return a[0]>=a[1]},lte:function(a){return a[0]<=a[1]},"in":function(a){var b=N(a[1]||[],hg);return C(b,hg(a[0]))},between:function(a){return a[1]<=a[0]&&a[0]<=a[2]},contains:function(a){a=N(a,function(a){return"string"===typeof a?a.toLowerCase():a});return-1!==(a[0]||"").indexOf(a[1])},regex:function(a){try{var b,c;"string"=== typeof a[1]?(b=a[1],c="i"):(b=a[1][0]||"",c=a[1][1]||"");return RegExp(b,c).test(a[0])}catch(d){return I("Rules",'In operator "regex", error: '+(d.message||"invalid RegExp /"+[b,c].join("/"))),o}},exists:function(a){return"undefined"!==typeof a[0]},and:function(a){return Gb(a,aa())},or:function(a){return L(a,aa())},not:function(a){return!a[0]}},lg={"+":function(a){return(a[0]||0)+(a[1]||0)},"-":function(a){return(a[0]||0)-(a[1]||0)},"/":function(a){return(a[0]||0)/(a[1]||1)},"%":function(a){return(a[0]|| 0)%(a[1]||1)}},mg={sum:function(a,b){for(var c=a[0]||ig,d=0,e=0;e<b.length;e++)d+=gg(b[e],c,0);return d},avg:function(a,b){if(0==b.length)return 0;for(var c=a[0]||ig,d=0,e=0;e<b.length;e++)d+=gg(b[e],c,0);return d/b.length},max:function(a,b){for(var c=a[0]||ig,d=Number.NEGATIVE_INFINITY,e=0;e<b.length;e++)d=Math.max(d,gg(b[e],c,Number.NEGATIVE_INFINITY));return d},min:function(a,b){for(var c=a[0]||ig,d=Number.POSITIVE_INFINITY,e=0;e<b.length;e++)d=Math.min(d,gg(b[e],c,Number.POSITIVE_INFINITY));return d}, count:function(a,b){return b.length}},ng={now:function(){return+new Date}}; function og(a,b){if(b.hasOwnProperty("value"))return b.value;if(b.hasOwnProperty("field"))return gg(a,b.field);if(b.hasOwnProperty("eval")){if(!(b.eval in ng)){I("Rules","Unknown function: "+b.eval);return}return ng[b.eval]()}if(b.op){var c=b.op in kg?kg[b.op]:b.op in lg?lg[b.op]:k;if(c){var d=r(og,a),e=N(b.args||[],function(a){return d(a)});return c(e,a)}I("Rules","Unknown operator: "+b.op)}else I("Rules","No operator specified: "+u(b))} function pg(a){function b(a,e){M(a)&&("and"!==a[0]&&("or"!==a[0]&&"not"!==a[0])&&I("Rules","Unexpected operation "+a[0]+". Continuing optimistically."),a={op:a[0],args:a.slice(1)});if(a.hasOwnProperty("field")||a.hasOwnProperty("value")||a.hasOwnProperty("eval"))return a;if(e&&a.op in mg){var f="_"+a.op+"_"+((a.args&&a.args[0]||{}).field||ig).join(".");f in d||(c.push({op:a.op,args:a.args}),d[f]=j);return{field:[f]}}for(var f=[],g=a.args||[],q=0;q<g.length;q++)f[q]=b(g[q],e);return{op:a.op,args:f}} var c=[],d={},e={};a.hasOwnProperty("where")&&(e.where=b(a.where,o));a.hasOwnProperty("having")&&(e.having=b(a.having,j));if(a.hasOwnProperty("aggregate")||0<c.length)e.aggregate=(a.aggregate||[]).concat(c);for(var f=["groupBy","orderBy","select","limit"],g=0;g<f.length;g++)a.hasOwnProperty(f[g])&&(e[f[g]]=a[f[g]]);a.hasOwnProperty("from")&&(e.from=pg(a.from));return e} function qg(a,b){var b=b||0,c=[];a.hasOwnProperty("where")?a.where.op?a.where.op in kg||c.push("Non-boolean WHERE clause operator"):c.push("Missing WHERE clause operator"):c.push("Missing WHERE clause");a.hasOwnProperty("having")&&(a.having.op?a.having.op in kg||c.push("Non-boolean HAVING clause operator"):c.push("Missing HAVING clause operator"));a.hasOwnProperty("groupBy")&&!a.hasOwnProperty("aggregate")&&c.push("No AGGREGATE clause specified with GROUP_BY clause");if(a.hasOwnProperty("select")){var d= a.select;if(M(d))for(var e=0;e<d.length;e++)d[e].op&&d[e].op in mg&&c.push('In SELECT clause, aggregate operator "'+d[e].op+'" specified in selector at index '+e);else c.push("SELECT clause must be an array")}a.hasOwnProperty("limit")&&(d=a.limit,(!Lb(d)||0>=Number(d)||Number(d)!=Math.floor(Number(d)))&&c.push("LIMIT must be a positive integer"));0<b&&(c=N(c,function(a){return"Sub-rule "+b+": "+a}));a.hasOwnProperty("from")&&(c=c.concat(qg(a.from,b+1)));return c} function rg(a,b){var c=b;a.hasOwnProperty("from")&&(c=rg(a.from,c));c=w(c,function(b){return og(b,a.where)});if(a.hasOwnProperty("aggregate")){var d=a.groupBy;if("undefined"===typeof d||!M(d)||0===d.length){var d={},e={};e[ig]="_";d[ig+"=_"]={ha:e,n:c};c=d}else{for(var d=N(d,function(a){return a.field}),e={},f=0;f<c.length;f++){for(var g=c[f],l=[],m={},n=0;n<d.length;n++){var t=d[n],q=gg(g,t,"_"),t=t.join(".");m[t]=q;l.push(encodeURIComponent(t)+"="+encodeURIComponent(String(q)))}l=l.join("&");e.hasOwnProperty(l)|| (e[l]={ha:m,n:[]});e[l].n.push(g)}c=e}var A=a.aggregate,G={};D(c,function(a,b){G[a]={};for(var c=0;c<A.length;c++){var d=A[c],e=d.op;if(e in mg){var f=(d.args&&d.args[0]||{}).field||ig,d="_"+e+"_"+f.join("."),e=mg[e]([f],b.n);G[a][d]=e}else I("Rules","Unknown aggregate operator "+e)}});var B=[];D(c,function(a,b){var c=O({},b.ha);O(c,G[a]||{});B.push(c)});c=B}a.hasOwnProperty("having")&&(c=w(c,function(b){return og(b,a.having)}));if(a.hasOwnProperty("orderBy")){var qa=a.orderBy;M(qa)?c=0==qa.length? c:c.sort(function(a,b){for(var c=0;c<qa.length;c++){var d=qa[c],e="ASC"===(d.direction||"ASC")?1:-1,f=d.field,d=gg(a,f,0),f=gg(b,f,0);if(d<f)return-e;if(d>f)return e}return 0}):I("Rules","groupBy rule must be an array")}a.hasOwnProperty("limit")&&(c=c.slice(0,Number(a.limit)));if(a.hasOwnProperty("select"))var Sa=a.select,c=N(c,function(a){return N(Sa,function(b){return og(a,b)})});return c} function sg(a,b){try{var c;c=pg(a);var d=qg(c);0<d.length&&h(Error("Rule "+u(c)+" has violations: "+d.join("\n")));return 0<rg(c,b).length}catch(e){return I("Rules","Error "+e.toString()+" while evaluating rule "+u(a)),o}};function tg(){this.p={};this.t={};this.A={};this.za={}}tg.prototype.bb=function(a){var b=this.A.hasOwnProperty(a)||this.za.hasOwnProperty(a);if(!this.p.hasOwnProperty(a)||!b)try{var c=this.p,d=ha(a);d||h(Error("Unable to find audience for id: "+a));var e=ug(this,d.conditions);P("Visitor","Checking if in audience "+a+": "+e);c[a]=e}catch(f){P("Visitor","Error: "+f.message)}return this.p[a]}; function vg(a,b,c,d){d=O({O:j,ya:j,C:j},d);if(ha(b)){a.p[b]=c;var e=ia(b);e?a.za[b]=c:d.O?a.A[b]=c:delete a.A[b];e&&d.C&&a.C(e,c);if(!e&&d.O&&d.ya){var f=[];D(a.A,p(function(a){this.p[a]&&f.push(a)},a));f.sort();J("optimizelyAudiences",f.join(","),15552E3)}}else P("Visitor","Unable to find audience "+b)}tg.prototype.D=function(a){vg(this,a,j)};tg.prototype.Y=function(a){vg(this,a,o)};tg.prototype.gb=function(){D(this.p,p(function(a){vg(this,a,o,{O:!!this.A.hasOwnProperty(a)})},this))}; function wg(a,b,c,d){d=!F(d)||d;F(c)&&c!==k&&String(c)?(d&&(c=ag(String(c),o)),a.t[b]=c):delete a.t[b];return a.t[b]}tg.prototype.B=function(a,b,c){var d;a:{for(d in v("dimensions")||{}){var e=a,f=la(d,"api_name");if(e===(!f?k:f))break a}d=k}d=d||a;v("dimensions",d)?"custom_dimension"===ma(d)?(b=wg(this,d,b,c),a=la(d,"segment_id"),(a=!a?k:a)&&this.C(a,b),P("Visitor",'Set dimension "'+d+'" to "'+b+'"')):P("Visitor",'Unknown dimension "'+d+'"'):P("Visitor","Unable to find dimension "+a)}; tg.prototype.C=function(a,b){b?me(a,b):Be(a)};var Wf=new tg;function xg(a,b){Mb(b)&&(b=[b]);b=b||ig;return["_"+a+"_"+b.join(".")]}function yg(a){Mb(a)&&(a=[a]);a=a||ig;return[a.join(".")]}var zg={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};function Ag(a){a=Ob((a||"").toString());return zg[a]||a}function Bg(a,b,c){Mb(b)&&(b=[b]);return{op:Ag(a),args:[{field:b},{value:c}]}}function Cg(a){for(var b=[],c=0;c<a.length;c++)b[c]={field:a[c]};return b}function Dg(a,b){Mb(b)&&(b=[b]);b=b||ig;return{op:a,args:[{field:b}]}}var Eg={}; D(Y,function(a,b){Eg[b]=j});function Fg(a,b){var c=[];Mb(a)?(c=[a],"events"===(b||"events")&&!(a in Eg)&&(c=[Y.f,a])):c=a;return c};function Gg(a){var b=a.split(":");2!==b.length&&h(Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+a));return 60*parseInt(b[0],10)+parseInt(b[1],10)};function Bd(a,b){var c=!!b.manualActivation,d=b.objectType?b.objectType:"experiment",e="experiment"===d,f=b.enabledStatus,g=b.visitor||Wf;P("Condition","Testing "+d+" "+a);var f=e&&(F(f)?!!f:sa(a)),l=e&&xa(a),m;a:switch(d){case "experiment":m=y(a,"conditions");break a;case "segment":m=Ra(a,"add_condition");break a;default:m=[]}if(e&&!f)return P("Condition","Failed for "+d+" "+a+" (paused)"),o;if(e&&!c&&l)return P("Condition"," Failed for "+d+" "+a+" (manual activation mode)"),o;if(m){var n="experiment"=== (d||"experiment"),t=j;D(m,function(b){var c=b.type;if(n&&b.only_first_time&&Hg(a))P("Condition",c+" condition passed because it only gets checked when bucketing",j);else{var d=!b.not,b=(0,Ig[c])(b),e=b!==d;P("Condition","Found that "+("the visitor "+(b?"passed":"failed")+" a "+c+" targeting condition when it needed to "+(d?"pass":"fail")),!e);if(e)return t=o}});if(!t)return P("Condition","Failed for "+d+" "+a+" (condition failed)"),o}else{a:{c=[];e=[];if("experiment"===d)c=y(a,"audiences")||[],e= y(a,"urls")||[];else if("segment"===d)(f=Ra(a,"audience_id"))&&(c=[f]);else{P("Condition","Not a valid objectType: "+d);d=o;break a}if(0<c.length&&(P("Condition","Testing audiences for "+d+" "+a+": "+c),!L(c,p(g.bb,g)))){P("Condition","Failed to match any audiences for "+d+" "+a);d=o;break a}if(0<e.length){P("Condition","Testing URLs for "+d+" "+a);var g=e,q=Z.J(),A=[],G=[];D(g,function(a){a.negate?G.push(a):A.push(a)});g=function(a){return L(a,function(a){return Jg(q,a)})};if(g(G)||!(0===A.length|| g(A))){P("Condition","Failed to match any URL for "+d+" "+a);d=o;break a}}d=j}if(!d)return o}return j}function Kg(a,b){if(!b)return 0;for(var c=b.toString().split("."),d=a.toString().split("."),e=0;e<c.length;e++)if(F(d[e]))if(isNaN(Number(d[e]))){if(d[e]!==c[e])return-1}else{if(Number(d[e])<Number(c[e]))return-1;if(Number(d[e])>Number(c[e]))return 1}else return-1;return 0} function Lg(a,b){var c=b.value,d=a.id,e=a.version,f=a.mobileId;return f&&"unknown"!==f?(P("Condition",f,j),"mobile"===c||c===f):0===c.indexOf(d)?0===Kg(e,c.substr(d.length)):o}function Hf(a,b){var c=b.value;if(c===i)return j;try{return Boolean(Mg(c))}catch(d){return o}}function Ng(a,b){return Og(b.value,b.match,a)}function Pg(a,b){return Og(b.value,b.match,a)} function Qg(a,b){if(a===k)return o;var c=b.value;switch(b.match){case "exact":if(a==c&&""!=a)return j;break;case "prefix":if(0==a.indexOf(c))return j;break;case "regex":try{var d=RegExp(c)}catch(e){break}if(d.test(a))return j;break;case "cidr":try{var f;a:{var g=new Rg(c),l=Sg(a);l===k&&h(Error("Invalid ip: "+a));for(c=0;4>c;c++)if((l[c]&g.W[c])!==g.X[c]){f=o;break a}f=j}return f}catch(m){}}return o}function Tg(a,b){var c=b.value;return"any"===c||0===a.indexOf(c)} function Ug(a,b){if(a===k)return o;var c=b.value.split("|"),d=$.trim(c[0]),e=$.trim(c[1]),f=$.trim(c[2]),g=$.trim(c[3]);switch(c.length){case 1:if(a.country===d)return j;break;case 2:if(a.region===e&&a.country===d)return j;break;case 3:if(a.city===f&&(a.region===e||""===e)&&a.country===d)return j;break;case 4:if(a.continent===g)return j}return o}function Vg(a,b){return Og(b.value,b.match,a)} function Wg(a,b){var c=b.value,d=b.match;P("Condition","Testing referrer "+a+" against "+c+" ("+d+")",j);return Xg(a,c,d)}function Yg(a){return!!a}function Zg(a){var b=Z.J();return L(a.values,r(Jg,b))}function Jg(a,b){var c=b.value,d=b.match;P("Condition","Testing URL "+a+" against "+c+" ("+d+")",j);return Xg(a,c,d)}function $g(a,b){switch(b.value){case "new":if("returning"===a)return o;break;case "returning":return"returning"===a}return j} function ug(a,b){var c={and:function(b){return Gb(b,r(ug,a))},or:function(b){return L(b,r(ug,a))},not:function(b){1!==b.length&&h(Error('"not" argument too long: '+u(b)));return!ug(a,b[0])}};if(M(b)){if(b[0]in c)return c[b[0]](b.slice(1));h(Error("Not an operator"))}var c=b.dimension_id,d=ma(c),e=b.value;d||h(Error("No dimension type for dimension: "+c));var f=ah[d];f||h(Error("Unknown dimension type: "+d));d=i;if(a.t.hasOwnProperty(c))d=a.t[c];else try{var g=ma(c)||"",l,m;v("dimensions",c)||h(Error("Unable to find dimension for id: "+ c));"custom_dimension"===g&&h(Error("calculateDimensionValue called on custom dimension "+c));(l={browser:p(Z.u,Z),browser_version:p(Z.u,Z),behavior:p(Z.Ja,Z),campaign:r(dg,"campaign"),cookies:p(Z.I,Z),custom_tag:p(Z.ja,Z),default_behavior:p(Z.Oa,Z),device:p(Z.K,Z),event:p(Z.Ba,Z),first_session:p(Z.Ra,Z),has_ppid:p(Z.Ya,Z),ip:p(Z.U,Z),language:p(Z.T,Z),list:p(Z.ma,Z),location:p(Z.L,Z),query:p(Z.j,Z),platform:p(Z.pa,Z),referrer:p(Z.V,Z),segment:p(Z.Za,Z),source_type:r(dg,"source_type"),third_party_dimension:p(Z.Wa, Z),time_and_day:p(Z.getDate,Z),url:p(Z.J,Z),visitor:p(Z.na,Z),dynamic_customer_profile:p(Z.ka,Z)}[g])&&(m=l(na(c)));P("Visitor","Got dimension ("+g+") value "+c+": "+u(m));d=m}catch(n){P("Visitor","Error: "+n.message)}return f(d,{value:e,match:b.match||"exact"})} function Ad(a){var b=j;!y(a,"conditions")&&!Ra(a,"add_condition")?(b=[Ra(a,"audience_id")],b[0]||(b=y(a,"audiences")||[]),b=Gb(b,function(a){a=ha(a);return!a.conditions?j:bh(a.conditions)})):(y(a,"uses_geotargeting")||Ra(a,"uses_geotargeting"))&&(b=ch.ip(k)||ch.location(k));b||P("Condition","Not ready to test (geotargeting): "+a);return b}function bh(a){if(M(a))return Gb(a.slice(1),bh);var b=ma(a.dimension_id)||"";return(b=ch[b])?b(a):j} var Ig={browser:function(a){var b=Z.u();return L(a.values,function(a){return Lg(b,{value:a})})},code:function(a){return Hf(0,a)},cookies:function(a){for(var b=a.names||[],a=a.values||[],c,d=0;d<b.length;d++)if(c=b[d],Ng(Z.I(c),{value:a[d]||i}))return j;return o},custom_tag:function(a){return L(a.values,function(a){return Pg(Z.ja(a.key),{value:a.value})})},event:function(a){return L(a.values,function(a){return Z.Ba(a)})},ip:function(a){var b=Z.U();return L(a.values,r(Qg,b))},language:function(a){var b= Z.T();return L(a.values,function(a){return Tg(b,{value:a})})},location:function(a){var b=Z.L();return L(a.values,function(a){return Ug(b,{value:a})})},query:function(a){return 0===a.values.length?j:L(a.values,function(a){return Vg(Z.j(a.key),{value:a.value})})},referrer:function(a){return L(a.values,r(Wg,Z.Pa()))},segment:function(a){var b=Z.qa();return L(a.values,function(a){return Yg(cb(a,b))})},url:Zg,visitor:function(a){var b=Z.na();return $g(b,a)}},ah={browser:Lg,browser_version:function(a,b){var c= b.value,d=a.id,e=a.version;return 0===c.indexOf(d)?0===Kg(e,c.substr(d.length)):o},behavior:function(a,b){try{var c=ea(b.value),d;if(F(c.version)){!c.action&&(!c.filters||0===c.filters.length)&&h(Error('Audience spec must have an "action" field or at least one "filter" '+u(c)));var e=Bg("gt",Y.b,0),f=[],g=[];c.action&&(g.push(Bg("eq",Y.e,c.action.value)),c.action.type&&g.push(Bg("eq",Y.g,c.action.type)));if(c.time)if("last_days"===c.time.type)g.push({op:Ag("lte"),args:[{op:"-",args:[{eval:"now"}, {field:[Y.b]}]},{value:864E5*c.time.days}]});else if("range"===c.time.type){var l;var m=[c.time.start,c.time.stop];M(m)?l={op:"between",args:[{field:[Y.b]},{value:m[0]||+new Date(0)},{value:m[1]||+new Date}]}:(P("Rule builder","rangeTimeComparison passed invalid range "+u(m)),l=k);l&&g.push(l)}else P("Rule builder",'Audience spec has bad "time" type',c.time.type);e={op:"and",args:g};c.count&&f.push({where:Bg(c.count.comparator,"0",c.count.value),from:{select:[{field:xg("count")}],where:e,aggregate:[Dg("count")]}}); c.filters&&D(c.filters,function(a){var b=Fg(a.name,c.source),d,l;if(a.modifier==="most_frequent"){d=Dg("count");l=xg("count")}else if(a.modifier==="most_recent"){d=Dg("max",Y.b);l=xg("max",Y.b)}if(d){var m=yg(b);f.push({where:Bg(a.comparator,"0",a.value),from:{select:[{field:m}],where:e,groupBy:Cg([b]),aggregate:[d],orderBy:[{field:l,direction:"DESC"}],limit:1}})}else g.push(Bg(a.comparator,b,a.value))});if(c.pick){0<f.length&&h(Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+ u(c)));var n;var t=c.pick,q=c.source;l={where:e};t.count&&(l.limit=t.count);if("most_frequent"===t.modifier){var A=Fg(t.name,q);n=O(l,{select:[{field:yg(A)}],groupBy:Cg([A]),aggregate:[Dg("count")],orderBy:[{field:xg("count"),direction:"DESC"}]})}else n=O(l,{orderBy:[{field:[Y.b],direction:"DESC"}]});d=[n]}else d=0<f.length?f:[{where:e}]}else d=[c];return Gb(d,function(b){return sg(b,a)})}catch(G){}return o},campaign:function(a,b){var c=b.value;"string"===typeof c&&("regex"===b.match?a=Xa(a):c=ag(c)); "none"===a&&(a=k);return Og(c,b.match,a)},code:Hf,cookies:Ng,custom_dimension:function(a,b){var c=b.value;return!F(c)?F(a):c==a},custom_tag:Pg,default_behavior:function(a,b){try{var a=a||{},c=ea(b.value);return sg(c,[a])}catch(d){}return o},device:function(a,b){var c=b.value;return"unknown"!==a.id?a.id===c:"tablet"===c?"tablet"===a.type:"mobile"===c?a.w&&"tablet"!==a.type:"desktop"===c?!a.w:o},event:aa(),first_session:aa(),ip:Qg,language:Tg,list:function(a,b){if(a===k||!F(a))return o;var c=b.value; return!F(c)?""===a||a!==o:a.toString()===c},location:Ug,query:Vg,platform:function(a,b){var c=b.value.split("_"),d=c[0],c=c.slice(1);return d===a.id?0===c.length?j:1<c.length?0<=Kg(a.version,c[0])&&0>=Kg(a.version,c[1]):0===Kg(a.version,c[0]):o},referrer:Wg,segment:Yg,source_type:function(a,b){return b.value===a},time_and_day:function(a,b){var c,d,e;c=b.value;e=c.split("_");3!==e.length&&h(Error("Invalid time and day string "+c));c=e[0];d=e[1];e=e[2].split(",");c=Gg(c);d=Gg(d);var f=60*a.getHours()+ a.getMinutes(),g="sunday monday tuesday wednesday thursday friday saturday".split(" ")[a.getDay()];return f>=c&&f<=d&&-1!==$.inArray(g,e)},third_party_dimension:function(a,b){return M(a)?L(a,r(Og,b.value,b.match)):Og(b.value,b.match,a)},url:Jg,visitor:$g,dynamic_customer_profile:function(a,b){return a===k?o:!!a[b.value]},has_ppid:aa()},ch={ip:function(){U("checkGeo");return Z.U()!==k},location:function(){U("checkGeo");return Z.L()!==k},list:function(a){return Z.ma(na(a.dimension_id)||"")!==k},dynamic_customer_profile:function(a){var b= Z.ka();return Kb(b)&&a.value in b}};function Og(a,b,c){var d=F(c)&&c!==k,e=F(a)&&a!==k;switch(b||(e?"exact":"exists")){case "exists":return d;case "exact":return d&&String(c)===a;case "substring":return d&&-1!==String(c).indexOf(a);case "regex":try{return e&&d?Boolean(String(c).match(RegExp(a))):o}catch(f){return o}case "range":return a=a.split(":"),b=parseFloat(a[1]),c=parseFloat(c),c>=parseFloat(a[0])&&c<=b;default:return o}};var dh=[function(){var a=hc();if("ie"===a.aa){try{var b=Number(a.ba)}catch(c){return}7>b&&h(Error("IE is only supported on version 8+ (detected "+b+")"));8>b&&("windows"===a.platform.id&&a.platform.version&&C(["xp","vista"],a.platform.version.toLowerCase()))&&h(Error("IE7 is not supported"))}},function(){return ea(u({a:123}))}];function se(a,b,c){var d;d=o===j;var c=c===j,e=o,f=E(a);if(f&&(c||!Hg(f))){e=j;if(c&&Hg(f))for(c=0;c<W.length;c++)W[c].H===f&&W.splice(c,1);W.push({H:f,id:a,source:b});d&&(T=T||[],T.push(f));oe[f]=j;pe();P("Plan","Added experiment "+f+" and variation id "+a+" to the plan, source is "+b,j)}return e}function Hg(a){return a in ne||a in oe}function md(a){var b=[],c=!F(a),a=a||[];D(W,function(d){(c||C(a,d.H))&&b.push(d.id)});return b}function Cf(a){var b;if(b===j||!Hg(a))ne[a]=j,pe()} function Gd(){var a={};D(Pe,function(b,c){a[b]=c});D(W,function(b){var c=E(b.id);a[c]=b.id});D(ne,function(b){a[b]="0"});D(v("blacklisted_experiments")||{},function(b){b in a&&delete a[b]});J("optimizelyBuckets",u(a),Db)}function pe(){D(eh,function(a){a()})} function fh(a,b,c,d){if(-1!==a.indexOf("_optimizely_redirect"))b.push({code:a,type:"code forced (redirect)",variationId:d});else{for(var a=a.split("\n"),e=o,f=o,g=[],l=[];0<a.length;){var m=Ob(a.shift()),n=0<l.length;if(m)if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}force/i)))f=j;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}safe/i))||Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_force/i)))f=o;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}editor_only/i)))e= j;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_editor_only/i)))e=o;else if(!gh.exec(m)&&!e)if(f)g.push(m);else{if(!n){var t=hh.exec(m),q=[];t?(q.push(t[1].replace(/^['"]|['"]$/g,"")),(t=ih.exec(m))&&4<t.length&&q.push(t[4]),c.push({code:m,selector:q,type:"safe jquery",waitUntilSelectorReady:j,variationId:d})):n=j}n&&l.push(m)}}0<g.length&&b.push({code:g.join("\n"),type:"forced evaluation",variationId:d});0<l.length&&c.push({code:l.join("\n"),type:"safe non-jquery",waitUntilDocumentReady:j, variationId:d})}}function jh(a,b,c){for(var d={values:[]},e=0,f=a.length;e<f;e++)d.values.push({value:a[e],match:b[e]||c});return d}var eh=[],Pe={},ne={},ih=/^\$j?\(['"](.+?)['"]\)\.detach\(\)\.(appendTo|insertAfter|insertBefore|prependTo)\(['"](.+?)['"]\);(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,gh=/^(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,hh=/^\$j?\((['"].+?['"]|document)\)\..+;(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,oe={},W=[];function kh(a){Xf={};Vf(a)};function lh(a,b){if(a&&b)if(mh)P("Evaluator","Bound event "+b+" to selector "+a),nh(a,b);else{var c={eventName:b,selector:a,type:"event '"+b+"' (click goal)",waitUntilSelectorReady:j};P("Evaluator","Add step to bind event "+c.eventName+" to selector "+c.selector);oh.push(c)}} function Fd(a,b){if(K){M(a)?ph(a):(a=[],ph(b));a=a.concat(T);T=[];for(var c=0;c<a.length;c++)C(ld,a[c])||ld.push(a[c]);c=a;c===i?c=[]:Lb(c)&&(c=[c]);for(var d=md(c),e=[],f=[],g=[],l=[],m=w(ja(),function(a){return a.experiments?o:Zg(a.url_conditions||[])}),n=0,t=m.length;n<t;n++){var q={eventName:m[n].event_name,selector:m[n].selector,type:"event '"+m[n].event_name+"' (click goal)",waitUntilSelectorReady:j};"revenue"in m[n]&&(q.revenue=m[n].revenue);e.push(q)}D(c,function(a){var b={},c=y(a,"events")|| {};D(c,function(a,c){b[a]=[c]});var c=w(ja(),function(b){return"experiments"in b?a in b.experiments:o}),d=0;for(;d<c.length;d++){var m=c[d];b[m.selector]||(b[m.selector]=[]);b[m.selector].push({eventName:m.event_name,revenue:m.revenue,experimentIds:m.experiments})}D(b,function(b,c){D(c,function(c){e.push({eventName:c.eventName,experimentIds:c.experimentIds,revenue:c.revenue,selector:b,type:"event '"+c.eventName+"' (experiment "+a+")",waitUntilSelectorReady:j})})});var n=y(a,"css")||"";n&&g.push({code:function(){$("body").append("<style>"+ n+"</style>")},selector:"body",type:"global css (experiment "+a+")",waitUntilSelectorReady:j});if(c=y(a,"steps")){D(c.forced,function(a){f.push(a)});D(c.safe,function(a){l.push(a)})}else(c=y(a,"code")||"")&&fh(c,f,l)});D(d,function(a){var b=v("variations",a,"pages");if(b)D(b,function(a){if(a.steps&&(!a.includes||Zg({values:a.includes}))&&(!a.excludes||!Zg({values:a.excludes}))){f.push.apply(f,a.steps.forced);l.push.apply(l,a.steps.safe)}});else{for(var b=Ha(a),b=b.split("\n"),c=[],d=j,e=0,g=b.length;e< g;e++){var m=$.trim(b[e]);if(m==="/* _optimizely_variation_url_end */")d=j;else if(m!==""){var n=nb.exec(m);if(n&&n.length===13){var q=n[2]?n[2].split(" "):[],m=n[4]?n[4].split(" "):[],t=n[6]?n[6]:"substring",gf=n[8]?n[8].split(" "):[],n=n[10]?n[10].split(" "):[];if(q.length>0){d=jh(q,gf,t);d=Zg(d)}if(d&&m.length>0){d=jh(m,n,t);d=!Zg(d)}}else d&&c.push(m)}}b=c.join("\n");fh(b,f,l,a)}});c=[];c.push.apply(c,f);c.push.apply(c,g);c.push.apply(c,l);c.push.apply(c,e);oh.push.apply(oh,c);qh()}} function qh(){var a=o;rh=k;for(P("Evaluator",sh+" times waited");!a&&0<oh.length;){P("Evaluator",oh.length+" steps remaining");var b=oh.shift(),c=b,a=o;if(c.waitUntilDocumentReady&&!mh)P("Evaluator","Document not ready yet"),a=j;else if(c.waitUntilSelectorReady&&!mh&&(c=c.selector))for(var c=M(c)?c:[c],d=0;d<c.length;d++){var e=c[d];if(!(e===k||e===i||!e.length))if(0===("document"==e?$(document):$(e)).length)P("Evaluator","'"+e+"' not found"),a=j}a?oh.unshift(b):b.eventName?(th(),P("Evaluator","Bound event "+ b.eventName+" to selector "+b.selector),c={},b.revenue&&(c={Z:b.revenue,fa:b.experimentIds}),nh(b.selector,b.eventName,c)):b.code&&(P("Evaluator","Run code: "+b.code.toString()),uh(b.code,b.variationId))}a?(rh=setTimeout(qh,0===sh?10:50),sh++):(P("Evaluator",sh+" total times waited"),th())}function Mg(a){return"string"===typeof a?eval(a):a()}function th(){U("flash");0<yd.length||U("flashGeo")} function uh(a,b){if(a){var c=o,d;"string"===typeof a?(d=a,c=j):d=a.toString();if(od(d))if(P("Evaluator","Redirect detected"),Zd(d)){P("Evaluator","OK to redirect");var e=Yd(d);P("Evaluator","setting a redirect cookie"+(b?" for variation: "+b:""));J("optimizelyRedirect",(b||"unknown variation")+"|"+(e?"true":"false"),v("redirect_timeout")||5);$d()}else{P("Evaluator","NOT OK to redirect");return}c&&eval("var $j = $;");try{if(od(d)){$("head").append("<style type='text/css'>body{display:none;visibility:hidden;}</style>"); P("Evaluator","Hiding body before redirect");var f=be.test(d)||ae.test(d)||ce.test(d),g=/_keep_body_hidden=(\S+)/.test(d);f||g?P("Evaluator","Standard redirect detected - Will not unhide body."):setTimeout(function(){if(document.body){document.body.style.visibility="visible";document.body.style.display="block";P("Evaluator","Unhiding body -- did not redirect");U("bodyUnhidden")}},1700)}Mg(a)}catch(l){c=yb,yb=j,P("Evaluator","Error: "+l.message),P("Evaluator","Code: "+d),yb=c,P("Evaluator","Failed to run code: "+ l.message)}}} function nh(a,b,c){c=c||{};if(!vh[a]||!vh[a][b]){var d=function(){Te(b,"custom",c)},e=$(a);if(0<e.length){var f=function(){e.unbind("touchend",d);e.unbind("touchmove",f);e.unbind("mousedown",d)},g=function(){f();e.bind("touchmove",f);e.bind("touchend",d)};e.bind("mousedown",d);e.bind("touchstart",g)}else e=$("html"),f=function(){e.undelegate(a,"touchend",d);e.undelegate(a,"touchmove",f);e.undelegate(a,"mousedown",d)},e.delegate(a,"touchstart",function(){f();e.delegate(a,"touchend",d);e.delegate(a, "touchmove",f)}),e.delegate(a,"mousedown",d);vh[a]||(vh[a]={});vh[a][b]="mousedown touchstart"}}function wh(a){xh=a}function ph(a){a||(a=ra());for(var b=0;b<a.length;b++)Aa(a[b])}var vh={},ld=[],T=T||[],xh=0,mh=o,oh=[],rh=k,sh=0;$(function(){setTimeout(function(){U("docReady");mh=j;rh!==k&&(P("Evaluator","Document is ready"),clearTimeout(rh),0<xh?setTimeout(qh,xh):qh())},50)});function Rg(a){this.Ea=$.trim(a);a=yh(this.Ea);a===k&&h(Error("Invalid CIDR specification"));this.X=a.X;this.W=a.W}function yh(a){a=a.split("/");if(2!=a.length)return k;var b=parseInt(a[1],10);if(isNaN(b)||0>b||32<b)return k;a=Sg(a[0]);if(a===k)return k;if(0>b||32<b)b=k;else{for(var c=[],d=0;4>d;d++)c[d]=0;for(var e=Math.floor(b/8),d=0;d<e;d++)c[d]=255;4>e&&(c[e]=zh[b%8]);b=c}for(c=0;4>c;c++)a[c]&=b[c];return{X:a,W:b}} function Sg(a){a=a.split(".");if(4!=a.length)return k;for(var b=[],c=0;4>c;c++){var d;d=a[c];if(3<d.length)d=k;else{var e=parseInt(d,10);d=isNaN(e)||d!==e.toString()||0>e||255<e?k:e}if(d===k)return k;b[c]=d}return b}var zh=[0,128,192,224,240,248,252,254,255];function Xg(a,b,c){var d=a.split("?");if(d[1]){var e=[];$.each(d[1].split("&"),function(){0!==this.indexOf(Ah)&&e.push(this)});d[1]=e.join("&");a=d.join("?")}switch(c){case "exact":return a=Bh(a),a===Bh(b);case "regex":try{return Boolean(a.match(b))}catch(f){return o}case "simple":return a=Bh(Ch(a)),b=Bh(Ch(b)),a===b;case "substring":return a=Bh(a,j),b=Bh(b,j),-1!==a.indexOf(b);default:return o}} function Ch(a){var b=a.indexOf("?");-1!==b&&(a=a.substring(0,b));b=a.indexOf("#");-1!==b&&(a=a.substring(0,b));return a}function Bh(a,b){var a=a.replace("/?","?"),a=a.toLowerCase().replace(/[/&?]+$/,""),c=Dh.slice(0);b||(c=c.concat(Eh));for(var d=c.length,e=0;e<d;e++)a=a.replace(RegExp("^"+c[e]),"");return a} var Dh=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"],Eh=["www."],Ah="optimizely_";function Fh(a){return function(b){if("object"===typeof b&&Ih()){var c=k,d;for(d in b)b.hasOwnProperty(d)&&(c=a.call(this,d,b[d]));return c}return a.apply(this,arguments)}}function Ih(){for(var a in{})return j;return o};function Jh(){if(!mb){var a=$;a.fn.attr=Fh(a.fn.attr);a.fn.css=Fh(a.fn.css);a.fn.extend=Fh(a.fn.extend);var b=a.each;a.each=function(c,d,e){if(!(c.length===i||a.isFunction(c))||!Ih())b.apply(this,arguments);else if(e)for(var f in c){if(c.hasOwnProperty(f)&&d.apply(c[f],e)===o)break}else for(f in c)if(c.hasOwnProperty(f)&&!d.call(c[f],f,c[f])===o)break;return c};var c=a.fn.ab,d=function(a,b,d){return new c(a,b,d)},e,f=document.getElementsByClassName;if(!Uf(f))var f=(window.optimizely||{}).getElementsByClassName, g=(window.optly||{}).getElementsByClassName,f=Uf(f)?f:Uf(g)?g:k;e=f;a.fn.ab=function(b,c,f){var g=d,l=document.getElementsByClassName;!Uf(l)&&e&&(g=function(a,b,c){document.getElementsByClassName=e;a=d(a,b,c);document.getElementsByClassName=l;return a});if(!("string"===typeof b&&c&&"object"===a.type(c)&&Ih()))return g(b,c,f);b=g(b,i,f);b.attr(c);return b}}P("Main","Started, revision "+v("revision"));try{var l=[];D(dh,function(a){try{a()}catch(b){l.push(b.message)}});0<l.length&&h(Error("Feature(s) not supported: "+ l.join("; ")))}catch(m){P("Main","Disabling: "+m.message);return}var f=Sf(),g=o,n;for(n in f)if(Tf.exec(n)){g=j;break}("true"===f.opt_out||"false"===f.opt_out)&&he("true"===f.opt_out);pb="true"===f.force_tracking;"true"===f.disable||"true"===f.opt_out||hf()?qb=K=o:"classic"===f.disable?K=o:"new"===f.disable&&(qb=o);rb="true"===f.editor;sb="true"===f.p13n;xb="true"===f.show_preview;tb=(n=window.optlyDesktop)&&F(n.p13nInner);(n=H("optimizelyToken"))&&J("optimizelyToken",n,15);n=f.token||n;v("insecure_preview")&& n?vb="public/"+z():/^[0-9a-f]{64}$/.test(n)?vb=n:/^[0-9a-f]{32}$/.test(n)?(P("Query","Using legacy MD5 token"),vb=n):(hb("optimizelyToken",ib()),P("Query","Blocked request to load unsafe script: "+n));yb="true"===f.log;zb="true"===f.verbose;bb=!(xb||g)||pb;if(rb||sb)window.optimizelyDataApi={getProjectId:z};if(tb)P("Main","Disabling because in desktop app editor.");else if(sb)P("Main","Disabling because personalization editor flag is set."),Nb("https://"+Ma()+"/js/innie.js?_="+ +new Date);else if(fe(), hf())P("Main","Disabling because opted out"),xc();else if(vb){if(!window.optimizelyPreview){if(!window.optimizely||!window.optimizely.unshift)window.optimizely=[];window.optimizely.unshift(["verifyPreviewProject",z()]);Nb([Rf,"/js/preview/",vb,".js"].join(""),j);xb&&Qf('Loading Preview<br /><img alt="loading" src="//'+Ma()+'/static/img/loading-32.gif" style="padding-top:20px; width: 32px; margin: 0 auto;" />')}}else if(xb&&!vb)Qf("This preview link has expired. Please return to Optimizely and preview again to get a new link."); else{if(K||qb)if(f=v("project_js"))P("Evaluator","Running project level javascript."),uh(f);fe();if(K){f=H("optimizelyEndUserId");sc=f!==i&&f!==k;a:{f="googlebot;yahoo! slurp;bingbot;bingpreview;msnbot;keynote;ktxn;khte;gomezagent;alertsite;yottaamonitor;pingdom.com_bot;aihitbot;baiduspider;adsbot-google;mediapartners-google;applebot".split(";");g=navigator.userAgent;g=g.toLowerCase();for(n=0;n<f.length;n++)if(-1!==g.indexOf(f[n])){f=j;break a}f=o}f?bb=o:sc||Sb.set("first_session",j)}if(f=Q.get("asyncInfo"))nc("asyncInfo")|| oc(f),Q.set("asyncInfo",k);(f=nc("asyncInfo"))&&D(f,Cc);if(v("uses_list_targeting")){var f="https://tapi.optimizely.com/api/js/geo2.js",t={};D(Da(),function(a,b){var c=Lc(b);typeof c==="string"&&(t[b]=c)});t.project=z().toString();var g=[],q;for(q in t)t.hasOwnProperty(q)&&g.push(encodeURIComponent(q)+"="+encodeURIComponent(t[q]));g.length&&(f+="?"+g.join("&"));Nb(f)}v("uses_dynamic_customer_profile_targeting")&&(Of(),q=If(),!q.q||!q.q.datasourceId?(P("DCP","No Optimizely datasource found in data."), q=k):(f=q.q.datasourceId,g=q.q.id,f=N([z().toString(),f,g],encodeURIComponent),f=["https://tapi.optimizely.com/api/targetingEmbed"].concat(f).join("/"),g=(Nc.get()||{}).aliases||{},Pf(q.z,g)||(q=N(q.z,function(a){return encodeURIComponent(a.datasourceId)+"="+encodeURIComponent(a.id)}),f+="?"+q.join("&")),q=f),q!==k&&Nb(q));(v("dcp_service_id")||k)!==k&&setTimeout(function(){var a=v("dcp_service_id")||k;if(a!==k){var b=If();if(b.q)if(b.z.length===0)P("DCP","Must specify at least one non-Optimizely datasource to alias"); else if(Of()){var a=N([a,b.q.datasourceId,b.q.id],encodeURIComponent).join("/"),c=b.z;try{var d=new XMLHttpRequest;d.open("POST",["https://vis.optimizely.com/api/alias",a].join("/"));if("withCredentials"in d)d.withCredentials=j;d.setRequestHeader("Content-Type","application/json;charset=UTF-8");var e={};D(c,function(a){e[a.datasourceId]=a.id});d.onerror=function(){P("DCP","Failed to POST alias request")};d.onload=function(){if(d.status>=200&&d.status<300){var a=Nc.get()||{},b=a.aliases||{},b=b||{}; D(c,function(a){b[a.datasourceId]=a.id});a.aliases=b;Nc.set(a)}else P("DCP","Alias POST failed with",d.statusText)};d.send(u({data:e}))}catch(f){P("DCP","Exception %s trying to POST alias request",f)}}else P("DCP","Duplicate alias request; skipping.");else P("DCP","Must specify Optimizely datasource in alias")}},0);if(q=H("optimizelyBuckets")){try{q=ea(q)}catch(A){q={}}var G={};D(q,function(a,b){var b=String(b),c=E(b);if(Ba(c).length>1&&b.indexOf("_")===-1){G[c]=G[c]||{};G[c][a]=b}else b!=="0"?se(b, "cookie")||(Pe[a]=b):Cf(a)});D(G,function(a,b){var c;a:{c=[];for(var d=Ba(a),e=0;e<d.length;e++){var f=b[d[e]];if(f==="0"){c="";break a}c.push(f)}c=c.join("_")}c.length>0?se(c,"cookie"):Cf(a)})}Vf();nd=(H("optimizelyRedirect")||"|").split("|")[0];q=H("optimizelyReferrer");q!==k&&(Sc=0==q.length?"":q,J("optimizelyReferrer",""));q=Wf;P("Visitor","Initializing");(f=H("optimizelyAudiences"))&&0<f.length&&D(f.split(","),p(function(a){vg(this,a,j,{O:j,ya:o})},q));D(cg(),p(function(a){P("Visitor","Found segment "+ a);var b=va()[a];if(b&&b.audience_id){P("Visitor","Adding to audience "+b.audience_id);vg(this,b.audience_id,j,{C:o})}else if(b&&b.dimension_id){P("Visitor","Setting dimension value "+b.dimension_id);wg(this,b.dimension_id,Xf[a],o)}},q));V=Wf;de=o;Yf.push(zd);eh.push(zd);q={$:$,activeExperiments:ld||[],allExperiments:wa(),all_experiments:wa(),allVariations:v("variations")||{},getElementsByClassName:document.getElementsByClassName,revision:v("revision"),variationIdsMap:Ee,variation_map:Fe,variationMap:Fe, variationNamesMap:Ge};for(var B in q)X(q,B,q[B]);q.data=He;B={};var qa=Hb(je,[B,Re]);O(B,{activate:r(rd,V),activateGeoDelayedExperiments:r(ud,V),activateSiteCatalyst:Pc,activateUniversalAnalytics:ed,addOAuthClientId:we,addToAudience:p(V.D,V),addToSegment:le,bindTrackElement:lh,bucketUser:sd,bucketVisitor:sd,clickTaleRecord:hd,clickTalePlayback:fd,customTag:ye,delayDomReadyEval:wh,delayPageviewTracking:Ke,disable:ge,log:yc,getAccountId:fa,getProjectId:z,googleAnalyticsCustomVariableScope:Vc,integrationPrefix:id, optOut:he,overrideUrl:tc,push:qa,removeFromAllAudiences:p(V.gb,V),removeFromAllSegments:Ce,removeFromAudience:p(V.Y,V),removeFromSegment:ze,sc_activate:Pc,sc_svar:jd,skipPageTracking:Me,optOutThirdPartyCookies:Le,setDimensionValue:p(V.B,V),setUserId:Oe,storeThirdPartyData:ke,timeout:ge,trackEvent:Qe,verbose:zc});v("slave")&&O(B,{get:ue});B.removeFromReportableAudiences=Ne;O(q,B);B=window.optimizely;M(B)&&D(B,function(a){qa(a)});window.optimizely=q;U("apiInitialize");window.optimizely.iapi={evaluateSegments:r(kh, i)};var Sa=!v("force_variation");B=Sf();D(B,function(a,b){var c=Tf.exec(a);if(c)if(Sa){wb=j;I("Query","Ignored parameter %s",a)}else{c=c[1];sd(c,b,j);ya(c)?Ff(c,{force:j,skipPageviewTracking:j}):Bd(c,{})||rd(V,c,{force:j,skipPageviewTracking:j})}});wb?Qf("Force parameters are disabled for this project. See Project Code Settings."):(Jh.log(),rb&&Nb("https://"+Ma()+"/js/innie.js?_="+ +new Date),K&&(U("distributeExperiments"),D(ra(),function(a){if(!cb(a,T))if(ya(a))Ff(a);else if(Ad(a)){if(Bd(a,{objectType:"experiment"})){P("Distributor", "Going to distribute "+Aa(a));if(Ed(a)){T=T||[];T.push(a)}}}else!xa(a)&&!C(ld,a)&&Cd(a)}),Gd(),Xe(),Cb||(0<ob?setTimeout(function(){Hd()},ob):Hd()),We(),Xc()),yb&&(D(ne,function(a){var b=za(a);P("Plan","Ignore experiment '"+b+"' ("+a+")")}),D(W,function(a){var b=E(a.id),c=Ka(a.id);P("Plan",Aa(b)+' in variation "'+c+'" ('+a.id+")")})),rb?te():K&&(U("beginEvaluate"),Fd(),te(),xc(),!v("installation_verified")&&bb&&(B="https://"+Ma()+"/account/snippet_installed?project_id="+z()+"&wxhr=true",P("Tracker", "Making snippet verification request."),$c(B,k))),setTimeout(function(){ud(V)},2E3),setTimeout(function(){if(bb){var a=xe;if(a.$a){var b=Fb(),c=z(),d=v("revision"),e=xf,f=vf,g=zf,l=Ta(),m=ld.concat(T).length,n=tf().length,q;q=nc("events")||[];var t=nc("event_queue")||[];q=u(q).length+u(t).length;var B;a:{try{B=window.optimizely.get("behavior").getEvents()[0].timestamp;break a}catch(G){}B=i}var b={ppid:b,project:c,revision:d,sync:e,timebase:f,render:g,sampleRate:l,numExps:m,numBehaviorEvents:n,behaviorEventsSize:q, oldestBehaviorEventAge:!B?0:(new Date).getTime()-B.getTime(),integrationOAuthClientIds:wf(ve,",",64),codeVersion:v("version"),hasSlave:!!v("slave"),docVisibilityState:document.Bb||document.webkitVisibilityState,wxhr:j,apis:wf(x(a.R),"!",1E3)},A;a:{c=k;try{A=w(window.performance.getEntries(),function(a){return!!Bf.test(a.name)})[0]}catch(qa){A=c;break a}if(A){var c={},Ab;for(Ab in A)typeof A[Ab]==="number"&&A[Ab]!==0&&(c[Ab]=A[Ab])}A=c}O(b,A||{});O(b,a.n);var Sa=["optimizelyAudiences","optimizelyBuckets", "optimizelyCustomEvents","optimizelyPendingLogEvents","optimizelyReferrer","optimizelySegments"],Od={},Pd=0,Qd=0;D(Wa(),function(a){if(a.name.indexOf("optimizely")===0){if(C(Sa,a.name)){P("RUM","Cookie size for "+a.name+": "+a.P.length);Od[a.name+"Len"]=a.P.length}Pd=Pd+a.P.length}Qd=Qd+a.P.length});O(Od,{allOptimizelyCookiesLen:Pd,allCookiesLen:Qd});O(b,Od||{});var jg={};D(Q.wa()||{},function(a,b){jg["ls"+a]=b});O(b,jg);var a=[],Ec;for(Ec in b)Object.prototype.hasOwnProperty.call(b,Ec)&&a.push(window.encodeURIComponent(Ec)+ "="+window.encodeURIComponent(b[Ec]));$c("https://rum.optimizely.com/rum?"+a.join("&"),k)}}},3E3),P("Main","End of main"),U("mainEnd"))}} Jh.log=function(){P("Info","Is Classic Optimizely enabled: "+K);P("Info","Diagnostic enabled: false");P("Info","Force variation enabled: "+!!v("force_variation"));P("Info","Browser type: "+ic());P("Info","Browser version: "+jc());var a=pc();"unknown"!==a&&P("Info","Mobile browser type: "+a);P("Info","New vs returning: "+rc());P("Info","Source type: "+bg());P("Info","User ID: "+Eb())};Jh(); }; var SLAVE_CLIENT = {optimizely:[]}; optimizelyCode(); optly.Cleanse.finish(); }());