/* jQuery JavaScript Library v3.5.1 https://jquery.com/ Includes Sizzle.js https://sizzlejs.com/ Copyright JS Foundation and other contributors Released under the MIT license https://jquery.org/license Date: 2020-05-04T22:49Z Sizzle CSS Selector Engine v2.3.5 https://sizzlejs.com/ Copyright JS Foundation and other contributors Released under the MIT license https://js.foundation/ Date: 2020-03-14 */ window.ContextHubKernelConfig={debug:!1,initializationTimeout:2E3,stores:{geolocation:{type:"contexthub.geolocation",required:!0,config:{geocoder:{enabled:!0}}},surferinfo:{type:"contexthub.surferinfo",required:!0},profile:{type:"granite.profile",required:!0},emulators:{type:"granite.emulators",required:!0},eventdata:{type:"aem.analyticsdata",required:!0},pagedata:{type:"aem.pagedata",required:!0},segmentation:{type:"aem.segmentation",required:!0},metadata:{type:"campaign.metadata",required:!1},seeddata:{type:"campaign.seeddata", required:!1},abandonedproducts:{type:"commerce.abandonedproducts",required:!0},recentlyviewed:{type:"commerce.recentlyviewed",required:!0},cart:{type:"commerce.cart",required:!0},orderhistory:{type:"commerce.orderhistory",required:!0},relatedproducts:{type:"commerce.relatedproducts",required:!0},smartlists:{type:"commerce.smartlists",required:!0}}}; (function(m,t){"object"===typeof module&&"object"===typeof module.exports?module.exports=m.document?t(m,!0):function(n){if(!n.document)throw Error("jQuery requires a window with a document");return t(n)}:t(m)})("undefined"!==typeof window?window:this,function(m,t){function n(a,b,e){e=e||ia;var f,l=e.createElement("script");l.text=a;if(b)for(f in Pc)(a=b[f]||b.getAttribute&&b.getAttribute(f))&&l.setAttribute(f,a);e.head.appendChild(l).parentNode.removeChild(l)}function d(a){return null==a?a+"":"object"=== typeof a||"function"===typeof a?Eb[ec.call(a)]||"object":typeof a}function c(a){var b=!!a&&"length"in a&&a.length,e=d(a);return ba(a)||qb(a)?!1:"array"===e||0===b||"number"===typeof b&&0=(1-l)*(1-(l=v()/C||.5))&&(r=0),B/=l;B*=2;g.style(a,b,B+z);e=e||[]}if(e){B=+B||+C||0;var G=e[1]?B+(e[1]+1)*e[2]:+e[2];f&&(f.unit=z,f.start=B,f.end=G)}return G}function W(a,b){for(var e,f,l=[],r=0,v=a.length;rv;v+=2)"margin"===e&&(z+=g.css(a,e+ab[v],!0,l)),f?("content"===e&&(z-=g.css(a,"padding"+ab[v],!0,l)),"margin"!==e&&(z-=g.css(a,"border"+ab[v]+"Width",!0,l))):(z+=g.css(a,"padding"+ab[v],!0,l),"padding"!==e?z+=g.css(a,"border"+ab[v]+"Width",!0,l):C+=g.css(a,"border"+ab[v]+"Width",!0,l));!f&&0<=r&&(z+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-r-z-C-.5))||0);return z}function Ma(a,b,e){var f=Hb(a),l=(!na.boxSizingReliable()|| e)&&"border-box"===g.css(a,"boxSizing",!1,f),r=l,v=Oa(a,b,f),C="offset"+b[0].toUpperCase()+b.slice(1);if(Rb.test(v)){if(!e)return v;v="auto"}(!na.boxSizingReliable()&&l||!na.reliableTrDimensions()&&h(a,"tr")||"auto"===v||!parseFloat(v)&&"inline"===g.css(a,"display",!1,f))&&a.getClientRects().length&&(l="border-box"===g.css(a,"boxSizing",!1,f),(r=C in a)&&(v=a[C]));v=parseFloat(v)||0;return v+Ua(a,b,e||(l?"border":"content"),r,f,v)+"px"}function La(a,b,e,f,l){return new La.prototype.init(a,b,e,f,l)} function hb(){Ib&&(!1===ia.hidden&&m.requestAnimationFrame?m.requestAnimationFrame(hb):m.setTimeout(hb,g.fx.interval),g.fx.tick())}function wb(){m.setTimeout(function(){sb=void 0});return sb=Date.now()}function tb(a,b){var e=0,f={height:a};for(b=b?1:0;4>e;e+=2-b){var l=ab[e];f["margin"+l]=f["padding"+l]=a}b&&(f.opacity=f.width=a);return f}function mc(a,b,e){for(var f,l=(Va.tweeners[b]||[]).concat(Va.tweeners["*"]),r=0,v=l.length;rG&&Q)return B; Q||v.notifyWith(a,[z,1,0]);v.resolveWith(a,[z]);return!1},z=v.promise({elem:a,props:g.extend({},b),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},e),originalProperties:b,originalOptions:e,startTime:sb||wb(),duration:e.duration,tweens:[],createTween:function(B,G){B=g.Tween(a,z.opts,B,G,z.opts.specialEasing[B]||z.opts.easing);z.tweens.push(B);return B},stop:function(B){var G=0,M=B?z.tweens.length:0;if(f)return this;for(f=!0;Ga?this[a+this.length]:this[a]}, pushStack:function(a){a=g.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return g.each(this,a)},map:function(a){return this.pushStack(g.map(this,function(b,e){return a.call(b,e,b)}))},slice:function(){return this.pushStack(gb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(a,b){return(b+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(a,b){return b% 2}))},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&ama.cacheLength&&delete u[A.shift()];return u[w+" "]=E}var A=[];return u}function f(u){u[va]=!0;return u}function l(u){var A=aa.createElement("fieldset");try{return!!u(A)}catch(w){return!1}finally{A.parentNode&&A.parentNode.removeChild(A)}}function r(u,A){u=u.split("|");for(var w=u.length;w--;)ma.attrHandle[u[w]]=A}function v(u,A){var w=A&&u,E=w&&1===u.nodeType&&1===A.nodeType&&u.sourceIndex-A.sourceIndex;if(E)return E;if(w)for(;w=w.nextSibling;)if(w===A)return-1;return u?1:-1}function C(u){return function(A){return"input"=== A.nodeName.toLowerCase()&&A.type===u}}function z(u){return function(A){var w=A.nodeName.toLowerCase();return("input"===w||"button"===w)&&A.type===u}}function B(u){return function(A){return"form"in A?A.parentNode&&!1===A.disabled?"label"in A?"label"in A.parentNode?A.parentNode.disabled===u:A.disabled===u:A.isDisabled===u||A.isDisabled!==!u&&fd(A)===u:A.disabled===u:"label"in A?A.disabled===u:!1}}function G(u){return f(function(A){A=+A;return f(function(w,E){for(var H,L=u([],w.length,A),P=L.length;P--;)w[H= L[P]]&&(w[H]=!(E[H]=w[H]))})})}function M(u){return u&&"undefined"!==typeof u.getElementsByTagName&&u}function Q(){}function pa(u){for(var A=0,w=u.length,E="";A+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,dd=/[\x20\t\r\n\f]|>/,md=/:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, nd=/^(?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+$/,Pb={ID:/^#((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,CLASS:/^\.((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,TAG:/^((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\]/, PSEUDO:/^:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i, bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},od=/HTML$/i,pd=/^(?:input|select|textarea|button)$/i,qd=/^h\d$/i,yb=/^[^{]+\{\s*\[native \w/,cd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Xb=/[+~]/,db=/\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\([^\r\n\f])/g,eb=function(u,A){u="0x"+u.slice(1)- 65536;return A?A:0>u?String.fromCharCode(u+65536):String.fromCharCode(u>>10|55296,u&1023|56320)},sc=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,tc=function(u,A){return A?"\x00"===u?"\ufffd":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u},yc=function(){lb()},fd=Y(function(u){return!0===u.disabled&&"fieldset"===u.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{ib.apply(nb=xc.call(Ya.childNodes),Ya.childNodes),nb[Ya.childNodes.length].nodeType}catch(u){ib= {apply:nb.length?function(A,w){jd.apply(A,xc.call(w))}:function(A,w){for(var E=A.length,H=0;A[E++]=w[H++];);A.length=E-1}}}var ua=b.support={};var rd=b.isXML=function(u){var A=(u.ownerDocument||u).documentElement;return!od.test(u.namespaceURI||A&&A.nodeName||"HTML")};var lb=b.setDocument=function(u){var A;u=u?u.ownerDocument||u:Ya;if(u==aa||9!==u.nodeType||!u.documentElement)return aa;aa=u;Da=aa.documentElement;za=!rd(aa);Ya!=aa&&(A=aa.defaultView)&&A.top!==A&&(A.addEventListener?A.addEventListener("unload", yc,!1):A.attachEvent&&A.attachEvent("onunload",yc));ua.scope=l(function(w){Da.appendChild(w).appendChild(aa.createElement("div"));return"undefined"!==typeof w.querySelectorAll&&!w.querySelectorAll(":scope fieldset div").length});ua.attributes=l(function(w){w.className="i";return!w.getAttribute("className")});ua.getElementsByTagName=l(function(w){w.appendChild(aa.createComment(""));return!w.getElementsByTagName("*").length});ua.getElementsByClassName=yb.test(aa.getElementsByClassName);ua.getById=l(function(w){Da.appendChild(w).id= va;return!aa.getElementsByName||!aa.getElementsByName(va).length});ua.getById?(ma.filter.ID=function(w){var E=w.replace(db,eb);return function(H){return H.getAttribute("id")===E}},ma.find.ID=function(w,E){if("undefined"!==typeof E.getElementById&&za)return(w=E.getElementById(w))?[w]:[]}):(ma.filter.ID=function(w){var E=w.replace(db,eb);return function(H){return(H="undefined"!==typeof H.getAttributeNode&&H.getAttributeNode("id"))&&H.value===E}},ma.find.ID=function(w,E){if("undefined"!==typeof E.getElementById&& za){var H,L=E.getElementById(w);if(L){if((H=L.getAttributeNode("id"))&&H.value===w)return[L];var P=E.getElementsByName(w);for(E=0;L=P[E++];)if((H=L.getAttributeNode("id"))&&H.value===w)return[L]}return[]}});ma.find.TAG=ua.getElementsByTagName?function(w,E){if("undefined"!==typeof E.getElementsByTagName)return E.getElementsByTagName(w);if(ua.qsa)return E.querySelectorAll(w)}:function(w,E){var H=[],L=0;E=E.getElementsByTagName(w);if("*"===w){for(;w=E[L++];)1===w.nodeType&&H.push(w);return H}return E}; ma.find.CLASS=ua.getElementsByClassName&&function(w,E){if("undefined"!==typeof E.getElementsByClassName&&za)return E.getElementsByClassName(w)};Sa=[];Aa=[];if(ua.qsa=yb.test(aa.querySelectorAll))l(function(w){Da.appendChild(w).innerHTML="\x3ca id\x3d'"+va+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+va+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";w.querySelectorAll("[msallowcapture^\x3d'']").length&&Aa.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");w.querySelectorAll("[selected]").length|| Aa.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");w.querySelectorAll("[id~\x3d"+va+"-]").length||Aa.push("~\x3d");var E=aa.createElement("input");E.setAttribute("name","");w.appendChild(E);w.querySelectorAll("[name\x3d'']").length||Aa.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");w.querySelectorAll(":checked").length||Aa.push(":checked"); w.querySelectorAll("a#"+va+"+*").length||Aa.push(".#.+[+~]");w.querySelectorAll("\\\f");Aa.push("[\\r\\n\\f]")}),l(function(w){w.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var E=aa.createElement("input");E.setAttribute("type","hidden");w.appendChild(E).setAttribute("name","D");w.querySelectorAll("[name\x3dd]").length&&Aa.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==w.querySelectorAll(":enabled").length&& Aa.push(":enabled",":disabled");Da.appendChild(w).disabled=!0;2!==w.querySelectorAll(":disabled").length&&Aa.push(":enabled",":disabled");w.querySelectorAll("*,:x");Aa.push(",.*:")});(ua.matchesSelector=yb.test(Ob=Da.matches||Da.webkitMatchesSelector||Da.mozMatchesSelector||Da.oMatchesSelector||Da.msMatchesSelector))&&l(function(w){ua.disconnectedMatch=Ob.call(w,"*");Ob.call(w,"[s!\x3d'']:x");Sa.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); Aa=Aa.length&&new RegExp(Aa.join("|"));Sa=Sa.length&&new RegExp(Sa.join("|"));xb=(A=yb.test(Da.compareDocumentPosition))||yb.test(Da.contains)?function(w,E){var H=9===w.nodeType?w.documentElement:w;E=E&&E.parentNode;return w===E||!!(E&&1===E.nodeType&&(H.contains?H.contains(E):w.compareDocumentPosition&&w.compareDocumentPosition(E)&16))}:function(w,E){if(E)for(;E=E.parentNode;)if(E===w)return!0;return!1};Zb=A?function(w,E){if(w===E)return Pa=!0,0;var H=!w.compareDocumentPosition-!E.compareDocumentPosition; if(H)return H;H=(w.ownerDocument||w)==(E.ownerDocument||E)?w.compareDocumentPosition(E):1;return H&1||!ua.sortDetached&&E.compareDocumentPosition(w)===H?w==aa||w.ownerDocument==Ya&&xb(Ya,w)?-1:E==aa||E.ownerDocument==Ya&&xb(Ya,E)?1:ra?mb(ra,w)-mb(ra,E):0:H&4?-1:1}:function(w,E){if(w===E)return Pa=!0,0;var H=0,L=w.parentNode,P=E.parentNode,U=[w],K=[E];if(!L||!P)return w==aa?-1:E==aa?1:L?-1:P?1:ra?mb(ra,w)-mb(ra,E):0;if(L===P)return v(w,E);for(;w=w.parentNode;)U.unshift(w);for(w=E;w=w.parentNode;)K.unshift(w); for(;U[H]===K[H];)H++;return H?v(U[H],K[H]):U[H]==Ya?-1:K[H]==Ya?1:0};return aa};b.matches=function(u,A){return b(u,null,null,A)};b.matchesSelector=function(u,A){lb(u);if(!(!ua.matchesSelector||!za||Kb[A+" "]||Sa&&Sa.test(A)||Aa&&Aa.test(A)))try{var w=Ob.call(u,A);if(w||ua.disconnectedMatch||u.document&&11!==u.document.nodeType)return w}catch(E){Kb(A,!0)}return 0u.nodeType)return!1;return!0},parent:function(u){return!ma.pseudos.empty(u)}, header:function(u){return qd.test(u.nodeName)},input:function(u){return pd.test(u.nodeName)},button:function(u){var A=u.nodeName.toLowerCase();return"input"===A&&"button"===u.type||"button"===A},text:function(u){var A;return"input"===u.nodeName.toLowerCase()&&"text"===u.type&&(null==(A=u.getAttribute("type"))||"text"===A.toLowerCase())},first:G(function(){return[0]}),last:G(function(u,A){return[A-1]}),eq:G(function(u,A,w){return[0>w?w+A:w]}),even:G(function(u,A){for(var w=0;ww?w+A:w>A?A:w;0<=--A;)u.push(A);return u}),gt:G(function(u,A,w){for(w=0>w?w+A:w;++w:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;g.filter=function(a,b,e){var f=b[0];e&&(a=":not("+a+")");return 1===b.length&&1===f.nodeType?g.find.matchesSelector(f,a)?[f]:[]:g.find.matches(a,g.grep(b,function(l){return 1===l.nodeType}))};g.fn.extend({find:function(a){var b,e=this.length,f=this;if("string"!==typeof a)return this.pushStack(g(a).filter(function(){for(b=0;b)[^>]*|#([\w-]+))$/;(g.fn.init=function(a,b,e){if(!a)return this;e=e||td;if("string"===typeof a){var f="\x3c"===a[0]&&"\x3e"===a[a.length-1]&&3<=a.length?[null,a,null]:sd.exec(a);if(!f||!f[1]&&b)return!b||b.jquery? (b||e).find(a):this.constructor(b).find(a);if(f[1]){if(b=b instanceof g?b[0]:b,g.merge(this,g.parseHTML(f[1],b&&b.nodeType?b.ownerDocument||b:ia,!0)),Cc.test(f[1])&&g.isPlainObject(b))for(f in b)if(ba(this[f]))this[f](b[f]);else this.attr(f,b[f])}else if(a=ia.getElementById(f[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):ba(a)?void 0!==e.ready?e.ready(a):a(g):g.makeArray(a,this)}).prototype=g.fn;var td=g(ia);var ud=/^(?:parents|prev(?:Until|All))/,vd={children:!0, contents:!0,next:!0,prev:!0};g.fn.extend({has:function(a){var b=g(a,this),e=b.length;return this.filter(function(){for(var f=0;fe.nodeType&&(v?-1=B&&(Q!==x&&(Y=void 0,Ha=[X]),M.rejectWith(Y,Ha))}};G?Wa():(g.Deferred.getStackHook&&(Wa.stackTrace=g.Deferred.getStackHook()),m.setTimeout(Wa))}}var B=0;return g.Deferred(function(G){b[0][3].add(z(0,G,ba(C)?C:y,G.notifyWith));b[1][3].add(z(0,G,ba(r)?r:y));b[2][3].add(z(0,G,ba(v)?v:x))}).promise()},promise:function(r){return null!=r?g.extend(r,f):f}},l={};g.each(b,function(r,v){var C=v[2],z=v[5];f[v[1]]=C.add;z&&C.add(function(){e=z},b[3-r][2].disable, b[3-r][3].disable,b[0][2].lock,b[0][3].lock);C.add(v[3].fire);l[v[0]]=function(){l[v[0]+"With"](this===l?void 0:this,arguments);return this};l[v[0]+"With"]=C.fireWith});f.promise(l);a&&a.call(l,l);return l},when:function(a){var b=arguments.length,e=b,f=Array(e),l=gb.call(arguments),r=g.Deferred(),v=function(C){return function(z){f[C]=this;l[C]=1=b&&(D(a,r.done(v(e)).resolve,r.reject,!b),"pending"===r.state()||ba(l[e]&&l[e].then)))return r.then(); for(;e--;)D(l[e],v(e),r.reject);return r.promise()}});var wd=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(a,b){m.console&&m.console.warn&&a&&wd.test(a.name)&&m.console.warn("jQuery.Deferred exception: "+a.message,a.stack,b)};g.readyException=function(a){m.setTimeout(function(){throw a;})};var ac=g.Deferred();g.fn.ready=function(a){ac.then(a).catch(function(b){g.readyException(b)});return this};g.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a? --g.readyWait:g.isReady)||(g.isReady=!0,!0!==a&&0<--g.readyWait||ac.resolveWith(ia,[g]))}});g.ready.then=ac.then;"complete"===ia.readyState||"loading"!==ia.readyState&&!ia.documentElement.doScroll?m.setTimeout(g.ready):(ia.addEventListener("DOMContentLoaded",F),m.addEventListener("load",F));var fb=function(a,b,e,f,l,r,v){var C=0,z=a.length,B=null==e;if("object"===d(e))for(C in l=!0,e)fb(a,b,C,e[C],!0,r,v);else if(void 0!==f&&(l=!0,ba(f)||(v=!0),B&&(v?(b.call(a,f),b=null):(B=b,b=function(G,M,Q){return B.call(g(G), Q)})),b))for(;C\x20\t\r\n\f]*)/i,hc=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=ia.createDocumentFragment().appendChild(ia.createElement("div")), b=ia.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);na.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";na.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue;a.innerHTML="\x3coption\x3e\x3c/option\x3e";na.option=!!a.lastChild})();var Qa={thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"], tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Qa.tbody=Qa.tfoot=Qa.colgroup=Qa.caption=Qa.thead;Qa.th=Qa.td;na.option||(Qa.optgroup=Qa.option=[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"]);var Uc=/<|&#?\w+;/,yd=/^key/,zd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ec=/^([^.]*)(?:\.(.+)|)/;g.event={global:{},add:function(a,b,e,f,l){var r,v,C,z;var B= T.get(a);if(zb(a)){if(e.handler){var G=e;e=G.handler;l=G.selector}l&&g.find.matchesSelector(pb,l);e.guid||(e.guid=g.guid++);(v=B.events)||(v=B.events=Object.create(null));(r=B.handle)||(r=B.handle=function(Y){return"undefined"!==typeof g&&g.event.triggered!==Y.type?g.event.dispatch.apply(a,arguments):void 0});b=(b||"").match(Za)||[""];for(B=b.length;B--;){var M=Ec.exec(b[B])||[];var Q=C=M[1];var pa=(M[2]||"").split(".").sort();Q&&(M=g.event.special[Q]||{},Q=(l?M.delegateType:M.bindType)||Q,M=g.event.special[Q]|| {},C=g.extend({type:Q,origType:C,data:f,handler:e,guid:e.guid,selector:l,needsContext:l&&g.expr.match.needsContext.test(l),namespace:pa.join(".")},G),(z=v[Q])||(z=v[Q]=[],z.delegateCount=0,M.setup&&!1!==M.setup.call(a,f,pa,r)||a.addEventListener&&a.addEventListener(Q,r)),M.add&&(M.add.call(a,C),C.handler.guid||(C.handler.guid=e.guid)),l?z.splice(z.delegateCount++,0,C):z.push(C),g.event.global[Q]=!0)}}},remove:function(a,b,e,f,l){var r,v,C,z,B,G=T.hasData(a)&&T.get(a);if(G&&(C=G.events)){b=(b||"").match(Za)|| [""];for(z=b.length;z--;){var M=Ec.exec(b[z])||[];var Q=B=M[1];var pa=(M[2]||"").split(".").sort();if(Q){var Y=g.event.special[Q]||{};Q=(f?Y.delegateType:Y.bindType)||Q;var Ha=C[Q]||[];M=M[2]&&new RegExp("(^|\\.)"+pa.join("\\.(?:.*\\.|)")+"(\\.|$)");for(v=r=Ha.length;r--;){var Ia=Ha[r];!l&&B!==Ia.origType||e&&e.guid!==Ia.guid||M&&!M.test(Ia.namespace)||f&&f!==Ia.selector&&("**"!==f||!Ia.selector)||(Ha.splice(r,1),Ia.selector&&Ha.delegateCount--,Y.remove&&Y.remove.call(a,Ia))}v&&!Ha.length&&(Y.teardown&& !1!==Y.teardown.call(a,pa,G.handle)||g.removeEvent(a,Q,G.handle),delete C[Q])}else for(Q in C)g.event.remove(a,Q+b[z],e,f,!0)}g.isEmptyObject(C)&&T.remove(a,"handle events")}},dispatch:function(a){var b,e,f,l=Array(arguments.length),r=g.event.fix(a);var v=(T.get(this,"events")||Object.create(null))[r.type]||[];var C=g.event.special[r.type]||{};l[0]=r;for(b=1;b\s*$/g;g.extend({htmlPrefilter:function(a){return a},clone:function(a,b,e){var f,l=a.cloneNode(!0), r=rb(a);if(!(na.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||g.isXMLDoc(a))){var v=fa(l);var C=fa(a);var z=0;for(f=C.length;zg.inArray(this,a)&&(g.cleanData(fa(this)),e&&e.replaceChild(b,this))},a)}});g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){g.fn[a]=function(e){for(var f=[],l=g(e),r=l.length-1,v=0;v<=r;v++)e=v===r?this: this.clone(!0),g(l[v])[b](e),Wb.apply(f,e.get());return this.pushStack(f)}});var Rb=new RegExp("^("+Dc+")(?!px)[a-z%]+$","i"),Hb=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=m);return b.getComputedStyle(a)},Fc=function(a,b,e){var f,l={};for(f in b)l[f]=a.style[f],a.style[f]=b[f];e=e.call(a);for(f in b)a.style[f]=l[f];return e},Xc=new RegExp(ab.join("|"),"i");(function(){function a(){if(z){C.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"; z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";pb.appendChild(C).appendChild(z);var B=m.getComputedStyle(z);b="1%"!==B.top;v=12===Math.round(parseFloat(B.marginLeft));z.style.right="60%";l=36===Math.round(parseFloat(B.right));e=36===Math.round(parseFloat(B.width));z.style.position="absolute";f=12===Math.round(parseFloat(z.offsetWidth/3));pb.removeChild(C);z=null}}var b,e,f,l,r,v,C=ia.createElement("div"), z=ia.createElement("div");z.style&&(z.style.backgroundClip="content-box",z.cloneNode(!0).style.backgroundClip="",na.clearCloneStyle="content-box"===z.style.backgroundClip,g.extend(na,{boxSizingReliable:function(){a();return e},pixelBoxStyles:function(){a();return l},pixelPosition:function(){a();return b},reliableMarginLeft:function(){a();return v},scrollboxSize:function(){a();return f},reliableTrDimensions:function(){if(null==r){var B=ia.createElement("table");var G=ia.createElement("tr");var M=ia.createElement("div"); B.style.cssText="position:absolute;left:-11111px";G.style.height="1px";M.style.height="9px";pb.appendChild(B).appendChild(G).appendChild(M);G=m.getComputedStyle(G);r=3f;f++)l[a+ab[f]+b]=e[f]||e[f-2]||e[0];return l}};"margin"!==a&&(g.cssHooks[a+b].set=Ta)});g.fn.extend({css:function(a,b){return fb(this,function(e,f,l){var r,v={},C=0;if(Array.isArray(f)){l=Hb(e);for(r=f.length;Ce.indexOf(" "+f+" ")&&(e+=f+" ");e=jb(e);C!==e&&b.setAttribute("class",e)}}return this},removeClass:function(a){var b,e,f,l,r=0;if(ba(a))return this.each(function(z){g(this).removeClass(a.call(this,z,kb(this)))});if(!arguments.length)return this.attr("class","");var v=Sb(a);if(v.length)for(;b=this[r++];){var C=kb(b);if(e=1===b.nodeType&&" "+jb(C)+" "){for(l=0;f=v[l++];)for(;-1e?r:f?e:0;az.indexOf(":")&&"on"+z;a=a[g.expando]?a:new g.Event(z,"object"=== typeof a&&a);a.isTrigger=f?2:3;a.namespace=B.join(".");a.rnamespace=a.namespace?new RegExp("(^|\\.)"+B.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;a.result=void 0;a.target||(a.target=e);b=null==b?[a]:g.makeArray(b,[a]);B=g.event.special[z]||{};if(f||!B.trigger||!1!==B.trigger.apply(e,b)){if(!f&&!B.noBubble&&!qb(e)){var Q=B.delegateType||z;Ic.test(Q+z)||(G=G.parentNode);for(;G;G=G.parentNode)C.push(G),l=G;l===(e.ownerDocument||ia)&&C.push(l.defaultView||l.parentWindow||m)}for(l=0;(G=C[l++])&&!a.isPropagationStopped();)v= G,a.type=1ea||304===ea;Pa&&(Da=$c(B,X,Pa)); !aa&&-1ea&&(ea=0);X.status=ea;X.statusText=(ra||za)+"";aa?Q.resolveWith(G,[Aa,za,X]):Q.rejectWith(G, [X,za,Sa]);X.statusCode(Y);Y=void 0;C&&M.trigger(aa?"ajaxSuccess":"ajaxError",[X,B,aa?Aa:Sa]);pa.fireWith(G,[X,za]);C&&(M.trigger("ajaxComplete",[X,B]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var f,l,r,v,C,z,B=g.ajaxSetup({},b),G=B.context||B,M=B.context&&(G.nodeType||G.jquery)?g(G):g.event,Q=g.Deferred(),pa=g.Callbacks("once memory"),Y=B.statusCode||{},Ha={},Ia={},Wa="canceled",X={readyState:0,getResponseHeader:function(ea){var ra;if(Ja){if(!r)for(r= {};ra=Od.exec(l);)r[ra[1].toLowerCase()+" "]=(r[ra[1].toLowerCase()+" "]||[]).concat(ra[2]);ra=r[ea.toLowerCase()+" "]}return null==ra?null:ra.join(", ")},getAllResponseHeaders:function(){return Ja?l:null},setRequestHeader:function(ea,ra){null==Ja&&(ea=Ia[ea.toLowerCase()]=Ia[ea.toLowerCase()]||ea,Ha[ea]=ra);return this},overrideMimeType:function(ea){null==Ja&&(B.mimeType=ea);return this},statusCode:function(ea){var ra;if(ea)if(Ja)X.always(ea[X.status]);else for(ra in ea)Y[ra]=[Y[ra],ea[ra]];return this}, abort:function(ea){ea=ea||Wa;f&&f.abort(ea);e(0,ea);return this}};Q.promise(X);B.url=((a||B.url||Cb.href)+"").replace(Qd,Cb.protocol+"//");B.type=b.method||b.type||B.method||B.type;B.dataTypes=(B.dataType||"*").toLowerCase().match(Za)||[""];if(null==B.crossDomain){a=ia.createElement("a");try{a.href=B.url,a.href=a.href,B.crossDomain=cc.protocol+"//"+cc.host!==a.protocol+"//"+a.host}catch(ea){B.crossDomain=!0}}B.data&&B.processData&&"string"!==typeof B.data&&(B.data=g.param(B.data,B.traditional));oc(Mc, B,b,X);if(Ja)return X;(C=g.event&&B.global)&&0===g.active++&&g.event.trigger("ajaxStart");B.type=B.type.toUpperCase();B.hasContent=!Pd.test(B.type);var Ga=B.url.replace(Md,"");B.hasContent?B.data&&B.processData&&0===(B.contentType||"").indexOf("application/x-www-form-urlencoded")&&(B.data=B.data.replace(Ld,"+")):(a=B.url.slice(Ga.length),B.data&&(B.processData||"string"===typeof B.data)&&(Ga+=(bc.test(Ga)?"\x26":"?")+B.data,delete B.data),!1===B.cache&&(Ga=Ga.replace(Nd,"$1"),a=(bc.test(Ga)?"\x26": "?")+"_\x3d"+Kc++ +a),B.url=Ga+a);B.ifModified&&(g.lastModified[Ga]&&X.setRequestHeader("If-Modified-Since",g.lastModified[Ga]),g.etag[Ga]&&X.setRequestHeader("If-None-Match",g.etag[Ga]));(B.data&&B.hasContent&&!1!==B.contentType||b.contentType)&&X.setRequestHeader("Content-Type",B.contentType);X.setRequestHeader("Accept",B.dataTypes[0]&&B.accepts[B.dataTypes[0]]?B.accepts[B.dataTypes[0]]+("*"!==B.dataTypes[0]?", "+Nc+"; q\x3d0.01":""):B.accepts["*"]);for(z in B.headers)X.setRequestHeader(z,B.headers[z]); if(B.beforeSend&&(!1===B.beforeSend.call(G,X,B)||Ja))return X.abort();Wa="abort";pa.add(B.complete);X.done(B.success);X.fail(B.error);if(f=oc(Ub,B,b,X)){X.readyState=1;C&&M.trigger("ajaxSend",[X,B]);if(Ja)return X;B.async&&0=c.length||(null===k||"undefined"===typeof k?delete p[h]:p[h]=k,m.each(p,function(y, x){q.push(y+":\x3d"+encodeURIComponent(x))}),ContextHub.Utils.Cookie.setItem(c,q.join("|")))};n.getItem=function(c,h){return d(c)[h]};n.removeItem=function(c,h){n.setItem(c,h,null)}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.cookie.js"); (function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n={path:"/",expires:void 0,domain:void 0,secure:!1,trimUndefined:!0},d=function(q,y){var x=m.type(y);"object"===x&&m.isArray(y)&&(x="array");switch(x){case "regexp":return y.test(q);case "string":return q===y;case "function":return!0===y(q);case "array":var D=!1;m(y).each(function(F,J){D=d(q,J);return!D});return D;default:return!1}},c=function(q){var y="undefined"===typeof q,x=t.document.cookie?t.document.cookie.split(/;/):[],D=[];m(x).each(function(F, J){F=decodeURIComponent(J.split(/=/)[0].trim());F.length&&-1===m.inArray(F,D)&&(y||d(F,q))&&D.push(F)});return D.sort()},h=function(q,y,x){if("undefined"===typeof q)return!1;var D=m.type(y);x=m.extend(!0,{},n,x);y=!x.trimUndefined||"undefined"!==D&&"null"!==D?y:"";switch(m.type(x.expires)){case "date":break;case "number":D=new Date;D.setDate(D.getDate()+x.expires);x.expires=D;break;default:x.expires=void 0}q=[encodeURIComponent(q),"\x3d",encodeURIComponent(y),x.expires?"; expires\x3d"+x.expires.toUTCString(): "",x.domain?"; domain\x3d"+x.domain:"",x.path?"; path\x3d"+x.path:"",x.secure?"; secure":""].join("");return t.document.cookie=q},k=function(q){var y=t.document.cookie?t.document.cookie.split(/;/):[],x=null;m(y).each(function(D,F){D=decodeURIComponent(F.split(/=/).slice(1).join("\x3d").trim());decodeURIComponent(F.split(/=/)[0].trim())===q&&(x=D);return null===x});return x},p=function(q,y){h(q,"",m.extend({},y,{expires:-1}))};ContextHub.Utils.Cookie={setItem:h,getItem:k,getAllItems:function(q){var y= {};m(c(q)).each(function(x,D){x=k(D);var F=m.type(x);"undefined"!==F&&"null"!==F&&(y[D]=x)});return y},getKeys:c,exists:function(q){return null!==k(q)},removeItem:p,vanish:function(q,y){m(c(q)).each(function(x,D){p(D,y)})}}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.json.js"); (function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n=function(q){var y=null;"string"===typeof q&&(y=q.split(/(?:\s*\/+\s*)+/),""===y[0]&&y.shift(),y.length&&""===y[y.length-1]&&y.pop());return y},d=function(q,y){var x=null;if(y=n(y))for(x=q,q=0;qJ?-1:1:x===D?0:x>D?1:-1});m.each(y,function(x,D){x=d(q,D);var F=m.type(x);"object"!==F&&"array"!==F||!m.isEmptyObject(x)||(q=c(q,D))});return q},addAllItems:function(q,y){return m.extend(!0,{},q,y)}}})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.eventing.js"); (function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n=function(){var N=m.grep([t.requestAnimationFrame,t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,t.oRequestAnimationFrame],m.isFunction).shift();if(!N){var R=0;N=function(ca){var wa=(new Date).getTime(),ha=Math.max(0,16-(wa-R)),la=t.setTimeout(function(){ca(wa+ha)},ha);R=wa+ha;return la}}return N}();(function(){var N=m.grep([t.cancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame, t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.oCancelRequestAnimationFrame],m.isFunction).shift();N||(N=function(R){t.clearTimeout(R)});return N})();var d={},c={},h=function(N,R,ca){N=(N||"").replace(/^ *| *$/g,"");if(N.length){ca=ca||{};ca.hasOwnProperty("defer")||(ca.defer=this.config.defer);var wa=ca.defer;ca=ca._||{};N="/"+this.config.namespace+"/"+N;var ha=ContextHub.Utils.JSON.tree.getItem(this.queue,N)||{};ha.hasOwnProperty("executeAt")||(ha.executeAt=null);ha.hasOwnProperty("data")|| (ha.data=[]);for(var la in ca)ca.hasOwnProperty(la)&&"undefined"===typeof ha[la]&&(ha[la]=ca[la]);la=(new Date).getTime()+wa;if(!ha.executeAt||0===wa||ha.executeAt>la)ha.executeAt=la;m.isEmptyObject(R)||ha.data.push(R);this.queue=ContextHub.Utils.JSON.tree.setItem(this.queue,N,ha);this.eventingCounter=wa?this.eventingCounter:0;R=!0===this.queueIsEmpty;this.queueIsEmpty=!1;R&&this.eventingMonitor()}},k=function(){return this.queue},p=function(N,R){N.list.push(R.key);N.hash[R.key]=R},q=function(N){for(var R= m.extend(!0,{},N,{data:[]}),ca={},wa=function(Ua,Ma,La){var hb=Ua.key||"temp"+Math.random(),wb=ca[hb],tb=(wb||{}).old||null;ca[hb]=m.extend(!0,{},Ua);ca[hb]._idx=parseFloat(Ma+"."+(La||0));wb&&(ca[hb].old=tb)},ha=0;haR.executeAt){var ca=this.config.namespace+"-"+N,wa=R.duration?"("+R.duration+") ":"",ha=ContextHub.debug(),la=m(this.config.broadcast);if(!this.windowBroadcast.initialized){var ta=t;var Ca=t.parent;try{for(;ta.location.origin===Ca.location.origin&&(ta=Ca,Ca=Ca.parent,ta!==t.top););}catch(Ta){}try{this.windowBroadcast.top=this.config.broadcast===ta?null:ta}catch(Ta){}this.windowBroadcast.initialized=!0}ta=this.windowBroadcast.top;R=q(R);R.event=ca;R.overlay&&(R= m.extend(!0,R,R.overlay));delete (this.queue[this.config.namespace]||{})[N];this.queueIsEmpty=m.isEmptyObject(this.queue[this.config.namespace]);if(!R.muteWhenNoData||R.muteWhenNoData&&0(new Date).getTime()&&p===d?(this.duration="cached",this.announceReadiness()):(this.setItem(ContextHub.Constants.SERVICE_LAST_URL_KEY,d),t.ContextHub.Callbacks=t.ContextHub.Callbacks||{},ContextHub.Callbacks[this.callbackName]=this.callbackFunction.bind(this),d={url:d,timeout:this.config.service.timeout,async:this.config.service.synchronous?!1:!0, method:this.config.service.method||"GET"},c&&m.extend(d,{dataType:"script",cache:!0}),this.pauseEventing(),this.duration=0,ContextHub.Shared.timers.start(this.name),d=m.ajax(d),c||d.done(function(q,y,x){q=ContextHub.Utils.JSON.parse(x.responseText);ContextHub.Callbacks[k.callbackName](q)}),d.fail(function(q){k.failureHandler(q)}),d.always(function(){h||k.resumeEventing();k.announceReadiness()}))}};ContextHub.Store.JSONPStore.prototype.successHandler=function(n){return n};ContextHub.Store.JSONPStore.prototype.failureHandler= function(n){ContextHub.console.log('There was an error while accessing JSONP service in the store "'+this.name+'", configuration: ',(this.config||{}).service,", error: ",n)};ContextHub.Store.JSONPStore.prototype.callbackFunction=function(n){this.duration=ContextHub.Shared.timers.finish(this.name)+"ms";this.setItem(ContextHub.Constants.SERVICE_RESPONSE_TIME_KEY,(new Date).getTime());n=this.successHandler(n);n=m.extend(!0,n instanceof Array?[]:{},n);this.setItem(ContextHub.Constants.SERVICE_RAW_RESPONSE_KEY, n)};ContextHub.Store.JSONPStore.prototype.getRawResponse=function(){return this.getItem(ContextHub.Constants.SERVICE_RAW_RESPONSE_KEY)||{}};ContextHub.Store.JSONPStore.prototype.reset=function(n){this.uber("reset",n);this.queryService(!1)};ContextHub.Store.JSONPStore.prototype.setUpdateInterval=function(n){n=isNaN(n)?this.config.pollInterval:n;this.intervalHandler&&(t.clearInterval(this.intervalHandler),this.intervalHandler=null);if(0p.length){var q=p.length;0===q&&(p.push(null),p.push(null));1===q&&p.push(h?!0:null)}q=ContextHub.SegmentEngine.getObjectValue(p[0]);var y=m.type(q);y=ContextHub.SegmentEngine.OperatorManager.getOperator(c,y);var x=function(O){h&&!1===O&&(d=n=!1);k&&!0===O&&(n=!0,d=!1)};x(q);var D=p.length?p.slice(1):[null]; if(y&&d){var F=h||k?p.length:2;c=y.operatorName;D=[];for(var J=1;Jt});ContextHub.SegmentEngine.OperatorManager.register("greater-than.string",function(m,t){m=String(m);t=String(t);return m>t});ContextHub.SegmentEngine.OperatorManager.register("greater-than.number",function(m,t){m=Number(String(m)||void 0);t=Number(String(t)||void 0);return m>t});ContextHub.SegmentEngine.OperatorManager.register("greater-than.date",function(m,t){m=new Date(m||void 0);t=new Date(t|| void 0);return Number(m)>Number(t)})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.greater-than-or-equal.js"); (function(m){var t=function(c,h){ContextHub.console.error("[-] [SegmentEngine] Comparison operator not found:",c+(h?"."+h:""));return function(){return!1}},n=function(c,h){return(ContextHub.SegmentEngine.OperatorManager.getOperator(c,h)||{}).handler||t(c,h)},d=function(c){var h=n("greater-than",c),k=n("equal",c);return function(){return h.apply(this,arguments)||k.apply(this,arguments)}};m.each(ContextHub.SegmentEngine.OperatorManager.getAllOperators(),function(c){if(/^greater-than(\.|$)/.test(c)){var h= c.split(".",2);c=h.shift();h=h.shift();c=c.replace("greater-than","greater-than-or-equal");h&&(c+="."+h);ContextHub.SegmentEngine.OperatorManager.register(c,d(h))}})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.js"); (function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};ContextHub.SegmentEngine.PageInteraction={};ContextHub.SegmentEngine.PageInteraction.info={propertyHolder:"data-contexthub-property",processorHolder:"data-processor",defaultHolder:"data-default-value"};ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders=function(n){var d="["+ContextHub.SegmentEngine.PageInteraction.info.propertyHolder+(n?'^\x3d"%1"]':"]");n=m([d.replace(/%1/,"/"+n), d.replace(/%1/,n)].join(", "));var c=[];m.each(n,function(h,k){h=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder(k);h.isValid()&&c.push(h)});return c}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.PropertyPlaceholder.js"); (function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n=function(){var d=this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.propertyHolder);this.element&&d?(d=ContextHub.Utils.JSON.tree.sanitizeKey(d),this.storeName=d.shift(),this.propertyName="/"+d.join("/"),this.keyName="/"+this.storeName+this.propertyName,this.defaultValue=m.trim(this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.defaultHolder)||""),this.processors= [],m.each((this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.processorHolder)||"").split(/,/),function(c,h){c=m.trim(h);c.length&&this.processors.push(c)}.bind(this))):(this.defaultValue=this.propertyName=this.keyName=this.storeName=null,this.processors=[])};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder=function(d){var c=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder;if(!(this instanceof c))return ContextHub.Utils.inheritance.newInstance(c,arguments);this.element= m(d);n.call(this)};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.update=function(d){n.call(this);var c=this.getValueProcessors();d||(d=ContextHub.get(this.getKey()));d&&""!==d||(d=this.getDefaultValue());for(var h=0;h=n?"0":"")+n};m=new Date(1E3*m);m=isNaN(m.getMilliseconds())?new Date:m;return[[m.getFullYear(),t(m.getMonth()+1),t(m.getDay())].join("-"),[t(m.getHours()),t(m.getMinutes()),t(m.getSeconds())].join(":")].join(" ")})})(); ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.page-update-watcher.js"); (function(m,t){var n=t.MutationObserver||t.WebKitMutationObserver;if(n){var d={childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:[ContextHub.SegmentEngine.PageInteraction.info.propertyHolder,ContextHub.SegmentEngine.PageInteraction.info.defaultHolder,ContextHub.SegmentEngine.PageInteraction.info.processorHolder]};m(function(){(new n(function(c){for(var h="["+ContextHub.SegmentEngine.PageInteraction.info.propertyHolder+"]",k=[],p=0;p< c.length;p++){var q=c[p];m.merge(k,m(q.addedNodes).filter(h));q.attributeName&&q.target&&k.push(q.target)}m.each(m.unique(k),function(y,x){y=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder(x);y.isValid()&&y.update()})})).observe(t.document.body,d)})}m(function(){var c=ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders();m.each(c,function(h,k){k.isValid()&&k.update()})})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.data-update-watcher.js"); (function(m){ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED,function(t,n){t=ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders((n||{}).store);m.each(t,function(d,c){var h=c.getPropertyName();d=this.eventData.keys.set.hash[h];h=this.eventData.keys.removed.hash[h];var k=d?d.value:void 0;(d||h)&&c.update(k)}.bind({eventData:n}))},"page-interaction",!0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.teaser-update.js"); (function(m){var t=0,n=function(){var c=ContextHub.SegmentEngine.PageInteraction.TeaserManager.getAllTeasers();m.each(c,function(h,k){k.isRegistered()&&k.updatePlaceholder()})},d=function(){80<=(new Date).getTime()-t?(n(),t=0):window.requestAnimationFrame(d)};ContextHub.eventing.once([ContextHub.Constants.EVENT_ALL_STORES_READY,ContextHub.Constants.EVENT_STORES_PARTIALLY_READY],function(){var c=[ContextHub.Constants.EVENT_SEGMENT_UPDATED,ContextHub.Constants.EVENT_STORE_UPDATED+":campaign",ContextHub.Constants.EVENT_TEASER_REGISTERED]; ContextHub.eventing.off(c,"teaser-updater");ContextHub.eventing.on(c,function(){var h=0===t;t=(new Date).getTime()+80;h&&d()},"teaser-updater",!0)},"teaser-initialization",!0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.first.js");(function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("first","First candidate",function(m){return(m||[])[0]||null})})(); ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.last.js");(function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("last","Last candidate",function(m){var t;m&&(t=m[m.length-1]);return t||null})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.random.js"); (function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("random","Random",function(m){var t;m&&(t=m[Math.floor(Math.random()*m.length)]);return t||null})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.geolocation-basic.js"); (function(m,t){var n={html5coordinatesDiscoveryAPI:{timeout:3E4,ttl:9E5,highAccuracy:!1},initialValues:{latitude:37.331375,longitude:-121.893992}},d=function(c,h){this.config=m.extend(!0,{},n,h);this.init(c,this.config);m.extend(this.config.html5coordinatesDiscoveryAPI,{location:this.config.initialValues});this.updateLocationModule()};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedStore);d.prototype.getCoordinates=function(){var c=m.Deferred();if(!t.navigator.geolocation)return c.reject(); var h=this.config.html5coordinatesDiscoveryAPI;t.navigator.geolocation.getCurrentPosition(c.resolve,c.reject,{maximumAge:h.ttl,timeout:h.timeout,enableHighAccuracy:h.highAccuracy});return c.promise()};d.prototype.loadCurrentLocation=function(){var c=this;m.when(this.getCoordinates()).then(function(h){c.loadLocation(h.coords||{})})};d.prototype.loadLocation=function(c){c=c||{};m.isNumeric(c.latitude)&&m.isNumeric(c.longitude)&&(this.storeLocation(c,{}),this.updateLocationModule())};d.prototype.storeLocation= function(c,h){c=m.extend(h,c);this.setItem("latitude",parseInt(1E6*c.latitude,10)/1E6);this.setItem("longitude",parseInt(1E6*c.longitude,10)/1E6)};d.prototype.areCoordinatesSet=function(){return m.isNumeric(this.getItem("latitude"))&&m.isNumeric(this.getItem("longitude"))};d.prototype.updateLocationModule=function(){var c=this,h=!0;h&&!this.areCoordinatesSet()&&(h=!1);h||m.when(this.getCoordinates()).then(function(k){c.storeLocation(k.coords||{},c.config.html5coordinatesDiscoveryAPI.location)},function(){c.storeLocation({}, c.config.html5coordinatesDiscoveryAPI.location)})};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"contexthub.geolocation",10,function(){var c=ContextHub.Utils.JSON.tree.getItem(t.ContextHubKernelConfig||{},"stores/geolocation/config/geocoder")||{enabled:!1};return"geolocation"in t.navigator&&!c.enabled})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.geolocation.js"); (function(m,t){var n={service:{jsonp:!1,timeout:1E3,ttl:18E5,secure:"https:"===t.location.protocol,host:"maps.googleapis.com",port:80,path:"/maps/api/geocode/json"},geocoder:{enabled:!1},eventDeferring:16,html5coordinatesDiscoveryAPI:{timeout:3E4,ttl:9E5,highAccuracy:!1},signatureGenerator:ContextHub.Paths.CONTEXTHUB_PATH+"/geolocation.signature.json",initialValues:{defaultLocation:{latitude:37.331375,longitude:-121.893992,address:{country:"United States",countryCode:"US",city:"San Jose",street:"Almaden Blvd", streetNumber:"151",region:"CA",name:"151 Almaden Blvd, San Jose, CA 95113, USA",postalCode:"95113"},addressDetailsOf:{latitude:37.331375,longitude:-121.893992}}}},d=function(k,p){this.config=m.extend(!0,{},n,p);m.extend(this.config.service,{params:{sensor:!1,latlng:"${contexthub:/store/"+k+"/latitude},${contexthub:/store/"+k+"/longitude}"}});this.init(k,this.config);this.useGeocoder=!0===this.config.geocoder.enabled&&"ui"===ContextHub.Constants.MODE;h(this);this.useGeocoder||(this.announceReadiness(), this.removeItem("/address"));ContextHub.eventing.on("ui-container-opened",function(){this.queryService(!1,!0)}.bind(this),"geocoder-trigger",!0);this.queryService(!1,!0)},c=function(k){k&&k.loadLocation({latitude:k.getItem("latitude"),longitude:k.getItem("longitude")})},h=function(k){var p={latitude:!0,longitude:!0};k.onUpdate("data-synchronization",function(D,F){if(t.ClientContext){var J=!1;k.synchronizationLock=!0;m.each(F.keys.all.hash,function(I,O){I=I.replace(/^\//,"");-1===I.indexOf("_/")&& (ClientContext.set("geolocation/"+I,O.value),J=J||p[I])});delete k.synchronizationLock;J&&c(k)}});var q=function(D){D&&D.addListener("update",function(F,J){k.synchronizationLock||"string"!==typeof J||(F=this.getProperty(J),k.setItem(J,F))})};if(t.CQ_Analytics&&CQ_Analytics.ClientContextMgr){var y=function(){var D=CQ_Analytics.ClientContextMgr.getRegisteredStore("geolocation");if(D){var F={generatedThumbnail:!0};k.synchronizationLock=!0;m.each(k.getKeys(),function(J,I){J=I.replace(/^\//,"");I=k.getItem(I); "object"!==typeof I&&(F[J]=!0,D.setProperty(J,I))});m.each(D.getData(),function(J){F[J]||D.removeProperty(J)});delete k.synchronizationLock}return D};if(CQ_Analytics.ClientContextMgr.getRegisteredStore("geolocation")){var x=y();q(x)}else CQ_Analytics.ClientContextMgr.addListener("storeregister",function(D,F){"geolocation"===F.STORENAME&&(D=y(),q(D))})}};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedJSONPStore);d.prototype.getCoordinates=function(){var k=m.Deferred();if(!t.navigator.geolocation)return k.reject(); t.navigator.geolocation.getCurrentPosition(k.resolve,k.reject,{maximumAge:this.config.html5coordinatesDiscoveryAPI.ttl,timeout:this.config.html5coordinatesDiscoveryAPI.timeout,enableHighAccuracy:this.config.html5coordinatesDiscoveryAPI.highAccuracy});return k.promise()};d.prototype.generateSignature=function(k,p){if(this.useGeocoder&&ContextHub.UI&&ContextHub.UI.Container.isExpanded()){var q=this.getItem("addressDetailsOf")||{},y=this.getItem("latitude"),x=this.getItem("longitude");if(q.latitude!== y||q.longitude!==x)if((q=this.config.initialValues.defaultLocation)&&y===q.latitude&&x===q.longitude)this.setItem("address",q.address),this.setItem("addressDetailsOf",q.addressDetailsOf);else{delete this.config.service.params.client;delete this.config.service.params.signature;delete this.config.service.params.channel;y=this.getServiceURL(!0);y=y.replace(/^https?:\/\/[^/]*/,"");var D=this;m.ajax({url:this.config.signatureGenerator,method:"get",dataType:"json",cache:!1,data:{url:y}}).done(function(F, J,I){I&&I.responseJSON?(F=D.config.service.params,F.client=I.responseJSON.client||"",F.channel=I.responseJSON.channel||"",F.signature=I.responseJSON.signature||"",k()):"function"===typeof p&&p()}).fail(p)}}};d.prototype.loadCurrentLocation=function(){var k=this;m.when(this.getCoordinates()).then(function(p){k.loadLocation(p.coords||{})})};d.prototype.loadLocation=function(k){k=k||{};(n.initialValues.latitude!==k.latitude||n.initialValues.longitude!==k.longitude)&&m.isNumeric(k.latitude)&&m.isNumeric(k.longitude)&& (this.storeLocation(k,{}),this.queryService(!1,!0))};d.prototype.successHandler=function(k){if(k&&"OK"===k.status){var p=null,q=null,y=null,x=null,D=null,F=null,J=null,I=null;m.each((k.results||[]).reverse(),function(O,ja){ja=ja||{};I=ja.formatted_address||I;m.each(ja.address_components||[],function(ka,W){ka=W.types||[];-1!==m.inArray("administrative_area_level_1",ka)&&(F=W.short_name||F);-1!==m.inArray("country",ka)&&(p=W.long_name||p,q=W.short_name||q);-1!==m.inArray("locality",ka)&&(y=W.short_name|| y);-1!==m.inArray("route",ka)&&(x=W.short_name||x);-1!==m.inArray("street_number",ka)&&(D=W.short_name||D);-1!==m.inArray("postal_code",ka)&&(J=W.short_name||J)})});this.setItem("address",{country:p||"",countryCode:q||"",city:y||"",street:x||"",streetNumber:D||"",region:F||"",name:I||"",postalCode:J||""});this.setItem("addressDetailsOf",{latitude:this.getItem("latitude"),longitude:this.getItem("longitude")})}return k};d.prototype.failureHandler=function(k){ContextHub.console.log("Error while getting geolocation information:", k)};d.prototype.storeLocation=function(k,p){k=m.extend(p,k);this.setItem("latitude",parseInt(1E6*k.latitude,10)/1E6);this.setItem("longitude",parseInt(1E6*k.longitude,10)/1E6)};d.prototype.areCoordinatesSet=function(){return m.isNumeric(this.getItem("latitude"))&&m.isNumeric(this.getItem("longitude"))};d.prototype.queryService=function(k,p){var q=this;p&&!this.areCoordinatesSet()&&(p=!1);p?this.generateSignature(function(){q.uber("queryService",k)}):m.when(this.getCoordinates()).then(function(y){q.storeLocation(y.coords|| {},q.config.initialValues.defaultLocation);q.generateSignature(function(){q.uber("queryService",k)})},function(y){q.failureHandler(y);q.storeLocation({},q.config.initialValues.defaultLocation);q.generateSignature(function(){q.uber("queryService",k)})})};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"contexthub.geolocation",30,function(k){var p=null;this.store!==k&&(p=ContextHub.Utils.storeCandidates.getStoreFromCandidates({type:"contexthub.geolocation",required:!0}));return"geolocation"in t.navigator&&!p})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] cq.contexthub - store.clientcontext-backedstore.js (clientcontext connector)"); (function(m){window.ContextHub.Store=window.ContextHub.Store||{};ContextHub.Store.ClientContextBackedStore=function(){};ContextHub.Utils.inheritance.inherit(ContextHub.Store.ClientContextBackedStore,ContextHub.Store.PersistedJSONPStore);ContextHub.Store.ClientContextBackedStore.defaultConfig={mappingConfig:{propertyMapping:{},mapOtherProperties:!0,replicateToClientContext:!0}};ContextHub.Store.ClientContextBackedStore.prototype.init=function(t,n){this.uber("init",t,n);this.config=m.extend(!0,{},this.config, ContextHub.Store.ClientContextBackedStore.defaultConfig,n)};ContextHub.Store.ClientContextBackedStore.prototype.successHandler=function(t){var n=this.isEventingPaused(),d=this.config.mappingConfig.clientContextStoreName,c={},h;if(!this.preventSelfUpdating){this.preventSelfUpdating=!0;t=t||function(p,q){return q};this.pauseEventing();this.setItem("/",{});m.each(this.config.mappingConfig.propertyMapping,function(p,q){c[q]=!0;h=ClientContext.get(d+"/"+q);h=t(q,h);this.setItem("/"+p,h)}.bind(this));if(this.config.mappingConfig.mapOtherProperties){var k= ClientContext.get(d).data||{};m.each(k,function(p,q){c[p]||(q=t(p,q),this.setItem("/"+p,q))}.bind(this))}n||this.resumeEventing();this.preventSelfUpdating=!1}};ContextHub.Store.ClientContextBackedStore.prototype.failureHandler=function(t){};ContextHub.Store.ClientContextBackedStore.prototype.queryService=function(t,n){var d=this.config.mappingConfig.clientContextStoreName,c=this,h=function(){var k=ClientContext.get(d),p=c.isEventingPaused();c.pauseEventing();k?(k.addListener("update",function(){!0!== c.preventSelfUpdating&&c.successHandler(n)}),c.successHandler(n)):c.failureHandler();p||c.resumeEventing();c.announceReadiness()};ClientContext.get(d)?h():CQ_Analytics.ClientContextMgr.addListener("storeregister",function(k,p){p.STORENAME===d&&h()})};ContextHub.Store.ClientContextBackedStore.prototype.setItem=function(t,n){this.uber("setItem",t,n);if(this.config.mappingConfig.replicateToClientContext&&!0!==this.preventSelfUpdating&&(t=t.replace(/^\//,""),t.length)){var d=this.config.mappingConfig.propertyMapping[t]; !d&&this.config.mappingConfig.mapOtherProperties&&(d=t);d&&ClientContext.set(this.config.mappingConfig.clientContextStoreName+"/"+d,n)}};ContextHub.Store.ClientContextBackedStore.prototype.removeItem=function(t){this.uber("removeItem",t);if(this.config.mappingConfig.replicateToClientContext&&!0!==this.preventSelfUpdating){var n=t.replace(/^\//,"");n.length&&(t=this.config.mappingConfig.propertyMapping[n],!t&&this.config.mappingConfig.mapOtherProperties&&(t=n),t&&(n=CQ_Analytics.StoreRegistry.getStore(this.config.mappingConfig.clientContextStoreName))&& n.removeProperty(t))}}})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.clientcontext-geolocation.js (clientcontext connector)"); (function(m){var t={mappingConfig:{clientContextStoreName:"geolocation",propertyMapping:{},mapOtherProperties:!0,replicateToClientContext:!0}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.queryService(!0)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.ClientContextBackedStore);n.prototype.loadLocation=function(d){var c=ClientContext.get(this.config.mappingConfig.clientContextStoreName);c&&(c.setProperties(d),c.fireEvent("update"))};n.prototype.reset=function(){var d= ClientContext.get(this.config.mappingConfig.clientContextStoreName);d&&d.reset()};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"contexthub.geolocation",20,function(){return!!window.ClientContext})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.surferinfo - store.surferinfo.js"); (function(m,t){function n(k,p){this.init(k,p);this.config=m.extend({},this.config,p);this.readData()}var d,c=function(k,p){var q={};q[k]=p;d=m.extend(!0,d,q);return q},h=function(){var k,p="Opera Chromium Chrome Safari Edge Trident MSIE Firefox AppleWebKit".split(" "),q=t.navigator.userAgent;(k=q.match(new RegExp("( |^)("+p.join("|")+")(/| )[0-9.]*","ig")))?(k=m.map(k,function(y){y=m.trim(y).split(/[\/ ]/);return{version:y.pop(),family:y.pop()}}),k=k.sort(function(y,x){return y.family===x.family? y.versiont.screen.height?"landscape":"portrait",F="normal"):-90===F||90===F?(x="landscape",F=90===F?"left":"right"):(x="portrait",F=0===F?"normal":"upside-down");k=c("display",{resolution:q,devicePixelRatio:p,colorDepth:k,nrOfColors:y,pixelsPerInch:D,orientation:{mode:x,direction:F}}).display.resolution}this.getItem("window")|| (p=c("window",{dimension:{width:m(t).innerWidth()*p,height:m(t).innerHeight()*p}}).window.dimension,c("window",{percentageUsage:Math.floor(p.width*p.height/(k.width*k.height)*100)/100}));this.getItem("browser")||c("browser",h());p=null;k=t.navigator.userAgent;D=k.match(/mobile|touch/i);x=k.match(/tablet/i);F=k.match(/iphone/i);var J=k.match(/ipod/i),I=k.match(/ipad/i),O=k.match(/htc/i),ja=k.match(/(BlackBerry)([^/]*)\/([0-9.]*)/i),ka=k.match(/GT-([^ ]*)/),W=k.match(/ipad|ipod|iphone/i);q=k.match(/android/i); var fa=k.match(/windows/i),Ea=k.match(/(mobile|tablet);/i)&&k.match(/; rv:/i);y="Desktop";F||J||q&&D||fa&&D||ja&&D||Ea&&D?y="Mobile":(I||q&&x||fa&&x||ja&&x||Ea&&x)&&(y="Tablet");if(W){p="iOS";var sa=W.shift();var oa=(k.match("OS ([0-9_]*)")||[""]).pop().replace(/_/g,".")}!p&&fa&&(p="windows");!p&&O&&(p="Android",sa=O.shift(),oa=(k.match("HTC[_ /]([^ _;-]*)")||[""]).pop());!p&&ja&&4===ja.length&&(p="Blackberry",sa=ja.slice(1,3).join(" "),oa=ja.pop());!p&&ka&&(oa=ka.pop(),p="Android",sa="Samsung "+ ({I90:"Galaxy S",I91:"Galaxy S II",I93:"Galaxy S III",I95:"Galaxy S IV",N70:"Note",N71:"Note II",P31:"Tab",P51:"Tab II"}[oa.slice(0,3)]||"GT-"+oa),oa=(k.match("Android ([0-9.]*)")||[oa]).pop());!p&&q&&(p="Android",sa="Unresolved",oa=(k.match("Android ([0-9.]*)")||[""]).pop());p||(p="Desktop",sa="PC",oa="");sa={category:y,type:p,model:sa,version:oa};this.getItem("device")||c("device",sa);this.getItem("isMobile")||c("isMobile","desktop"!==sa.type);if(!this.getItem("os")){sa=null;oa=t.navigator.userAgent; if(oa.match(/Mac OS X|Macintosh/)){sa="Mac OS X";var ya=(oa.match(/(Mac OS X|CPU OS) ([0-9_]*)/)||[""]).pop().replace(/_/g,".");ya=(oa.match(/iPod|iPad|iPhone/)?"iOS ":"")+ya}sa||-1===oa.indexOf("Windows")||(sa="Windows",ya={"NT 10.0":"10","NT 6.3":"8.1","NT 6.2":"8","NT 6.1":"7","NT 6.0":"Vista","NT 5.2":"XP x64","NT 5.1":"XP","NT 5.01":"2000 SP1","NT 5.0":"2000","NT 4.0":"NT 4.0",98:"98","NT 95":"95","NT CE":"CE"}[oa.match(/Windows (.+?);/).pop()],"98"===ya&&-1!==oa.indexOf("Win 9x 4.90")&&(ya= "ME"));!sa&&oa.match(/Linux/)&&(sa="Linux",ya=null);!sa&&oa.match(/Android/)&&(sa="Android",ya=(oa.match("Android ([0-9.]*)")||[""]).pop());c("os",{name:sa||"Unresolved",version:ya||"Unresolved"})}ya=new Date;d.year=ya.getFullYear();d.month=ya.getMonth()+1;d.day=ya.getDate();d.hour=ya.getHours();d.minutes=ya.getMinutes();this.addAllItems(d,{defer:0})};n.prototype.reset=function(k){this.uber("reset",k);this.readData()};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"contexthub.surferinfo", 0)})(ContextHubJQ,this);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.profile - store.profile.js"); (function(m){var t={service:{jsonp:!1,timeout:1E3,path:"${contexthub:/store/profile/path}.infinity.json"},initialValues:{path:ContextHub.Constants.ANONYMOUS_HOME||"/home/users/a/anonymous"}},n=function(c){c=(new Date(c)).getTime();return~~((Date.now()-c)/315576E5)},d=function(c,h){this.config=m.extend(!0,{},t,h);this.init(c,this.config);this.onUpdate("age-update",function(k,p){var q=p.keys.set.hash["/birthday"];if(q){var y=this;window.setTimeout(function(){y.setItem("age",n(q.value))},50)}});this.queryService(!1)}; ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedJSONPStore);d.prototype.successHandler=function(c){this.pauseEventing();var h=this.getItem("path");h&&(h=Granite.HTTP.externalize(h));var k=m.extend(!0,{},c.profile),p=!!ContextHub.Utils.JSON.tree.getItem(k,"/photos/primary/image"),q=/\/(jcr|sling|):/;m.each(ContextHub.Utils.JSON.tree.getKeys(k),function(y,x){x.match(q)&&(k=ContextHub.Utils.JSON.tree.removeItem(k,x))});k=ContextHub.Utils.JSON.tree.setItem(k,"path",h);p&&(k=ContextHub.Utils.JSON.tree.setItem(k, "avatar",h+"/profile/photos/primary/image"));k.birthday&&(k=ContextHub.Utils.JSON.tree.setItem(k,"age",n(k.birthday)));k.authorizableId=k.authorizableId||c["rep:authorizableId"];c="anonymous";k.givenName&&k.familyName?c=parent.Granite.I18n.get("{0} {1}",[k.givenName,k.familyName],"name display order: {0} is the given (first) name, {1} the family (last) name"):k.givenName?c=k.givenName:k.familyName?c=k.familyName:k.authorizableId&&(c=k.authorizableId);k=ContextHub.Utils.JSON.tree.setItem(k,"displayName", c);this.setItem("/",k);c="anonymous"===k.displayName?"anonymous":k.authorizableId;ContextHub.Shared.CookieContainer.setItem("SessionPersistence","PROFILEDATA",c?"authorizableId\x3d"+c:null);this.resumeEventing()};d.prototype.loadProfile=function(c){var h=ContextHub.getStore("profile");h.setItem("path",c?Granite.HTTP.externalize(c):c);h.queryService(!0)};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"granite.profile",0)})(ContextHubJQ); ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.profile - store.clientcontext-profile.js (clientcontext connector)"); (function(m){var t={mappingConfig:{clientContextStoreName:"profile",propertyMapping:{displayName:"formattedName",path:"path",avatar:"avatar"},mapOtherProperties:!0,replicateToClientContext:!0}},n=function(c,h){"path"===c&&"string"===typeof h&&(h=h.replace(/\/profile$/,""));return h},d=function(c,h){this.config=m.extend({},!0,t,h);this.init(c,this.config);this.queryService(!0,n)};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.ClientContextBackedStore);d.prototype.loadProfile=function(c){c= (c||"").split("/").pop();c.length&&ClientContext.get(this.config.mappingConfig.clientContextStoreName).loadProfile(c)};d.prototype.reset=function(){var c=ClientContext.get(this.config.mappingConfig.clientContextStoreName);c&&c.reset()};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"granite.profile",10,function(){return!!window.ClientContext})})(ContextHubJQ); (function(m,t){m.Granite=m.Granite||{};m.Granite.author=m.Granite.author||{};var n=function(d){this.document=d;this._getRules()};n.getNativeDevice=function(){var d=m.innerWidth||document.documentElement.clientWidth,c=m.innerHeight||document.documentElement.clientHeight,h=m.screen.width,k=m.screen.height;var p=document.body;var q=document.createElement("div");p.appendChild(q);q.style.width="1in";var y=document.defaultView.getComputedStyle(q,null).getPropertyValue("width");p.removeChild(q);p=parseFloat(y); d={type:"screen",width:d,height:c,"device-width":h,"device-height":k,"device-pixel-ratio":1,resolution:p,scan:"progressive",grid:!1,color:m.screen.colorDepth,"color-index":m.screen.pixelDepth,monochrome:0};d["aspect-ratio"]=d.width/d.height;d.orientation=d.width>d.height?"landscape":"portrait";d["device-aspect-ratio"]=d["device-width"]/d["device-height"];return d};n.prototype={};Object.defineProperty(n.prototype,"appliedStyleSheet",{get:function(){for(var d=!0,c=this._appliedStyleSheet;c&&(c=c.parentNode);)if(c=== this.document){d=!1;break}if(!this._appliedStyleSheet||d)d=this.document,c=d.createElement("style"),c.appendChild(d.createTextNode("")),d.head.appendChild(c),this._appliedStyleSheet=c;return this._appliedStyleSheet}});n.prototype._getRules=function(){var d=[],c=n.parser.getMediaRules(this.document),h,k;for(h=0;hd.height?"landscape": "portrait");c["device-aspect-ratio"]=d["device-aspect-ratio"]||d["device-width"]/d["device-height"];return c};m.Granite.author.MediaEmulator=n})(this); (function(m,t){function n(x){var D=Number(x);D||(x=x.match(/^(\d+)\s*\/\s*(\d+)$/),D=x[1]/x[2]);return D}function d(x){var D=parseFloat(x);switch(String(x).match(y)[1]){case "dpcm":return D/2.54;case "dppx":return 96*D;default:return D}}function c(x){var D=parseFloat(x);switch(String(x).match(q)[1]){case "em":return 16*D;case "rem":return 16*D;case "cm":return 96*D/2.54;case "mm":return 96*D/2.54/10;case "in":return 96*D;case "pt":return 72*D;case "pc":return 72*D/12;default:return D}}var h=/^(?:(only|not)?\s*([_a-z][_a-z0-9-]*)|(\([^\)]+\)))(?:\s*and\s*(.*))?$/i, k=/^\(\s*([_a-z-][_a-z0-9-]*)\s*(?::\s*([^\)]+))?\s*\)$/,p=/^(?:(min|max)-)?(.+)/,q=/(em|rem|px|cm|mm|in|pt|pc)?\s*$/,y=/(dpi|dpcm|dppx)?\s*$/;Granite.author.MediaEmulator.parser={getMediaRules:function(x){x=x.styleSheets;var D=[];for(var F=0;F=O;case "max":return W<=O;default:return W===O}}))&&!F.not||!J&&F.not))return!0}}})(this); ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.emulators - store.emulators.js"); (function(m){var t={defaultEmulators:[{id:"ipad",title:"iPad",type:"tablet",platform:"iOS",platformVersion:"5.1.1",width:768,height:1024,canRotate:!0,orientation:"Portrait","device-pixel-ratio":1},{id:"ipad-2",title:"iPad 2",type:"tablet",platform:"iOS",platformVersion:"8.1.3",width:768,height:1024,canRotate:!0,orientation:"Portrait","device-pixel-ratio":1},{id:"ipad-3",title:"iPad 3 / 4 / Air",type:"tablet",platform:"iOS",platformVersion:"8.1.3",width:1536,height:2048,canRotate:!0,orientation:"Portrait", "device-pixel-ratio":2},{id:"iphone-4",title:"iPhone 4",type:"mobile",platform:"iOS",platformVersion:"7.1.2",width:640,height:960,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2},{id:"iphone-5",title:"iPhone 5",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:640,height:1136,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2},{id:"iphone-6",title:"iPhone 6",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:750,height:1334,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2}, {id:"iphone-6-plus",title:"iPhone 6 Plus",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:1080,height:1920,canRotate:!0,orientation:"Portrait","device-pixel-ratio":3},{id:"galaxy-s4",title:"Samsung Galaxy S4",type:"mobile",platform:"Android",platformVersion:"4.4.2 KitKat",width:1080,height:1920,canRotate:!0,orientation:"Portrait","device-pixel-ratio":3}]},n=function(d,c){this.config=m.extend(!0,{},t,c);c=this.getSupportedEmulators();m.extend(!0,this.config,{initialValues:{devices:c,currentDeviceId:c[0].id, orientations:[{id:"landscape",title:"Landscape"},{id:"portrait",title:"Portrait"}]}});this.init(d,this.config);this.mediaEmulator=null;window.Granite&&Granite.author&&Granite.author.MediaEmulator&&(this.mediaEmulator=new Granite.author.MediaEmulator(window.document));this.emulateDevice(this.getItem("currentDeviceId")||"native")};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedStore);n.prototype.detectNativeDevice=function(){var d=window.innerWidth||document.documentElement.clientWidth, c=window.innerHeight||document.documentElement.clientHeight,h=d>c?"Landscape":"Portrait",k=ContextHub.get("surferinfo/os/name")||"",p=ContextHub.get("surferinfo/os/version")||"";return{id:"native",title:"Native",type:"screen",width:d,height:c,orientation:h,platform:k,platformVersion:p,canRotate:!/mac os x|windows/i.test(k)}};n.prototype.getSupportedEmulators=function(){return m.merge([this.detectNativeDevice()],this.config.defaultEmulators)};n.prototype.emulateDevice=function(d){var c=d?this.getDeviceById(d): ContextHub.get("emulators/currentDevice");c&&this.mediaEmulator&&(this.setItem("currentDeviceId",c.id),this.setItem("currentDevice",c),"native"===d?this.mediaEmulator.restore():this.mediaEmulator.applyDevice(c),this.eventing.trigger("emulating-device:"+c.id,{device:c}));return c};n.prototype.getDeviceById=function(d){var c=null,h=this.getItem("devices")||[];m.each(h,function(k,p){p.id===d&&(c=p);return null===c});return c};n.prototype.reset=function(){this.uber("reset");var d=this.getItem("currentDeviceId"); this.emulateDevice(d)};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"granite.emulators",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.analyticsdata - store.analyticsdata.js");(function(m){var t={},n=function(d,c){this.init(d,this.config);this.config=m.extend(!0,{},t,c)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.SessionStore);ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"aem.analyticsdata",0)})(ContextHubJQ); ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.pagedata - store.pagedata.js"); (function(m){var t={forceExperienceCookie:"cq-forceexperience",service:{jsonp:!1,timeout:1E3,path:"${variable:ContextHub.Paths.RESOURCE_PATH}.pagedata.json"}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.queryService(!0)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedJSONPStore);n.prototype.successHandler=function(d){this.setItem("/",d||{})};n.prototype.setExperience=function(d){ContextHub.Utils.Cookie.setItem(this.config.forceExperienceCookie,d, {path:"/"})};n.prototype.getExperience=function(){return ContextHub.Utils.Cookie.getItem(this.config.forceExperienceCookie)};n.prototype.clearExperience=function(){ContextHub.Utils.Cookie.removeItem(this.config.forceExperienceCookie)};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"aem.pagedata",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.segmentation - store.segmentation.js"); (function(m){var t={service:{script:!0,timeout:3E3,path:window.ContextHub.Paths.SEGMENTATION_PATH+".seg.js"}},n=function(c,h){this.config=m.extend(!0,{},t,h);this.init(c,this.config);this.refreshData();ContextHub.eventing.on(ContextHub.Constants.EVENT_SEGMENT_UPDATED,function(){requestAnimationFrame(this.refreshData.bind(this))}.bind(this));ContextHub.isOptedOut()?this.announceReadiness():this.reloadSegments()};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedJSONPStore);n.prototype.reset= function(c){ContextHub.SegmentEngine.SegmentManager.unregisterAllSegments();this.uber("reset",c)};n.prototype.queryService=function(c){ContextHub.isOptedOut()||this.uber("queryService",c)};n.prototype.reloadSegments=function(){this.reset()};var d=function(c){c=parseInt(c,10)||0;if(0>=c)c="No segment";else if(5>=c)c=c+" segment"+(1=c&&k[c].quantity!=h&&(k[c].quantity=h,this.setItem("entries",k))};d.prototype.addSimulatedPromotion=function(c,h){for(var k=this.getItem("/_/simulatedPromotions")||[],p=!1,q=0;q=h))return!0}return!1};d.prototype.containsPromotion=function(c,h){c=c?t(c):null;var k=this.getItem("promotions")||[];h||(h="FIRED");for(var p=0;k&&p