PageSourceSearch

https://stanfordhealthcarequality.com/etc.clientlibs/cq/personaliz…/kernel.lc-1788551406064-lc.min.js

js stanfordhealthcarequality.com collected 2026-09-26 01:22:00 UTC 92,622 bytes, 198 lines download raw bytes

1window.CQ_Analytics||(window.CQ_Analytics={});CQ_Analytics.Operator=function(){return function(){}}();CQ_Analytics.Operator.IS="is";CQ_Analytics.Operator.EQUALS="equals";CQ_Analytics.Operator.NOT_EQUAL="notequal";CQ_Analytics.Operator.GREATER="greater";CQ_Analytics.Operator.GREATER_OR_EQUAL="greaterorequal";CQ_Analytics.Operator.OLDER="older";CQ_Analytics.Operator.OLDER_OR_EQUAL="olderorequal";CQ_Analytics.Operator.LESS="less";CQ_Analytics.Operator.LESS_OR_EQUAL="lessorequal";
2CQ_Analytics.Operator.YOUNGER="younger";CQ_Analytics.Operator.YOUNGER_OR_EQUAL="youngerorequal";CQ_Analytics.Operator.CONTAINS="contains";CQ_Analytics.Operator.BEGINS_WITH="beginswith";CQ_Analytics.Operator.EXISTS="exists";CQ_Analytics.Operator.DOES_NOT_EXIST="doesnotexist";CQ_Analytics.Operator.formatIP=function(a){var b=String(a).match(/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/);if(b&&5===b.length){b.shift();for(a=[];b.length;)a.push(("00"+b.shift()).slice(-3));a=a.join(".")}return a};
3CQ_Analytics.OperatorActions=function(){var a={},b=function(d,e,f){a[d]=[e,f]};b(CQ_Analytics.Operator.EQUALS,"equals","\x3d\x3d");b(CQ_Analytics.Operator.IS,"is","\x3d\x3d");b(CQ_Analytics.Operator.NOT_EQUAL,"is not equal to","!\x3d");b(CQ_Analytics.Operator.GREATER,"is greater than","\x3e");b(CQ_Analytics.Operator.GREATER_OR_EQUAL,"is equal to or greater than","\x3e\x3d");b(CQ_Analytics.Operator.OLDER,"is older than","\x3e");b(CQ_Analytics.Operator.OLDER_OR_EQUAL,"is equal to or older than","\x3e\x3d");
4b(CQ_Analytics.Operator.LESS,"is less than","\x3c");b(CQ_Analytics.Operator.LESS_OR_EQUAL,"is equal to or less than","\x3c\x3d");b(CQ_Analytics.Operator.YOUNGER,"is younger than","\x3c");b(CQ_Analytics.Operator.YOUNGER_OR_EQUAL,"is equal to or younger than","\x3c\x3d");b(CQ_Analytics.Operator.CONTAINS,"contains",function(d,e){return d?e?(e=""+e,-1!=(""+d).toLowerCase().indexOf(e.toLowerCase())):!0:!1});b(CQ_Analytics.Operator.BEGINS_WITH,"begins with",function(d,e){return d?e?(e=""+e,0==(""+d).toLowerCase().indexOf(e.toLowerCase())):
5!0:!1});b(CQ_Analytics.Operator.EXISTS,"exists",function(d){return!!d});b(CQ_Analytics.Operator.DOES_NOT_EXIST,"does not exist",function(d){return!d});var c=function(d){d&&(d=d.replace(RegExp("\\'","ig"),d));return d};return{getText:function(d){return a[d]&&a[d][0]?a[d][0]:""},setText:function(d,e){a[d]&&a[d][0]&&(a[d][0]=e)},getOperation:function(d){return a[d]&&a[d][1]?a[d][1]:""},operate:function(d,e,f,g,t){var k=this.getOperation(f);k=k?k:f;t&&""!==t||!(k in{"\x3c":1,"\x3c\x3d":1,"\x3e":1,"\x3e\x3d":1})||
6isNaN(parseFloat(g-0))||(t="parseFloat");try{if(d){f="";var n=CQ.shared.XSS.getXSSTablePropertyValue(d,e);if("function"==typeof k)return k.call(this,n,g,t);if(t)f=t+"('"+n+"') "+k+" "+t+"('"+g+"')";else{var h=c(n),p=c(g);f="'"+h+"' "+k+" '"+p+"'"}return eval(f)}}catch(x){}return!1}}}();
7CQ_Analytics.Utils=new function(){return{registerDocumentEventHandler:function(a,b){var c=window.document[a];window.document[a]="function"!=typeof window.document[a]?b:function(d){c&&c(d);b(d)}},eventWrapper:function(a){return function(b){if(document.all){var c=window.event.keyCode;b=window.event}else c="undefined"!=typeof b.which?b.which:0;b&&a(b,c)}},loadElement:function(a,b){$CQ("#"+b).load(a)},loadTeaserElement:function(a,b){var c=$CQ("#"+b).css("height"),d=$CQ("#"+b).height();0<d&&$CQ("#"+b).css("height",
8d);var e=function(h){if(h&&""!=h){h=$CQ(h).css("display","none");var p=$CQ("#"+b)[0];$CQ("#"+b).empty().append(h);p&&p.parentElement&&$CQ(p.parentElement).trigger("target-dom-loaded");h.fadeIn(function(){c&&"0px"!=c&&$CQ("#"+b).css("height",c)})}else c&&"0px"!=c&&$CQ("#"+b).css("height",c)},f=function(h,p){CQ_Analytics.Utils.teasersCache||(CQ_Analytics.Utils.teasersCache={});CQ_Analytics.Utils.teasersCache[h]=p},g=function(){CQ_Analytics.Utils.teasersCache&&CQ_Analytics.Utils.teasersCache[a]?e(CQ_Analytics.Utils.teasersCache[a]):
9(CQ_Analytics.Utils.teasersLoading=CQ_Analytics.Utils.teasersLoading||{},CQ_Analytics.Utils.teasersLoading[a]?window.setTimeout(function(){CQ_Analytics.Utils.loadTeaserElement(a,b)},100):(CQ_Analytics.Utils.teasersLoading[a]=!0,t()))},t=function(){var h=a,p=location.href;"undefined"!=typeof CQ_CONTENT_PATH&&(p=CQ_CONTENT_PATH);(p=CQ.shared.HTTP.getParameter(p,"wcmmode"))&&(h+=(0<h.indexOf("?")?"\x26":"?")+"wcmmode\x3d"+p);CQ.shared.HTTP.get(h,function(x,w,l){if(w){if(x=l.body)x=x.replace(RegExp("\\n",
10"ig"),""),x=x.replace(RegExp("\\r","ig"),""),f(a,x),delete CQ_Analytics.Utils.teasersLoading[a],g()}else f(a,"")})},k=$CQ("#"+b).children().length;if(0<k){var n=0;$CQ("#"+b).children().fadeOut(function(){var h=$CQ(this);window.setTimeout(function(){h.remove();n++;n>=k&&g()},50)})}else g()},clearElement:function(a){a&&$CQ("#"+a).html("")},indexOf:function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1},load:function(a,b,c){return CQ.shared.HTTP.get(a,b,c)},post:function(a,b,c,d){return CQ.shared.HTTP.post(a,
11b,c,d)},getPagePath:function(){return CQ.shared.HTTP.getPath()},getPath:function(a){return CQ.shared.HTTP.getPath(a)},addParameter:function(a,b,c){return CQ.shared.HTTP.addParameter(a,b,c)},removeParameters:function(a){return CQ.shared.HTTP.removeParameters(a)},removeAnchor:function(a){return CQ.shared.HTTP.removeAnchor(a)},getSchemeAndAuthority:function(a){return CQ.shared.HTTP.getSchemeAndAuthority(a)},internalize:function(a,b){return CQ.shared.HTTP.internalize(b)},externalize:function(a,b){return CQ.shared.HTTP.externalize(a,
12b)},encodePathOfURI:function(a){return CQ.shared.HTTP.encodePathOfURI(a)},encodePath:function(a){return CQ.shared.HTTP.encodePath(a)},getContextPath:function(){return CQ.shared.HTTP.getContextPath()},detectContextPath:function(){return CQ.shared.HTTP.detectContextPath()}
12,urlEncode:function(a){if(!a)return"";if("string"==typeof a)return a;var b=[],c;for(c in a){var d=a[c],e=encodeURIComponent(c),f=typeof d;if("undefined"==f)b.push(e,"\x3d\x26");else if("function"!=f&&"object"!=f)b.push(e,"\x3d",encodeURIComponent(d),
13"\x26");else if("array"==typeof d)if(d.length){f=0;for(var g=d.length;f<g;f++)b.push(e,"\x3d",encodeURIComponent(void 0===d[f]?"":d[f]),"\x26")}else b.push(e,"\x3d\x26")}b.pop();return b.join("")},getUID:function(){var a=Math.floor(Math.random()*(Math.pow(2,42)-1));return this.getTimestamp().toString(16)+a.toString(16)},getTimestamp:function(){return(new Date).getTime()},insert:function(a,b,c){if(!a||isNaN(b)||!c)return a;for(var d="",e=0,f=b;f<a.length;)d+=a.substring(e,f)+c,e+=b,f+=b;e<a.length&&
14(d+=a.substring(e));return d},addListener:function(){return window.addEventListener?function(a,b,c,d){a.addEventListener(b,c,d)}:window.attachEvent?function(a,b,c,d){a.attachEvent("on"+b,c)}:function(){}},removeListener:function(){return window.removeEventListener?function(a,b,c,d){a.removeEventListener(b,c,d)}:window.detachEvent?function(a,b,c){a.detachEvent("on"+b,c)}:function(){}}}};
15CQ_Analytics.ClickstreamcloudRenderingUtils=new function(){return{createLink:function(a,b,c,d){var e=document.createElement("a");e.href=d;e.onclick=b;e.innerHTML=a;if(c)for(var f in c)c.hasOwnProperty(f)&&(e[f]=c[f]);return e},createStaticLink:function(a,b,c){var d=document.createElement("a");d.href=b;d.innerHTML=a;d.title=c;d.alt=c;return d},createNameValue:function(a,b,c,d){var e=document.createElement("span");e.className=c||"ccl-data";e.innerHTML=a+" \x3d "+b;e.title=d;e.alt=d;return e},createText:function(a,
16b,c){var d=document.createElement("span");d.className=b||"ccl-data";a&&a.indexOf&&(-1!=a.indexOf("/home")&&-1!=a.indexOf("/image")||-1!=a.indexOf("/")&&-1!=a.indexOf(".png"))?d.innerHTML='\x3cimg src\x3d"'+a+'.prof.thumbnail.png" border\x3d"0"\x3e':a&&a.indexOf&&-1!=a.indexOf("www.gravatar.com")?d.innerHTML='\x3cimg src\x3d"'+a+'"\x3e':d.innerHTML=a;d.title=c;d.alt=c;return d},createEditablePropertySpan:function(a,b){var c="var editSpan \x3d this.parentNode; var readSpan \x3d this.parentNode.previousSibling;var newValue \x3d this.value;editSpan.style.display \x3d 'none'; readSpan.innerHTML \x3d '"+
17a+" \x3d '+value; readSpan.style.display \x3d 'block';",d=document.createElement("span");d.innerHTML="\x3cspan class\x3d\"ccl-data\" onclick\x3d\"var editSpan \x3d this.nextSibling; this.style.display \x3d 'none'; editSpan.style.display \x3d 'block';\"\x3e"+a+" \x3d "+b+"\x3c/span\x3e";d.innerHTML+='\x3cspan class\x3d"ccl-data" style\x3d"display: none;"\x3e'+a+' \x3d \x3cinput class\x3d"ccl-input" type\x3d"text" value\x3d"'+b+'" onblur\x3d"'+c+'"\x3e\x3c/span\x3e';d.className="ccl-data";return d}}};
18var generateURLSignature=function(a,b,c){if(a&&a.match(/^https?:\/\/maps\.googleapis\.com\//)){var d=a.replace(/^https?:\/\/[^/]*/,"").replace(/&amp;/g,"\x26");$CQ.ajax({url:CQ.shared.HTTP.externalize("/etc/cloudsettings/default/contexthub/geolocation.signature.json"),method:"get",dataType:"json",cache:!1,data:{url:d}}).done(function(e,f,g){g&&g.responseJSON?(e=this.baseURL.replace(/&amp;/g,"\x26"),e+="\x26client\x3d"+g.responseJSON.client,e+="\x26channel\x3d"+g.responseJSON.channel,e+="\x26signature\x3d"+
19g.responseJSON.signature,b(e)):"function"===typeof c&&c()}.bind({baseURL:a})).fail(c)}else b(a)};
20CQ_Analytics.ClientContextUtils=new function(){return{renderStoreProperty:function(a,b,c,d,e,f){if(CQ_Analytics&&CQ_Analytics.CCM)CQ_Analytics.CCM.onReady(function(){CQ_Analytics.ClientContextUtils.onStoreRegistered(b,function(){var g=CQ_Analytics.StoreRegistry.getStore(b);if(g){var t=function(){var k=g.getProperty(c)||f,n=$CQ("#"+a);if(!n.attr("contenteditable")||"inherit"==n.attr("contenteditable"))if("string"!=typeof k||(0!=k.indexOf("/")||-1==k.toLowerCase().indexOf(".png")&&-1==k.toLowerCase().indexOf(".jpg")&&
21-1==k.toLowerCase().indexOf(".gif"))&&0!=k.toLowerCase().indexOf("http"))k=CQ_Analytics.Variables.replaceVariables(k),k=CQ_Analytics.isUIAvailable?k&&""!=k?k=d+k+e:CQ.I18n.getMessage("No",null,"Ex: No address, No keywords")+" "+c:k&&""!=k?k=d+k+e:"No "+c,n.html()!=k&&!1!==g.fireEvent("beforepropertyrender",g,a)&&(n.html(k),g.fireEvent("propertyrender",g,a));else if(k&&""!=k){var h="";h=0==n.parents(".cq-cc-thumbnail").length||0==k.toLowerCase().indexOf("http")||0==k.indexOf("/libs/wcm/mobile")?k.replace(RegExp("\x26amp;",
22"g"),"\x26"):CQ.shared.HTTP.addParameter("/etc/clientcontext/shared/thumbnail/content.png","path",CQ_Analytics.Variables.replaceVariables(k));h=CQ_Analytics.Variables.replaceVariables(h);-1===(n.find("div").css("background-image")||"").indexOf(h+")")&&!1!==g.fireEvent("beforepropertyrender",g,a)&&generateURLSignature(CQ.shared.HTTP.externalize(h),function(p){
22n.html("");n.children().remove();$CQ("\x3cdiv\x3e").addClass("cq-cc-thumbnail-img").css("background-image","url("+p+")").appendTo(n);g.fireEvent("propertyrender",
23g,a)})}else n.children().remove(),CQ_Analytics.isUIAvailable?n.html(CQ.I18n.getMessage("No",null,"Ex: No address, No keywords")+" "+c):n.html("No "+c)};!1!==g.fireEvent("beforeinitialpropertyrender",g,a)&&(t(),g.addListener&&g.addListener("update",function(){t()}),g.fireEvent("initialpropertyrender",g,a))}})})},renderStore:function(a,b){if(CQ_Analytics&&CQ_Analytics.CCM&&a&&b)CQ_Analytics.CCM.onReady(function(){CQ_Analytics.ClientContextUtils.onStoreRegistered(b,function(){var c=CQ_Analytics.StoreRegistry.getStore(b);
24if(c){c.divId=a;var d=function(){!1!==c.fireEvent("beforerender",c,c.divId)&&(c.renderer(c,c.divId),c.fireEvent("render",c,c.divId))};!1!==c.fireEvent("beforeinitialrender",c,a)&&(d(),c.addListener&&c.addListener("update",function(){d()}),c.fireEvent("initialrender",c,a))}})})},storesOptionsProvider:function(){var a=[],b=CQ_Analytics.StoreRegistry.getStores(),c;for(c in b)a.push({value:c});return a},storePropertiesOptionsProvider:function(a,b){var c=[];if(a=CQ_Analytics.StoreRegistry.getStore(a))for(var d=
25a.getPropertyNames(),e=0;e<d.length;e++){var f=d[e];if(!CQ.shared.XSS.KEY_REGEXP.test(f)){var g={value:f};b&&(g.text=f+" - "+a.getProperty(f));c.push(g)}}return c},onStoreRegistered:function(a,b){if(b){var c=CQ_Analytics.StoreRegistry.getStore(a);c?b.call(c,c):CQ_Analytics.CCM.addListener("storeregister",function(d,e){e.getName()==a&&b.call(e,e)})}},onStoreInitialized:function(a,b,c){!0===c&&(c=CQ_Analytics.ClientContextUtils.DEFAULT_INIT_DELAY);var d=function(){var f=CQ_Analytics.StoreRegistry.getStore(a);
26f.DELAYED_INIT_TIMEOUT&&(window.clearTimeout(f.DELAYED_INIT_TIMEOUT),f.DELAYED_INIT_TIMEOUT=null);0<c?f.DELAYED_INIT_TIMEOUT=window.setTimeout(function(){f.DELAYED_INIT_TIMEOUT=null;b.call(f,"initialize",f)},c):b.call(f,"initialize",f)},e=CQ_Analytics.StoreRegistry.getStore(a);e?e.isInitialized()?(d.call(e),e.addListener("initialize",function(f,g){d.call(g)})):e.addListener("initialize",function(f,g){d.call(g)}):CQ_Analytics.CCM.addListener("storeregister",function(f,g){if(g.getName()==a)CQ_Analytics.ClientContextUtils.onStoreInitialized(a,
27b,c)})},init:function(a,b,c){CQ_Analytics.ClientContextMgr.PATH=a;CQ_Analytics.ClientContextMgr.loadConfig(c,!0);$CQ.ajax({url:CQ.shared.HTTP.externalize(a+"/content/jcr:content/stores.init.js"),cache:!1,async:!0,dataType:"script",data:{path:b}})},initUI:function(a,b,c){CQ_Analytics.ClientContextUI.create(a,b,c)}}};CQ_Analytics.ClientContextUtils.DEFAULT_INIT_DELAY=200;
28CQ_Analytics.Variables=new function(){return{containsVariable:function(a){return 0<CQ_Analytics.Variables.getVariables(a).length},getVariables:function(a){return a&&"string"==typeof a?(a=a.match(RegExp("\\$\\{([\\w/]*)\\}","ig")))?a:[]:[]},replaceVariables:function(a){if(!a)return a;var b="",c=a;for(a=CQ_Analytics.Variables.getVariables(a);0<a.length&&-1==b.indexOf(a.join());){for(var d=0;d<a.length;d++){var e=CQ_Analytics.Variables.getPropertyPath(a[d]),f=CQ_Analytics.ClientContext.get(e)||"";c=
29CQ_Analytics.Variables.replace(c,e,f)}b+=a.join();a=CQ_Analytics.Variables.getVariables(c)}return c},getPropertyPath:function(a){return!a||2>a.length?null:a.substring(2,a.length-1)},getPropertyName:function(a){if(a=CQ_Analytics.Variables.getPropertyPath(a))if(a=a.split("/"),3==a.length)return a[2];return null},getStoreName:function(a){if(a=CQ_Analytics.Variables.getPropertyPath(a))if(a=a.split("/"),1<a.length)return a[1];return null},replace:function(a,b,c){return a.replace(new RegExp("\\$\\{"+b+
30"\\}","ig"),c)}}};CQ_Analytics.SessionPersistence=CQ.shared.ClientSidePersistence;CQ_Analytics.Cookie=CQ.shared.ClientSidePersistence.CookieHelper;CQ_Analytics.Observable=function(){this.fireEvent=function(a){if(a&&this.listeners&&!this.suppressEvents){a=a.toLowerCase();for(var b=Array.prototype.slice.call(arguments,0),c=this.listeners.slice(0),d=0;d<c.length;d++){var e=c[d];if(a==e.event&&!1===e.fireFn.apply(e.scope||this||window,b))return!1}}return!0}};
31CQ_Analytics.Observable.prototype.addListener=function(a,b,c){this.listeners=this.listeners||[];a&&b&&this.listeners.push({event:a.toLowerCase(),fireFn:b,scope:c})};CQ_Analytics.Observable.prototype.removeListener=function(a,b){this.listeners=this.listeners||[];if(a&&b)for(var c=0;c<this.listeners.length;c++)this.listeners[c].event==a&&this.listeners[c].fireFn==b&&this.listeners.splice(c,1)};CQ_Analytics.Observable.prototype.setSuppressEvents=function(a){this.suppressEvents=a};
32CQ_Analytics.Observable.prototype.listeners=null;CQ_Analytics.Observable.prototype.suppressEvents=!1;CQ_Analytics.StoreRegistry||(CQ_Analytics.StoreRegistry=new function(){var a={};return{register:function(b){b.STORENAME&&(a[b.STORENAME]=b)},getStores:function(){return a},getStore:function(b){return a[b]}}});CQ_Analytics.SessionStore=function(){};CQ_Analytics.SessionStore.prototype=new CQ_Analytics.Observable;
33CQ_Analytics.SessionStore.prototype.setProperty=function(a,b){null==this.data&&this.init();this.data[a]=b;this.fireEvent("update",a)};CQ_Analytics.SessionStore.prototype.setProperties=function(a){null==this.data&&this.init();var b=[],c;for(c in a)a.hasOwnProperty(c)&&(b.push(c),this.data[c]=a[c]);0<b.length&&this.fireEvent("update",b)};CQ_Analytics.SessionStore.prototype.initialized=!1;CQ_Analytics.SessionStore.prototype.init=function(){this.initialized=!0;this.fireEvent("initialize",this)};
34CQ_Analytics.SessionStore.prototype.getLabel=function(a){return a};CQ_Analytics.SessionStore.prototype.getLink=function(a){return a};CQ_Analytics.SessionStore.prototype.removeProperty=function(a){null==this.data&&this.init();this.data[a]&&delete this.data[a];this.fireEvent("update",a)};CQ_Analytics.SessionStore.prototype.getPropertyNames=function(a){null==this.data&&this.init();a=a?a:[];var b=[],c;for(c in this.data)-1==CQ_Analytics.Utils.indexOf(a,c)&&b.push(c);return b};
35CQ_Analytics.SessionStore.prototype.getSessionStore=function(){return this};CQ_Analytics.SessionStore.prototype.clear=function(){this.data=null};CQ_Analytics.SessionStore.prototype.getData=function(a){null==this.data&&this.init();if(a){var b={},c;for(c in this.data)-1==CQ_Analytics.Utils.indexOf(a,c)&&(b[c]=this.data[c]);return b}return this.data};CQ_Analytics.SessionStore.prototype.reset=function(){null!=this.data&&(this.data=null,this.fireEvent("update"))};
36CQ_Analytics.SessionStore.prototype.getProperty=function(a,b){null==this.data&&this.init();a=this.data[a];return b?a:CQ.shared.XSS.getXSSValue(a)};CQ_Analytics.SessionStore.prototype.getName=function(){return this.STORENAME};CQ_Analytics.SessionStore.prototype.addInitProperty=function(a,b){this.initProperty||(this.initProperty={});this.initProperty[a]=b};CQ_Analytics.SessionStore.prototype.getInitProperty=function(a){return this.initProperty?this.initProperty[a]:null};
37CQ_Analytics.SessionStore.prototype.loadInitProperties=function(a,b){if(a)for(var c in a)this.addInitProperty(c,a[c]),b&&this.data&&void 0===this.data[c]&&this.setProperty(c,a[c])};CQ_Analytics.SessionStore.prototype.isInitialized=function(){return this.initialized};CQ_Analytics.PersistedSessionStore=function(){};CQ_Analytics.PersistedSessionStore.prototype=new CQ_Analytics.SessionStore;CQ_Analytics.PersistedSessionStore.prototype.STOREKEY="key";
38CQ_Analytics.PersistedSessionStore.prototype.setNonPersisted=function(a){this.nonPersisted||(this.nonPersisted={});this.nonPersisted[a]=!0};CQ_Analytics.PersistedSessionStore.EXCLUDED_PROPERTIES_REGEX="^generated*";CQ_Analytics.PersistedSessionStore.prototype.isPersisted=function(a){this.nonPersisted||(this.nonPersisted={});return!0!==this.nonPersisted[a]&&!(new RegExp(CQ_Analytics.PersistedSessionStore.EXCLUDED_PROPERTIES_REGEX,"ig")).test(a)&&!$CQ.isFunction(this.data[a])&&"object"!=typeof this.data[a]};
39CQ_Analytics.PersistedSessionStore.prototype.getStoreKey=function(){return this.STOREKEY};CQ_Analytics.PersistedSessionStore.prototype.persist=function(){!1!==this.fireEvent("beforepersist")&&((new CQ_Analytics.SessionPersistence({container:"ClientContext"})).set(this.getStoreKey(),this.toString()),this.fireEvent("persist"))};
40CQ_Analytics.PersistedSessionStore.prototype.setProperty=function(a,b){null==this.data&&this.init();this.data[a]=b;this.isPersisted(a)&&this.persist();this.fireEvent("update",a)};CQ_Analytics.PersistedSessionStore.prototype.setProperties=function(a){null==this.data&&this.init();var b=[],c=!1,d;for(d in a)a.hasOwnProperty(d)&&(b.push(d),this.data[d]=a[d],this.isPersisted(d)&&(c=!0));c&&this.persist();0<b.length&&this.fireEvent("update",b)};
41CQ_Analytics.PersistedSessionStore.prototype.toString=function(){var a=null;if(this.data)for(var b in this.data)if(this.isPersisted(b)&&this.data.hasOwnProperty(b)){a=null===a?"":a+",";var c=b+"\x3d",d;(d=this.data[b])&&"string"==typeof d&&(d=d.replace(RegExp(",","g"),"\x26#44;"),d=d.replace(RegExp("\x3d","g"),"\x26#61;"),d=d.replace(RegExp("\\|","g"),"\x26#124;"));a+=c+d}return a};
42CQ_Analytics.PersistedSessionStore.prototype.parse=function(a){var b={};a=a.split(",");for(var c in a)if(a.hasOwnProperty(c)){var d=a[c].split("\x3d");if(2==d.length){var e=d[0];(d=d[1])&&"string"==typeof d&&(d=d.replace(RegExp("\x26#44;","g"),","),d=d.replace(RegExp("\x26#61;","g"),"\x3d"),d=d.replace(RegExp("\x26#124;","g"),"|"));b[e]=d}}return b};CQ_Analytics.PersistedSessionStore.prototype.reset=function(a){null!=this.data&&(this.data={},this.persist(),this.data=null,a||this.fireEvent("update"))};
43CQ_Analytics.PersistedSessionStore.prototype.removeProperty=function(a){null==this.data&&this.init();this.data[a]&&(delete this.data[a],this.isPersisted(a)&&this.persist());this.fireEvent("update",a)};CQ_Analytics.PersistedSessionStore.prototype.clear=function(){(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).remove(this.getStoreKey());this.data=null};
44CQ_Analytics.ClientContextMgr||(CQ_Analytics.ClientContextMgr=function(){this.clientcontextToServer=this.clientcontext=null;this.stores={};this.config=this.data=null;this.areStoresLoaded=this.isConfigLoaded=!1},CQ_Analytics.ClientContextMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.ClientContextMgr.prototype.STOREKEY="CLIENTCONTEXT",CQ_Analytics.ClientContextMgr.prototype.STORENAME="clientcontext",CQ_Analytics.ClientContextMgr.prototype.INITIALIZATION_EVENT_TIMER=1E3,CQ_Analytics.ClientContextMgr.prototype.CONFIG_PATH=
45CQ_Analytics.Utils.externalize("/etc/clientcontext/legacy/config.json",!0),CQ_Analytics.ClientContextMgr.prototype.init=function(){this.initialized||(this.clientcontext={},this.clientcontextToServer={});var a=(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).get(this.getStoreKey());this.data=a?this.parse(a):{};this.initialized=!0;this.fireEvent("initialize",this)},CQ_Analytics.ClientContextMgr.prototype.getSessionId=function(){this.data.sessionId||this.setSessionId(CQ_Analytics.Utils.getUID());
46return this.data.sessionId},CQ_Analytics.ClientContextMgr.prototype.setSessionId=function(a){a&&this.setProperty("sessionId",a)},CQ_Analytics.ClientContextMgr.prototype.getVisitorId=function(){return this.data.visitorId},CQ_Analytics.ClientContextMgr.prototype.setVisitorId=function(a){this.setProperty("visitorId",a)},CQ_Analytics.ClientContextMgr.prototype.getId=function(){var a=this.getVisitorId();return a?a:this.getSessionId()},CQ_Analytics.ClientContextMgr.prototype.isAnonymous=function(){return!this.getVisitorId()},
47CQ_Analytics.ClientContextMgr.prototype.isMode=function(a){return CQ_Analytics.ClientContextMgr.ServerStorage.isMode(a)},CQ_Analytics.ClientContextMgr.prototype.get=function(a){null==this.clientcontext&&this.init();return a?this.clientcontextToServer:this.clientcontext},CQ_Analytics.ClientContextMgr.prototype.register=function(a){null==this.clientcontext&&this.init();var b=this;this.clientcontext[a.getName()]=a.getData();this.stores[a.getName()]=a;CQ_Analytics.StoreRegistry.register(a);var c=this.getStoreConfig(a.getName());
48!1!==c.stats&&"false"!=c.stats&&(this.clientcontextToServer[a.getName()]=a.getData(c.excludedFromStats));this.initTimer&&(window.clearTimeout(this.initTimer),this.initTimer=null);this.initTimer=window.setTimeout(function(){b.fireEvent("storesinitialize");b.areStoresInitialized=!0},this.isConfigLoaded&&"undefined"!==typeof this.config.initializationEventTimer?this.config.initializationEventTimer:this.INITIALIZATION_EVENT_TIMER);a.addListener("update",function(){b.update(a)});CQ_Analytics.ClientContextMgr.ServerStorage.handleStoreRegistration(a);
49this.addListener("clear",function(){a.clear()});this.fireEvent("storeregister",a);this.fireEvent("storeupdate",a)},CQ_Analytics.ClientContextMgr.prototype.update=function(a){null==this.clientcontext&&this.init();this.clientcontext[a.getName()]=a.getData();var b=this.getStoreConfig(a.getName());!1!==b.stats&&"false"!=b.stats&&(this.clientcontextToServer[a.getName()]=a.getData(b.excludedFromStats));this.fireEvent("storeupdate",a)},CQ_Analytics.ClientContextMgr.prototype.startPosting=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.startPosting()},
50CQ_Analytics.ClientContextMgr.prototype.stopPosting=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.stopPosting(
50)},CQ_Analytics.ClientContextMgr.prototype.post=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.post()},CQ_Analytics.ClientContextMgr.prototype.getCCMToJCR=function(){return CQ_Analytics.ClientContextMgr.ServerStorage.getCCMToJCR()},CQ_Analytics.ClientContextMgr.prototype.getName=function(){return this.STORENAME},CQ_Analytics.ClientContextMgr.prototype.clear=
51function(){this.clientcontextToServer=this.clientcontext=null;this.fireEvent("clear")},CQ_Analytics.ClientContextMgr.prototype.getRegisteredStore=function(a){return this.stores&&this.stores[a]?this.stores[a]:null},CQ_Analytics.ClientContextMgr.prototype.loadConfig=function(a,b){var c=function(d,e){"undefined"===typeof e&&(e={});d.config=e;d.isConfigLoaded=!0;d.fireEvent("configloaded");d.fireEvent("storesloaded");d.areStoresLoaded=!0};a?c(this,a):b?c(this,{}):(a={},a.path=CQ_Analytics.Utils.getPagePath(),
52a.cq_ck=(new Date).valueOf(),b=this.CONFIG_PATH,b+="?"+CQ_Analytics.Utils.urlEncode(a),CQ_Analytics.Utils.load(b,function(d,e,f){d={};try{d=eval("config \x3d "+f.responseText)}catch(g){}c(this,d)},this))},CQ_Analytics.ClientContextMgr.prototype.getConfig=function(){return this.config},CQ_Analytics.ClientContextMgr.prototype.getStoreConfig=function(a){return this.config&&this.config.configs&&this.config.configs[a]&&this.config.configs[a].store?this.config.configs[a].store:{}},CQ_Analytics.ClientContextMgr.prototype.getEditConfig=
53function(a){return this.config&&this.config.configs&&this.config.configs[a]&&this.config.configs[a].edit?this.config.configs[a].edit:{}},CQ_Analytics.ClientContextMgr.prototype.getUIConfig=function(a){return this.config&&this.config.configs&&this.config.configs[a]&&this.config.configs[a].ui?this.config.configs[a].ui:{}},CQ_Analytics.ClientContextMgr.prototype.getInitialData=function(a){return this.config&&this.config.data&&this.config.data[a]?this.config.data[a]:{}},CQ_Analytics.ClientContextMgr.prototype.getStores=
54function(){return this.stores},CQ_Analytics.ClientContextMgr.prototype.onReady=function(a,b){a&&(this.areStoresLoaded?a.call(b):this.addListener("storesloaded",a,b))},CQ_Analytics.ClientContextMgr=new CQ_Analytics.ClientContextMgr,CQ_Analytics.CCM=CQ_Analytics.ClientContextMgr,CQ_Analytics.ClickstreamcloudMgr=CQ_Analytics.CCM,CQ_Analytics.ContextCloudMgr=CQ_Analytics.CCM,CQ_Analytics.ClientContextMgr.PATH=null,CQ_Analytics.ClientContextMgr.getClientContextURL=function(a){return CQ_Analytics.ClientContextMgr.PATH+
55a},window.setTimeout(function(){CQ_Analytics.CCM.init()},1),CQ_Analytics.Utils.addListener(window,"unload",function(){try{for(var a in CQ_Analytics.ClientContextMgr)delete CQ_Analytics.ClientContextMgr[a];CQ_Analytics.ClientContextMgr=null}catch(b){}CQ_Analytics.CCM=null}));
56window.CQ_Analytics&&window.CQ_Analytics.ClientContextMgr&&!window.CQ_Analytics.ClientContextMgr.ServerStorage&&(CQ_Analytics.ClientContextMgr.ServerStorage=function(){this.initialized=this.posting=!1},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_PAGELOAD=1,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_TIMER=2,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE_DATAUPDATE=4,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_TIMER=600,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_PROCESS_TIMER=
5760,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_MODE=6,CQ_Analytics.ClientContextMgr.ServerStorage.prototype.POST_PATH="/var/statistics/",CQ_Analytics.ClientContextMgr.ServerStorage.prototype.init=function(){if(this.isMode(CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_TIMER)){var a=this;(function(){a.timer=window.setInterval(function(){try{var b=parseInt(a.data.lastPost),c=!1;isNaN(b)?c=!0:(new Date).getTime()>b+1E3*CQ_Analytics.ClientContextMgr.ServerStorage.POST_TIMER&&(c=
58!0)}catch(d){}c&&a.post()},1E3*CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER)}).call(this)}this.initialized=!0},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.isMode=function(a){return 0<(CQ_Analytics.CCM.POST_MODE&a)},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.handleStoreRegistration=function(a){this.initialized||this.init();this.isMode(CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_DATAUPDATE)&&a.addListener("persist",function(){CQ_Analytics.ClientContextMgr.ServerStorage.post(a)})},
59CQ_Analytics.ClientContextMgr.ServerStorage.prototype.startPosting=function(){this.posting=!0},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.stopPosting=function(){this.posting=!1},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.post=function(a,b){if(this.posting||b)try{var c=this.getCCMToJCR(a),d=CQ_Analytics.Utils.getTimestamp();c["./jcr:primaryType"]="nt:unstructured";c["./sessionId"]=CQ_Analytics.CCM.getSessionId();var e=this.POST_PATH+"clientcontext/";if(CQ_Analytics.CCM.isAnonymous()){var f=
60CQ_Analytics.Utils.insert(CQ_Analytics.CCM.getId(),2,"/");
60e+="anonymous/"+f+"/"+d}else e+="users/"+CQ_Analytics.CCM.getId()+"/"+d;CQ_Analytics.Utils.post(e,null,c);this.lastPost=d}catch(g){}},CQ_Analytics.ClientContextMgr.ServerStorage.prototype.getCCMToJCR=function(a){var b=CQ_Analytics.CCM.get(!0),c={},d;for(d in b)if(!a||d==a){var e=b[d];encodeURIComponent(d);if("object"==typeof e)for(var f in e){var g=e[f];f=f.replace(":","/");c["./"+d+"/./"+f]=g}else c["./"+d]=e}return c},CQ_Analytics.ClientContextMgr.ServerStorage=
61new CQ_Analytics.ClientContextMgr.ServerStorage,CQ_Analytics.ClickstreamcloudMgr.POST_MODE_PAGELOAD=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_PAGELOAD,CQ_Analytics.ClickstreamcloudMgr.POST_MODE_TIMER=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_TIMER,CQ_Analytics.ClickstreamcloudMgr.POST_MODE_DATAUPDATE=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE_DATAUPDATE,CQ_Analytics.ClickstreamcloudMgr.POST_TIMER=CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER,CQ_Analytics.ClickstreamcloudMgr.POST_PROCESS_TIMER=
62CQ_Analytics.ClientContextMgr.ServerStorage.POST_PROCESS_TIMER,CQ_Analytics.ClickstreamcloudMgr.POST_MODE=CQ_Analytics.ClientContextMgr.ServerStorage.POST_MODE,CQ_Analytics.ClickstreamcloudMgr.POST_PATH=CQ_Analytics.ClientContextMgr.ServerStorage.POST_PATH);CQ_Analytics.Percentile={};
63CQ_Analytics.Percentile.matchesPercentiles=function(a){var b=ClientContext.get("/surferinfo/percentile");b?b=Number(b):(b=Math.round(100*Math.random()),ClientContext.set("/surferinfo/percentile",b));for(var c=0;c<a.length;c++){var d=a[c];if(Number(d.start)<=b&&b<Number(d.end))return!0}return!1};
64CQ_Analytics.SegmentMgr||(CQ_Analytics.SegmentMgr=function(){this.SEGMENTATION_ROOT="/etc/segmentation";this.SEGMENT_SELECTOR=".segment.js";this.SEGMENTATION_SCRIPT_LOADER="cq-segmentation-loader";this.segments={};this.boosts={};var a=this;this.fireUpdate=function(){a.fireEvent("update")};this.init()},CQ_Analytics.SegmentMgr.prototype=new CQ_Analytics.SessionStore,CQ_Analytics.SegmentMgr.prototype.STORENAME="segments",CQ_Analytics.SegmentMgr.prototype.register=function(a,b,c){this.segments[a]=b;this.rulesCache&&
65this.rulesCache[a]&&(this.rulesCache[a]=!1);this.boosts[a]=isNaN(c)?0:parseInt(c);this.fireUpdate()},CQ_Analytics.SegmentMgr.prototype.resolveArray=function(a,b,c){b=b||CQ_Analytics.ClientContextMgr.get();if(!(a instanceof Array))return this.resolve(a,b);c="AND"==c?"AND":"OR";for(var d="AND"==c,e=0;e<a.length;e++){var f=this.resolve(a[e],b);if("AND"==c){if(!0!==f)return f}else if(!0===f)return!0}return d},CQ_Analytics.SegmentMgr.prototype.resolve=function(a,b){b=b||CQ_Analytics.ClientContextMgr.get();
66if(!a)return!1;if(a instanceof Array)return this.resolveArray(a,b);if(0!=a.indexOf(this.SEGMENTATION_ROOT))return!1;if(a==this.SEGMENTATION_ROOT||!this.segments[a])return!0;var c=a.substring(0,a.lastIndexOf("/"));if(0==c.indexOf(this.SEGMENTATION_ROOT)&&(c=this.resolve(c,b),!0!==c))return c;c="function(clientcontext, contextcloud, clickstreamcloud) { return true  \x26\x26 ( "+(this.segments[a]+" ) ");c+=";}";try{var d=null;this.rulesCache=this.rulesCache||{};this.rulesCache[a]?d=this.rulesCache[a]:
67(eval("f \x3d "+c),this.rulesCache[a]=d);var e=null==d||d(b,b,b)}catch(f){return"Unresolved - Error while evaluating segment "+a+" : "+f.message}return!0===e},CQ_Analytics.SegmentMgr.prototype.getResolved=function(a){a=a||CQ_Analytics.ClientContextMgr.get();var b=[],c;for(c in this.segments)!0===this.resolve(c,a)&&b.push(c);return b},CQ_Analytics.SegmentMgr.prototype.getMaxBoost=function(a,b){if(!(a instanceof Array))return this.getBoost(a);for(var c=0,d=0;d<a.length;d++){var e=a[d];!0===this.resolve(e,
68b)&&(e=this.boosts[e]||0,e>c&&(c=e))}return c},CQ_Analytics.SegmentMgr.prototype.getBoost=function(a){a instanceof Array||(a=[a]);return this.boosts[a]||0},CQ_Analytics.SegmentMgr.prototype.reload=function(a){a||(a=this.SEGMENTATION_ROOT);if(a){-1==a.indexOf(this.SEGMENT_SELECTOR)&&(a+=this.SEGMENT_SELECTOR);try{a+=(-1===a.indexOf("?")?"?":"\x26")+"_\x3d"+(new Date).getTime(),CQ_Analytics.Utils.load(a,function(b,c,d){d&&d.responseText&&eval(d.responseText)},this),CQ.HTTP.get(scripts[i].src)}catch(b){}}},
69CQ_Analytics.SegmentMgr.prototype.getSessionStore=function(){return this},CQ_Analytics.SegmentMgr.prototype.getProperty=function(a){return a},CQ_Analytics.SegmentMgr.prototype.getLink=function(a){return a+".html"}
69,CQ_Analytics.SegmentMgr.prototype.getLabel=function(a){if(a){var b=a,c=b.lastIndexOf("/");-1!=c&&(b=b.substring(c+1,b.length));c=this.resolve(a);if(!0===c)return b;if(!0!==c)return'\x3cspan class\x3d"invalid" title\x3d"'+c+'" alt\x3d"'+c+'"\x3e'+b+"\x3c/span\x3e"}return a},CQ_Analytics.SegmentMgr.prototype.getPropertyNames=
70function(){return this.getResolved()},CQ_Analytics.SegmentMgr=new CQ_Analytics.SegmentMgr,CQ_Analytics.SegmentMgr.loadSegments=function(a){CQ_Analytics.SegmentMgr.areSegmentsLoaded=!1;a&&0!==a.length?$CQ.ajax({url:CQ.shared.HTTP.externalize(a+this.SEGMENT_SELECTOR),dataType:"script",async:!0,cache:!0}).complete(function(){CQ_Analytics.SegmentMgr.areSegmentsLoaded=!0;CQ_Analytics.SegmentMgr.fireEvent("segmentsload")}):(CQ_Analytics.SegmentMgr.areSegmentsLoaded=!0,CQ_Analytics.SegmentMgr.fireEvent("segmentsload"))},
71CQ_Analytics.SegmentMgr.renderer=function(a,b){if(a&&a.STORENAME==CQ_Analytics.SegmentMgr.STORENAME){var c=a.getPropertyNames(),d=[];d.push("\x3cdiv\x3e");for(var e=0;e<c.length;e++){var f=c[e];d.push('\x3cspan title\x3d"'+a.getProperty(f)+'" \x3e\x3ca href\x3d"'+CQ.shared.HTTP.externalize(a.getLink(f))+'"  title\x3d"'+a.getProperty(f)+'" \x3e'+a.getLabel(f)+"\x3c/a\x3e\x3c/span\x3e")}d.push("\x3c/div\x3e");$CQ("#"+b).children().remove();$CQ("#"+b).append(d.join(""))}},CQ_Analytics.ClientContextMgr.addListener("storeupdate",
72CQ_Analytics.SegmentMgr.fireUpdate),CQ_Analytics.Utils.addListener(window,"unload",function(){try{for(var a in CQ_Analytics.SegmentMgr)delete CQ_Analytics.SegmentMgr[a]}catch(b){}CQ_Analytics.SegmentMgr=null}));
73CQ_Analytics.StrategyMgr||(CQ_Analytics.StrategyMgr=function(){this.strategies={}},CQ_Analytics.StrategyMgr.prototype={},CQ_Analytics.StrategyMgr.prototype.isRegistered=function(a){return!!this.strategies[a]},CQ_Analytics.StrategyMgr.prototype.register=function(a,b){"function"==typeof b&&(this.strategies[a]=b)},CQ_Analytics.StrategyMgr.prototype.choose=function(a,b){return 1==b.length?b[0]:this.strategies[a]?this.strategies[a].call(this,b):null},CQ_Analytics.StrategyMgr=new CQ_Analytics.StrategyMgr);
74CQ_Analytics.StrategyMgr.register("clickstream-score",function(a){if(1==a.length)return a[0];var b=[];if(window.CQ_Analytics&&window.CQ_Analytics.TagCloudMgr){var c=CQ_Analytics.TagCloudMgr.getTags();c=c||{};for(var d=-1,e=0;e<a.length;e++){var f=0,g=a[e].tags;if(g)for(var t=0;t<g.length;t++)f+=parseInt(c[g[t].tagID])||0;f==d?b.push(a[e]):f>d&&(b=[],b.push(a[e]),d=f)}}else b=a;if(1==b.length)return b[0];a=null;window.CQ_Analytics&&window.CQ_Analytics.PageDataMgr&&(a=CQ_Analytics.PageDataMgr.getProperty("random"));
75a||(a=window.CQ_StrategyRandom);a||(a=window.CQ_StrategyRandom=Math.random());1<parseFloat(a)&&(a=1/a);1==parseFloat(a)&&(a=0);return b[Math.floor(a*b.length)]});CQ_Analytics.StrategyMgr.register("first",function(a){return a[0]});
76CQ_Analytics.StrategyMgr.register("random",function(a){var b=null;window.CQ_Analytics&&window.CQ_Analytics.PageDataMgr&&(b=CQ_Analytics.PageDataMgr.getProperty("random"));b||(b=window.CQ_StrategyRandom);b||(b=window.CQ_StrategyRandom=Math.random());1<parseFloat(b)&&(b=1/b);1==parseFloat(b)&&(b=0);return a[Math.floor(b*a.length)]});
77CQ_Analytics.PageDataMgr||(CQ_Analytics.PageDataMgr=function(){},CQ_Analytics.PageDataMgr.prototype=new CQ_Analytics.SessionStore,CQ_Analytics.PageDataMgr.prototype.STORENAME="pagedata",CQ_Analytics.PageDataMgr.prototype.FORCE_EXPERIENCE_COOKIE="cq-forceexperience",CQ_Analytics.PageDataMgr.prototype.init=function(){this.data={};for(var a in this.initProperty)this.data[a]=this.initProperty[a];this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},CQ_Analytics.PageDataMgr.prototype.getLabel=
78function(a){return a},CQ_Analytics.PageDataMgr.prototype.getLink=function(a){return""}
78,CQ_Analytics.PageDataMgr.prototype.setExperience=function(a){CQ.shared.HTTP.setCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,a,"/")},CQ_Analytics.PageDataMgr.prototype.getExperience=function(){return CQ.shared.HTTP.getCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,"/")},CQ_Analytics.PageDataMgr.prototype.clearExperience=function(){CQ.shared.HTTP.clearCookie(CQ_Analytics.PageDataMgr.FORCE_EXPERIENCE_COOKIE,
79"/")},CQ_Analytics.PageDataMgr=new CQ_Analytics.PageDataMgr,CQ_Analytics.CCM.addListener("configloaded",function(){this.loadInitProperties(CQ_Analytics.CCM.getInitialData(this.getName()));this.init();CQ_Analytics.CCM.register(this)},CQ_Analytics.PageDataMgr));
80CQ_Analytics.BrowserInfo=function(){var a=navigator.userAgent.toLowerCase(),b=function(d){return d.test(a)},c=function(){if(b(/opera/))return{browserFamily:"Opera",browserVersion:""};if(b(/trident/)){var d={"7.0":"11","6.0":"10","5.0":"9","4.0":"8"},e=a.match(/trident\/([0-9\.]*)/),f="";e&&1<e.length&&(f=d[e[1]]);return{browserFamily:"IE",browserVersion:f}}return b(/edge/)?(e=a.match(/edge\/([0-9]*)/),f="",e&&1<e.length&&(f=e[1]),{browserFamily:"Edge",browserVersion:f}):b(/chrome/)?{browserFamily:"Chrome",
81browserVersion:""}:b(/safari/)?b(/applewebkit\/4/)?{browserFamily:"Safari",browserVersion:"2"}:b(/version\/3/)?{browserFamily:"Safari",browserVersion:"3"}:b(/version\/4/)?{browserFamily:"Safari",browserVersion:"4"}:b(/version\/5/)?{browserFamily:"Safari",browserVersion:"5"}:b(/version\/6/)?{browserFamily:"Safari",browserVersion:"6"}:{browserFamily:"Safari",browserVersion:"7 or higher"}:b(/webkit/)?{browserFamily:"WebKit",browserVersion:""}:b(/msie/)?b(/msie 6/)?{browserFamily:"IE",browserVersion:"6"}:
82b(/msie 7/)?{browserFamily:"IE",browserVersion:"7"}:b(/msie 8/)?{browserFamily:"IE",browserVersion:"8"}:b(/msie 9/)?{browserFamily:"IE",browserVersion:"9"}:b(/msie 10/)?{browserFamily:"IE",browserVersion:"10"}:{browserFamily:"IE",browserVersion:"11 or higher"}:b(/gecko/)?b(/rv:1\.8/)?{browserFamily:"Firefox",browserVersion:"2"}:b(/rv:1\.9/)?{browserFamily:"Firefox",browserVersion:"3"}:b(/rv:2.0/)?{browserFamily:"Firefox",browserVersion:"4"}:b(/rv:5./)?{browserFamily:"Firefox",browserVersion:"5"}:
83b(/rv:6./)?{browserFamily:"Firefox",browserVersion:"6"}:b(/rv:7./)?{browserFamily:"Firefox",browserVersion:"7"}:b(/rv:8./)?{browserFamily:"Firefox",browserVersion:"8"}:b(/rv:9./)?{browserFamily:"Firefox",browserVersion:"9"}:{browserFamily:"Firefox",browserVersion:"10 or higher"}:b(/adobeair/)?{browserFamily:"Adobe AIR",browserVersion:""}:{browserFamily:"Unresolved",browserVersion:"Unresolved"}}.call();this.browserFamily=c.browserFamily;this.browserVersion=c.browserVersion;this.OSName=b(/windows 98|win98/)?
84"Windows 98":b(/windows nt 5.0|windows 2000/)?"Windows 2000":b(/windows nt 5.1|windows xp/)?"Windows XP":b(/windows nt 5.2/)?"Windows Server 2003":b(/windows nt 6.0/)?"Windows Vista":b(/windows nt 6.1/)?"Windows 7":b(/windows nt 6.2/)?"Windows 8":b(/windows nt 6.3/)?"Windows 8.1":b(/windows nt 10.0/)?"Windows 10":b(/windows nt 4.0|winnt4.0|winnt/)?"Windows NT 4.0":b(/windows me/)?"Windows ME":b(/mac os x/)?b(/ipad/)||b(/iphone/)?"iOS":"Mac OS X":b(/macintosh|mac os/)?"Mac OS":b(/android/)?"Android":
85b(/linux/)?"Linux":"Unresolved";this.deviceType=b(/ipad/)?"iPad":b(/iphone/)?"iPhone":b(/mobi/)?"Mobile":"Desktop";this.ua=a;/^https/i.test(window.location.protocol);this.screenResolution=screen.width+"x"+screen.height};
86CQ_Analytics.BrowserInfo.prototype={getBrowserName:function(){return this.browserFamily+" "+this.browserVersion},getBrowserFamily:function(){return this.browserFamily},getBrowserVersion:function(){return this.browserVersion},getOSName:function(){return this.OSName},getScreenResolution:function(){return this.screenResolution},getDeviceType:function(){return this.deviceType},getUserAgent:function(){return this.ua},isMobile:function(a){a||(a=this.getDeviceType());a=a?a.toLowerCase():"desktop";return"desktop"!=
87a},isIE:function(a){return"IE"==this.getBrowserFamily()&&(a?this.getBrowserVersion()==a:!0)},isIE6:function(){return this.isIE("6")},isIE7:function(){return this.isIE("7")},isIE8:function(){return this.isIE("8")},isIE9:function(){return this.isIE("9")}};CQ_Analytics.BrowserInfoInstance=new CQ_Analytics.BrowserInfo;
88CQ_Analytics.MousePositionMgr||(CQ_Analytics.MousePositionMgr=function(){this.position={x:0,y:0};this.getPageX=function(b){var c=b.pageX;c||0===c||(c=b.clientX||0);return c};this.getPageY=function(b){var c=b.pageY;c||0===c||(c=b.clientY||0);return c};var a=this;this.timer=null;$CQ(document).bind("mousemove",function(b,c,d,e){if((b=b||window.event)&&!a.timer){var f=a.getPageX(b),g=a.getPageY(b);a.timer=setTimeout(function(){a.setPosition(f,g);a.timer=null},500)}});this.init()},CQ_Analytics.MousePositionMgr.prototype=
89new CQ_Analytics.SessionStore,CQ_Analytics.MousePositionMgr.prototype.STORENAME="mouseposition",CQ_Analytics.MousePositionMgr.prototype.setPosition=function(a,b){this.position.x=a;this.position.y=b;this.fireEvent("update")},CQ_Analytics.MousePositionMgr.prototype.getProperty=function(a){return this.position[a]},CQ_Analytics.MousePositionMgr.prototype.getLabel=function(a){return a},CQ_Analytics.MousePositionMgr.prototype.getLink=function(a){return""},CQ_Analytics.MousePositionMgr.prototype.getPropertyNames=
90function(){var a=[],b;for(b in this.position)a.push(b);return a},CQ_Analytics.MousePositionMgr.prototype.getSessionStore=function(){return this},CQ_Analytics.MousePositionMgr.prototype.getData=function(a){return this.position},CQ_Analytics.MousePositionMgr.prototype.clear=function(){this.position={}},CQ_Analytics.MousePositionMgr=new CQ_Analytics.MousePositionMgr,CQ_Analytics.CCM.register(CQ_Analytics.MousePositionMgr));
91CQ_Analytics.EventDataMgr||(CQ_Analytics.EventDataMgr=function(){},CQ_Analytics.EventDataMgr.prototype=new CQ_Analytics.SessionStore,CQ_Analytics.EventDataMgr.prototype.STORENAME="eventdata",CQ_Analytics.EventDataMgr.prototype.init=function(){this.data={};for(var a in this.initProperty)this.data[a]=this.initProperty[a];this.initialized=!0;this.fireEvent("initialize",this);"undefined"!=typeof this.initProperty&&this.fireEvent("update")},CQ_Analytics.EventDataMgr.prototype.getLabel=function(a){return a},
92CQ_Analytics.EventDataMgr.prototype.getLink=function(a){return""},CQ_Analytics.EventDataMgr=new CQ_Analytics.EventDataMgr,CQ_Analytics.EventDataMgr.init(),CQ_Analytics.CCM.register(CQ_Analytics.EventDataMgr));
93window.CQ_Context||(window.CQ_Context=function(){},window.CQ_Context.prototype=new CQ_Analytics.Observable,window.CQ_Context.prototype.getProfile=function(){return function(){return{getUserId:function(){return this.getProperty("authorizableId")},getDisplayName:function(){var a=this.getProperty("formattedName");return a?a:(a=this.getProperty("displayName"))?a:this.getUserId()},getFirstname:function(){return this.getProperty("givenName")},getLastname:function(){return this.getProperty("familyName")},
94getEmail:function(){return this.getProperty("email")},getProperty:function(a){return window.CQ_Analytics&&window.CQ_Analytics.ProfileDataMgr?CQ_Analytics.ProfileDataMgr.getProperty(a):""},getProperties:function(){return window.CQ_Analytics&&window.CQ_Analytics.ProfileDataMgr?CQ_Analytics.ProfileDataMgr.getData():{}},getAvatar:function(){return this.getProperty("avatar")}
94,onUpdate:function(a,b){a&&CQ_Analytics&&CQ_Analytics.ProfileDataMgr&&CQ_Analytics.ProfileDataMgr.addListener("update",a,b||this)}}}()},
95window.CQ_Context=new window.CQ_Context);
96CQ_Analytics.Engine=function(){function a(){return!!(window.CQ&&CQ.WCM&&CQ.WCM.isEditMode())}function b(){return!!(window.CQ&&CQ.WCM&&CQ.WCM.isPreviewMode())}function c(h){var p=$CQ.Deferred(),x=CQ.WCM.getEditable(h);if(x)p.resolve(x);else CQ.WCM.onEditableReady(h,function(w){p.resolve(w)});return p.promise()}function d(h,p){CQ_Analytics.loadedTeasersStack||(CQ_Analytics.loadedTeasersStack=[],$CQ(window).unload(function(){try{var x=CQ_Analytics.loadedTeasersStack;if(x){delete CQ_Analytics.loadedTeasersStack;
97for(var w=p,l=0;l<x.length;l++)w=CQ.shared.HTTP.addParameter(w,"path",x[l]);CQ.shared.HTTP.get(w,function(){})}}catch(u){}}));CQ_Analytics.loadedTeasersStack.push(h.path)}function e(h,p,x){function w(v,y,C,z){return'\x3ca href\x3d"'+y+'" class\x3d"cq-teaser-segment-link"\x3e\x3cimg src\x3d"'+C+'" class\x3d"cq-teaser-decision-thumbnail '+(z?"cq-teaser-decision-match":"cq-teaser-decision-nomatch")+'"\x3e\x3c/a\x3e'+v+"\x3cbr\x3e"}for(var l="",u,q=0;q<h.length;q++){var m=h[q],r=CQ.shared.HTTP.externalize(m.teaser.path+
98".html");m.hasOwnProperty("boost")?(u=m.noSegment?CQ.I18n.getMessage("Experience: {0} - match (no segments, boost \x3d {1})",[m.teaser.title,m.boost]):CQ.I18n.getMessage("Experience: {0} - match (boost \x3d {1})",[m.teaser.title,m.boost]),u=w(u,r,m.teaser.thumbnail,!0),l=p===m.teaser.path?l+("\x3cb\x3e"+u+"\x3c/b\x3e"):l+u):(u=m.unknownSegment?CQ.I18n.getMessage("Experience: {0} - no match (unknown segment)",[m.teaser.title]):CQ.I18n.getMessage("Experience: {0} - no match",[m.teaser.title]),l+=w(u,
99r,m.teaser.thumbnail,!1))}l+="\x3cbr\x3e";l=x?l+CQ.I18n.getMessage("Strategy \x3cb\x3e{0}\x3c/b\x3e selected current teaser.",x):l+CQ.I18n.getMessage("No strategy configured, used the first match.");return l+"\x3cbr\x3e"}function f(h,p,x,w){h.done(function(l){l.teaserToolTip&&(l.teaserToolTip.hide(),l.teaserToolTip.remove());l.teaserToolTip=new CQ.Ext.Tip({html:e(p,x,w),title:CQ.I18n.getMessage("Selection decision"),width:450,autoHide:!1,closable:!0,height:300,floating:!0,autoHeight:!1,bodyStyle:"overflow-y: scroll;"});
100l.on(CQ.wcm.EditRollover.EVENT_SHOW_HIGHTLIGHT,function(u){this.teaserInfoButton||(this.teaserInfoButton=CQ.Ext.DomHelper.append("CQ",{tag:"div",cls:"x-tool x-tool-help cq-teaser-tooltip-tool"},!0),this.teaserInfoButton.position("absolute"),this.teaserInfoButton.on("click",function(){var q=this.getXY();l.teaserToolTip.setPosition(q[0]-460,q[1]-100);l.teaserToolTip.show()}));this.teaserInfoButton.anchorTo(u.frameBottom.getEl(),"tr",[-26,-15]);this.teaserInfoButton.show()});l.on(CQ.wcm.EditRollover.EVENT_HIDE_HIGHTLIGHT,
101function(u){this.teaserInfoButton&&this.teaserInfoButton.hide()})})}function g(h){h.done(function(p){p.teaserToolTip&&(p.teaserToolTip.hide(),p.teaserToolTip.remove(),p.teaserToolTip=null)})}function t(h,p){CQ_Analytics.Engine.stopTeaserLoader(h);k[h]=p}window.CQ_trackTeasersStats=!0;var k={},n={};return{stopTeaserLoader:function(h){if(h=h.path||h){var p=k[h];p&&(CQ_Analytics.SegmentMgr.removeListener("update",p),delete k[h])}},resolveTeaser:function(h,p,x){for(var w=[],l=0,u=0;u<h.length;u++){var q=
102h[u],m=q.segments;if(x){var r={teaser:q};x.push(r)}var v=!m||0===m.length;v&&r&&(r.noSegment=!0);!v&&CQ_Analytics.SegmentMgr.resolve(m)&&(v=!0,m&&0<m.length&&!CQ_Analytics.SegmentMgr.segments[m[0]]&&(v=!1,r&&(r.unknownSegment=!0)));v&&(m=CQ_Analytics.SegmentMgr.getMaxBoost(m),r&&(r.boost=m),m===l?w.push(q):m>l&&(w=[],w.push(q),l=m))}h=w;return 0===h.length?null:CQ_Analytics.StrategyMgr.choose(p,h)||h[0]},loadTeaser:function(h){if(a()){var p=CQ.WCM.getEditablePathFromDOM(document.getElementById(h.targetID));
103var x=c(p)}var w=ClientContext.get("campaign");w&&w.isCampaignSelected()&&!b||(w=function(){var l=CQ_Analytics.PageDataMgr.getExperience();if(l){CQ_Analytics.PageDataMgr.clearExperience();var u="/_jcr_content/par.html";a()&&(u+="?wcmmode\x3ddisabled");CQ_Analytics.Utils.loadElement(l+u,h.targetID)}else{var q=null;l=function(){var m=null;a()&&(m=[]);var r=ClientContext.get("campaign");if(r&&r.isCampaignSelected()){var v=r.data.path,y=r.data["recipe/path"],C=r.data.campaigns||[];r=h.teasers;for(var z,
104A=0;A<r.length;A++)"default"===r[A].name&&(z=r[A]);if(n[h.targetID]&&n[h.targetID][y])var B=n[h.targetID][y];else{if("DEFAULT"===y)B=z;else{for(A=0;A<C.length;A++){var G=C[A];
104if(C[A].path===v){G=G.experiences;for(var D=0;D<G.length;D++)if(G[D].path===y&&G[D].hasOwnProperty("segments"))for(var H=G[D].segments,I=0;I<H.length;I++);}}for(A=0;A<r.length;A++){y=r[A];if(v=y.hasOwnProperty("segments")&&y.segments.length===H.length)a:if(v=H,y=y.segments,v&&y&&v.length===y.length){v.sort();y.sort();for(C=0;C<
105v.length;C++)if(v[C]!==y[C]){v=!1;break a}v=!0}else v=!1;if(v){B=r[A];break}}}B||(B=z);n[h.targetID]={experience:B}}}else B=CQ_Analytics.Engine.resolveTeaser(h.teasers,h.strategy,m);B?q&&q.path===B.path||(q=B,CQ_Analytics.SegmentMgr.fireEvent("teaser-loaded",{campaignPath:B.campaignPath||"",campaignName:B.campainName||"",experiencePath:B.path||"",segmentName:B.title||"",segments:B.segments||[],targetElement:h.targetID}),z=B.url,a()&&(z+="?wcmmode\x3ddisabled"),CQ_Analytics.Utils.loadTeaserElement(z,
106h.targetID),window.CQ_trackTeasersStats&&h.trackingURL&&d(B,h.trackingURL),x&&f(x,m,q.path,h.strategy)):(x&&g(x),CQ_Analytics.Utils.clearElement(h.targetID),q=null)};l.call();CQ_Analytics.SegmentMgr&&(p&&t(p,l),CQ_Analytics.SegmentMgr.addListener("update",l));CQ_Analytics.CampaignMgr&&CQ_Analytics.CampaignMgr&&CQ_Analytics.CampaignMgr.addListener("update",l)}},CQ_Analytics.CCM.areStoresInitialized?w.call(this):CQ_Analytics.CCM.addListener("storesinitialize",w))}}}();window.CQ_trackTeasersStats=!0;
107function initializeTeaserLoader(a,b,c,d,e,f){d=!(!CQ.Ext||"true"!=d&&!0!==d);if(window.CQ_Analytics){var g=function(){var t="/_jcr_content/par.html";d&&(t+="?wcmmode\x3ddisabled");var k=CQ_Analytics.PageDataMgr.getExperience();if(k)CQ_Analytics.PageDataMgr.clearExperience(),CQ_Analytics.Utils.loadElement(k+t,c);else{var n=null;k=function(){var h=[];if(CQ_Analytics.SegmentMgr)for(var p=0,x=0;x<a.length;x++)if(!a[x].segments||0==a[x].segments.length||!0===CQ_Analytics.SegmentMgr.resolveArray(a[x].segments)){var w=
108CQ_Analytics.SegmentMgr.getMaxBoost(a[x].segments);w==p?h.push(a[x]):w>p&&(h=[],h.push(a[x]),p=w)}if(0<h.length){if(p=h[0],CQ_Analytics.StrategyMgr&&(h=CQ_Analytics.StrategyMgr.choose(b,h),null!=h&&(p=h)),!n||n.path!=p.path)if(n=p,h=p.path+t,h=CQ.shared.HTTP.addSelectors(h,CQ.shared.HTTP.getSelectors(window.location.href)),CQ_Analytics.Utils.loadTeaserElement(h,c),window.CQ_trackTeasersStats&&e&&(CQ_Analytics.loadedTeasersStack||(CQ_Analytics.loadedTeasersStack=[],$CQ(window).unload(function(){try{var u=
109CQ_Analytics.loadedTeasersStack;if(u){delete CQ_Analytics.loadedTeasersStack;for(var q=e,m=0;m<u.length;m++)q=CQ.shared.HTTP.addParameter(q,"path",u[m]);CQ.shared.HTTP.get(q,function(){})}}catch(r){}})),CQ_Analytics.loadedTeasersStack.push(p.path)),d&&f){var l=CQ.WCM.getEditable(f);l&&(l&&l.teaserToolTip?(l.teaserToolTip.hide(),l.teaserToolTip.remove(),l.teaserToolTip=null):(l.on(CQ.wcm.EditRollover.EVENT_SHOW_HIGHTLIGHT,function(u){this.teaserInfoButton||(this.teaserInfoButton=CQ.Ext.DomHelper.append("CQ",
110{tag:"div",cls:"x-tool x-tool-help cq-teaser-tooltip-tool"},!0),this.teaserInfoButton.position("absolute"),this.teaserInfoButton.on("click",function(){if(!l.teaserToolTip){var q=l,m=CQ.Ext.Tip,r=n.path,v="",y=[];if(CQ_Analytics.SegmentMgr)for(var C=0,z=0;z<a.length;z++){var A=CQ.shared.HTTP.externalize(a[z].path+".html");if(a[z].segments&&0!=a[z].segments.length&&!0!==CQ_Analytics.SegmentMgr.resolveArray(a[z].segments))A=[a[z].title,a[z].thumbnail,A],v+=CQ.I18n.getMessage('\x3ca href\x3d"{2}" class\x3d"cq-teaser-segment-link"\x3e\x3cimg src\x3d"{1}" class\x3d"cq-teaser-decision-thumbnail cq-teaser-decision-nomatch"\x3e\x3c/a\x3eExperience: {0} - no match\x3cbr\x3e',
111A);else{var B=CQ_Analytics.SegmentMgr.getMaxBoost(a[z].segments);A=[a[z].title,B,a[z].thumbnail,A];v=r==a[z].path?v+CQ.I18n.getMessage('\x3cb\x3e\x3ca href\x3d"{3}" class\x3d"cq-teaser-segment-link"\x3e\x3cimg src\x3d"{2}" class\x3d"cq-teaser-decision-thumbnail cq-teaser-decision-match"\x3e\x3c/a\x3eExperience: {0} - match ( boost \x3d {1} )\x3c/b\x3e\x3cbr\x3e',A):v+CQ.I18n.getMessage('\x3ca href\x3d"{3}" class\x3d"cq-teaser-segment-link"\x3e\x3cimg src\x3d"{2}" class\x3d"cq-teaser-decision-thumbnail cq-teaser-decision-match"\x3e\x3c/a\x3eExperience: {0} - match ( boost \x3d {1} )\x3cbr\x3e',
112A);B==C?y.push(a[z]):B>C&&(y=[],y.push(a[z]),C=B)}}v+=CQ.I18n.getMessage("\x3cbr\x3eStrategy \x3cb\x3e{0}\x3c/b\x3e selected current teaser.\x3cbr\x3e",b);q.teaserToolTip=new m({html:v,title:CQ.I18n.getMessage("Selection decision"),width:450,autoHide:!1,closable:!0,height:300,floating:!0,autoHeight:!1,bodyStyle:"overflow-y: 
112scroll;"})}q=this.getXY();l.teaserToolTip.setPosition(q[0]-460,q[1]-100);l.teaserToolTip.show()}));this.teaserInfoButton.anchorTo(u.frameBottom.getEl(),"tr",[-26,-15]);this.teaserInfoButton.show()}),
113l.on(CQ.wcm.EditRollover.EVENT_HIDE_HIGHTLIGHT,function(u){this.teaserInfoButton&&this.teaserInfoButton.hide()})))}}else d&&(l=CQ.WCM.getEditable(f))&&l.teaserToolTip&&(l.teaserToolTip.hide(),l.teaserToolTip.remove(),l.teaserToolTip=null),CQ_Analytics.Utils.clearElement(c),n=null};k.call();CQ_Analytics.SegmentMgr&&CQ_Analytics.SegmentMgr.addListener("update",k)}};CQ_Analytics.CCM.areStoresInitialized?g.call(this):CQ_Analytics.CCM.addListener("storesinitialize",g)}}
114window.CQ_trackLandingPagesStats=!0;
115function initializeLandingPageLoader(a,b,c,d,e){d=CQ.Ext&&("true"==d||!0===d);if(window.CQ_Analytics){var f=function(){var g=null,t=function(){var k=[];if(window.CQ_Analytics&&window.CQ_Analytics.SegmentMgr)for(var n=0,h=0;h<a.length;h++)if(!a[h].segments||0==a[h].segments.length||!0===CQ_Analytics.SegmentMgr.resolveArray(a[h].segments)){var p=CQ_Analytics.SegmentMgr.getMaxBoost(a[h].segments);p==n?k.push(a[h]):p>n&&(k=[],k.push(a[h]),n=p)}if(0<k.length){if(n=k[0],window.CQ_Analytics&&window.CQ_Analytics.StrategyMgr&&
116(k=CQ_Analytics.StrategyMgr.choose(b,k),null!=k&&(n=k)),!g||g.path!=n.path){var x=g;g=n;k=CQ.shared.HTTP.get(n.path+".html").responseText;k=function(q,m){if(q&&-1!=q.indexOf('id\x3d"'+m+'"')){m=q.indexOf('id\x3d"'+m+'"');m=q.substring(0,m).lastIndexOf("\x3cdiv");q=q.substring(m);m=q.split(RegExp("\x3cdiv","ig"));for(var r=0,v=0;v<m.length;v++){r++;for(var y=m[v].split(RegExp("\x3c/div","ig")),C=1;C<y.length;C++)if(r--,1==r)return r=m[v].lastIndexOf("\x3c/div")+6,r=q.indexOf(m[v])+r,q=q.substring(0,
117r),q=q.substring(q.indexOf("\x3e")+1,q.lastIndexOf("\x3c/div"))}}return""}(k,c);var w=$CQ("#"+c)[0],l=function(q,m){if(d){m=CQ.WCM.getEditables();for(var r in m){var v=m[r];q&&-1==v.path.indexOf(q)||(v.hide(),v.remove())}}},u=document.createElement("div");u.innerHTML=k;x?($CQ("object",w).parent().fadeOut("slow"),$CQ("img",w).fadeOut("slow"),$CQ(w).slideUp("slow",function(){l(x.path,!1);$CQ(w).children().remove();w.insertBefore(u,w.firstChild);$CQ(w).slideDown("slow",function(){d&&CQ.DOM.executeScripts(CQ.Ext.get(u))})})):
118(w.insertBefore(u,w.firstChild),$CQ(w).slideDown("slow",function(){d&&CQ.DOM.executeScripts(CQ.Ext.get(u))}));try{window.CQ_trackLandingPagesStats&&e&&(CQ_Analytics.loadedLandingPagesStack||(CQ_Analytics.loadedLandingPagesStack=[],$CQ(window).unload(function(){try{var q=CQ_Analytics.loadedLandingPagesStack;if(q){delete CQ_Analytics.loadedLandingPagesStack;for(var m=e,r=0;r<q.length;r++)m=CQ.shared.HTTP.addParameter(m,"path",q[r]);CQ.shared.HTTP.get(m,function(){})}}catch(v){}})),CQ_Analytics.loadedLandingPagesStack.push(n.path))}catch(q){}}}else CQ_Analytics.Utils.clearElement(c),
119g=null};t.call();window.CQ_Analytics&&window.CQ_Analytics.SegmentMgr&&CQ_Analytics.SegmentMgr.addListener("update",t)};window.CQ_Analytics&&window.CQ_Analytics.ClickstreamcloudMgr&&(CQ_Analytics.ClickstreamcloudMgr.areStoresLoaded?f.call(this):CQ_Analytics.ClickstreamcloudMgr.addListener("storesloaded",f))}}CQ_Analytics.PersistedJSONStore=function(){};CQ_Analytics.PersistedJSONStore.prototype=new CQ_Analytics.PersistedSessionStore;CQ_Analytics.PersistedJSONStore.prototype.STOREKEY="";
120CQ_Analytics.PersistedJSONStore.prototype.STORENAME="";CQ_Analytics.PersistedJSONStore.prototype.init=function(){var a=(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).get(this.getStoreKey());if(a&&""!=a)this.data=this.parse(a);else{this.data={};for(var b in this.initProperty)this.data[b]=this.initProperty[b]}this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")};
121CQ_Analytics.PersistedJSONStore.prototype.clear=function(){(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).remove(this.getStoreKey());this.data=null;this.initProperty={}};CQ_Analytics.PersistedJSONStore.prototype.initJSON=function(a,b){b||(this.initProperty={});var c=function(d,e,f){for(var g in f)"object"==typeof f[g]?c(d,e?e+"/"+g:g,f[g]):d[e?e+"/"+g:g]=f[g]};c(this.initProperty,null,a)};
122CQ_Analytics.PersistedJSONStore.prototype.getJSON=function(){var a=this.getData(),b={},c;for(c in a)for(var d=c.split("/"),e=b,f=0;f<d.length;f++){var g=d[f];f==d.length-1?e[g]=a[c]:(e[g]=e[g]||{},e=e[g])}return b};CQ_Analytics.PersistedJSONStore.getInstance=function(a,b){var c=new CQ_Analytics.PersistedJSONStore;c.STOREKEY=a.toUpperCase();c.STORENAME=a;c.initJSON(b);return c};
123CQ_Analytics.PersistedJSONStore.registerNewInstance=function(a,b){a=CQ_Analytics.PersistedJSONStore.getInstance(a,b);a.init();CQ_Analytics.CCM.register(a);return a};CQ_Analytics.JSONStore=function(){};CQ_Analytics.JSONStore.prototype=new CQ_Analytics.SessionStore;CQ_Analytics.JSONStore.prototype.STOREKEY="";CQ_Analytics.JSONStore.prototype.STORENAME="";
124CQ_Analytics.JSONStore.prototype.init=function(){this.data={};for(var a in this.initProperty)this.data[a]=this.initProperty[a];this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")};CQ_Analytics.JSONStore.prototype.clear=function(){this.data=null;this.initProperty={}};
125CQ_Analytics.JSONStore.prototype.initJSON=function(a,b){b||(this.initProperty={});var c=function(d,e,f){for(var g in f)"object"==typeof f[g]?c(d,e?e+"/"+g:g,f[g]):d[e?e+"/"+g:g]=f[g]};c(this.initProperty,null,a)};CQ_Analytics.JSONStore.prototype.getJSON=function(){var a=this.getData(),b={},c;for(c in a)for(var d=c.split("/"),e=b,f=0;f<d.length;f++){var g=d[f];f==d.length-1?e[g]=a[c]:(e[g]=e[g]||{},e=e[g])}return b};
126CQ_Analytics.JSONStore.getInstance=function(a,b){var c=new CQ_Analytics.JSONStore;c.STOREKEY=a.toUpperCase();c.STORENAME=a;c.initJSON(b);return c};CQ_Analytics.JSONStore.registerNewInstance=function(a,b){a=CQ_Analytics.JSONStore.getInstance(a,b);a.init();CQ_Analytics.CCM.register(a);return a};CQ_Analytics.PersistedJSONPStore=function(){};CQ_Analytics.PersistedJSONPStore.prototype=new CQ_Analytics.PersistedJSONStore;
127CQ_Analytics.PersistedJSONPStore.prototype.setServiceURL=function(a){this.serviceURL=a};CQ_Analytics.PersistedJSONPStore.prototype.getServiceURL=function(){return this.serviceURL};
128CQ_Analytics.PersistedJSONPStore.prototype.load=function(a,b,c){var d=this.getName();CQ_Analytics.PersistedJSONPStore.JSONPCallbacks[this.getName()]||(CQ_Analytics.PersistedJSONPStore.JSONPCallbacks[d]=function(e){var f=CQ_Analytics.CCM.getRegisteredStore(d);f&&(f.initJSON(e),b&&f.initJSON(b,!0));c&&c.call(f)});a&&this.setServiceURL(a);a=this.serviceURL;a=a.replace("${callback}","CQ_Analytics.PersistedJSONPStore.JSONPCallbacks."+d);$CQ.getScript(a)};
129CQ_Analytics.PersistedJSONPStore.JSONPCallbacks={};CQ_Analytics.PersistedJSONPStore.getInstance=function(a,b,c,d,e){if(a&&b)try{var f=new CQ_Analytics.PersistedJSONPStore;f.STOREKEY=a.toUpperCase();f.STORENAME=a;b&&f.setServiceURL(b);d||f.load(b,c,e);return f}catch(g){console.log("Cannot create the JSONP store",a,b,g)}return null};
130CQ_Analytics.PersistedJSONPStore.registerNewInstance=function(a,b,c,d){if(!b)return null;a||((a=CQ.shared.HTTP.getSchemeAndAuthority(b))?-1!=a.indexOf(".")?(a=a.substring(0,a.lastIndexOf(".")),a=a.substring(a.lastIndexOf(".")+1)):a=a.substring(a.lastIndexOf("/")+1):a=b);b=CQ_Analytics.PersistedJSONPStore.getInstance(a,b,c,!1,function(){this.init();this.reset();d&&d.call(this)});return null!=b?(CQ_Analytics.CCM.register(b),b):null};CQ_Analytics.JSONPStore=function(){};
131CQ_Analytics.JSONPStore.prototype=new CQ_Analytics.JSONStore;CQ_Analytics.JSONPStore.prototype.setServiceURL=function(a){this.serviceURL=a};CQ_Analytics.JSONPStore.prototype.getServiceURL=function(){return this.serviceURL};
132CQ_Analytics.JSONPStore.prototype.load=function(a,b,c){var d=this.getName();CQ_Analytics.JSONPStore.JSONPCallbacks[this.getName()]||(CQ_Analytics.JSONPStore.JSONPCallbacks[d]=function(e){var f=CQ_Analytics.CCM.getRegisteredStore(d);f&&(f.initJSON(e),b&&f.initJSON(b,!0));c&&c.call(f)});a&&this.setServiceURL(a);a=this.serviceURL;a=a.replace("${callback}","CQ_Analytics.JSONPStore.JSONPCallbacks."+d);$CQ.getScript(a)};CQ_Analytics.JSONPStore.JSONPCallbacks={};
133CQ_Analytics.JSONPStore.getInstance=function(a,b,c,d,e){if(a)try{var f=new CQ_Analytics.JSONPStore;f.STOREKEY=a.toUpperCase();f.STORENAME=a;b&&(f.setServiceURL(b),d||f.load(b,c,e));return f}catch(g){console.log("Cannot create the JSONP store",a,b,g)}return null};
134CQ_Analytics.JSONPStore.registerNewInstance=function(a,b,c,d){!a&&b&&((a=CQ.shared.HTTP.getSchemeAndAuthority(b))?-1!=a.indexOf(".")?(a=a.substring(0,a.lastIndexOf(".")),a=a.substring(a.lastIndexOf(".")+1)):(a=a.substring(a.lastIndexOf("/")+1),a=a.replace(RegExp(":","ig"),"_")):a=b);b=CQ_Analytics.JSONPStore.getInstance(a,b,c,!1,function(){this.init();this.reset();d&&d.call(this)});return null!=b?(CQ_Analytics.CCM.register(b),b):null};
135CQ_Analytics.ClientContext||(CQ_Analytics.ClientContext=new function(){return{get:function(a,b){if(a){0!=a.indexOf("/")&&(a="/"+a);var c=a.split("/")[1];a=a.substring(a.indexOf("/"+c)+c.length+2,a.length);if(c=CQ_Analytics.CCM.getRegisteredStore(c))return a?((c=c.getProperty(a))&&b&&(c=CQ_Analytics.Variables.replaceVariables(c)),c):c}return null},set:function(a,b){if(a){0!=a.indexOf("/")&&(a="/"+a);var c=a.split("/")[1];a=a.substring(a.indexOf("/"+c)+c.length+2,a.length);(c=CQ_Analytics.CCM.getRegisteredStore(c))&&
136a&&c.setProperty(a,b)}},clear:function(){var a=CQ_Analytics.CCM.getStores();if(a)for(var b in a)a[b].clear&&a[b].clear()},reset:function(){var a=CQ_Analytics.CCM.getStores();if(a)for(var b in a)a[b].reset&&a[b].reset()},persist:function(a){CQ_Analytics.ClientContextMgr.ServerStorage.post(a,!0)}}},window.ClientContext=CQ_Analytics.ClientContext,window.ContextCloud=CQ_Analytics.ClientContext);
137CQ_Analytics&&!CQ_Analytics.TwitterProfileDataMgr&&(CQ_Analytics.TwitterProfileDataMgr=function(){},CQ_Analytics.TwitterProfileDataMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.TwitterProfileDataMgr.prototype.STOREKEY="TWITTERPROFILEDATA",CQ_Analytics.TwitterProfileDataMgr.prototype.STORENAME="twitterprofile",CQ_Analytics.TwitterProfileDataMgr.prototype.clear=function(){this.persistence&&this.persistence.remove(this.getStoreKey());this.data=null;this.initProperty={}},CQ_Analytics.TwitterProfileDataMgr.prototype.init=
138function(){this.persistence=new CQ_Analytics.SessionPersistence({container:"ClientContext"});var a=this.persistence.get(this.getStoreKey());if(a&&""!=a)this.data=this.parse(a);else{this.data={};for(var b in this.initProperty)this.data[b]=this.initProperty[b]}this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},CQ_Analytics.TwitterProfileDataMgr.prototype.getLoaderURL=function(){return CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/twitterprofiledata/loader.json")},
139CQ_Analytics.TwitterProfileDataMgr.prototype.loadProfile=function(a){if
139(a){this.setProperty("authorizableId",a);var b=this.getLoaderURL();b=CQ_Analytics.Utils.addParameter(b,"authorizableId",a);try{var c=CQ.shared.HTTP.eval(b);if(c){this.data={};for(var d in c)this.data[d]=c[d];this.setProperty("authorizableId",a);this.persist();this.fireEvent("update");CQ_Analytics.ClickstreamcloudEditor&&CQ_Analytics.ClickstreamcloudEditor.reload();return!0}}catch(e){console&&console.log&&console.log("Error during profile loading",
140e)}}return!1},CQ_Analytics.TwitterProfileDataMgr=new CQ_Analytics.TwitterProfileDataMgr,CQ_Analytics.ClientContextUtils.onStoreRegistered("profile",function(){CQ_Analytics.ProfileDataMgr.addListener("update",function(){var a=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");a!=this.getProperty("authorizableId")&&(CQ_Analytics.TwitterProfileDataMgr.loadProfile(a),this.fireEvent("update"))},CQ_Analytics.TwitterProfileDataMgr)}),CQ_Analytics.CCM.register(CQ_Analytics.TwitterProfileDataMgr));
141CQ_Analytics.FacebookProfileDataMgr||(CQ_Analytics.FacebookProfileDataMgr=function(){},CQ_Analytics.FacebookProfileDataMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.FacebookProfileDataMgr.prototype.STOREKEY="FBPROFILEDATA",CQ_Analytics.FacebookProfileDataMgr.prototype.STORENAME="facebookprofile",CQ_Analytics.FacebookProfileDataMgr.prototype.clear=function(){this.persistence&&this.persistence.remove(this.getStoreKey());this.data=null;this.initProperty={}},CQ_Analytics.FacebookProfileDataMgr.prototype.init=
142function(){this.persistence=new CQ_Analytics.SessionPersistence({container:"ClientContext"});var a=this.persistence.get(this.getStoreKey());if(a&&""!=a)this.data=this.parse(a);else{this.data={};for(var b in this.initProperty)this.data[b]=this.initProperty[b]}this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},CQ_Analytics.FacebookProfileDataMgr.prototype.getLoaderURL=function(){return CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/fbprofiledata/loader.json")},
143CQ_Analytics.FacebookProfileDataMgr.prototype.loadProfile=function(a){if(a){this.setProperty("authorizableId",a);var b=this.getLoaderURL();b=CQ_Analytics.Utils.addParameter(b,"authorizableId",a);try{var c=CQ.shared.HTTP.eval(b);if(c){this.data={};for(var d in c)this.data[d]=c[d];this.setProperty("authorizableId",a);this.persist();this.fireEvent("update");this.fireEvent("checkBirthday");CQ_Analytics.ClickstreamcloudEditor&&CQ_Analytics.ClickstreamcloudEditor.reload();return!0}}catch(e){console&&console.log&&
144console.log("Error during profile loading",e)}}return!1},CQ_Analytics.FacebookProfileDataMgr=new CQ_Analytics.FacebookProfileDataMgr,CQ_Analytics.ClientContextUtils.onStoreRegistered("profile",function(){CQ_Analytics.ProfileDataMgr.addListener("update",function(){var a=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");a!=this.getProperty("authorizableId")&&(CQ_Analytics.FacebookProfileDataMgr.loadProfile(a),this.fireEvent("update"))},CQ_Analytics.FacebookProfileDataMgr)}),CQ_Analytics.CCM.register(CQ_Analytics.FacebookProfileDataMgr));
145CQ_Analytics.FacebookInterestsMgr||(CQ_Analytics.FacebookInterestsMgr=function(){},CQ_Analytics.FacebookInterestsMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.FacebookInterestsMgr.prototype.STOREKEY="FBINTERESTSDATA",CQ_Analytics.FacebookInterestsMgr.prototype.STORENAME="fbinterests",CQ_Analytics.FacebookInterestsMgr.prototype.getLabel=function(a){return a},CQ_Analytics.FacebookInterestsMgr.prototype.getLink=function(a){return""},CQ_Analytics.FacebookInterestsMgr.prototype.clear=
146function(){this.persistence&&this.persistence.remove(this.getStoreKey());this.data=null;this.initProperty={}},CQ_Analytics.FacebookInterestsMgr.prototype.init=function(){this.persistence=new CQ_Analytics.SessionPersistence({container:"ClientContext"});var a=this.persistence.get(this.getStoreKey());if(a&&""!=a)this.data=this.parse(a);else{this.data={};for(var b in this.initProperty)this.data[b]=this.initProperty[b]}this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},
147CQ_Analytics.FacebookInterestsMgr.prototype.getLoaderURL=function(){return CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/fbinterestsdata/loader.json")},CQ_Analytics.FacebookInterestsMgr.prototype.loadProfile=function(a){if
147(a){this.setProperty("authorizableId",a);var b=this.getLoaderURL();b=CQ_Analytics.Utils.addParameter(b,"authorizableId",a);CQ_Analytics.FacebookInterestsMgr.lastUid=a;try{var c=CQ.shared.HTTP.eval(b);if(c){this.data={};for(var d in c)this.data[d]=c[d];this.setProperty("authorizableId",
148a);this.persist();CQ_Analytics.ClickstreamcloudEditor&&CQ_Analytics.ClickstreamcloudEditor.reload();return!0}}catch(e){console&&console.log&&console.log("Error during profile loading",e)}}return!1},CQ_Analytics.FacebookInterestsMgr=new CQ_Analytics.FacebookInterestsMgr,CQ_Analytics.ClientContextUtils.onStoreRegistered("profile",function(){CQ_Analytics.ProfileDataMgr.addListener("update",function(){var a=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");a!=this.getProperty("authorizableId")&&
149(CQ_Analytics.FacebookInterestsMgr.loadProfile(a),this.fireEvent("update"))},CQ_Analytics.FacebookInterestsMgr)}),CQ_Analytics.CCM.register(CQ_Analytics.FacebookInterestsMgr));
150CQ_Analytics&&!CQ_Analytics.CampaignSeedMgr&&(CQ_Analytics.CampaignSeedMgr=CQ_Analytics.JSONStore.registerNewInstance("campaignseed",{}),CQ_Analytics.CampaignSeedMgr.SERVICE_PATH="/_jcr_content.campaign.seeddata.json/{seed}",CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.ProfileDataMgr.addListener("update",function(){var a=CQ_Analytics.ProfileDataMgr.getProperty("authorizableId");a!=this.lastUid&&(this.lastUid=a,this.clear(),this.fireEvent("update"))},CQ_Analytics.CampaignSeedMgr)},
151CQ_Analytics.CampaignSeedMgr));
152CQ_Analytics&&!CQ_Analytics.CampaignMetadataMgr&&(CQ_Analytics.CampaignMetadataMgr=CQ_Analytics.JSONStore.registerNewInstance("campaignmetadata",{}),CQ_Analytics.CampaignMetadataMgr.SERVICE_PATH="/_jcr_content.campaign.metadata.json",CQ_Analytics.CampaignMetadataMgr.setNLIntegrationURL=function(a){this.baseURL=CQ_Analytics.Utils.externalize(a);this.serviceURL=a+this.SERVICE_PATH;$CQ.post(this.serviceURL,{},function(b){CQ_Analytics.CampaignMetadataMgr.initJSON(b);CQ_Analytics.CampaignMetadataMgr.init();CQ_Analytics.CampaignMetadataMgr._isDataAvailable=
153!0;if(CQ&&CQ.WCM){b=CQ.WCM.getEditables();for(var c in b)if(b.hasOwnProperty(c)){var d=b[c].element;CQ.personalization.variables.Variables.injectSpans(d,CQ.personalization.variables.Variables.SCANNED_TAGS,"cq-variable-code");CQ.personalization.variables.Variables.updateVariables(d,CQ_Analytics.CampaignSeedMgr.getData())}}CQ_Analytics.CampaignMetadataMgr._onDataAvailable&&(c=CQ_Analytics.CampaignMetadataMgr._onDataAvailable.fct,c(CQ_Analytics.CampaignMetadataMgr._onDataAvailable.data),CQ_Analytics.CampaignMetadataMgr._onDataAvailable=
154null)})},CQ_Analytics.CampaignMetadataMgr._isDataAvailable=!1,CQ_Analytics.CampaignMetadataMgr._onDataAvailable=null,CQ_Analytics.CampaignMetadataMgr.whenDataAvailable=function(a,b){CQ_Analytics.CampaignMetadataMgr._isDataAvailable?a(b):CQ_Analytics.CampaignMetadataMgr._onDataAvailable={fct:a,data:b}},CQ_Analytics.CampaignMetadataMgr.rawJSON=void 0,CQ_Analytics.CampaignMetadataMgr.getRawJSON=function(){return this.rawJSON},CQ_Analytics.CampaignMetadataMgr.initJSON=function(a,b){function c(e,f,g){for(var t in g)if(g.hasOwnProperty(t)){var k=
155g[t],n=f+"/"+t;$CQ.isPlainObject(k)?c(e,n,k):e[n]=k}}function d(e,f,g){for(var t in g)if(g.hasOwnProperty(t)){var k=g[t];if(k.hasOwnProperty("type")&&k.type)for(var n in k)if(k.hasOwnProperty(n)){var h=t+"/"+n;h=f?f+"/"+h:h;$CQ.isPlainObject(k[n])?c(e,h,k[n]):e[h]=k[n]}k.hasOwnProperty("content")&&d(e,f?f+"/"+t:t,k.content)}}b||(this.initProperty={});d(this.initProperty,null,a);this.rawJSON=a});
156CQ_Analytics.TagCloudMgr||(CQ_Analytics.TagCloudMgr=function(){this.data=null;this.addedTags={};this.initialTags=this.frequencies=null;this.initialAddedTags={};this.copyObject=function(a){var b={},c;for(c in a)b[c]=a[c];return b}},CQ_Analytics.TagCloudMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.TagCloudMgr.prototype.STOREKEY="TAGCLOUD",CQ_Analytics.TagCloudMgr.prototype.STORENAME="tagcloud",CQ_Analytics.TagCloudMgr.prototype.parseTagList=function(a){var b={};a=a.split(",");for(var c in a)if(a.hasOwnProperty(c)){var d=
157a[c].split("\x3d");2==d.length&&(b[d[0]]=parseInt(d[1]))}return b},CQ_Analytics.TagCloudMgr.prototype.parseString=function(a){this.data=this.parseTagList(a);return this},CQ_Analytics.TagCloudMgr.prototype.add=function(a){this.addedTags[a]=!0;this.data[a]=(this.data[a]||0)+1},CQ_Analytics.TagCloudMgr.prototype.each=function(a){for(var b in this.data)this.data.hasOwnProperty(b)&&a(b,this.data[b])},CQ_Analytics.TagCloudMgr.prototype.calculateFrequencies=function(){var a={},b=[];this.each(function(c,
158d){a[d]||b.push(d);a[d]=!0});b.sort(function(c,d){return c>d?1:c<d?-1:0});return b},CQ_Analytics.TagCloudMgr.prototype.calculateNtile=function(a,b){null===this.frequencies&&(this.frequencies=this.calculateFrequencies());for(var c=0;;){if(c>=this.frequencies.length-1||this.frequencies[c]>=a)return Math.ceil((c+1)/this.frequencies.length*b);c++}},CQ_Analytics.TagCloudMgr.prototype.getTags=function(){return this.data},CQ_Analytics.TagCloudMgr.prototype.getData=function(a){return this.getTags()},CQ_Analytics.TagCloudMgr.prototype.getTag=
159function(a){return 0<this.data[a]?this.data[a]:0},CQ_Analytics.TagCloudMgr.prototype.init=function(a){var b=(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).get(this.getStoreKey());b=null===b?"":new String(b);this.data=this.parseTagList(b);if(a)for(var c in a)a.hasOwnProperty(c)&&this.add(a[c]);this.initialTags=this.copyObject(this.data);this.initialAddedTags=this.copyObject(this.addedTags);this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},
160CQ_Analytics.TagCloudMgr.prototype.setProperty=function(a,b){null==this.data&&this.init();0<b?(this.addedTags[a]=!0,this.data[a]=0<b?b:0):(delete this.addedTags[a],delete this.data[a]);this.persist();this.fireEvent("update")},CQ_Analytics.TagCloudMgr.prototype.reset=function(){this.clear();this.fireEvent("update")},CQ_Analytics.TagCloudMgr.prototype.getProperty=function(a){null==this.data&&this.init();return 0<this.data[a]?this.data[a]:0},CQ_Analytics.TagCloudMgr.prototype.removeProperty=function(a){null==
161this.data&&this.init();this.setProperty(a,0)},CQ_Analytics.TagCloudMgr.prototype.clear=function(){(new CQ_Analytics.SessionPersistence({container:"ClientContext"})).remove(this.getStoreKey());this.addedTags={};this.data={}},CQ_Analytics.TagCloudMgr.prototype.getLink=function(a){return""},CQ_Analytics.TagCloudMgr.prototype.getLabel=function(a){a&&(a=a.split(":"),a=a[a.length-1].split("/"),a=a[a.length-1]);return a},CQ_Analytics.TagCloudMgr=new CQ_Analytics.TagCloudMgr,CQ_Analytics.CCM.register(CQ_Analytics.TagCloudMgr));
162CQ_Analytics.SurferInfoMgr||(CQ_Analytics.SurferInfoMgr=function(){},CQ_Analytics.SurferInfoMgr.prototype=new CQ_Analytics.SessionStore,CQ_Analytics.SurferInfoMgr.prototype.STOREKEY="SURFERINFO",CQ_Analytics.SurferInfoMgr.prototype.STORENAME="surferinfo",CQ_Analytics.SurferInfoMgr.prototype.init=function(){this.data={};for(var a in this.initProperty)this.data[a]=this.initProperty[a];this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},CQ_Analytics.SurferInfoMgr.prototype.clear=
163function(){this.data=null;this.initProperty={}},CQ_Analytics.SurferInfoMgr.prototype.getLabel=function(a){return a},CQ_Analytics.SurferInfoMgr.prototype.getLink=function(a){return""},CQ_Analytics.SurferInfoMgr=new CQ_Analytics.SurferInfoMgr,CQ_Analytics.CCM.addListener("configloaded",function(){var a=CQ_Analytics.BrowserInfoInstance;this.addInitProperty("browserFamily",a.getBrowserFamily());this.addInitProperty("browserVersion",a.getBrowserVersion());this.addInitProperty("browser","${/surferinfo/browserFamily} ${/surferinfo/browserVersion}");
164this.addInitProperty("OS",a.getOSName());
164this.addInitProperty("resolution",a.getScreenResolution());this.addInitProperty("device",a.getDeviceType());this.addInitProperty("isMobile",a.isMobile());this.addInitProperty("userAgent",a.getUserAgent());var b=new Date;this.addInitProperty("day",b.getDate());this.addInitProperty("month",b.getMonth()+1);this.addInitProperty("year",b.getFullYear());this.addInitProperty("hours",b.getHours());this.addInitProperty("minutes",b.getMinutes());b="${/surferinfo/browserFamily}";
165a.isMobile()&&(b="${/surferinfo/device}");this.addInitProperty("image",b);b=CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/surferinfo/resources/${/surferinfo/image}.png");this.addInitProperty("thumbnail",b);window.CQ_Analytics&&window.CQ_Analytics.MousePositionMgr&&CQ_Analytics.MousePositionMgr.addListener("update",function(){this.setProperty("mouse X",CQ_Analytics.MousePositionMgr.getProperty("x"));this.setProperty("mouse Y",CQ_Analytics.MousePositionMgr.getProperty("y"))},this);
166this.addListener("update",function(){var c=this.getProperty("device"),d="${/surferinfo/browserFamily}";a.isMobile(c)&&(d="${/surferinfo/device}");this.getProperty("image")!=d&&this.setProperty("image",d)},this);this.init();CQ_Analytics.CCM.register(this)},CQ_Analytics.SurferInfoMgr));
167CQ_Analytics.SocialGraphMgr||(CQ_Analytics.SocialGraphMgr=CQ_Analytics.JSONPStore.registerNewInstance("socialgraph"),CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.ProfileDataMgr.addListener("update",function(){CQ_Analytics.ProfileDataMgr.getProperty("authorizableId")!=this.lastUid&&this.fireEvent("update")},CQ_Analytics.SocialGraphMgr)},CQ_Analytics.SocialGraphMgr));
168window.CQ_Analytics&&window.CQ_Analytics.SegmentMgr&&!window.CQ_Analytics.SegmentMgr.isResolvedRegistered&&(CQ_Analytics.SegmentMgr.isResolvedRegistered=!0,CQ_Analytics.CCM.addListener("configloaded",function(){CQ_Analytics.StoreRegistry.register(CQ_Analytics.SegmentMgr);CQ_Analytics.CCM.fireEvent("storeregister",CQ_Analytics.SegmentMgr)},CQ_Analytics.SegmentMgr));
169CQ_Analytics.ProfileDataMgr||(CQ_Analytics.ProfileDataMgr=function(){this.addListener("beforepersist",function(){this.checkAuthorizableId()},this)},CQ_Analytics.ProfileDataMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.ProfileDataMgr.prototype.STOREKEY="PROFILEDATA",CQ_Analytics.ProfileDataMgr.prototype.STORENAME="profile",CQ_Analytics.ProfileDataMgr.prototype.LOADER_PATH=CQ_Analytics.Utils.externalize("/libs/cq/personalization/components/profileloader/content/load.js",!0),CQ_Analytics.ProfileDataMgr.prototype.PROFILE_LOADER=
170CQ_Analytics.Utils.externalize("/libs/cq/personalization/components/profileloader/content/load.json",!0),CQ_Analytics.ProfileDataMgr.prototype.init=function(){this.persistence=new CQ_Analytics.SessionPersistence({container:"ClientContext"});var a=this.persistence.get(this.getStoreKey());if(a&&""!=a)this.data=this.parse(a);else{this.data={};for(var b in this.initProperty)this.data[b]=this.initProperty[b]}this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},
171CQ_Analytics.ProfileDataMgr.prototype.checkAuthorizableId=function(){this.data||this.init();this.data.authorizableId?CQ_Analytics.CCM.setVisitorId(this.data.authorizableId):CQ_Analytics.CCM.setVisitorId("")},CQ_Analytics.ProfileDataMgr.prototype.getLabel=function(a){return a},CQ_Analytics.ProfileDataMgr.prototype.getLink=function(a){return""},CQ_Analytics.ProfileDataMgr.prototype.clear=function(){this.persistence&&this.persistence.remove(this.getStoreKey());this.data=null;this.initProperty={}},CQ_Analytics.ProfileDataMgr.prototype.getLoaderURL=
172function(){return CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/profiledata/loader.json")},CQ_Analytics.ProfileDataMgr.prototype.loadProfile=function(a){var b=this.getLoaderURL();b=CQ_Analytics.Utils.addParameter(b,"authorizableId",a);try{var c=CQ.shared.HTTP.eval(b);if(c){this.data={};for(var d in c)this.data[d]=c[d];this.persist();this.fireEvent("initialize",this);this.fireEvent("update");CQ_Analytics.ClickstreamcloudEditor&&CQ_Analytics.ClickstreamcloudEditor.reload();return!0}}catch(e){console&&
173console.log&&console.log("Error during profile loading",e)}return!1},CQ_Analytics.ProfileDataMgr=new CQ_Analytics.ProfileDataMgr,CQ_Analytics.CCM.addListener("configloaded",function(){this.checkAuthorizableId();this.addListener("update",function(a,b){if("birthday"==b||!b){a=this.getProperty("birthday");b=this.getProperty("age");var c="";if(a)try{var d=function(t){var k=new Date(t.getFullYear(),0,0);k=new Date(k.getTime());k.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds());
174return(k.getTime()-t.getTime())/864E5*-1},e=new Date(Date.parse(a));if(isNaN(e.getTime()))c="";else{var f=new Date;
174if(d(e)==d(f)&&e.getMonth()==f.getMonth())c=CQ.shared.HTTP.externalize(CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/profiledata/resources/birthday_cake.png"));else{var g=f.getFullYear()-e.getFullYear();c=d(e)>d(f)?g:Math.max(0,g-1)}}}catch(t){c=""}b!=c&&this.setProperty("age",c)}});CQ_Analytics.CCM.register(this)},CQ_Analytics.ProfileDataMgr));
175CQ_Analytics.GeolocationUtils||(CQ_Analytics.GeolocationUtils=new function(){var a,b,c=[],d=function(){b=!0;for(var e=0;e<c.length;e++)c[e]&&c[e].call(this,CQ_Analytics.GeolocationUtils.getStore())};return{init:function(e){a=e;try{var f=navigator.geolocation}catch(k){}var g=function(k){var n=CQ_Analytics.PersistedJSONStore.registerNewInstance(a,k);n.addListener("update",function(h,p){h=CQ_Analytics.ClientContext.get(a+"/latitude");var x=CQ_Analytics.ClientContext.get(a+"/longitude");h&&x?n.getProperty("generatedThumbnail",
176!0)==CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback&&n.setProperty("generatedThumbnail",n.getInitProperty("generatedThumbnail")):"generatedThumbnail"!=p?n.setProperty("generatedThumbnail",CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback):n.getProperty(p,!0)!=CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback&&n.setProperty(p,CQ_Analytics.GeolocationUtils.THUMBNAILS.fallback)});d()},t=function(k,n){var h=CQ_Analytics.StoreRegistry.getStore(a);if(h){var p=!0;if(k){p=parseInt(1E6*k.latitude)/1E6;
177var x=parseInt(1E6*k.longitude)/1E6;p=!(isFinite(p)&&"number"===typeof p&&isFinite(x)&&"number"===typeof x)}p&&(k=CQ_Analytics.GeolocationUtils.DEFAULTS);p=k.generatedThumbnail=h.getInitProperty("generatedThumbnail");h.initJSON(k);n||(h.init(),h.setProperty("generatedThumbnail",p))}else g(k)};g();f?f.getCurrentPosition(function(k){var n={longitude:parseInt(1E6*k.coords.longitude)/1E6,latitude:parseInt(1E6*k.coords.latitude)/1E6};k.address&&(n.address=k.address);t(n,CQ_Analytics.CCM.areStoresInitialized)},
178function(k){if(!CQ_Analytics.CCM.areStoresInitialized){var n="Error";CQ_Analytics.isUIAvailable&&(n=CQ.I18n.getMessage("Connection timeout",null,"timeout while connecting geolocation service"),1==k.code?n=CQ.I18n.getMessage("Permission denied",null,"permission denied message from goelocation service"):2==k.code&&(n=CQ.I18n.getMessage("Position unavailable",null,"geolocation service couldn't find location")));t({address:{country:n}},CQ_Analytics.CCM.areStoresInitialized)}}):t()},onReady:function(e){b?
179e.call(this,CQ_Analytics.GeolocationUtils.getStore()):c.push(e)},getStore:function(){return CQ_Analytics.StoreRegistry.getStore(a)}}},CQ_Analytics.GeolocationUtils.DEFAULTS={latitude:37.331375,longitude:-121.893992},CQ_Analytics.GeolocationUtils.THUMBNAILS={fallback:document.location.protocol+"//maps.googleapis.com/maps/api/staticmap?center\x3d37,-121\x26zoom\x3d0\x26size\x3d80x80\x26sensor\x3dfalse\x26client\x3dgme-adobesystemsincorporated\x26channel\x3dclientcontext\x26signature\x3dwqNolKQ144hypPUiTmIypxPc1s8\x3d"});
180CQ_Analytics.CampaignMgr||(CQ_Analytics.CampaignMgr=function(){},CQ_Analytics.CampaignMgr.prototype=new CQ_Analytics.PersistedSessionStore,CQ_Analytics.CampaignMgr.prototype.STOREKEY="CAMPAIGN",CQ_Analytics.CampaignMgr.prototype.STORENAME="campaign",CQ_Analytics.CampaignMgr.prototype.DEFAULT_EXPERIENCE="DEFAULT",CQ_Analytics.CampaignMgr.prototype.init=function(){var a;this.persistence=new CQ_Analytics.SessionPersistence({container:"ClientContext"});var b=this.persistence.get(this.getStoreKey());this.data||
181(this.data={});if(b&&""!==b){if(this.data=this.parse(b),a=this.getInitProperty("campaigns"))this.data.campaigns=a}else for(a in this.initProperty)this.initProperty.hasOwnProperty(a)&&(this.data[a]=this.initProperty[a]);this.validate();this.persist();this.initialized=!0;this.fireEvent("initialize",this);this.fireEvent("update")},CQ_Analytics.CampaignMgr.prototype.validate=function(){this.data.campaigns&&(this.getCampaignBy("path",this.data.path)||this.getCampaignBy("id",this.data.id)||this.setCampaign(null),
182this.data["recipe/path"]!==CQ_Analytics.CampaignMgr.DEFAULT_EXPERIENCE&&(this.getExperienceBy("path",this.data["recipe/path"])||this.getExperienceBy("id",this.data["recipe/id"])||this.setExperience(null)))},CQ_Analytics.CampaignMgr.prototype.getCampaignBy=function(a,b){if(!this.data||!this.data.campaigns)return null;var c,d=this.data.campaigns;for(c=0;c<d.length;c++){var e=d[c];if(e[a]===b)return e}return null},CQ_Analytics.CampaignMgr.prototype.getExperienceBy=function(a,b){if(!this.data||!this.data.campaigns)return null;
183var c,d=this.data.campaigns;for(c=0;c<d.length;c++)for(var e=d[c],f=0;f<e.experiences.length;f++){var g=e.experiences[f];if(g[a]===b)return g}return null},CQ_Analytics.CampaignMgr.prototype.setCampaign=function(a){this.setProperties({name:a?a.title:"",path:a?a.path:"",id:a?a.id:"","recipe/name":a?CQ.I18n.getMessage("(default)"):"","recipe/path":a?this.DEFAULT_EXPERIENCE:"","recipe/id":a?this.DEFAULT_EXPERIENCE:""})}
183,CQ_Analytics.CampaignMgr.prototype.setExperience=function(a){this.setProperties({"recipe/name":a?
184a.title:"","recipe/path":a?a.path:"","recipe/id":a?a.id:""})},CQ_Analytics.CampaignMgr.prototype.setProperty=function(a,b){"id"===a||"path"===a?this.setCampaign(this.getCampaignBy(a,b)):"recipe/id"!==a&&"recipe/path"!==a||b===CQ_Analytics.CampaignMgr.DEFAULT_EXPERIENCE?CQ_Analytics.PersistedSessionStore.prototype.setProperty.call(this,a,b):this.setExperience(this.getExperienceBy(a.substring(7),b))},CQ_Analytics.CampaignMgr.prototype.isCampaignSelected=function(){return""!==this.getProperty("path")},
185CQ_Analytics.CampaignMgr.prototype.clear=function(){this.data=null;this.initProperty={}},CQ_Analytics.CampaignMgr.prototype.getLabel=function(a){return a},CQ_Analytics.CampaignMgr.prototype.getLink=function(a){return""},CQ_Analytics.CampaignMgr=new CQ_Analytics.CampaignMgr,CQ_Analytics.CCM.register(CQ_Analytics.CampaignMgr));
186CQ_Analytics.ActivityStreamMgr||(CQ_Analytics.ActivityStreamMgr=CQ_Analytics.JSONStore.registerNewInstance("activitystream",{}),CQ_Analytics.ActivityStreamMgr.internalRenderer=function(a,b){a=a+".form.html"+CQ_Analytics.ClientContextMgr.getClientContextURL("/contextstores/activitystream.html");CQ.shared.HTTP.get(a+"?limit\x3d3",function(c,d,e){$CQ("#"+b).children().remove();d&&$CQ("#"+b).append(e.body)})},CQ_Analytics.ActivityStreamMgr.renderer=function(a,b){a.isReady||(a.isReady=!0,CQ_Analytics.ClientContextUtils.onStoreRegistered("profile",
187function(c){c.addListener("update",function(d,e){d=this.getProperty("path");d!=CQ_Analytics.ActivityStreamMgr.currentProfilePath&&(CQ_Analytics.ActivityStreamMgr.currentProfilePath=d,CQ_Analytics.ActivityStreamMgr.internalRenderer(d,b))},c);c=c.getProperty("path");CQ_Analytics.ActivityStreamMgr.currentProfilePath=c;CQ_Analytics.ActivityStreamMgr.internalRenderer(c,b)}));return""});
188(function(a){function b(){}function c(l){h=[l]}function d(l,u,q){return l&&l.apply(u.context||u,q)}function e(l){function u(F){K++||(L(),B&&(k[D]={s:[F]}),y&&(F=y.apply(l,[F])),d(m,l,[F,"success",l]),d(v,l,[l,"success"]))}
188function q(F){K++||(L(),B&&"timeout"!=F&&(k[D]=F),d(r,l,[l,F]),d(v,l,[l,F]))}l=a.extend({},p,l);var m=l.success,r=l.error,v=l.complete,y=l.dataFilter,C=l.callbackParameter,z=l.callback,A=l.cache,B=l.pageCache,G=l.charset,D=l.url,H=l.data,I=l.timeout,M,K=0,L=b,J;g&&g(function(F){F.done(m).fail(r);
189m=F.resolve;r=F.reject}).promise(l);l.abort=function(){!K++&&L()};if(!1===d(l.beforeSend,l,[l])||K)return l;D=D||"";H=H?"string"==typeof H?H:a.param(H,l.traditional):"";D+=H?(/\?/.test(D)?"\x26":"?")+H:"";C&&(D+=(/\?/.test(D)?"\x26":"?")+encodeURIComponent(C)+"\x3d?");A||B||(D+=(/\?/.test(D)?"\x26":"?")+"_"+(new Date).getTime()+"\x3d");D=D.replace(/=\?(&|$)/,"\x3d"+z+"$1");if(B&&(M=k[D]))M.s?u(M.s[0]):q(M);else{f[z]=c;var E=a("\x3cscript\x3e")[0];E.id="_jqjsp"+n++;G&&(E.charset=G);x&&11.6>x.version()?
190(J=a("\x3cscript\x3e")[0]).text="document.getElementById('"+E.id+"').onerror()":E.async="async";w&&(E.htmlFor=E.id,E.event="onclick");E.onload=E.onerror=E.onreadystatechange=function(F){if(!E.readyState||!/i/.test(E.readyState)){try{E.onclick&&E.onclick()}catch(O){}F=h;h=0;F?u(F[0]):q("error")}};E.src=D;L=function(F){N&&clearTimeout(N);E.onreadystatechange=E.onload=E.onerror=null;t.removeChild(E);J&&t.removeChild(J)};t.insertBefore(E,C=t.firstChild);J&&t.insertBefore(J,C);var N=0<I&&setTimeout(function(){q("timeout")},
191I)}return l}var f=window,g=a.Deferred,t=a("head")[0]||document.documentElement,k={},n=0,h,p={callback:"_jqjsp",url:location.href},x=f.opera,w=!!a("\x3cdiv\x3e").html("\x3c!--[if IE]\x3e\x3ci\x3e\x3c![endif]--\x3e").find("i").length;e.setup=function(l){a.extend(p,l)};a.jsonp=e})(jQuery);
192(function(a){a.murmurhash3=function(b,c){var d=b.length&3;var e=b.length-d;var f=c;for(c=0;c<e;){var g=b.charCodeAt(c)&255|(b.charCodeAt(++c)&255)<<8|(b.charCodeAt(++c)&255)<<16|(b.charCodeAt(++c)&255)<<24;++c;g=3432918353*(g&65535)+((3432918353*(g>>>16)&65535)<<16)&4294967295;g=g<<15|g>>>17;g=461845907*(g&65535)+((461845907*(g>>>16)&65535)<<16)&4294967295;f^=g;f=f<<13|f>>>19;f=5*(f&65535)+((5*(f>>>16)&65535)<<16)&4294967295;f=(f&65535)+27492+(((f>>>16)+58964&65535)<<16)}g=0;switch(d){case 3:g^=(b.charCodeAt(c+
1932)&255)<<16;case 2:g^=(b.charCodeAt(c+1)&255)<<8;case 1:g^=b.charCodeAt(c)&255,g=3432918353*(g&65535)+((3432918353*(g>>>16)&65535)<<16)&4294967295,g=g<<15|g>>>17,f^=461845907*(g&65535)+((461845907*(g>>>16)&65535)<<16)&4294967295}f^=b.length;f^=f>>>16;f=2246822507*(f&65535)+((2246822507*(f>>>16)&65535)<<16)&4294967295;f^=f>>>13;f=3266489909*(f&65535)+((3266489909*(f>>>16)&65535)<<16)&4294967295;return(f^f>>>16)>>>0}})(jQuery);CQ_Analytics=window.CQ_Analytics||{};
194CQ_Analytics.AAM=CQ_Analytics.AAM||{};
195CQ_Analytics.AAM.AudienceMgr=CQ_Analytics.AAM.AudienceMgr||function(a){function b(u){var q={};$.each(u,function(m,r){if(g[r.cn]&&(m=g[r.cn],r.dmn.slice(0,m.domain.length)===m.domain)){var v=(m.segkey||"segs")+"\x3d",y=v.length,C=m.valsep||";";$.each(r.cv.split(m.keysep||","),function(z,A){A.slice(0,y)===v&&$.each(A.substring(y).split(C),function(B,G){q[G]=!0})})}});return q}function c(){}function d(u){x={};var q=[];$.each(u,function(r,v){v&&(x[r]=!0,q.push(r))});q.sort();u=w.getProperty("segments");
196var m=q.join(",");u!==m&&(w.setProperty("segments",m),h("Set segments to "+m))}function e(u,q){q=q||c;if(n)u.sid?$.getJSON(n,{t:u.sid},function(r){r.segments&&d(r.segments);q();w.fireEvent("update")}).fail(function(r,v,y){p("Failed to resolve segments from AAM server  "+v+" error "+y);q();w.fireEvent("update")}):(q(),w.fireEvent("update"));else{var m={};u=u||{};$.each(u,function(r,v){"sid"===r?m.d_sid=v:m["c_"+r]=v});m.d_nsid=k;m.d_rtbd="json";$.jsonp({url:l,callback:"__aaminvoke",data:m,success:function(r,
197v,y){r.stuff&&d(b(r.stuff));q();w.fireEvent("update")},error:function(r,v){p("Failed to retieve json response "+v);q();w.fireEvent("update")}})}}var f=a.partner||"geometrixx",g=a.destinationNames||{CQIntegrationDestination:{domain:".cqclientintegration.adobe.com",segkey:"segs",keysep:",",valsep:";"}},t=a.debug||!1,k=a.containerNSID||"0",n=!1;a.simulationPath&&(n=a.simulationPath+".segments.json");var h=function(){};t&&(h=function(u){console.log("DEBUG: audiencemanager.js "+u)});
197var p=function(u){console.log("ERROR: audiencemanager.js "+
198u)};h("Initialise Audience Manager");var x={},w=CQ_Analytics.JSONStore.getInstance("audiencemgr",null,null,function(){this.init();this.reset()}),l="http://";"https:"==document.location.protocol&&(l="https://");l+=encodeURIComponent(f)+".demdex.net/event?d_cb\x3d?";e(!1,function(){CQ_Analytics.ClientContextMgr.register(w)});w.getUserSegments=function(){return x};w.matches=function(u){return x[u]};w.invoke=e;return w};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.