티스토리 수익 글 보기
/*! For license information please see client.min.js.LICENSE.txt */
(function(){var __webpack_modules__={4294:function(t,n,e){var i;!function(r,o){“use strict”;var a=”function”,u=”undefined”,c=”object”,s=”string”,f=”model”,l=”name”,d=”type”,v=”vendor”,h=”version”,p=”architecture”,g=”console”,m=”mobile”,_=”tablet”,y=”smarttv”,w=”wearable”,b=”embedded”,E=”Amazon”,I=”Apple”,A=”ASUS”,T=”BlackBerry”,S=”Browser”,k=”Chrome”,R=”Firefox”,C=”Google”,N=”Huawei”,D=”LG”,O=”Microsoft”,x=”Motorola”,M=”Opera”,P=”Samsung”,L=”Sharp”,U=”Sony”,V=”Xiaomi”,F=”Zebra”,B=”Facebook”,z=function(t){for(var n={},e=0;e0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,f):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=f?f.replace(u[1],u[2]):o:this[u[0]]=f?u[1].call(this,f,u[2]):o:4===u.length&&(this[u[0]]=f?u[3].call(this,f.replace(u[1],u[2])):o):this[u]=f||o;l+=2}},Y=function(t,n){for(var e in n)if(typeof n[e]===c&&n[e].length>0){for(var i=0;i350?q(t,350):t,this},this.setUA(e),this};W.VERSION=”0.7.33″,W.BROWSER=z([l,h,”major”]),W.CPU=z([p]),W.DEVICE=z([f,v,d,g,m,y,_,w,b]),W.ENGINE=W.OS=z([l,h]),typeof n!==u?(t.exports&&(n=t.exports=W),n.UAParser=W):e.amdO?(i=function(){return W}.call(n,e,n,t))===o||(t.exports=i):typeof r!==u&&(r.UAParser=W)}(“object”==typeof window?window:this)},1094:function(t,n,e){var i=e(6862)(),r=e(5434);t.exports=function(t,n){function e(n){if(!(this instanceof e))return new e(n);try{throw new Error(n)}catch(o){o.name=t,this.stack=o.stack}i&&this.stack&&(this.stack=r(this.stack,t,n)),this.message=n||””,this.name=t}return e.prototype=new(n||Error),e.prototype.constructor=e,e.prototype.inspect=function(){return this.message?”[“+t+”: “+this.message+”]”:”[“+t+”]”},e.prototype.name=t,e}},5434:function(t){“use strict”;t.exports=function(t,n,e){var i=n;return e&&(i+=”: “+e),t=i+t.slice(t.indexOf(“\n”))}},6862:function(t){“use strict”;t.exports=function(){var t=new Error(“yep”);return!!t.stack&&”Error: yep\n”===t.stack.substr(0,11)}},7583:function(t,n,e){t.exports=function(){“use strict”;function t(t){return”function”==typeof t||”object”==typeof t&&null!==t}function n(t){return”function”==typeof t}undefined;var i=Array.isArray?Array.isArray:function(t){return”[object Array]”===Object.prototype.toString.call(t)},r=0,o=undefined,a=undefined,u=function(t,n){w[r]=t,w[r+1]=n,2===(r+=2)&&(a?a(b):I())};function c(t){a=t}function s(t){u=t}var f=”undefined”!=typeof window?window:undefined,l=f||{},d=l.MutationObserver||l.WebKitMutationObserver,v=”undefined”==typeof self&&”undefined”!=typeof process&&”[object process]”==={}.toString.call(process),h=”undefined”!=typeof Uint8ClampedArray&&”undefined”!=typeof importScripts&&”undefined”!=typeof MessageChannel;function p(){return function(){return process.nextTick(b)}}function g(){return void 0!==o?function(){o(b)}:y()}function m(){var t=0,n=new d(b),e=document.createTextNode(“”);return n.observe(e,{characterData:!0}),function(){e.data=t=++t%2}}function _(){var t=new MessageChannel;return t.port1.onmessage=b,function(){return t.port2.postMessage(0)}}function y(){var t=setTimeout;return function(){return t(b,1)}}var w=new Array(1e3);function b(){for(var t=0;t>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*u+(((c>>>16)*u&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,e){case 3:c^=(255&t.charCodeAt(s+2))<<16;case 2:c^=(255&t.charCodeAt(s+1))<<8;case 1:r^=c=(65535&(c=(c=(65535&(c^=255&t.charCodeAt(s)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*u+(((c>>>16)*u&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}var e=n;e.v2=function(t,n){for(var e,i=t.length,r=n^i,o=0;i>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),i-=4,++o;switch(i){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},e.v3=n,t.exports=e}()},2739:function(t,n,e){t=e.nmd(t),function(){var i,r=”Expected a function”,o=”__lodash_hash_undefined__”,a=1/0,u=9007199254740991,c=”[object Arguments]”,s=”[object Array]”,f=”[object Boolean]”,l=”[object Date]”,d=”[object Error]”,v=”[object Function]”,h=”[object GeneratorFunction]”,p=”[object Map]”,g=”[object Number]”,m=”[object Object]”,_=”[object RegExp]”,y=”[object Set]”,w=”[object String]”,b=”[object Symbol]”,E=”[object WeakMap]”,I=”[object ArrayBuffer]”,A=”[object Float32Array]”,T=”[object Float64Array]”,S=”[object Int8Array]”,k=”[object Int16Array]”,R=”[object Int32Array]”,C=”[object Uint8Array]”,N=”[object Uint8ClampedArray]”,D=”[object Uint16Array]”,O=”[object Uint32Array]”,x=/[&<>“‘`]/g,M=RegExp(x.source),P=/\w*$/,L=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,V={};V[A]=V[T]=V[S]=V[k]=V[R]=V[C]=V[N]=V[D]=V[O]=!0,V[c]=V[s]=V[I]=V[f]=V[l]=V[d]=V[v]=V[p]=V[g]=V[m]=V[_]=V[y]=V[w]=V[E]=!1;var F={};F[c]=F[s]=F[I]=F[f]=F[l]=F[A]=F[T]=F[S]=F[k]=F[R]=F[p]=F[g]=F[m]=F[_]=F[y]=F[w]=F[b]=F[C]=F[N]=F[D]=F[O]=!0,F[d]=F[v]=F[E]=!1;var B={“&”:”&”,”<":"<",">“:”>”,'”‘:”"”,”‘”:”'”,”`”:”`”},z={“function”:!0,object:!0},G=z[typeof n]&&n&&!n.nodeType?n:i,j=z.object&&t&&!t.nodeType?t:i,q=j&&j.exports===G?G:i,H=rt(G&&j&&”object”==typeof e.g&&e.g),Y=rt(z[typeof self]&&self),K=rt(z[typeof window]&&window),$=rt(z[typeof this]&&this),W=H||K!==($&&$.window)&&K||Y||$||Function(“return this”)();function X(t,n){return t.set(n[0],n[1]),t}function J(t,n){return t.add(n),t}function Q(t,n){return nt(In(t),Ae)}function Z(t,n){return!!t.length&&it(t,n,0)>-1}function tt(t,n,e){for(var i=-1,r=t.length;++i-1&&t%1==0&&t-1}function Wt(t,n){for(var e=t.length;e–;)if(Xn(t[e][0],n))return e;return-1}function Xt(t,n,e){var i=Wt(t,n);i<0?t.push([n,e]):t[i][1]=e}function Jt(t,n,e,r){return t===i||Xn(t,st[e])&&!lt.call(r,e)?n:t}function Qt(t,n,e){(e!==i&&!Xn(t[n],e)||"number"==typeof n&&e===i&&!(n in t))&&(t[n]=e)}function Zt(t,n,e){var r=t[n];lt.call(t,n)&&Xn(r,e)&&(e!==i||n in t)||(t[n]=e)}function tn(t){return"function"==typeof t?t:Te}function nn(t,n,e,r,o,a,u){var s;if(r&&(s=a?r(t,o,a,u):r(t)),s!==i)return s;if(!ae(t))return t;var d=Zn(t);if(d){if(s=function(t){var n=t.length,e=t.constructor(n);n&&"string"==typeof t[0]&<.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!n)return In(t)}else{var E=Mn(t),x=E==v||E==h;if(ie(t))return function(t,n){if(n)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}(t,n);if(E==m||E==c||x&&!a){if(at(t))return a?t:{};if(s=function(t){return"function"!=typeof t.constructor||Un(t)?{}:en(bt(t))}(x?{}:t),!n)return s=function(t,n){return t&&Sn(n,ye(n),t)}(s,t),e?Rn(t,s):s}else{if(!F[E])return a?t:{};s=function(t,n,e){var i=t.constructor;switch(n){case I:return Tn(t);case f:case l:return new i(+t);case A:case T:case S:case k:case R:case C:case N:case D:case O:return function(t,n){var e=n?Tn(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}(t,e);case p:return function(t){return jn(function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,i){e[++n]=[i,t]})),e}(t),X,new t.constructor)}(t);case g:case w:return new i(t);case _:return function(t){var n=new t.constructor(t.source,P.exec(t));return n.lastIndex=t.lastIndex,n}(t);case y:return jn(function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}(o=t),J,new o.constructor);case b:return r=t,Ut?Object(Ut.call(r)):{}}var r;var o}(t,E,n)}}u||(u=new Ht);var M=u.get(t);return M||(u.set(t,s),(d?un:ln)(t,(function(i,o){Zt(s,o,nn(i,n,e,r,o,t,u))})),e&&!d?Rn(t,s):s)}function en(t){return ae(t)?It(t):{}}function rn(t,n,e){if("function"!=typeof t)throw new TypeError(r);return setTimeout((function(){t.apply(i,e)}),n)}var on,an,un=(on=ln,function(t,n){if(null==t)return t;if(!te(t))return on(t,n);for(var e=t.length,i=an?e:-1,r=Object(t);(an?i--:++i0&&ne(a)&&(e||Zn(a)||Qn(a))?n>1?sn(a,n-1,e,i):nt(i,a):e||(i[i.length]=a)}return i}var fn=function(t){return function(n,e,i){for(var r=-1,o=Object(n),a=i(n),u=a.length;u–;){var c=a[t?u:++r];if(!1===e(o[c],c,o))break}return n}}();function ln(t,n){return t&&fn(t,n,ye)}function dn(t,n){return cn(n,(function(n){return re(t[n])}))}function vn(t,n,e,r,o){return t===n||(null==t||null==n||!ae(t)&&!ue(n)?t!=t&&n!=n:function(t,n,e,r,o,a){var u=Zn(t),v=Zn(n),h=s,p=s;u||(h=(h=ht.call(t))==c?m:h);v||(p=(p=ht.call(n))==c?m:p);var y=h==m&&!at(t),b=p==m&&!at(n),E=h==p;a||(a=[]);var I=zn(a,(function(n){return n[0]===t}));if(I&&I[1])return I[1]==n;if(a.push([t,n]),E&&!y){var A=u||fe(t)?function(t,n,e,r,o,a){var u=-1,c=2&o,s=1&o,f=t.length,l=n.length;if(f!=l&&!(c&&l>f))return!1;var d=!0;for(;++ur?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i1?e[o-1]:i;for(a=”function”==typeof a?(o–,a):i,n=Object(n);++r0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var Hn=Wn((function(t,n,e){return Nn(t,33,n,e)})),Yn=Wn((function(t,n){return rn(t,1,n)})),Kn=Wn((function(t,n,e){return rn(t,ve(n)||0,e)}));var $n=Wn((function(t,n){return Nn(t,32,i,n)}));function Wn(t,n){if("function"!=typeof t)throw new TypeError(r);return n=Rt(n===i?t.length-1:de(n),0),function(){for(var e=arguments,i=-1,r=Rt(e.length-n,0),o=Array(r);++in}function Qn(t){return ne(t)&<.call(t,”callee”)&&(!At.call(t,”callee”)||ht.call(t)==c)}var Zn=Array.isArray;function te(t){return null!=t&&oe(Dn(t))&&!re(t)}function ne(t){return ue(t)&&te(t)}var ee,ie=(ee=!1,function(){return ee});function re(t){var n=ae(t)?ht.call(t):””;return n==v||n==h}function oe(t){return”number”==typeof t&&t>-1&&t%1==0&&t<=u}function ae(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function ue(t){return!!t&&"object"==typeof t}function ce(t){return"number"==typeof t||ue(t)&&ht.call(t)==g}function se(t){return"string"==typeof t||!Zn(t)&&ue(t)&&ht.call(t)==w}function fe(t){return ue(t)&&oe(t.length)&&!!V[ht.call(t)]}function le(t,n){return t=200&&(a=qt,u=!1,n=new jt(n));t:for(;++on&&!a||!o||e&&!u&&c||r&&c)return 1;if(t-1:!!r&&it(t,n,e)>-1},Vt.indexOf=function(t,n,e){for(var i=t?t.length:0,r=((e=”number”==typeof e?e<0?Rt(i+e,0):e:0)||0)-1,o=n==n;++r>>0)/r};t.exports={Seed:{IGNORING:0,BUCKETING:1,FALLBACK:2,HOLDBACK:3,BEHAVIOR_EVENT:2716770798},hashToHex:function(t,n){var e=i(t,n);return(e>>>16).toString(16)+(65535&e).toString(16)},hashToInt:function(t,n,e){return Math.floor(o(t,n)*e)},hashToReal:o,toByteString:function(t){var n=String.fromCharCode;return t.replace(/[\S\s]/gi,(function(t){t=t.charCodeAt(0);var e=n(255&t);return t>255&&(e=n(t>>>8&255)+e),t>65535&&(e=n(t>>>16)+e),e}))}}},998:function(t,n){n.generate=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}},1078:function(t,n,e){var i=e(2001),r=e(1037).get(“stores/audience_data”),o=e(5530),a=e(2323),u=e(1475),c=e(1342);function s(t){var n=[“type”,”selector”,”attributes”,”value”],e=i.extend({},t);return e.changeSet=i.map(t.changeSet,(function(t){return i.pick(c.dereferenceChangeId(t),n)})),e}n.emitLayerDecided=function(t){var n=t.decisionTicket?t.decisionTicket.audienceIds:[],e=i.map(n,(function(t){return{id:t,name:r.get(t).name}})),u={type:a.TYPES.LIFECYCLE,name:”layerDecided”,data:i.extend(t,{audiences:e})},s=c.translateLayerEventToCampaignEvent(u);o.emit(u),o.emit(s)},n.emitViewActivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:”viewActivated”,data:t},e=c.translateViewActivatedToPageActivated(n);o.emit(n),o.emit(e)},n.emitViewsActivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:”viewsActivated”,data:t};o.emit(n)},n.emitPageDeactivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:”pageDeactivated”,data:t};o.emit(n)},n.emitActivateEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:”activate”},!0)},n.emitActivatedEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:”activated”})},n.emitInitializedEvent=function(){var t={type:a.TYPES.LIFECYCLE,name:”initialized”};window.optimizely&&(window.optimizely.initialized=!0),o.emit(t)},n.emitOriginsSyncedEvent=function(){var t={type:a.TYPES.LIFECYCLE,name:”originsSynced”};o.emit(t)},n.emitActionAppliedEvent=function(t){var n={type:t.type,campaignId:t.layerId,pageId:t.pageId,experimentId:t.experimentId,variationId:t.variationId};u.defineProperty(n,”changes”,(function(){return s(t).changeSet}),”actionAppliedEvent”);var e={type:a.TYPES.ACTION,name:”applied”,data:n};o.emit(e)},n.emitActionsForDecisionAppliedEvent=function(t,n){var e={decision:t};u.defineProperty(e,”actions”,(function(){return i.map(n,s)}),”appliedAllForDecisionEvent”);var r={type:a.TYPES.ACTION,name:”appliedAllForDecision”,data:e};o.emit(r)},n.emitSendEvents=function(){var t={type:a.TYPES.ANALYTICS,name:”sendEvents”};o.emit(t)},n.emitMaybeSendEvents=function(){var t={type:a.TYPES.ANALYTICS,name:”maybeSendEvents”};o.emit(t)},n.emitHoldEvents=function(){var t={type:a.TYPES.ANALYTICS,name:”holdEvents”};o.emit(t)}},7256:function(t,n,e){var i=e(2001),r=e(1619),o=e(1475),a=e(1342),u=e(8466),c=e(6884);function s(t,n,e,r){var o=t.getLayerState(r),a=n.get(r),c=e.get();if(!o||!a)return c?{layer:{name:c.layerName,id:c.layerId,policy:c.layerPolicy,integrationStringVersion:c.integrationStringVersion},experiment:{name:c.experimentName,id:c.experimentId},variation:{name:c.variationName,id:c.variationId},isLayerHoldback:!1}:null;if(u.isSingleExperimentPolicy(a.policy)&&o.decision.isLayerHoldback)return null;var s,f,l=o.decision.experimentId,d=o.decision.variationId;return l&&d&&(s=i.find(a.experiments,{id:l}))&&(f=i.find(s.variations,{id:d}))?{layer:{name:a.name,id:a.id,policy:a.policy,integrationStringVersion:a.integrationStringVersion},experiment:{name:s.name,id:s.id},variation:{name:f.name,id:f.id},isLayerHoldback:o.decision.isLayerHoldback}:null}function f(t,n,e,r,o,a,s){var f=[],l=t.getLayerStates();s.onlySingleExperiments&&(l=i.filter(l,(function(t){var e=n.get(t.layerId);return e&&u.isSingleExperimentPolicy(e.policy)})));var d=e.getActiveViewIds(),v=i.map(l,(function(t){var e,r=!!t.decision.variationId,a=t.decisionActivationId&&t.decisionActivationId===o.getActivationId(),u=c.getExperimentAndVariation(),s=u?u.variationId:null,f=r&&t.decision.variationId===s,l=(null==(e=n.get(null==t?void 0:t.layerId))?void 0:e.viewIds)||[],v=i.every(l,(function(t){return!i.includes(d,t)}));return i.extend(t,{isActive:r&&a&&!v||f,visitorRedirected:f})})),h=a?i.filter(v,a):v;return i.each(h,(function(t){var e=function(t,n,e,r){var o,a,u=t.layerId,c=n.get(u)||{},s=i.map(c.experiments,(function(t){return i.pick(t,[“id”,”name”])}));if(!r&&c.decisionMetadata&&c.decisionMetadata.offerConsistency)return;var f={id:u,campaignName:c.name||null,experiment:null,allExperiments:s,variation:null,reason:t.decision.reason,isActive:!!t.isActive,visitorRedirected:t.visitorRedirected,isInCampaignHoldback:t.decision.isLayerHoldback};t.decision&&t.decision.experimentId&&(o=i.find(c.experiments,{id:t.decision.experimentId})),o&&(f.experiment=i.pick(o,[“id”,”name”,”campaignName”])),o&&t.decision.variationId&&(a=i.find(o.variations,{id:t.decision.variationId})),a&&(f.variation=i.pick(a,[“id”,”name”]));var l=i.map(t.decisionTicket.audienceIds,(function(t){return i.pick(e.get(t),[“id”,”name”])}));return f.audiences=l,c.decisionMetadata&&c.decisionMetadata.offerConsistency&&(f.pageId=t.pageId),f}(t,n,r,s.includeOfferConsistency);e&&f.push(e)})),f}n.data=[“stores/audience_data”,”stores/client_metadata”,”stores/event_data”,”stores/layer_data”,”stores/view_data”,”stores/group_data”,”stores/interest_group”,”stores/tag_group”,”stores/global”,function(t,n,e,r,u,c,s,f,l){var d={},v={},h={},p={audiences:t.getAudiencesMap(),events:e.getEventsMap(),campaigns:d,pages:u.getPagesMap(),experiments:v,variations:h,projectId:l.getProjectId(),snippetId:l.getSnippetId(),accountId:l.getAccountId(),dcpServiceId:l.getDCPServiceId(),revision:l.getRevision(),clientName:n.getClientName(),clientVersion:n.getClientVersion()},g=a.dereferenceChangeId;return i.each(r.getAll(),(function(t){o.defineProperty(d,t.id,(function(){var n=i.extend({},t);return o.defineProperty(n,”changes”,(function(){return i.map(t.changes,g)}),”campaign”),o.defineProperty(n,”experiments”,(function(){return i.map(t.experiments,(function(t){return v[t.id]}))}),”campaign”),n}),”campaignMap”,”byId”),i.each(t.experiments,(function(t){o.defineProperty(v,t.id,(function(){var n=i.extend({},t);return o.defineProperty(n,”changes”,(function(){return i.map(t.changes,g)}),”experiment”),o.defineProperty(n,”variations”,(function(){return i.map(t.variations,(function(t){return h[t.id]}))}),”experiment”),n}),”experimentMap”,”byId”),i.each(t.variations,(function(t){o.defineProperty(h,t.id,(function(){var n=i.extend({},t);return o.defineProperty(n,”actions”,(function(){return i.map(t.actions,(function(t){return i.extend({},t,{changes:i.map(t.changes,g)})}))}),”variation”),n}),”variationMap”,”byId”)}))}))})),p}],n.visitor=[“stores/visitor”,function(t){return i.cloneDeep(t.getVisitorProfile())}],n.visitor_id=[“stores/visitor_id”,function(t){return{randomId:t.getRandomId()}}],n.state=[“stores/audience_data”,”stores/layer_data”,”stores/layer”,”stores/view_data”,”stores/view”,”stores/global”,”stores/observed_redirect”,function(t,n,e,o,a,l,d){return{getCampaignStates:function(r){var o={},u=f(e,n,a,t,l,r,{includeOfferConsistency:!1});return i.each(u,(function(t){o[t.id]=t})),o},getExperimentStates:function(r){var o=f(e,n,a,t,l,r,{includeOfferConsistency:!1,onlySingleExperiments:!0}),u=[“audiences”,”variation”,”reason”,”visitorRedirected”,”isActive”];return i.reduce(o,(function(t,n){var e=n.allExperiments[0];return t[e.id]=i.extend({},i.pick(n,u),{id:e.id,experimentName:e.name,isInExperimentHoldback:n.isInCampaignHoldback}),t}),{})},getCampaignStateLists:function(r){var o={},u=f(e,n,a,t,l,r,{includeOfferConsistency:!0});return i.each(u,(function(t){var n=t.id;o[n]||(o[n]=[]),o[n].push(t)})),o},getPageStates:function(t){var n=a.getAll(),e=i.reduce(n,(function(t,n){var e=o.get(n.id);return t[n.id]=i.extend({},i.pick(e,[“id”,”name”,”apiName”,”category”,”staticConditions”,”tags”]),i.pick(n,[“isActive”,”metadata”])),t[n.id].isActive=!!t[n.id].isActive,t}),{});return t?i.pickBy(e,t):e},isGlobalHoldback:function(){return l.isGlobalHoldback()},getActivationId:function(){return l.getActivationId()},getVariationMap:function(){var t=e.getLayerStates(),r={};return i.each(t,(function(t){var e=n.get(t.layerId);if(t.decision&&t.decision.experimentId&&(r[t.decision.experimentId]={id:t.decision.variationId,name:null,index:null},e)){var o=i.find(e.experiments,{id:t.decision.experimentId});if(o&&t.decision.variationId)var a=i.find(o.variations,{id:t.decision.variationId}),u=i.findIndex(o.variations,{id:t.decision.variationId});a&&(r[t.decision.experimentId]={id:t.decision.variationId,name:a.name,index:u})}})),r},getActiveExperimentIds:function(){var t={};return i.each(this.getCampaignStateLists({isActive:!0}),(function(n){i.each(n,(function(n){t[n.experiment.id]=!0}))})),i.keys(t)},getRedirectInfo:function(){var t=c.getExperimentAndVariation();return t&&(t.referrer=c.getReferrer()),t},getDecisionString:function(t){if(!t)throw new Error(“Must pass a config to getDecisionString”);t=i.extend({maxLength:255,shouldCleanString:!1},t);var o=s(e,n,d,t.campaignId);return o?r.generateAnalyticsString(o.layer,o.experiment,o.variation,o.isLayerHoldback,t.maxLength,t.shouldCleanString):null},getDecisionObject:function(t){if(!t)throw new Error(“Must pass a config to getDecisionObject”);t=i.extend({maxLength:255,shouldCleanString:!1},t);var o=s(e,n,d,t.campaignId);if(!o)return null;var a=r.formatNamesAndIdsForAnalytics(o.layer,o.experiment,o.variation,t.shouldCleanString),c=i.mapValues(a.names,(function(n,e){return r.combineAndTruncateIdAndName(n,a.idStrings[e],t.maxLength)})),f={experiment:c.experiment,variation:c.variation};return u.isSingleExperimentPolicy(o.layer.policy)||i.extend(f,{campaign:c.layer,holdback:o.isLayerHoldback}),f}}}],n.utils=e(7251).create(),n.jquery=[“env/jquery”,function(t){return t}],n.event_emitter=e(3911)},777:function(t,n,e){var i=e(528),r=e(3250),o=”optimizelyDataApi”;n.registerFunction=function(t,n){var e=r.getGlobal(o);e||(e={},r.setGlobal(o,e)),e[t]||(e[t]=n)},n.unregisterFunction=function(t){var n=r.getGlobal(o);n&&n[t]&&(n[t]=function(){i.log(‘Ignoring attempt to call “‘+o+”.”+t+'” which has been unregistered.’)})},n.getFunction=function(t){return r.getGlobal(o)[t]}},8269:function(t,n,e){var i=e(2001),r=e(528),o=e(7256),a=e(1037),u=a.get(“stores/plugins”),c=e(3428),s=e(3876),f=e(3933),l=[e(9078),e(4096),e(8337)],d=[“clientMetadata”,”cookieDomain”,”disable”,”load”,”optOut”,”rum”];n.push=function(t,n){var e,o,a,u;if(!i.isArray(t)&&i.isObject(t))u=i.isUndefined(t.version)?1:t.version,e=t.type,a=[t];else if(i.isArray(t))u=0,e=t[0],a=t.slice(1);else{if(!i.isString(t))return r.warn(“API / Ignoring non-array/object/string argument:”,t),!1;u=0,e=t,a=[]}if(l[u]&&(o=l[u][e]),n&&-1===d.indexOf(e))return r.debug(“API / Ignoring non high priority function:”,e,a),!1;if(!o)return r.warn(‘API / No function found for “‘+e+'” (v’+u+”) with arguments:”,a),!1;r.log(‘API / Executing: “‘+e,'” with arguments:’,a);try{o.apply(null,a),f.dispatch(c.RECORD_API_USAGE,{methodName:u?”v”+u+”.”+e:e})}catch(s){r.error(s)}return!0},n.get=function(t){r.log(‘API / Getting module: “‘+t+'”‘);var n=o[t];if(n?i.isArray(n)&&(n=a.evaluate(n)):n=u.getPlugin(s.PluginTypes.apiModules,t),n)return f.dispatch(c.RECORD_API_USAGE,{methodName:”get.”+t}),n;r.warn(‘Module “‘+t+'” not found.’)}},1475:function(t,n,e){var i=e(419),r=e(3428),o=e(3933),a=e(528);n.defineProperty=function(t,n,e,u,c){i(t,n,(function(){var t=[“prop”,u,c||n].join(“.”);return a.debug(‘Evaluating getter: “‘+t+'”‘),o.dispatch(r.RECORD_API_USAGE,{methodName:t}),e()}),!0)}},9078:function(t,n,e){var i=e(2001),r=e(4096);function o(t){var n,e={};if(t)if(a(t))n=Number(t);else{if(“object”!=typeof t)throw new Error(“tracker: Revenue argument “+t+”not a number.”);if(“revenue”in(e=i.extend({},t))){if(!a(e.revenue))throw new Error(“tracker: Revenue value “+e.revenue+”not a number.”);n=Number(e.revenue),delete e.revenue}}return i.isUndefined(n)||(e.revenue=n),e}function a(t){return i.isNumber(t)||i.isString(t)&&Number(t)==t}n.activateGeoDelayedExperiments=function(t,n){n||(n=t.lists?”odds”:”cdn3″),r.dataFromSource({data:t,source:n})},n.activateSiteCatalyst=function(t){t&&t.sVariable&&r.integrationSettings({id:”adobe_analytics”,settings:{sVariableReference:t.sVariable}})},n.bucketVisitor=function(t,n){if(t&&n){var e={experimentId:String(t)};n>256?e.variationId=String(n):e.variationIndex=String(n),r.bucketVisitor(e)}},n.bucketUser=n.bucketVisitor,n.disable=function(t){r.disable({scope:t})},n.log=function(t){i.isUndefined(t)&&(t=!0),r.log({level:t?”INFO”:”OFF”})},n.optOut=function(t){i.isUndefined(t)&&(t=!0),r.optOut({isOptOut:t})},n.setCookieDomain=function(t){r.cookieDomain({cookieDomain:t})},n.setCookieExpiration=function(t){r.cookieExpiration({cookieExpirationDays:t})},n.setDimensionValue=function(t,n){var e={};e[t]=n,r.user({attributes:e})},n.setUserId=function(t){r.user({userId:t})},n.setGA4UserId=function(t){r.ga4User({ga4UserId:t})},n.storeThirdPartyData=function(t,n){r.dataFromSource({source:t,data:n})},n.trackEvent=function(t,n){r.event({eventName:t,tags:o(n)})}},1342:function(t,n,e){var i=e(2001),r=e(1037),o=e(7895),a=e(1475),u=r.get(“stores/change_data”);n.translateDecisionToCampaignDecision=function(t){return c(i.cloneDeep(t),{layerId:”campaignId”,isLayerHoldback:”isCampaignHoldback”})},n.translateLayerEventToCampaignEvent=function(t){var e={};return a.defineProperty(e,”campaign”,(function(){return function(t){var e=i.cloneDeep(t);return e.changes&&(e.changes=i.map(e.changes,n.dereferenceChangeId)),e.experiments&&i.each(e.experiments,(function(t){t.changes&&(t.changes=i.map(t.changes,n.dereferenceChangeId)),t.variations&&i.each(t.variations,(function(t){t.actions&&i.each(t.actions,(function(t){t.changes&&(t.changes=i.map(t.changes,n.dereferenceChangeId))}))}))})),e}(t.data.layer)}),”campaignEvent”),e.decisionTicket=t.data.decisionTicket,e.decision=this.translateDecisionToCampaignDecision(t.data.decision),e.audiences=t.data.audiences,{type:”lifecycle”,name:”campaignDecided”,data:e}},n.translateViewActivatedToPageActivated=function(t){return{type:”lifecycle”,name:”pageActivated”,data:{page:t.data.view}}},n.dereferenceChangeId=function(t){var n=u.getChange(t);return n?o.safeReference(n):t};var c=function(t,n){var e=i.omit(t,i.keys(n));return i.each(n,(function(n,i){e[n]=t[i]})),e}},7251:function(t,n,e){var i=e(7877).Promise,r=e(6016).o,o=e(1653).poll,a=e(506).x,u=e(5882).a;n.create=function(){return{observeSelector:r,poll:o,Promise:i,waitForElement:a,waitUntil:u}}},2671:function(t){t.exports={DEFAULT_INTERVAL:20}},6016:function(t,n,e){var i=e(2001),r=(e(3428),e(1037)),o=r.get(“stores/directive”),a=e(1327),u=(e(5270),e(3876),e(3933),e(998).generate),c=e(1653),s=e(3250),f=(r.get(“stores/rum”),{once:!1,onTimeout:null,timeout:null}),l={},d=function(t){d=function(){if(!o.shouldObserveChangesIndefinitely())return function(t){var n=c.poll(i.partial(h,t));l[t].cancelObservation=function(){n(),delete l[t]}};var t,n=function(){this.disconnect(),i.each(i.keys(l),h),this.observe(r,e)},e={attributes:!0,childList:!0,subtree:!0,characterData:!0},r=a.getDocumentElement();return t=new MutationObserver(n),function(n){var o=l[n];t.observe(r,e),o.cancelObservation=function(){delete l[n],i.isEmpty(l)&&t.disconnect()}}}(),d(t)};function v(t){var n=l[t];n&&n.cancelObservation&&n.cancelObservation()}function h(t){if(l[t]){if(function(t){var n=t.options.timeout;if(null!==n)if(“function”==typeof n)try{return n()}catch(e){}else if(Date.now()-t.startTime>n)return!0;return!1}(l[t]))return 0===l[t].matchedCount&&i.isFunction(l[t].options.onTimeout)&&l[t].options.onTimeout(),void v(t);var n=a.querySelectorAll(l[t].selector);n.length&&(i.each(n,(function(n){n.T&&n.T[t]||l[t].callbackQueue.push(n)})),function(t){for(;l[t]&&l[t].callbackQueue.length;){var n=l[t].callbackQueue.shift();if(p(n,t),l[t].matchedCount=l[t].matchedCount+1,l[t].callback(n),l[t]&&l[t].options.once)return void v(t)}}(t))}}function p(t,n){t.T||(t.T={}),t.T[n]=!0}n.o=function(t,n,e){if(!function(t){try{a.querySelector(t)}catch(n){return!1}return!0}(t))throw new Error(“observeSelector expects a valid css selector as its first argument”);if(!i.isFunction(n))throw new Error(“observeSelector expects a function as its second argument”);if(e&&(!i.isObject(e)||i.isFunction(e)))throw new Error(“observeSelector expects an object as its third argument”);var r=u();return e=i.assign({},f,e||{}),l[r]={callback:n,callbackQueue:[],matchedCount:0,options:e,selector:t,startTime:Date.now()},d(r),s.setTimeout(i.bind(h,null,r),0),i.partial(v,r)}},1653:function(t,n,e){var i=e(2001),r=(e(3428),e(1037)),o=(e(3876),e(3933),e(998).generate),a=e(3250),u=e(2671).DEFAULT_INTERVAL,c=(r.get(“stores/rum”),{});function s(t){c[t]&&i.each(c[t].callbacks,(function(t){t.call(null)}))}function f(t,n){c[n]&&c[n].callbacks[t]&&(delete c[n].callbacks[t],i.some(c[n].callbacks)||(clearInterval(c[n].id),delete c[n]))}n.poll=function(t,n){i.isNumber(n)||(n=u),c[n]||(c[n]={callbacks:{},id:a.setInterval(i.partial(s,n),n)});var e=o();return c[n].callbacks[e]=t,i.partial(f,e,n)},n.cancelAll=function(){i.each(c,(function(t,n){clearInterval(t.id),delete c[n]}))}},506:function(t,n,e){var i=e(7877).Promise,r=e(6016).o;n.x=function(t){return new i((function(n,e){r(t,n,{once:!0})}))}},5882:function(t,n,e){var i=e(7877).Promise,r=e(1653).poll;n.a=function(t){return new i((function(n,e){if(t())n();else var i=r((function(){t()&&(i(),n())}))}))}},4096:function(t,n,e){var i=e(2001),r=e(3428),o=e(8269),a=e(7256),u=e(3588),c=e(3876),s=e(9775),f=e(1078),l=e(1916),d=e(5334).v,v=e(1038),h=e(1458),p=(e(9509),e(7359)),g=e(5530),m=e(3933),_=e(588),y=e(6910),w=e(528),b=e(4853),E=(e(4714),e(2208)),I=e(3641),A=e(1037),T=A.get(“stores/dimension_data”),S=A.get(“stores/view”),k=A.get(“stores/view_data”),R=A.get(“stores/visitor_id”),C=A.get(“stores/layer_data”),N=A.get(“stores/directive”),D=!1,O=n.ApiListenerError=d(“ApiListenerError”);n.event=function(t){var n;switch(t.eventType){case”click”:n=function(t){var n;return t.eventData&&(n=p.create(t.eventData.id,t.eventData.apiName,”click”,t.eventData)),function(){var t=s.trackClickEvent(n);t?w.log(“API / Tracking click event:”,t):w.log(“API / Not tracking click event:”,t)}}(t);break;case”decision”:n=function(t){var n=t.eventData,e=y.createLayerState(n.layerId,n.experimentId,n.variationId,n.isLayerHoldback,n.isLayerConcluded),i=y.createSingle(n.layerId,n.experimentId,n.variationId);return function(){y.recordLayerDecision(e.layerId,e.decisionTicket,e.decision),w.log(“API / Tracking decision event:”,e),s.trackDecisionEvent(e.decision,e.decisionTicket,i)}}(t);break;case”pageview”:n=function(t){var n=E.create(t.eventData.id,t.eventData.apiName),e=E.createState(n.id);return function(){var t=s.trackViewActivation(n,e);t?w.log(“API / Tracking pageview event:”,t):w.log(“API / Not tracking pageview event:”,t)}}(t);break;default:n=function(t){var n;return t.eventId&&(n=p.create(t.eventId,t.eventName,”custom”)),E.updateAllViewTags(),function(){s.trackCustomEvent(t.eventName,t.tags,n,t.properties)?w.log(“API / Tracking custom event:”,t.eventName,t.tags):w.log(“API / Not tracking custom event:”,t.eventName)}}(t)}R.getBucketingId()?n():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postActivate,cleanupFn:n})},n.clientMetadata=function(t){D},n.priorRedirectString=function(t){},n.microsnippetError=function(t){},n.rum=function(t){m.dispatch(r.SET_RUM_DATA,t.eventData)},n.initialViewStates=function(t){var n=i.map(t.states,(function(t,n){return{id:n,isActive:t}}));E.registerViews(n)},n.page=function(t){var n=k.getByApiName(t.pageName);if(!n)throw new Error(‘Unknown page “‘+t.pageName+'”‘);var e=!t.hasOwnProperty(“isActive”)||t.isActive,i=function(){e?E.activateViaAPI(n,t.tags):(E.deactivate(n),w.log(“API / Deactivated Page”,E.description(n)))};R.getBucketingId()?i():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postViewsActivated,cleanupFn:i})},n.tags=function(t){E.setGlobalTags(t.tags)},n.user=function(t){w.log(“API / Setting visitor custom attributes:”,t.attributes),i.each(t.attributes,(function(t,n){var e,i,r=n,o=T.getById(n)||T.getByApiName(n);o&&(r=o.id,e=o.apiName,i=o.segmentId||o.id);var a={id:i,value:t};e&&(a.name=e),x(r,a,!0)}))},n.ga4User=function(t){t.ga4UserId?(w.log(“API / Setting ga4 user id in the global store:”,t.ga4UserId),m.dispatch(r.SET_GA4_USER_ID,t)):w.error(‘API / Argument “ga4UserId” is missing’)};var x=function(t,n,e){var i=[{key:e?[“custom”,t]:[t],value:n,metadata:{lastModified:v.now()}}],o=function(){m.dispatch(r.SET_VISITOR_ATTRIBUTES,{attributes:i})};R.getBucketingId()?o():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postVisitorProfileLoad,cleanupFn:o})};n.optOut=function(t){var n=!t.hasOwnProperty(“isOptOut”)||t.isOptOut;h.setOptOut(n)},n.cookieExpiration=function(t){var n=t.cookieExpirationDays;n<90&&(w.error('Argument "cookieExpirationDays"=',n,"less than minimum days:",90,", setting to minimum."),n=90),w.log("API / Setting cookie age to",n,"days."),m.dispatch(r.SET_COOKIE_AGE,86400*n)},n.extendCookieLifetime=function(t){t=i.extend({isEnabled:!0},t),w.log("API / Setting cookie automatic lifetime extension to",t.isEnabled),m.dispatch(r.SET_COOKIE_AUTO_REFRESH,t.isEnabled)},n.cookieDomain=function(t){w.log("API / Setting cookie domain to",t.cookieDomain),m.dispatch(r.SET_COOKIE_DOMAIN,t.cookieDomain)},n.disable=function(t){if(t.scope){if("tracking"!==t.scope)throw new Error('Unknown "scope" for disable: '+t.scope);w.log("API / Disabling tracking"),m.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0})}else w.log("API / Disabling everything"),m.dispatch(r.LOAD_DIRECTIVE,{disabled:!0})},n.log=function(t){var n=t.level,e=t.match;i.isUndefined(n)&&(n="INFO"),i.isUndefined(e)&&(e=""),w.setLogMatcher(e),w.setLogLevel(n)},n.registerModule=function(t){var n="custom/"+t.moduleName;if(a[n]||o.get(n))throw new Error('Module name "'+n+'" is reserved. Will not be registered as plugin.');b.registerApiModule(n,t.module)},n.dataFromSource=function(t){var n=t.source;l.makeAsyncRequest(n),l.resolveRequest(n,t.data)},n.addListener=function(t){if(!i.isFunction(t.handler))throw new Error("A handler function must be supplied");(t=i.omit(t,"type")).publicOnly=!0,t.emitErrors=!0;var n=t.handler;t.handler=function(t){try{return n(t)}catch(e){throw new O(e)}},g.on(t)},n.removeListener=function(t){if(!t.token)throw new Error("Must supply a token to removeListener");g.off(t.token)},n.load=function(t){t.data=i.extend({},t.data),u.normalizeClientData(t.data),m.dispatch(r.DATA_LOADED,{data:t.data})},n.integrationSettings=function(t){if(!t.id)throw new Error("id is required");if(!t.settings)throw new Error("settings is required");m.dispatch(r.SET_INTEGRATION_SETTINGS,i.extend({},t.settings,{id:t.id}))},n.bucketVisitor=function(t){if(!t.variationId&&i.isUndefined(t.variationIndex)||t.variationId&&t.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!t.experimentId)throw new Error("An experimentId is required.");var n,e,r=t.campaignId;if(r){if(!(n=C.get(r)))throw new Error("Could not find layer "+r)}else if(!(r=(n=C.getLayerByExperimentId(t.experimentId)).id))throw new Error("Could not find layer for experiment "+t.experimentId);if(!(e=i.find(n.experiments,{id:t.experimentId})))throw new Error("Could not find experiment "+t.experimentId+" in layer "+r);var o=t.variationId;if(i.isUndefined(t.variationIndex)){if(!i.find(e.variations,{id:o}))throw new Error("Cound not find variation "+o+" in experiment "+t.experimentId)}else if(!(o=e.variations[t.variationIndex].id))throw new Error("Could not find variation at index "+t.variationIndex+" in experiment "+t.experimentId);I.updateVariationIdMap(r,t.experimentId,o),R.getBucketingId()&&I.persistVariationIdMap(),I.updateContextualMabMap(r,t.experimentId,{variationId:o}),R.getBucketingId()&&I.persistContextualMabMap()},n.waitForOriginSync=function(t){if(!i.isArray(t.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+_.stringify(t.canonicalOrigins));i.each(t.canonicalOrigins,(function(t){if(!i.isString(t))throw new Error("Each item in canonicalOrigins must be a string. Found type "+(void 0===t?"undefined":(n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n));var n})),m.dispatch(r.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:t.canonicalOrigins})},n.disableCrossOrigin=function(){w.log("API / cross origin tracking is DISABLED"),m.dispatch(r.XDOMAIN_SET_DISABLED,{disabled:!0})},n.activate=function(){N.shouldActivate()?(i.forEach(S.getActiveViewStates(),(function(t){E.deactivate(k.get(t.id))})),m.dispatch(r.RESET_VIEW_STATES),f.emitActivateEvent()):w.debug("Not activating.")},n.sendEvents=function(){f.emitSendEvents()},n.holdEvents=function(){f.emitHoldEvents()}},8337:function(){},7152:function(t,n,e){var i=e(2001),r=e(5334).v,o=n.ActivationCodeError=r("ActivationCodeError"),a=n.ProjectJSError=r("ProjectJSError"),u=e(239),c=e(3428),s=e(9775),f=e(1078),l=e(6127),d=e(6149),v=e(3588),h=e(1038),p=e(8695),g=e(1037),m=e(1458),_=e(1327),y=e(3876),w=e(5530),b=e(2323),E=e(2272),I=e(3933),A=(e(1652),e(6910)),T=e(461).DT,S=e(528),k=e(7820),R=e(1766),C=e(4853),N=e(3597),D=e(7877).Promise,O=e(2167),x=e(4714),M=e(3053),P=e(5599),L=e(2208),U=e(3641),V=e(3250),F=(g=e(1037)).get("stores/session"),B=g.get("stores/audience_data"),z=g.get("stores/action_data"),G=g.get("stores/cleanup"),j=g.get("stores/directive"),q=g.get("stores/global"),H=(g.get("stores/group_data"),g.get("stores/layer_data")),Y=g.get("stores/layer"),K=g.get("stores/pending_events"),$=g.get("stores/plugins"),W=g.get("stores/rum"),X=g.get("stores/visitor"),J=g.get("stores/view_data"),Q=g.get("stores/view"),Z=g.get("stores/visitor_id"),tt=g.get("stores/visitor_bucketing"),nt=g.get("stores/xdomain"),et=e(8269),it=e(9509),rt=e(1846),ot=!1,at=n;function ut(){var t=null;i.isNumber(t)&&0===H.getCount()?(S.log("Activating after delay of",t,"ms because no Experiments are running"),I.dispatch(c.SET_RUM_DATA,{data:{activateDfd:!0}}),V.setTimeout(f.emitActivateEvent,t)):f.emitActivateEvent()}function ct(t){it.handleError(t.data.error,t.data.metadata)}function st(t,n){I.dispatch(c.SET_RUM_DATA,{data:{extras:{xdAttempt:t,xdError:n?n.toString():void 0}}})}function ft(t,n,e){t=t||[];var r=q.getGlobalHoldbackThreshold(),o=Z.getBucketingId();if(!o)throw new Error("bucketingId not set");var a,u=X.getVisitorProfile();n&&(a=tt.getVariationIdMap()[n.id]);var c={bucketingId:o,visitorProfile:u,audiences:t,globalHoldback:r,preferredVariationMap:a,layer:n};return n&&e&&p.isPageIdRelevant(n)?i.map(e,(function(t){return p.createTicket(i.extend({},c,{pageId:t}))})):[p.createTicket(c)]}function lt(t,n){var e={};return i.each(t,(function(t){i.isArray(t)?i.extend(e,lt(t,n)):i.isObject(t)&&n[t.type]&&(e[t.type]=!0)})),e}function dt(t){var n=[];return i.each(t,(function(t){n.push(t.name,t)})),n}function vt(t){var n=G.getCleanupFns(t);if(n.length>0){for(;n.length>0;)n.shift()();I.dispatch(c.CLEAR_CLEANUP_FN,{lifecycle:t})}}n.initialize=function(t){return this.initGlobalStore(t.clientData),this.initializePlugins(t.plugins)},n.initGlobalStore=function(t){v.normalizeClientData(t),w.on({filter:{type:”error”},handler:ct}),I.dispatch(c.DATA_LOADED,{data:t}),S.log(“Initialized with DATA:”,t)},n.initializePlugins=function(t){if(i.isArray(window.optimizely)&&(window.optimizely=i.filter(window.optimizely,(function(t){var n=!0;return!et.push(t,n)}))),m.setOptOut(j.shouldOptOut()),!j.isDisabled()&&!j.shouldOptOut()){rt.queueBeacons(),_.isReady()?I.dispatch(c.SET_DOMCONTENTLOADED):_.addReadyHandler((function(){I.dispatch(c.SET_DOMCONTENTLOADED)})),R.time(“projectJS”);var e=q.getProjectJS();if(i.isFunction(e))try{E.apply(e)}catch(v){S.error(“Error while executing projectJS: “,v),d.emitError(new a(v))}R.timeEnd(“projectJS”),i.each(t||[],(function(t){try{t(C)}catch(v){d.emitInternalError(v)}})),i.each(q.getPlugins()||[],(function(t){try{E.apply(t,[C])}catch(v){d.emitError(v)}})),x.load();var r=w.on({filter:{type:”lifecycle”,name:”activated”},handler:function(){X.observe(U.persistVisitorProfile),Y.observe(U.persistLayerStates),F.observe(U.persistSessionState),K.observe(k.persistPendingEvents),tt.observe(U.persistVisitorBucketingStore),w.off(r)}});w.on({filter:{type:”lifecycle”,name:”viewsActivated”},handler:n.onViewsActivated}),w.on({filter:{type:”lifecycle”,name:”pageDeactivated”},handler:n.onPageDeactivated}),n.initializeApi();var o=k.getPendingEvents();if(o&&(I.dispatch(c.LOAD_PENDING_EVENTS,{events:o}),k.retryPendingEvents(o)),w.on({filter:{type:”lifecycle”,name:”activate”},handler:n.activate}),f.emitInitializedEvent(),!j.shouldActivate())return D.resolve();var u=[];if(nt.isDisabled())ut();else{var s=n.initializeXDomainStorage();if(u.push(s),Boolean(nt.getCanonicalOrigins())){var l=M.makeTimeoutPromise(1e3);D.race([s,l])[“catch”]((function(t){S.error(“Failed to initialize xDomain storage: “,t)})).then(ut)[“catch”](it.handleError)}else ut()}return D.all(u)}S.log(“Controller / Is disabled”)},n.activate=function(){try{var t=[];S.log(“Activated client”),vt(y.Lifecycle.preActivate);var n=!1;ot;var e=h.now();I.dispatch(c.ACTIVATE,{activationId:String(e),activationTimestamp:e});var r=J.getAll();L.registerViews(r,n),U.setId(U.getOrGenerateId()),t.push(s.trackPostRedirectDecisionEvent()),I.dispatch(c.MERGE_VARIATION_ID_MAP,{variationIdMap:U.getVariationIdMap()}),I.dispatch(c.MERGE_CONTEXTUAL_MAB_MAP,{contextualMabMap:U.getContextualMabMap()}),I.dispatch(c.SET_ODP_SEGMENTS,U.getOdpSegments()),vt(y.Lifecycle.postVisitorProfileLoad),t.push((g=$.getAllPlugins(y.PluginTypes.visitorProfileProviders),m=X.getVisitorProfile(),U.populateEagerVisitorData(g,m)).then((function(){S.log(“Populated visitor profile”)})));var o=ft(),a=p.decideGlobal(o);S.log(“Made global decision”,o,”->”,a),I.dispatch(c.RECORD_GLOBAL_DECISION,a);var u=s.trackClientActivation();u?S.log(“Tracked activation event”,u):S.log(“Not tracking activation event”);var l=at.setUpViewActivation(r),v=[];return i.each(l,(function(t){v=v.concat(L.activateMultiple([t]))})),vt(y.Lifecycle.postViewsActivated),vt(y.Lifecycle.postActivate),f.emitActivatedEvent(),D.all(t).then((function(){w.emit({type:b.TYPES.LIFECYCLE,name:”activateDeferredDone”}),S.log(“All immediate effects of activation resolved”)}),d.emitError)}catch(_){return d.emitError(_),D.reject(_)}var g,m},at.setUpViewActivation=function(t){var n=[];return i.each(t,(function(t){i.isBoolean(Q.getViewState(t.id).isActive)&&L.isActivationTypeImmediate(t.activationType)?S.debug(“Skipping page: already evaluated, presumably at the edge”,L.description(t)):L.shouldTriggerImmediately(t.activationType)?n.push(t):t.activationType===y.ViewActivationTypes.callback?(S.debug(“Setting up conditional activation for Page”,L.description(t)),at.activateViewOnCallback(t)):t.activationType===y.ViewActivationTypes.polling?(S.debug(“Setting up polling activation for Page”,L.description(t)),N.pollFor(i.partial(E.apply,t.activationCode),null,i.partial(P.isTimedOut,h.now())).then((function(){L.activateMultiple([t])}))[“catch”]((function(n){S.warn(“Failed to activate view “,t,n)}))):t.activationType!==y.ViewActivationTypes.manual&&d.emitError(new Error(“Unknown view activationType: “+t.activationType))})),n},at.activateViewOnCallback=function(t){var n={pageId:t.id};Object.defineProperty(n,”isActive”,{get:function(){return Q.isViewActive(t.id)}});try{E.apply(t.activationCode,[function(n){var e=i.extend({},n,{pageName:t.apiName,type:”page”});et.push(e)},n])}catch(r){var e=new o(“(“+r.toString()+”) in activationCode for “+L.description(t));d.emitError(e,{originalError:r,userError:!0})}},n.onViewsActivated=function(t){var e,r=t.data.views,o=i.map(r,”id”);try{if(!Z.getBucketingId())throw new Error(“View activated with no visitorId set”);var a=function(t){var e=H.getAllByPageIds(t),r=j.getForceVariationIds(),o=j.getForceAudienceIds();!i.isEmpty(r)&&S.log(“Force variations are in use. Disabling mutual exclusivity.”);var a={individual:e};S.log(“Deciding Campaigns/Experiments for Page(s)”,t),!1;var u=i.map(a.individual,A.description).join(“, “);S.log(“Campaigns/Experiments not in Groups (by Campaign id):”,u);var c=[],s=i.map(a.individual,(function(e){var a=i.filter(e.pageIds,i.partial(i.includes,t));return n.decideAndExecuteLayerASAP(r,o,a,e)})),f=c.concat(s);return D.all(f).then((function(n){var e=i.filter(n,(function(t){return!!t}));return S.log(“All Campaigns/Experiments for Page(s) (by Campaign id)”,t,”resolved:”,i.map(e,A.description).join(“, “)),e}))}(o)[“catch”](d.emitError);return e=D.all(i.map(r,(function(t){var n=function(){L.parseViewTags(t);var n=s.trackViewActivation(t);n?S.log(“Tracked activation for Page”,L.description(t),n):S.log(“Not Tracking activation for Page”,L.description(t))};return _.isReady()?D.resolve(n()):N.pollFor(_.isReady,1e3).then(n)}))),D.all([a,e])}catch(u){d.emitError(u)}},n.onPageDeactivated=function(t){var n=t.data.page,e=z.getAllActionIdsByPageId(n.id);i.each(e,(function(t){var e=z.getActionState(t);e&&(i.each(e,(function(t,e){if(t.cancel)try{t.cancel(),S.debug(“Controller / Canceled change”,e,”observation due to deactivation of page:”,n)}catch(i){S.error(“Controller / Error canceling change”,e,”observation upon deactivation of page.”,i)}if(n.undoOnDeactivation&&t.undo)try{t.undo(),S.debug(“Controller / Undid change”,e,”due to deactivation of page:”,n)}catch(r){S.error(“Controller / Error undoing change upon deactivation of page.”,r)}})),I.dispatch(c.REMOVE_ACTION_STATE,{actionId:t}),S.debug(“Controller / Undid changes and/or canceled change observation due to deactivation of page:”,n,t))}))},n.initializeApi=function(){var t={push:et.push};t.get=et.get;var n=window.optimizely;i.isArray(n)&&i.each(n,(function(n){t.push(n)})),t.data={note:”Obsolete, use optimizely.get(‘data’) instead”},t.state={},window.optimizely=t},n.persistItemsWithId=function(t){return i.each(t,(function(t,n){U.checkKeyForVisitorId(n)&&T.setItem(n,t)})),t},n.initializeXDomainStorage=function(){var t=e(9912),r=!!U.getCurrentId(),o=!!r&&U.hasSomeData();r?o?S.log(“xd / Existing visitor; has data on this origin”):S.log(“xd / Existing visitor; new to this origin”):S.log(“xd / New visitor”);var a=q.getAccountId(),u=”https://a26669750187.cdn.optimizely.com”.replace(“__SUBDOMAIN__”,”a”+a+”.”),s=”/client_storage/a”+a+”.html”;t.subscribe((function(t,n){U.checkKeyForVisitorId(t)&&T.setItem(t,n)}));var l=t.fetchAll().then((function(n){if(!Z.getVisitorIdLocator()){var e=nt.getCanonicalOrigins();if(e){var i=t.getXDomainUserId(n,e);i&&(S.log(“Syncing cross-origin visitor randomId:”,i),U.maybePersistVisitorId({randomId:i}))}}return U.deleteOldForeignData(),n})).then(n.persistItemsWithId).then((function(t){if(U.loadForeignData(),r&&!o){var n=!i.isEmpty(t);S.debug(“xd / Loaded foreign data? “,n),st(n)}S.log(“Loaded visitor data from foreign origins”),f.emitOriginsSyncedEvent()}),(function(t){throw r&&!o&&(S.debug(“xd / Failed to load foreign data:”,t),st(!1,t)),t}));return D.all([t.load(u,s)[“catch”]((function(t){throw S.debug(“xd / Failed to load iframe:”,t),r&&!o&&st(!1,t),t})),l[“catch”]((function(t){S.debug(“xd / Ignored error syncing foreign data (expected if waitForOriginSync used):”,t.message),S.debug(“xd / Enqueuing sync to happen after visitorId set.”),I.dispatch(c.ADD_CLEANUP_FN,{lifecycle:y.Lifecycle.postVisitorProfileLoad,cleanupFn:f.emitOriginsSyncedEvent})}))])},n.decideAndExecuteLayerASAP=function(t,e,r,o){return new D((function(a,d){try{!function(t,n,e,r,o){if(n.length||e.length)return void o(ft([],void 0,r));var a=A.relatedAudienceIds(t),u=i.reduce(a,(function(t,n){var e=B.get(n);return!e||t.push(e),t}),[]),s=$.getAllPlugins(y.PluginTypes.audienceMatchers);if(W.getSampleRum()){var f={};if(i.each(u,(function(t){i.extend(f,lt(t.conditions,s))})),!i.isEmpty(f)){var d=i.keys(f);I.dispatch(c.RECORD_AUDIENCE_USAGE,{audienceTypes:d,layerId:t.id})}}var v=function(t){S.debug(“Audience list for extracting types”,t);try{var n=new Set(i(t).map(“conditions”).flattenDeep().filter((function(t){return”string”!=typeof t})).map(“type”).value());return n.has(“time_and_day”)&&n.add(“currentTimestamp”),S.debug(“Extracted unique types from audiences”,n),n}catch(e){return S.error(“An error occurred while extracting types from audiences:”,e),new Set}}(u),h=$.getAllPlugins(y.PluginTypes.visitorProfileProviders),p=X.getVisitorProfile();U.populateLazyVisitorData(h,p,v),function(t,n,e,r){var o=i.reduce(t,(function(t,e){return i.extend(t,l.requiredAudienceFieldsForConditions(e.conditions,n))}),{}),a=i.reduce(o,(function(t,n){if(i.isUndefined(U.getAttribute(n))){var e=U.getPendingAttributeValue(n);i.isUndefined(e)||t.push(e)}return t}),[]);if(0===a.length)return r();var u=[].concat(t),c=O.firstToResolve(i.map(a,(function(t){return D.resolve(t).then((function(){var t=X.getVisitorProfile();if(u=i.filter(u,(function(e){return i.isUndefined(l.isInAudience(t,e,n))})),!i.isEmpty(u))throw new Error(“At least one audience is still pending”)}))})));D.race([c,new D((function(t,n){V.setTimeout(n,e)}))]).then((function(){S.log(“Activating Campaign after pending Audiences resolved”,t),r()}),(function(){S.log(“Activating Campaign after timeout on Audiences”,t),r()}))}(u,s,A.getActivationTimeout(t),(function(){var n=ft(u,t,r);i.map(n,(function(n){!function(t,n,e){var r=i.map(t.audienceIds,i.bind(B.get,B)),o=i.filter(n,(function(n){return!i.includes(t.audienceIds,n.id)}));S.log(“When deciding Campaign”,A.description(e),”visitor is in audiences:”,dt(r),”and not in audiences:”,dt(o))}(n,u,t)})),o(n)}))}(o,t,e,r,(function(l){i.each(l,(function(a){var l=a.pageId?[a.pageId]:r;S.debug(“Deciding layer: “,o,”with decisionTicket: “,a,”and actionViewIds: “,l),function(t,e,r,o,a){var l=A.description(t);S.log(“Activating Campaign”,l,”on Page(s)”,o),r.length&&(S.log(“Applying force audienceIds:”,r,”to Campaign”,l),(a=i.cloneDeep(a)).audienceIds=r);var d=n.decideLayer(t,a,e),v=!(!e.length&&!r.length),h=n.getActionsForDecision(t,d,v),g=function(t,n){return i.filter(t,(function(t){return i.isUndefined(t.pageId)||i.includes(n,t.pageId)}))}(h.actions,o);if(h.maybeExecute&&function(t,n,e,r){var o=A.description(n);S.log(“Preparing actions”,t,”for Campaign”,o,”on Page(s)”,r),i.forEach(t,u.prepareAction)}(g,t,0,o),i.forEach(o,(function(){s.trackDecisionEvent(d,a)})),f.emitLayerDecided({layer:t,decisionTicket:a,decision:d}),d.error)throw d.error;if(W.getSampleRum()){I.dispatch(c.RECORD_LAYER_POLICY_USAGE,{policy:t.policy,layerId:t.id});var m=function(t){var n={};return i.each(t,(function(t){i.each(t.changeSet,(function(t){n[t.type]||(n[t.type]=!0)}))})),n}(h.actions);I.dispatch(c.RECORD_CHANGE_TYPE_USAGE,{changeTypes:i.keys(m),layerId:t.id}),i.isEmpty(t.integrationSettings)||I.dispatch(c.RECORD_INTEGRATION_USAGE,{integrations:A.getIntegrationTypes(t),layerId:t.id})}if(!p.isInCohort(d))return void S.log(“Not activating Campaign: “+A.description(t)+”; not in the cohort because:”,d.reason);h.maybeExecute&&function(t,n,e,r){var o=A.description(n);S.log(“Executing actions”,t,”for Campaign”,o,”on Page(s)”,r),D.all(i.map(t,(function(t){return u.executePreparedAction(t).then(i.partial(f.emitActionAppliedEvent,t))}))).then((function(){S.log(“All page actions for”,e,”applied:”,t),f.emitActionsForDecisionAppliedEvent(e,t)}))[“catch”]((function(t){S.warn(“Error evaluating page actions for decision”,e,”because:”,t)}))}(g,t,d,o)}(o,t,e,l,a)})),a(o)}))}catch(v){S.error(“Error getting decision for Campaign: “+A.description(o),v),d(v)}}))},n.decideLayer=function(t,n,e){var i;var r=A.description(t);i=e.length?p.getDummyLayerDecision(t,e):p.decideLayer(t,n),S.log(“Recording decision for Campaign”,r,n,”->”,i),A.recordLayerDecision(t.id,n,i),i.variationId&&i.experimentId&&U.updateVariationIdMap(t.id,i.experimentId,i.variationId);return i},n.getActionsForDecision=function(t,n,e){var i=A.description(t),r=”NOT applying changes for Campaign”,o={actions:[],maybeExecute:!1};if(o.actions=[].concat(z.getLayerActions(n.layerId)||[],z.getExperimentActions(n.experimentId)||[],z.getExperimentVariationActions(n.experimentId,n.variationId)||[]),!e&&q.isGlobalHoldback())return S.log(r,i,”(visitor is in global holdback)”),o;if(n.isLayerHoldback)return S.log(r,i,”(visitor is in layer holdback)”),o;if(!n.experimentId||!n.variationId)return S.log(r,i,”(visitor is not eligible for any Experiments)”),o;return o.maybeExecute=!0,S.log(“Got Actions for Campaign:”,i,o.actions),o}},7422:function(t,n,e){var i=e(7877).Promise,r=e(1038),o=e(1037).get(“stores/plugins”),a=e(3876),u=e(528);n.create=function(t,n,e){var c={identifier:t.id,action:n,startTime:e||r.now()};try{var s=o.getPlugin(a.PluginTypes.changeAppliers,t.type);if(!s)throw new Error(“Unrecognized change type “+t.type);return new s(t,c)}catch(l){u.error(“Change applier was never properly constructed:”,l);var f={apply:function(){return i.reject(l)}};return f}}},3722:function(t){t.exports={SELECTOR_POLLING_MAX_TIME:2e3,CHANGE_DATA_KEY:”optimizelyChangeData”,CHANGE_ID_ATTRIBUTE_PREFIX:”data-optly-“}},4254:function(t,n,e){var i=e(2001),r=e(3722).CHANGE_DATA_KEY;function o(t,n){return[t,n].join(“_”)}n.getData=function(t,n,e){var i=o(n,e);return t[r]&&t[r][i]?t[r][i]:null},n.hasData=function(t){return Boolean(t&&t[r]&&!i.isEmpty(t[r]))},n.removeData=function(t,n,e){t[r]&&delete t[r][o(n,e)]},n.setData=function(t,n,e,i){if(“object”!=typeof i)throw new Error(“setData expects an object”);t[r]||(t[r]={}),t[r][o(n,e)]=i}},7105:function(t,n,e){var i=e(6530);t.exports={changeType:{CUSTOM_CODE:”custom_code”,ATTRIBUTE:”attribute”,APPEND:”append”,REARRANGE:”rearrange”,REDIRECT:”redirect”,WIDGET:”widget”},DOMInsertionType:{AFTER:”after”,APPEND:”append”,BEFORE:”before”,PREPEND:”prepend”},insertAdjacentHTMLType:{AFTER_BEGIN:”afterbegin”,AFTER_END:”afterend”,BEFORE_BEGIN:”beforebegin”,BEFORE_END:”beforeend”},selectorChangeType:{CLASS:”class”,HTML:”html”,HREF:”href”,SRC:”src”,SRCSET:”srcset”,STYLE:”style”,TEXT:”text”,HIDE:”hide”,REMOVE:”remove”},changeApplierState:i({APPLIED:null,APPLYING:null,UNAPPLIED:null,UNDOING:null}),changeState:i({BLOCKED:null,UNAPPLIED:null,APPLIED:null,APPLYING:null,UNDOING:null,TIMED_OUT:null,IGNORED:null,ERROR:null})}},239:function(t,n,e){var i=e(2001),r=e(3428),o=e(6149),a=e(1916),u=e(5334).v,c=e(1038),s=e(1037),f=e(3933),l=e(528),d=e(7877).Promise,v=e(2423),h=s.get(“stores/global”),p=s.get(“stores/action_data”),g=s.get(“stores/change_data”),m=s.get(“stores/session”),_=e(7422);e(5599).initialize();var y=u(“ActionError”);function w(t,n,e){if(p.getActionState(n.id)){var o=p.getChangeApplier(t.id,n.id);if(i.isUndefined(o)){var a={changeId:t.id,actionId:n.id,changeApplier:_.create(t,n,e)};f.dispatch(r.SET_CHANGE_APPLIER,a)}else l.warn(“Action / Attempted to prepare a change which is already being applied: “,t)}else l.warn(“Action / Attempted to prepare change for inactive action: “,n)}function b(t,n,e,r){if(!i.includes(r,n)){if(!t[String(n)]){var u=g.getChange(n);if(!u){var s=”Change with id “+n+” is absent”;return r.length&&(s+=” but listed as a dependency for “+r[r.length-1]),void l.warn(s)}t[String(n)]=new d((function(s){var f=i.map(u.dependencies||[],(function(i){return b(t,i,e,r.concat([n]))}));if(u.src){var h=”change_”+u.src,m=a.makeAsyncRequest(h,(function(){return v.addScriptAsync(“https://cdn.optimizely.com/public/26669750187/data”+u.src,(function(){a.resolveRequest(h)}))})).then((function(){var t=g.getChange(u.id);t||o.emitError(new y(“Failed to load async change from src: “+u.src)),w(t,e,c.now())}));f.push(m)}d.all(f).then((function(){var t=c.now(),i=p.getChangeApplier(n,e.id);return i?(l.debug(“Action / Applying change:”,u),i.apply().then((function(n){n?l.log(n):l.debug(“Action / Applied change for the first time in “+(c.now()-t)+”ms:”,u),s()}))):(l.debug(“Action / Not applying change “,n,” – No changeApplier found.”),void s())}))[“catch”]((function(t){l.error(“Action / Failed to apply change:”,u,t),s()}))}))}return t[String(n)]}l.error(“Change with id “+n+” has circular dependencies: “+r.concat(n))}n.prepareAction=function(t){l.debug(“Action / Preparing:”,t),f.dispatch(r.ACTION_EXECUTED,{actionId:t.id,sessionId:m.getSessionId(),layerId:t.layerId,pageId:t.pageId,timestamp:c.now(),activationId:h.getActivationId()});var n=c.now();i.forEach(t.changeSet,(function(e){var o=i.isObject(e)?e.id:e,a=g.getChange(o);a||(f.dispatch(r.ADD_CHANGE,e),a=g.getChange(e.id)),a.src||w(a,t,n)}))},n.executePreparedAction=function(t){l.debug(“Action / Executing:”,t);var n={},e=i.map(t.changeSet,(function(e){var r=i.isObject(e)?e.id:e;return b(n,r,t,[])}));return d.all(e).then((function(){l.debug(“changes for action id=”+t.id+” applied”)}))}},5599:function(t,n,e){var i=e(3722),r=e(1037).get(“stores/directive”);function o(){(“interactive”===document.readyState||”complete”===document.readyState)&&(n.domReadyTime=Date.now())}n.domReadyTime=null,n.initialize=function(){o(),document.addEventListener(“readystatechange”,o,!0)},n.isTimedOut=function(t){var e=Date.now();if(!n.domReadyTime||!t)return!1;var o=Math.max(t,n.domReadyTime);return r.isEditor()&&(o=n.domReadyTime),!(e-o0&&(this[r.FIELDS.CATEGORY]=e),o&&i.keys(o).length>0&&(this[r.FIELDS.OPTIONS]=o),i.isUndefined(a)||(this[r.FIELDS.REVENUE]=a)}function c(t,n,e,o){this.eventBase=t,this[r.FIELDS.TIME]=n,i.isUndefined(e)||(this[r.FIELDS.SESSION_ID]=e),i.isUndefined(o)||(this[r.FIELDS.SESSION_INDEX]=o)}n._=u,u.prototype.digest=function(){var t=function(t,n){return encodeURIComponent(t)+”=”+encodeURIComponent(n)},n=[];if(n.push(t(r.FIELDS.NAME,this[r.FIELDS.NAME])),n.push(t(r.FIELDS.TYPE,this[r.FIELDS.TYPE])),this[r.FIELDS.CATEGORY]&&n.push(t(r.FIELDS.CATEGORY,this[r.FIELDS.CATEGORY])),this[r.FIELDS.REVENUE]&&n.push(t(r.FIELDS.REVENUE,this[r.FIELDS.REVENUE])),!this[r.FIELDS.OPTIONS])return n.join(“&”);var e=this[r.FIELDS.OPTIONS]||{},o=i.filter(i.keys(e),(function(t){return e.hasOwnProperty(t)}));o=o.sort();for(var a=0;au&&(a+=1),t[e-1].setFieldValue(o.FIELDS.SESSION_INDEX,a);for(i=e-1;i>0;i–)s(t[i],t[i-1],!0)}},n.reindexIfNecessary=function(t,n,e){var i=function(t){for(var n=0;n1e3&&(t=t.slice(-1e3),n=!0),b(t),I([]),n}n.initialize=function(t,n){if(!y.getInitialized()){d.S(t,n);var e=T();e.length>0&&A(e[e.length-1]);var i=k();i.length>0&&A(i[i.length-1]),c.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:”initialized”,value:!0})}},n.addEvent=function(t){s.debug(“Behavior store: adding event”,t);var n=d.k(t);A(n),I(k().concat(n)),f.reindexIfNecessary(R(),T(),k()),d.R(k()),n.t&&function(t){try{var n=Number(o.get(p.COOKIES.OPTIMIZELY_SESSION,!1));if(isNaN(n)||0!==n){var e=n?f.isTimestampInSameSession(t,n)?t:0:t;o.set(p.COOKIES.OPTIMIZELY_SESSION,e.toString(),{path:”/”,encodeValue:!1},!0)}}catch(i){s.error(“Error setting session cookie”,i)}}(n.t)},n.getEvents=function(){return k().length>0&&(C()&&f.sessionize(T()),d.N(T()),d.R(k())),T()},n.getEventCount=function(){return k().length+T().length},d.S=function(t,n){d.D(t,n)&&(d.N(T()),d.R(k())),f.sessionize(T())},d.D=function(t,n){if(0===t.length&&0===n.length)return b([]),I([]),!1;var e=!1,i=t[0]||n[0];return w.EVENTBASE in i?(b(d.O(t)),I(d.O(n))):(e=!0,b(d.M(t)),I(d.M(n))),k().length>0&&(C(),e=!0),b(d._updateBaseMapAndMaybeDedupe(T())),d._migrateEventBasesAndUpdateStore()&&(e=!0),e},d.M=function(t){for(var n=[],e=0;eo)return r[a].entityId;throw new Error(“Unable to choose candidate”)}},391:function(t,n,e){var i=e(2001),r=e(3428),o=e(1645),a=e(4433),u=e(6861).b,c=e(3933),s=e(528),f=e(5747);n.isValidExperiment=function(t,n){var e,r=i.partial(i.includes,t);return s.groupCollapsed(“Decision / Evaluating audiences for experiment:”,n,t),e=!n.audienceIds||a.evaluate(n.audienceIds,r),s.groupEnd(),s.debug(“Decision / Experiment”,n,”is valid?”,e),e},n.selectVariation=function(t,n,e,a,l){if(s.debug(“Decision / Selecting variation for experiment:”,t.id),!t.variations||0===t.variations.length)throw new u(‘No variations in selected experiment “‘+t.id+'”‘);if(!t.weightDistributions&&t.variations.length>1)throw new u(‘On selected experiment “‘+t.id+'”, weightDistributions must be defined if # variations > 1’);var d;if(t.bucketingStrategy&&”impression”===t.bucketingStrategy)if(1===t.variations.length)d=t.variations[0].id;else{var v=a;d=o.chooseWeightedCandidate(e+v,t.id,t.weightDistributions)}else if(d=1===t.variations.length?t.variations[0].id:o.chooseWeightedCandidate(e,t.id,t.weightDistributions),null==t?void 0:t.deployed)s.debug(“Decision / Experiment is deployed. Skipping bucketing.”);else if(l&&l[t.id]){s.debug(“Decision / Using preferredVariationMap to select variation for experiment:”,t.id);var h=l[t.id];if(!i.find(t.variations,{id:h}))return c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:”stoppedVariation”,id:t.id}),s.debug(“Decision / Preferred variation:”,h,”not found on experiment:”,t.id,”. Visitor not bucketed.”),null;h!==d&&(c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:”preferredVariation”,id:t.id}),d=h)}var p=f.processCmabExperiment(t,d);p&&(d=p);var g=i.find(t.variations,{id:d});if(g)return s.debug(“Decision / Selected variation:”,g),g;throw new u(‘Unable to find selected variation: “‘+d+'”.’)},n.getExperimentById=function(t,n){var e=i.find(t.experiments,{id:n});if(e)return e;throw new u(“Unable to find selected experiment.”)},n.hasVariationActionsOnView=function(t,n){return s.debug(“Decision / Checking variation:”,t,”for actions on pageId:”,n),!!i.find(t.actions,(function(t){return t.pageId===n&&!i.isEmpty(t.changes)}))}},6861:function(t,n){function e(t){this.message=t}e.prototype=new Error,n.b=e},8695:function(t,n,e){var i=e(2001),r=(e(3428),e(6149)),o=e(6127),a=e(1645),u=e(391),c=e(6861).b,s=e(1037),f=e(3876),l=(e(3933),e(1652),e(6910)),d=e(528),v=(e(1766),e(8466)),h=s.get(“stores/plugins”),p=s.get(“stores/global”),g=s.get(“stores/layer_data”);function m(t){var n=h.getPlugin(f.PluginTypes.deciders,t);if(i.isEmpty(n))throw new Error(“No deciders found for policy: “+t);return n}n.isPageIdRelevant=function(t){if(!t)return!1;var n=m(t.policy);return i.isFunction(n.includePageIdInDecisionTicket)?n.includePageIdInDecisionTicket(t):!0===n.includePageIdInDecisionTicket},n.createTicket=function(t){var n,e,r,a=i.pick(t,[“bucketingId”,”globalHoldback”,”preferredVariationMap”,”pageId”]);return i.extend(a,{audienceIds:(n=t.visitorProfile,e=t.audiences,r=h.getAllPlugins(f.PluginTypes.audienceMatchers),i.reduce(e,(function(t,e){return o.isInAudience(n,e,r)&&t.push(e.id),t}),[])),activationId:p.getActivationId()}),a},n.decideGlobal=function(t){return{isGlobalHoldback:a.isHoldback(t.bucketingId,{id:null,holdback:t.globalHoldback})}},n.decideLayer=function(t,n){var e,o;d.debug(“Deciding: “,t,n);var s,f,l=m(t.policy),v={layerId:t.id,experimentId:null,variationId:null,isLayerHoldback:a.isHoldback(n.bucketingId,t),isLayerConcluded:!!t.concluded};if(i.isEmpty(t.experiments))throw new c(“No experiments in layer.”);try{if(l.decideLayer){d.debug(“Decision / Using decider’s custom decideLayer.”);var h=l.decideLayer(t,n);e=h.experiment,o=h.variation}else d.debug(“Decision / Using default decideLayer behavior.”),e=l.selectExperiment(t,n.audienceIds,n.bucketingId),o=u.selectVariation(e,n.audienceIds,n.bucketingId,n.activationId,n.preferredVariationMap)}catch(p){s=p,(null!=(f=c)&&”undefined”!=typeof Symbol&&f[Symbol.hasInstance]?f[Symbol.hasInstance](s):s instanceof f)?v.reason=p.message:v.error=p}return v.experimentId=e?e.id:null,v.variationId=o?o.id:null,v.error&&(v.error.name=”DecisionEngineError”,r.emitError(v.error)),v},n.getDummyLayerDecision=function(t,n){var e,i=function(t,n){for(var e=0;e-1)return{experimentId:t.experiments[e].id,variationId:t.experiments[e].variations[i].id};return null}(t,n);return i?(d.log(“Decision / Applying force variation:”,i.variationId,”to Campaign”,l.description(t)),e={layerId:t.id,variationId:i.variationId,experimentId:i.experimentId,isLayerHoldback:!1,isLayerConcluded:!1,reason:”force”}):(d.log(“No variation matches ids:”,n,”in Campaign”,l.description(t)),e={layerId:t.id,variationId:null,experimentId:null,isLayerHoldback:!1,isLayerConcluded:!1,reason:”force”}),e},n.isInCohort=function(t){if(!t.experimentId||!t.variationId)return!1;var n=g.get(t.layerId);return!(v.isSingleExperimentPolicy(n.policy)&&t.isLayerHoldback)}},1037:function(t,n,e){var i=e(2001),r=e(2460),o=e(3933),a=e(6370),u=r.create(),c={action_data:e(3992),async_request:e(9113),audience_data:e(2432),change_data:e(9854),cleanup:e(487),client_metadata:e(810),cookie_options:e(2048),event_data:e(238),event_emitter:e(1606),dimension_data:e(9250),directive:e(7658),global:e(7744),history:e(4975),integration_settings:e(4321),layer:e(6746),layer_data:e(2461),log:e(9205),observed_redirect:e(5966),pending_events:e(646),performance:e(9433),plugins:e(4679),provider_status:e(5359),pending_redirect:e(3111),rum:e(4083),sandbox:e(6864),session:e(6075),tracker_optimizely:e(5514),ua_data:e(2132),view:e(4150),view_data:e(4713),visitor:e(6701),visitor_attribute_entity:e(9638),visitor_events:e(9665),visitor_events_manager:e(4789),visitor_id:e(717),visitor_bucketing:e(8236),xdomain:e(1727)};o.registerStores(c),i.forOwn(c,(function(t,n){u.register(“stores/”+n,o.getStore(n))})),u.register(“core/plugins/matchers/key_value”,a),t.exports=u},1458:function(t,n,e){var i=e(2001),r=e(3428),o=e(6149),a=e(186),u=e(5334).v,c=e(3876),s=e(3933),f=e(528),l=n.JSONParseError=u(“JSONParseError”),d=e(7346),v=e(588),h=e(3250),p=”optimizely_show_preview”,g=”optimizely_disable”,m=”optimizely_editor”,_=”optimizely_p13n”,y=”optimizely_x_audiences”,w=”optimizely_x”,b=”optimizely_show_preview”,E=”optimizely_opt_out”,I=”optimizely_token”,A=”optimizely_force_tracking”,T=”optimizely_embed_editor”;n.populateDirectiveData=function(){var t,n,e,u,S,k,R,C;!function(){var t=”OFF”,n=d.getQueryParamValue(“optimizely_log”);if(n){var e=n.split(“:”);””!==e[0]&&(t=String(e[0]).toUpperCase()),void 0!==e[1]&&f.setLogMatch(e[1])}f.setLogLevel(t)}(),function(){var t=h.getUserAgent()||””;if(!i.isString(t))return void f.warn(“Directive / userAgent not a string”);t=t.toLowerCase();var n=[“googlebot”,”yahoo! slurp”,”bingbot”,”bingpreview”,”msnbot”,”keynote”,”ktxn”,”khte”,”gomezagent”,”alertsite”,”yottaamonitor”,”pingdom.com_bot”,”aihitbot”,”baiduspider”,”adsbot-google”,”mediapartners-google”,”applebot”,”catchpoint”,”phantomjs”,”moatbot”,”facebookexternalhit”],e=function(n){if(i.includes(t,n))return f.warn(“Directive / Matches bot:”,n),!0};i.some(n,e)&&(f.log(“Directive / Disabling tracking”),s.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0}))}(),t=Boolean(i.result(window.optimizely,”initialized”)),s.dispatch(r.LOAD_DIRECTIVE,{alreadyInitialized:t}),s.dispatch(r.LOAD_DIRECTIVE,{mutationObserverAPISupported:h.isMutationObserverAPISupported()}),function(){var t=a.get(c.COOKIES.OPT_OUT),n=d.getQueryParamValue(E),e=”You have successfully opted out of Optimizely for this domain.”,i=”You are NOT opted out of Optimizely for this domain.”;if(“true”===n||”false”===n){var o=”true”===n;s.dispatch(r.LOAD_DIRECTIVE,{shouldOptOut:o}),h.alert(o?e:i)}else t&&s.dispatch(r.LOAD_DIRECTIVE,{shouldOptOut:”true”===t})}(),function(){var t=!1,n=[p,g];n.push(m);for(var e=0;eNumber(e[o]))return 1}}return 0}},4433:function(t,n,e){var i=e(2001),r=e(588),o=e(528),a=”or”,u=”not”;var c={};function s(t,n){var e;if(i.isArray(t)){var u,s;t[0]in c?(u=t[0],s=t.slice(1)):(u=a,s=t),o.groupCollapsed(‘Condition / Applying operator “‘+u+'” with args’,r.stringify(s));try{e=c[u](s,n),o.debug(“Condition / Result:”,e)}finally{o.groupEnd()}return e}return e=n(t),o.debug(“Condition / Evaluated:”,r.stringify(t),”:”,e),e}c[“and”]=function(t,n){for(var e,r,o=0;o-1;case”regex”:try{return!(!o||!r)&&new RegExp(t).test(String(e))}catch(f){}return!1;case”range”:var a=t.split(“:”),u=parseFloat(a[0]),c=parseFloat(a[1]),s=parseFloat(e);return s>=u&&s<=c;default:return!1}}},7877:function(t,n,e){t.exports=e(7583)},4520:function(t,n,e){var i=e(2001),r=e(528);function o(t,n){this.ct=t,this.st=n}o.prototype.ft=function(t){return[this.st,t].join("$$")},o.prototype.dt=function(t){return t.replace(this.st+"$$","")},o.prototype.setItem=function(t,n){try{this.ct.setItem(this.ft(t),n)}catch(e){r.warn("Failed to save",t,"to localStorage:",e)}},o.prototype.removeItem=function(t){this.ct.removeItem(this.ft(t))},o.prototype.getItem=function(t){var n=null;try{n=this.ct.getItem(this.ft(t))}catch(e){}return n},o.prototype.keys=function(){var t=i.keys(this.ct);return i.map(i.filter(t,i.bind((function(t){return i.includes(t,this.st)}),this)),i.bind(this.dt,this))},o.prototype.allKeys=function(){return i.keys(this.ct)},o.prototype.allValues=function(){return i.values(this.ct)},t.exports={create:function(t,n){return new o(t,n)},mockStorage:{keys:function(){},getItem:function(t){},removeItem:function(t){},setItem:function(t,n){}}}},851:function(t,n,e){var i=e(1327),r=e(5530),o=e(5270);n.createDOMChangedObserver=function(){var t=i.getDocumentElement(),n={type:"viewTrigger",name:"DOMChanged"},e=o.create((function(){r.emit(n,!0)}));o.observe(e,t,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}},7820:function(t,n,e){var i=e(2001),r=e(6149),o=e(3876),a=e(588),u=e(461).DT,c=e(528),s=e(6008),f=e(1037).get("stores/pending_events"),l=o.StorageKeys.PENDING_EVENTS;n.persistPendingEvents=function(){try{var t=f.getEventsString();u.setItem(l,t),e(9912).setItem(l,t)}catch(n){c.warn("PendingEvents / Unable to set localStorage key, error was: ",n),r.emitInternalError(n)}},n.getPendingEvents=function(){try{return a.parse(u.getItem(l))}catch(t){return null}},n.retryPendingEvents=function(t){i.forOwn(t,(function(t,n){s.retryableRequest(t.data,n,t.retryCount)})),i.isEmpty(t)||c.log("Retried pending events: ",t)}},4853:function(t,n,e){var i=e(2001),r=e(3428),o=e(1037),a=e(3876),u=e(5530),c=e(3933);n.registerApiModule=function(t,n){i.isArray(n)&&(n=o.evaluate(n)),c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.apiModules,name:t,plugin:n})},n.registerDependency=function(t,n){o.get(t)||o.register(t,n)},n.registerVisitorProfileProvider=function(t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.visitorProfileProviders,name:t.provides,plugin:t})},n.registerViewProvider=function(t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewProviders,name:t.provides,plugin:t})},n.registerAudienceMatcher=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.audienceMatchers,name:t,plugin:n})},n.registerViewMatcher=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewMatchers,name:t,plugin:n})},n.registerAnalyticsTracker=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.analyticsTrackers,name:t,plugin:n})},n.registerViewTagLocator=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTagLocators,name:t,plugin:n})},n.registerAudiencePlugin=function(t){t.dependencies&&i.each(t.dependencies,(function(t,e){n.registerDependency(e,t)}));var e,r,a="vendor."+t.vendor;e=i.isString(t.provider)?o.get(t.provider)(t.vendor):i.isFunction(t.provider)?t.provider(t.vendor):i.cloneDeep(t.provider),n.registerVisitorProfileProvider(i.extend(e,{provides:a})),r=i.isString(t.matcher)?o.get(t.matcher):t.matcher;var u={fieldsNeeded:[a],match:function(t,n){return r(t[a],n)}};n.registerAudienceMatcher(a,u)},n.registerWidget=function(t){return i.isArray(t)&&(t=o.evaluate(t)),{showToken:u.on({filter:{type:"showWidget",name:t.widgetId},handler:t.showFn}),hideToken:u.on({filter:{type:"hideWidget",name:t.widgetId},handler:t.hideFn})}},n.registerChangeApplier=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.changeAppliers,name:t,plugin:n})},n.registerDecider=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.deciders,name:t,plugin:n})},n.registerEventImplementation=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.eventImplementations,name:t,plugin:n})},n.registerViewTrigger=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTriggers,name:t,plugin:n})}},1619:function(t,n,e){var i=e(2001),r=e(1037),o=":",a="holdback",u="treatment",c="",s=e(528),f=e(8466);function l(t){return t.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}n.formatNamesAndIdsForAnalytics=function(t,n,e,o){var a={layer:t.name||c,experiment:n.name||c,variation:e.name||c};o&&(a=i.mapValues(a,l));var u,s=!t.integrationStringVersion||1===t.integrationStringVersion;if(a.experiment===c&&s)if(u=n.audienceIds,!i.isEmpty(u)&&i.includes(["and","or","not"],u[0]))a.experiment="Exp";else{var f=r.get("stores/audience_data");a.experiment=function(t,n){return i.isEmpty(n)?"everyone_else":i.reduce(n,(function(n,e){var i=t.get(e);return i?n+l(i.name?i.name:i.id)+",":n}),"").slice(0,-1)}(f,n.audienceIds)}return{names:a,idStrings:{layer:"("+l(t.id)+")",experiment:"("+l(n.id)+")",variation:"("+l(e.id)+")"}}},n.combineAndTruncateIdAndName=function(t,n,e){var i=e-n.length;if(i<0&&(s.warn("maxLength must be at least long enough to fit the entity ID, which is length"+n.length+". Defaulting to only use entity ID as name."),t=c),t===c)return n;if(t.length>i){var r=Math.min(t.length,i);return(t=t.substring(0,r))+n}return t+” “+n},n.generateAnalyticsString=function(t,e,r,c,s,l){return t.integrationStringVersion&&2===t.integrationStringVersion?function(t,e,r,u,c,s){if(f.isSingleExperimentPolicy(t.policy)&&u)return;var l=!f.isSingleExperimentPolicy(t.policy)&&u,d=n.formatNamesAndIdsForAnalytics(t,e,r,s),v=[d.names.experiment,d.names.variation],h=[d.idStrings.experiment,d.idStrings.variation];f.isSingleExperimentPolicy(t.policy)||(v.unshift(d.names.layer),h.unshift(d.idStrings.layer));var p=i.reduce(h,(function(t,n){return t+n.length}),0),g=v.length-1+(l?1:0),m=p+1*g;if(l&&(m+=8),m>c)throw new Error(“The analytics string size is too low to send the entity IDs.”);for(var _=c-m,y=v.length,w=[],b=v.length-1;b>=0;b–){var E=v[b],I=Math.min(E.length,Math.floor(_/y));_-=I,y–,w.unshift(E.substring(0,I))}var A=i.map(w,(function(t,n){return t+h[n]}));return l&&A.push(a),A.join(o)}(t,e,r,c,s,l):function(t,e,r,c,s,l){var d=c?a:u,v=3,h=n.formatNamesAndIdsForAnalytics(t,e,r,l),p=h.names,g=h.idStrings,m=i.reduce(g,(function(t,n){return t+n.length}),0);if(m+v+d.length>s)throw new Error(“The analytics string size is too low to send the campaign, experiment, and variation IDs.”);var _=s-m-v-d.length,y={};y.variation=Math.min(p.variation.length,Math.floor(_/3)),_-=y.variation,y.experiment=Math.min(p.experiment.length,Math.floor(_/2)),_-=y.experiment,y.layer=_;var w={};i.each(p,(function(t,n){w[n]=t.substring(0,y[n])}));var b=[];return f.isSingleExperimentPolicy(t.policy)||b.push(w.layer+g.layer),(b=b.concat([w.experiment+g.experiment,w.variation+g.variation,d])).join(o)}(t,e,r,c,s,l)}},7210:function(t,n,e){var i=e(2001);t.exports=function(t,n){t=function(t){var n=t.split(“?”);if(n[1]){var e=n[1].split(“#”),r=e[0],a=e.slice(1).join(“#”),u=r.split(“&”),c=[];return i.each(u,(function(t){0!==t.indexOf(o)&&c.push(t)})),n[1]=””,c.length>0&&(n[1]=”?”+c.join(“&”)),a&&(n[1]+=”#”+a),n.join(“”)}return t}(t);var e=n.value;switch(n.match){case”exact”:return(t=c(t))===c(e);case”regex”:try{return Boolean(t.match(e))}catch(r){}return!1;case”simple”:return(t=u(t))===(e=u(e));case”substring”:return t=c(t,!0),e=c(e,!0),-1!==t.indexOf(e);default:return!1}};var r=[“www.”],o=”optimizely_”,a=[“https?://.*?.?optimizelyedit.(com|test)/”,”https?://.*.?optimizelypreview.(com|test)/”,”https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/”,”https?://.*?.?optimizelyedit(-hrd)?.appspot.com/”,”https?://”];function u(t){return c(function(t){var n=t.indexOf(“?”);return-1!==n&&(t=t.substring(0,n)),-1!==(n=t.indexOf(“#”))&&(t=t.substring(0,n)),t}(t))}function c(t,n){t=(t=t.replace(“/?”,”?”)).toLowerCase().replace(/[/&?]+$/,””);var e=a.slice(0);n||(e=e.concat(r));for(var i=e.length,o=0;o-1&&(n.splice(e,1),this.emitChange())}else this.W[t.lifecycle]=[],this.emitChange()}}},810:function(t,n,e){var i=e(3428),r=e(731);t.exports={initialize:function(){this.W={name:r.NAME,version:r.VERSION},this.on(i.SET_CLIENT_NAME,this.St),this.on(i.SET_CLIENT_VERSION,this.kt)},getClientName:function(){return this.W.name},getClientVersion:function(){return this.W.version},St:function(t){t&&(this.W.name=t),this.emitChange()},kt:function(t){t&&(this.W.version=t),this.emitChange()}}},2048:function(t,n,e){var i=e(3428);t.exports={initialize:function(){this.W={currentDomain:null,defaultAgeSeconds:15552e3,autoRefresh:true},this.on(i.SET_COOKIE_DOMAIN,this.Rt),this.on(i.SET_COOKIE_AGE,this.Ct),this.on(i.SET_COOKIE_AUTO_REFRESH,this.Nt)},getCurrentDomain:function(){return this.W.currentDomain},getDefaultAgeInSeconds:function(){return this.W.defaultAgeSeconds},getAutoRefresh:function(){return this.W.autoRefresh},Rt:function(t){this.W.currentDomain=t,this.emitChange()},Ct:function(t){this.W.defaultAgeSeconds=t,this.emitChange()},Nt:function(t){this.W.autoRefresh=t,this.emitChange()}}},9250:function(t,n,e){var i=e(2001),r=e(3428),o=e(7895);t.exports={initialize:function(){this.W={},this.on(r.DATA_LOADED,this.vt)},vt:function(t){i.isEmpty(t.data.dimensions)||(i.each(t.data.dimensions,i.bind((function(t){o.deepFreeze(t),this.W[t.id]=t}),this)),this.emitChange())},getAll:function(){return o.safeReference(i.values(this.W))},getById:function(t){return o.safeReference(this.W[t])},getByApiName:function(t){return o.safeReference(i.find(i.values(this.W),{apiName:t}))}}},7658:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={disabled:!1,forceAudienceIds:[],forceVariationIds:[],alreadyInitialized:!1,mutationObserverAPISupported:!1,isEditor:!1,isPreview:!1,isLegacyPreview:!1,isSlave:!1,previewLayerIds:[],projectToken:null,shouldOptOut:!1,trackingDisabled:!1,isRunningInV2Editor:!1,isRunningInDesktopApp:!1,forceTracking:!1,requestedEmbeddedEditor:!1},this.on(r.LOAD_DIRECTIVE,this.Dt)},getAll:function(){return i.cloneDeep(this.W)},conflictInObservingChanges:function(){return!this.W.mutationObserverAPISupported},isDisabled:function(){return this.W.disabled},isEditor:function(){return this.W.isEditor},clientHasAlreadyInitialized:function(){return this.W.alreadyInitialized},getForceAudienceIds:function(){return this.W.forceAudienceIds},getForceVariationIds:function(){return this.W.forceVariationIds},getPreviewLayerIds:function(){return this.W.previewLayerIds},getProjectToken:function(){return this.W.projectToken},getForceTracking:function(){return this.W.forceTracking},shouldActivate:function(){return!this.W.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.W.isPreview},shouldBootstrapDataForEditor:function(){return this.W.isEditor},shouldInitialize:function(){return!(this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.W.isPreview||this.W.isLegacyPreview||!this.getProjectToken()||this.W.isEditor)},shouldLoadEmbeddedEditor:function(){return this.W.requestedEmbeddedEditor&&!this.W.isEditor},shouldBailForDesktopApp:function(){return!this.W.isEditor&&this.W.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.W.isSlave&&!this.W.isEditor&&this.W.isRunningInV2Editor},shouldObserveChangesIndefinitely:function(){return this.W.mutationObserverAPISupported},shouldObserveChangesUntilTimeout:function(){return!this.shouldObserveChangesIndefinitely()},shouldOptOut:function(){return this.W.shouldOptOut},shouldSendTrackingData:function(){return!this.W.trackingDisabled&&(!!this.W.forceTracking||!this.W.isPreview&&i.isEmpty(this.getForceVariationIds())&&i.isEmpty(this.getForceAudienceIds()))},isSlave:function(){return this.W.isSlave},isRunningInDesktopApp:function(){return this.W.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.W.isRunningInV2Editor},Dt:function(t){i.extend(this.W,t),this.emitChange()}}},238:function(t,n,e){var i=e(2001),r=e(3428),o=e(7895);t.exports={initialize:function(){this.W={},this.on(r.DATA_LOADED,this.vt)},getAll:function(){return o.safeReference(i.values(this.W))},getEventsMap:function(){return o.safeReference(this.W)},get:function(t){return o.safeReference(this.W[t])},getByApiName:function(t){return o.safeReference(i.find(i.values(this.W),{apiName:t}))},getByPageId:function(t){return o.safeReference(i.filter(this.W,{pageId:t}))},vt:function(t){i.isEmpty(t.data.events)||(i.each(t.data.events,i.bind((function(t){t.pageId||(t.pageId=t.viewId),o.deepFreeze(t),this.W[t.id]=t}),this)),this.emitChange())}}},1606:function(t,n,e){var i=e(2001),r=e(3428);function o(t){var n=[];return t&&i.isObject(t)?(t.type&&n.push(t.type),n.push(“|”),t.type&&t.name&&n.push(t.name),n.join(“”)):”|”}t.exports={initialize:function(){this.W={handlers:{}},this.on(r.ADD_EMITTER_HANDLER,this.Ot),this.on(r.REMOVE_EMITTER_HANDLER,this.xt)},getHandlers:function(t,n){var e=[null,{type:t.type},{type:t.type,name:t.name}],r=[];return i.each(e,i.bind((function(t){var n=o(t),e=this.W.handlers[n];e&&(r=r.concat(e))}),this)),n&&(r=i.filter(r,(function(t){return!t.publicOnly}))),r},Ot:function(t){var n=o(t.filter);this.W.handlers[n]||(this.W.handlers[n]=[]),this.W.handlers[n].push({handler:t.handler,token:t.token,publicOnly:!!t.publicOnly,emitErrors:!!t.emitErrors}),this.emitChange()},xt:function(t){var n=!1,e=t.token;i.forOwn(this.W.handlers,i.bind((function(t,r){var o=i.filter(t,(function(t){return t.token!==e}));o.length!==t.length&&(n=!0,this.W.handlers[r]=o)}),this)),n&&this.emitChange()}}},7744:function(t,n,e){var i=e(2001),r=e(3428),o=e(7895);t.exports={initialize:function(){this.W={holdback:0,isGlobalHoldback:null,listTargetingKeys:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,activationTimestamp:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[],domContentLoaded:!1,experimental:{},ga4UserId:null},this.on(r.DATA_LOADED,this.Mt),this.on(r.ACTIVATE,this.Pt),this.on(r.RECORD_GLOBAL_DECISION,this.Lt),this.on(r.SET_DOMCONTENTLOADED,this.Ut),this.on(r.SET_GA4_USER_ID,this.Vt)},getRevision:function(){return this.W.revision},getGlobalHoldbackThreshold:function(){return this.W.holdback},getProjectId:function(){return this.W.projectId},getSnippetId:function(){return this.W.snippetId},getAccountId:function(){return this.W.accountId},getNamespace:function(){return this.W.namespace},getActivationId:function(){return this.W.activationId},getActivationTimestamp:function(){return this.W.activationTimestamp},getAnonymizeIP:function(){return this.W.anonymizeIP},isGlobalHoldback:function(){return!!this.W.isGlobalHoldback},getListTargetingKeys:function(){return this.W.listTargetingKeys.slice()},getDCPServiceId:function(){return this.W.dcpServiceId},getDCPKeyfieldLocators:function(){return this.W.dcpKeyfieldLocators},getRecommenderServices:function(){return this.W.recommenderServices},getProjectJS:function(){return this.W.projectJS},getPlugins:function(){return this.W.plugins},getExperimental:function(){return o.safeReference(this.W.experimental)},getGA4UserId:function(){return this.W.ga4UserId},domContentLoadedHasFired:function(){return this.W.domContentLoaded},Pt:function(t){this.W.activationId=t.activationId,this.W.activationTimestamp=t.activationTimestamp,this.W.isGlobalHoldback=null},Lt:function(t){var n=t.isGlobalHoldback;if(null!==this.W.isGlobalHoldback&&this.W.isGlobalHoldback!==n)throw new Error(“Attempted to change already set global holdback!”);this.W.isGlobalHoldback=n,this.emitChange()},Vt:function(t){var n=t.ga4UserId;if(!n)throw new Error(‘Argument “payload.ga4UserId” is missing’);this.W.ga4UserId=n,this.emitChange()},Mt:function(t){var n=i.pick(t.data,[“holdback”,”accountId”,”projectId”,”snippetId”,”namespace”,”revision”,”listTargetingKeys”,”dcpServiceId”,”dcpKeyfieldLocators”,”recommenderServices”,”anonymizeIP”,”plugins”,”projectJS”,”experimental”,”ga4UserId”]);if(0!==i.keys(n).length){i.extend(this.W,{listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]},n),this.emitChange()}},Ut:function(){this.W.domContentLoaded=!0,this.emitChange()}}},4975:function(t,n,e){var i=e(2001),r=e(3428),o=e(3250);t.exports={initialize:function(){this.W={originalPushState:null,originalReplaceState:null},this.on(r.ENSURE_ORIGINAL_PUSHSTATE,this.Ft),this.on(r.ENSURE_ORIGINAL_REPLACESTATE,this.Bt)},getOriginalPushState:function(){return this.W.originalPushState},getOriginalReplaceState:function(){return this.W.originalReplaceState},Ft:function(){this.W.originalPushState||(this.W.originalPushState=i.bind(o.getGlobal(“history”).pushState,o.getGlobal(“history”)))},Bt:function(){this.W.originalReplaceState||(this.W.originalReplaceState=i.bind(o.getGlobal(“history”).replaceState,o.getGlobal(“history”)))}}},4321:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={},this.on(r.DATA_LOADED,this.vt),this.on(r.SET_INTEGRATION_SETTINGS,this.zt)},vt:function(t){i.isEmpty(t.data.integrationSettings)||(i.each(t.data.integrationSettings,i.bind((function(t){this.W[t.id]=t}),this)),this.emitChange())},zt:function(t){var n=this.W[t.id];n?i.extend(n,t):this.W[t.id]=t},getAll:function(){return i.cloneDeep(i.values(this.W))},get:function(t){return i.cloneDeep(this.W[t])},getReference:function(t){return this.W[t]}}},6746:function(t,n,e){var i=e(2001),r=e(3428),o=e(528),a=”*”;t.exports={initialize:function(){this.W={},this.on(r.LOAD_PERSISTED_LAYER_STATES,this.Gt),this.on(r.RECORD_LAYER_DECISION,this.jt),this.on(r.RECORD_LAYER_DECISION_EVENT_ID,this.qt)},getLayerState:function(t,n){if(this.W[t]){var e=this.W[t];if(i.keys(e).length>1&&!n)throw new Error(“View Id must be specified when more than one layerState for layer.”);return n?i.cloneDeep(i.find(e,{pageId:n})):i.cloneDeep(e[a])}},getLayerStates:function(t){var n=[];for(var e in this.W)i.forEach(this.W[e],(function(e){(i.isUndefined(t)||e.namespace===t)&&n.push(i.cloneDeep(e))}));return n},getLayerStatesForAnalytics:function(){var t=[];for(var n in this.W)i.forEach(this.W[n],(function(n){t.push(i.pick(n,[“layerId”,”decision”,”decisionEventId”]))}));return t},Gt:function(t){t.merge||(this.W={}),i.each(t.layerStates,i.bind((function(t){var n=t.layerId;t.pageId||(t.pageId=t.viewId);var e=t.pageId||a,r=this.W[n];if(i.isUndefined(r))this.W[n]={},this.W[n][e]=t;else{var o=r[e];(!o||t.decisionTimestamp>(o.decisionTimestamp||0))&&(this.W[n][e]=t)}}),this)),this.emitChange()},jt:function(t){var n={layerId:t.layerId,revision:t.revision,namespace:t.namespace,pageId:t.pageId,decisionTicket:t.decisionTicket,decision:t.decision,decisionActivationId:t.activationId,decisionTimestamp:t.timestamp,decisionEventId:null},e=this.W[t.layerId]||{};t.pageId?(delete e[a],e[t.pageId]=n):(e={})[a]=n,this.W[t.layerId]=e,this.emitChange()},qt:function(t){var n=t.layerId,e=t.pageId||a;this.W[n]?this.W[n][e]?(this.W[n][e].decisionEventId=t.decisionId,this.emitChange()):o.warn(“Not recording decision event: Layer state not found for view”,e):o.warn(“Not recording decision event: Campaign not registered”,n)}}},2461:function(t,n,e){var i=e(2001),r=e(3428),o=e(7895),a=e(8466);t.exports={initialize:function(){this.W={layers:{},experiments:{},variations:{}},this.on(r.DATA_LOADED,this.vt)},vt:function(t){if(!i.isEmpty(t.data.layers)){var n=this;i.each(t.data.layers,(function(t){i.each(t.experiments,(function(e){t.pageIds||(t.pageIds=t.viewIds),e.campaignName||a.isSingleExperimentPolicy(t.policy)?a.isSingleExperimentPolicy(t.policy):e.campaignName=t.name,i.each(e.variations,(function(t){i.each(t.actions,(function(t){t.pageId||(t.pageId=t.viewId)})),n.W.variations[t.id]=t})),n.W.experiments[e.id]=e})),o.deepFreeze(t),n.W.layers[t.id]=t})),this.emitChange()}},getAll:function(){return o.safeReference(i.values(this.W.layers))},getCampaignsMap:function(){return o.safeReference(this.W.layers)},getExperimentsMap:function(){return o.safeReference(this.W.experiments)},getVariationsMap:function(){return o.safeReference(this.W.variations)},getCount:function(){return i.keys(this.W.layers).length},getAllByPageIds:function(t){return o.safeReference(i.filter(this.W.layers,(function(n){return i.some(t,i.partial(i.includes,n.pageIds))})))},get:function(t){return o.safeReference(this.W.layers[t])},getLayerByExperimentId:function(t){var n=i.find(this.W.layers,(function(n){return i.find(n.experiments,{id:t})}));return o.safeReference(n)},getExperimentByVariationId:function(t){var n;return i.some(this.W.layers,(function(e){return i.some(e.experiments,(function(e){return i.find(e.variations,{id:t})&&(n=e),n})),n})),o.safeReference(n)}}},9205:function(t,n,e){var i=e(3428);t.exports={initialize:function(){this.W={logs:[]},this.on(i.LOG,this.Ht)},getLogs:function(){return this.W.logs},Ht:function(t){this.W.logs.push(t),this.emitChange()},Z:function(){return this.W.logs.slice()}}},5966:function(t,n,e){var i=e(3428),r=e(7895);t.exports={initialize:function(){this.W={data:null,hasTracked:null},this.on(i.LOAD_REDIRECT_DATA,this.Yt),this.on(i.REGISTER_TRACKED_REDIRECT_DATA,this.Kt)},get:function(){return r.safeReference(this.W.data)},hasTracked:function(){return this.W.hasTracked},Yt:function(t){r.deepFreeze(t),this.W.data=t,this.W.hasTracked=!1,this.emitChange()},Kt:function(){this.W.hasTracked=!0}}},646:function(t,n,e){var i=e(2001),r=e(3428),o=e(588);t.exports={initialize:function(){this.W={},this.on(r.SET_PENDING_EVENT,this.$t),this.on(r.REMOVE_PENDING_EVENT,this.Wt),this.on(r.LOAD_PENDING_EVENTS,this.Xt)},getEvents:function(){return this.W},getEventsString:function(){return o.stringify(this.W)},$t:function(t){i.keys(this.W).length>=1e3&&this.Jt();var n=t.id,e=t.retryCount;this.W[n]&&this.W[n].retryCount===e||(this.W[n]={id:n,timeStamp:t.timeStamp,data:t.data,retryCount:e},this.emitChange())},Wt:function(t){delete this.W[t.id],this.emitChange()},Xt:function(t){this.W=t.events,this.Jt(),this.emitChange()},Jt:function(){for(var t=i.sortBy(this.W,”timeStamp”),n=0;n<=t.length-1e3;n++)delete this.W[t[n].id];this.emitChange()}}},3111:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={layerId:null},this.on(r.ANNOUNCE_PENDING_REDIRECT,this.Yt)},isExpectingRedirect:function(){return i.isString(this.W.layerId)},getLayerId:function(){return this.W.layerId},Yt:function(t){this.isExpectingRedirect()||(this.W.layerId=t.layerId,this.emitChange())}}},9433:function(t,n,e){var i=e(2001),r=e(3428),o=e(3876);t.exports={initialize:function(){this.W={},this.W[o.PerformanceData.performance_marks]={},this.on(r.SET_PERFORMANCE_MARKS_DATA,this.Qt)},Qt:function(t){i.isUndefined(this.W[o.PerformanceData.performance_marks][t.name])&&(this.W[o.PerformanceData.performance_marks][t.name]=[]),this.W[o.PerformanceData.performance_marks][t.name].push(t.data),this.emitChange()},getMarks:function(){return i.mapValues(this.W[o.PerformanceData.performance_marks],(function(t){return i.map(t,(function(t){return[t.startTime,t.duration]}))}))},getDurationsFor:function(t){return i.reduce(t,i.bind((function(t,n){var e=this.W[o.PerformanceData.performance_marks][n];return e&&(t[n]=Math.round(i.reduce(e,(function(t,n){return t+n.duration}),0))),t}),this),{})}}},4679:function(t,n,e){var i=e(2001),r=e(3428),o=e(3876),a=e(528);t.exports={initialize:function(){this.W=i.mapValues(o.PluginTypes,(function(){return{}})),this.on(r.REGISTER_PLUGIN,this.Zt)},Zt:function(t){var n=t.type,e=t.name,i=t.plugin;if(!n||!e)throw new Error("Missing information needed to register plugins: "+n+":"+e);if(!this.W[n])throw new Error("Invalid plugin type specified: "+n);this.W[n][e]=i,a.debug("Plugin Store: Registering Plugin :",t)},getAllPlugins:function(t){if(!t)return this.W;if(this.W[t])return this.W[t];throw new Error("Invalid plugin type: "+t)},getPlugin:function(t,n){if(!n||!t)throw new Error("Missing plugin parameters");return this.getAllPlugins(t)[n]||null}}},5359:function(t,n,e){var i=e(2001),r=e(3428),o=e(5487);t.exports={initialize:function(){this.W={},this.on(r.SET_VISITOR_ATTRIBUTE_PENDING,this.tn)},getPendingAttributeValue:function(t){return t=i.isArray(t)?t.concat("pending"):[t,"pending"],o.getFieldValue(this.W,t)},tn:function(t){o.setFieldValue(this.W,t.key,{pending:t.pending}),this.emitChange()}}},4083:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={inRumSample:!1,id:null,src:null,RumHost:null,data:{extras:{}},apis:{},DOMObservation:{},featuresNeeded:{}},this.on(r.SET_RUM_DATA,this.nn),this.on(r.RECORD_API_USAGE,this.en),this.on(r.INITIALIZE_CHANGE_METRICS,this.rn),this.on(r.RECORD_ACTIVATION_TYPE_USAGE,this.an),this.on(r.RECORD_AUDIENCE_USAGE,this.un),this.on(r.RECORD_CHANGE_MACROTASK_RATE,this.cn),this.on(r.RECORD_CHANGE_OVERHEATED,this.sn),this.on(r.RECORD_CHANGE_TYPE_USAGE,this.fn),this.on(r.RECORD_DOM_OBSERVATION_OCCURENCE,this.ln),this.on(r.RECORD_INTEGRATION_USAGE,this.dn),this.on(r.RECORD_LAYER_FEATURE_USAGE,this.vn),this.on(r.RECORD_LAYER_POLICY_USAGE,this.hn),this.on(r.RECORD_VIEW_FEATURE_USAGE,this.pn),this.on(r.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,this.gn),this.on(r.RECORD_VISITOR_ID_LOCATOR_USAGE,this.mn),this.on(r.RECORD_VISITOR_ID_ERROR,this._n),this.on(r.RECORD_STICKY_BUCKETING_FEATURE,this.yn)},nn:function(t){i.merge(this.W,t),this.emitChange()},en:function(t){this.W.apis[t.methodName]||(this.W.apis[t.methodName]=0),this.W.apis[t.methodName]++,this.emitChange()},rn:function(){i.isUndefined(this.W.data.extras.changeMacrotaskRate)&&(this.W.data.extras.changeMacrotaskRate=0),i.isUndefined(this.W.data.extras.numOverheatedChanges)&&(this.W.data.extras.numOverheatedChanges=0)},cn:function(t){i.isUndefined(this.W.data.extras.changeMacrotaskRate)&&(this.W.data.extras.changeMacrotaskRate=0),t.changeMacrotaskRate>this.W.data.extras.changeMacrotaskRate&&(this.W.data.extras.changeMacrotaskRate=t.changeMacrotaskRate),this.emitChange()},sn:function(){i.isUndefined(this.W.data.extras.numOverheatedChanges)&&(this.W.data.extras.numOverheatedChanges=0),this.W.data.extras.numOverheatedChanges++,this.emitChange()},ln:function(t){this.W.DOMObservation[t.counterName]||(this.W.DOMObservation[t.counterName]=0),this.W.DOMObservation[t.counterName]++,this.emitChange()},wn:function(t,n,e){i.isUndefined(this.W.featuresNeeded[t])&&(this.W.featuresNeeded[t]={});var r=this.W.featuresNeeded[t];i.each(n,(function(t){r[t]||(r[t]={}),r[t][e]||(r[t][e]=!0)}))},dn:function(t){this.wn(“integrations”,t.integrations,t.layerId)},fn:function(t){this.wn(“changeTypes”,t.changeTypes,t.layerId)},an:function(t){this.wn(“activationTypes”,[t.activationType],t.entityId),this.emitChange()},pn:function(t){this.wn(“viewFeatures”,t.featuresUsed,t.entityId),this.emitChange()},vn:function(t){this.wn(“layerFeatures”,[t.feature],t.entityId),this.emitChange()},hn:function(t){this.wn(“policy”,[t.policy],t.layerId),this.emitChange()},un:function(t){this.wn(“audiences”,t.audienceTypes,t.layerId),this.emitChange()},gn:function(t){this.W.data.extras.viewsInitiallyActivatedCount=t.viewsInitiallyActivatedCount,this.emitChange()},mn:function(t){this.wn(“visitorIdLocatorType”,[t.visitorIdLocatorType],t.entityId),this.emitChange()},_n:function(t){this.W.data.extras.errorCustomVisitorId=t.isError,this.emitChange()},yn:function(t){this.wn(“stickyBucketing”,[t.feature],t.id)},getSampleRum:function(){return this.W.inRumSample},getRumId:function(){return this.W.id},getRumHost:function(){return this.W.RumHost},getApiData:function(){return this.W.apis},getDOMObservationData:function(){return this.W.DOMObservation},getRumData:function(){return i.cloneDeep(this.W.data)},getScriptSrc:function(){return this.W.src},getFeaturesNeededData:function(){var t=this.W.featuresNeeded,n={};return i.forOwn(t,(function(t,e){var r=i.keys(t);i.isEmpty(r)||(n[e]={}),i.forEach(r,(function(r){n[e][r]=i.keys(t[r]).length}))})),n}}},6864:function(t,n,e){var i=e(3428);t.exports={initialize:function(){this.W={initialized:!1,natives:{}},this.on(i.SANDBOXED_FUNCTIONS_ADDED,this.bn)},bn:function(t){if(!t.sandboxedFunctions)throw new Error(“No sandboxedFunctions found in payload”);this.W.natives=t.sandboxedFunctions,this.W.initialized=!0,this.emitChange()},getAll:function(){return this.W.natives},get:function(t){if(!t)throw new Error(“Missing name parameter”);return this.W.natives[t]||null},isInitialized:function(){return this.W.initialized}}},6075:function(t,n,e){var i=e(2001),r=e(3428),o=e(1038),a=e(998);t.exports={initialize:function(){this.W={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.En),this.on(r.LOAD_SESSION_STATE,this.In)},getState:function(){return i.cloneDeep(this.W)},getSessionId:function(){return this.W.sessionId},In:function(t){this.W.sessionId=t.sessionId,this.W.lastSessionTimestamp=t.lastSessionTimestamp,this.emitChange()},En:function(){var t=o.now(),n=this.W.lastSessionTimestamp;(!this.W.sessionId||t-n>18e5)&&(this.W.sessionId=a.generate()),this.W.lastSessionTimestamp=t,this.emitChange()}}},5514:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.An(),this.on(r.FINALIZE_BATCH_SNAPSHOT,this.Tn),this.on(r.REGISTER_PREVIOUS_BATCH,this.Sn),this.on(r.REGISTER_TRACKER_VISITOR,this.kn),this.on(r.REGISTER_TRACKER_EVENT,this.Rn),this.on(r.REGISTER_TRACKER_DECISION,this.Cn),this.on(r.RESET_TRACKER_EVENTS,this.Nn),this.on(r.RESET_TRACKER_STORE,this.An),this.on(r.RESET_TRACKER_PREVIOUS_BATCHES,this.Dn),this.on(r.SET_TRACKER_POLLING,this.On),this.on(r.SET_TRACKER_BATCHING,this.xn),this.on(r.SET_TRACKER_USE_BEACON,this.Mn),this.on(r.SET_TRACKER_SEND_EVENTS,this.Pn),this.on(r.SET_TRACKER_PERSISTABLE_STATE,this.Ln),this.on(r.SET_TRACKER_DIRTY,this.Un),this.on(r.UPDATE_TRACKER_VISITOR_ATTRIBUTES,this.Vn)},getPersistableState:function(){return this.W.isDirty?this.hasEventsToSend()||this.hasPreviousBatchesToSend()?{data:this.W.data,decisions:this.W.decisions,decisionEvents:this.W.decisionEvents,previousBatches:this.W.previousBatches}:{}:null},Ln:function(t){i.isEmpty(this.W.data)||i.isEmpty(t.data)||(this.Tn(),this.W.previousBatches.push(this.getEventBatch())),this.W.data=t.data||{},this.W.decisions=t.decisions||[],this.W.decisionEvents=t.decisionEvents||[],i.isEmpty(this.W.previousBatches)||i.isEmpty(t.previousBatches)?this.W.previousBatches=t.previousBatches||[]:this.W.previousBatches=this.W.previousBatches.concat(t.previousBatches),this.emitChange()},Un:function(t){this.W.isDirty=t,this.emitChange()},Rn:function(t){var n=this.Fn();(i.isEmpty(n.snapshots)||!i.isEmpty(this.W.decisionEvents))&&this.Bn(),this.zn().events.push(t.event),this.W.decisions=t.decisions,this.Un(!0)},Cn:function(t){this.W.decisionEvents.push(t.decisionEvent),this.W.decisions=t.decisions,this.Un(!0)},kn:function(t){i.isEmpty(this.W.data)?this.W.data=t.data:this.Tn(),this.W.data.visitors.push(t.visitor),this.W.decisions=t.decisions,this.W.decisionEvents=[],this.Un(!0)},Sn:function(t){this.W.previousBatches.push(t),this.Un(!0)},An:function(){this.W={polling:!1,shouldBatch:!0,data:{},decisions:[],decisionEvents:[],canSend:!1,isDirty:!1,previousBatches:[]},this.emitChange()},Nn:function(){var t=this.Fn();this.W.data.visitors=[t],t.snapshots=[],this.Un(!0)},Dn:function(){this.W.previousBatches=[],this.Un(!0)},On:function(t){this.W.polling=t,this.emitChange()},xn:function(t){this.W.shouldBatch=t,this.emitChange()},Mn:function(t){this.W.shouldUseBeacon=t,this.emitChange()},Pn:function(t){this.W.canSend=t,this.emitChange()},getEventBatch:function(){return i.cloneDeep(this.W.data)},getPreviousBatches:function(){return i.cloneDeep(this.W.previousBatches)},Gn:function(){return this.W.decisionEvents.slice()},jn:function(){this.W.decisionEvents=[]},qn:function(){return this.W.decisions.slice()},isPolling:function(){return this.W.polling},shouldBatch:function(){return this.W.shouldBatch},shouldUseBeacon:function(){return this.W.shouldUseBeacon},zn:function(){return i.last(this.Fn().snapshots)},Fn:function(){return i.last(this.W.data.visitors)},Bn:function(){var t=this.Gn();this.Fn().snapshots.push({decisions:this.qn(),events:t}),this.jn(),this.Un(!0)},Tn:function(){this.W.decisionEvents.length>0&&this.Bn()},hasEventsToSend:function(){if(!i.isEmpty(this.W.decisionEvents))return!0;if(!i.isEmpty(this.W.data)&&i.some(this.W.data.visitors||[],(function(t){return t.snapshots.length>0})))return!0;return!1},hasPreviousBatchesToSend:function(){return!i.isEmpty(this.W.previousBatches)},canSend:function(){return this.W.canSend},Vn:function(t){var n=this.Fn();n&&(n.attributes=t.attributes)}}},2132:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={},this.on(r.SET_UA_DATA,this.vt)},vt:function(t){i.isEmpty(this.W)&&(this.W=t.data)},get:function(){return i.cloneDeep(this.W)}}},4150:function(t,n,e){var i=e(2001),r=e(3428),o=e(528),a={globalTags:{},viewStates:{},shouldBatch:!1};t.exports={initialize:function(){this.W=i.cloneDeep(a),this.on(r.REGISTER_VIEWS,this.Hn),this.on(r.SET_VIEW_ACTIVE_STATE,this.Yn),this.on(r.UPDATE_PARSED_VIEW_METADATA,this.Kn),this.on(r.UPDATE_USER_SUPPLIED_METADATA,this.$n),this.on(r.TRACK_VIEW_ACTIVATED_EVENT,this.Wn),this.on(r.SET_GLOBAL_TAGS,this.Xn),this.on(r.RESET_VIEW_STATES,this.Jn),this.on(r.SET_VIEW_BATCHING,this.xn)},getAll:function(){var t={};for(var n in this.W.viewStates)t[n]=this.getViewState(n);return t},getActiveViewIds:function(){return i.reduce(this.W.viewStates,i.bind((function(t,n,e){return this.isViewActive(e)&&t.push(e),t}),this),[])},shouldBatch:function(){return this.W.shouldBatch},getViewState:function(t){var n=i.cloneDeep(this.W.viewStates[t]),e=this.W.globalTags;return n.metadata=i.extend({},n.parsedMetadata,e,n.userSuppliedMetadata),n},getActiveViewTags:function(){var t=this.getActiveViewStates(),n=i.map(t,(function(t){return t.metadata})),e=[{}].concat(n);return i.extend.apply(i,e)},getActivationEventId:function(t){return this.W.viewStates[t]?this.W.viewStates[t].activationEventId:null},getActiveViewStates:function(){return i.reduce(this.W.viewStates,i.bind((function(t,n,e){return this.isViewActive(e)&&t.push(this.getViewState(e)),t}),this),[])},isViewActive:function(t){var n=this.W.viewStates[t];return n||o.warn(“No Page registered with id”,t),!!n.isActive},getGlobalTags:function(){return i.cloneDeep(this.W.globalTags)},Jn:function(){this.W.viewStates={},this.emitChange()},Hn:function(t){var n=t.forceClean||!1;i.each(t.views,i.bind((function(t){var e=t.id;this.W.viewStates[e]={id:e,isActive:i.isBoolean(t.isActive)&&!n?t.isActive:null,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}}}),this)),this.emitChange()},Yn:function(t){var n=t.view.id;if(!this.W.viewStates[n])throw new Error(“No view exists with id “+n);this.W.viewStates[n].isActive=t.isActive,t.isActive?this.W.viewStates[n].activatedTimestamp=t.timestamp:(this.W.viewStates[n].parsedMetadata={},this.W.viewStates[n].userSuppliedMetadata={}),this.emitChange()},Kn:function(t){var n=t.pageId;if(!this.W.viewStates[n])throw new Error(“No view exists with id “+n);i.assign(this.W.viewStates[n].parsedMetadata,t.metadata),this.emitChange()},$n:function(t){var n=t.pageId;if(!this.W.viewStates[n])throw new Error(“No view exists with id “+n);i.assign(this.W.viewStates[n].userSuppliedMetadata,t.metadata),this.emitChange()},Wn:function(t){var n=t.pageId;this.W.viewStates[n]&&(this.W.viewStates[n].activationEventId=t.eventData.eventId,this.emitChange())},Xn:function(t){i.extend(this.W.globalTags,t),this.emitChange()},xn:function(t){this.W.shouldBatch=t,this.emitChange()}}},4713:function(t,n,e){var i=e(2001),r=e(3428),o=e(7895);t.exports={initialize:function(){this.W={views:{},apiNamesToViews:{}},this.on(r.DATA_LOADED,this.vt)},getAll:function(){return o.safeReference(i.values(this.W.views))},getPagesMap:function(){return o.safeReference(this.W.views)},get:function(t){return o.safeReference(this.W.views[t])},getByApiName:function(t){return o.safeReference(this.W.apiNamesToViews[t])},apiNameToId:function(t){var n=this.W.apiNamesToViews[t];if(n)return n.id},idToApiName:function(t){var n=this.W.views[t];if(n)return n.apiName},getNumberOfPages:function(){return i.keys(this.W.views).length},getAllViewsForActivationType:function(t){return i.filter(this.W.views,{activationType:t})},vt:function(t){i.isEmpty(t.data.views)||(i.each(t.data.views,i.bind((function(t){o.deepFreeze(t),this.W.views[t.id]=t,this.W.apiNamesToViews[t.apiName]=t}),this)),this.emitChange())}}},6701:function(t,n,e){var i=e(2001),r=e(3428),o=e(5487);t.exports={initialize:function(){this.W={profile:{},metadata:{},visitorId:null},this.on(r.SET_VISITOR_ID_VIA_API,this.Qn),this.on(r.SET_VISITOR_ATTRIBUTES,this.Zn),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.te)},getVisitorProfile:function(){return this.W.profile},getVisitorProfileMetadata:function(){return this.W.metadata},getAttribute:function(t){var n=this.W.profile;return i.cloneDeep(o.getFieldValue(n,t))},getAttributeMetadata:function(t){return i.cloneDeep(this.W.metadata[t])},getVisitorIdFromAPI:function(){return this.W.visitorId},te:function(t){this.W.profile=t.profile,this.W.metadata=t.metadata,this.emitChange()},Zn:function(t){i.each(t.attributes,i.bind((function(t){var n=t.key;o.setFieldValue(this.W.profile,n,t.value),t.metadata&&i.forOwn(t.metadata,i.bind((function(t,e){o.setFieldValue(this.W.metadata,n.concat(e),t)}),this))}),this)),this.emitChange()},Qn:function(t){this.W.visitorId=t,this.emitChange()}}},9638:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={},this.on(r.DATA_LOADED,this.ne)},getCustomBehavioralAttributes:function(){return i.filter(this.W,(function(t){return!!t.rule_json}))},getVisitorAttribute:function(t){var n=i.values(this.W);if(t.datasourceId&&(n=i.filter(n,{dcp_datasource_id:String(t.datasourceId)})),t.attributeName&&t.attributeId)throw new Error(“Must not specify both attribute name and attribute ID”);if(t.attributeId){var e=this.W[t.attributeId];if(!e)throw new Error(“Unrecognized attribute ID: “+t.attributeId);return e}if(t.attributeName){var r=i.filter(n,{name:t.attributeName});if(!r.length)throw new Error(“Unrecognized attribute name: “+t.attributeName);if(r.length>1)throw new Error(“Too many attributes with name: “+t.attributeName);return r[0]}throw new Error(“Must specify attribute name or attribute ID”)},ne:function(t){i.isEmpty(t.data.visitorAttributes)||(i.each(t.data.visitorAttributes,i.bind((function(t){this.W[t.id]=t}),this)),this.emitChange())}}},8236:function(t,n,e){Object.defineProperty(n,”ee”,{value:!0});var i=e(2001),r=e(3428),o=e(588);t.exports={initialize:function(){this.W={variationIdMap:{},preferredLayerMap:{},contextualMabMap:{},odpSegments:{}},this.on(r.UPDATE_VARIATION_ID_MAP,this.re),this.on(r.MERGE_VARIATION_ID_MAP,this.oe),this.on(r.UPDATE_PREFERRED_LAYER_MAP,this.ae),this.on(r.MERGE_PREFERRED_LAYER_MAP,this.ue),this.on(r.UPDATE_CONTEXTUAL_MAB_MAP,this.ce),this.on(r.MERGE_CONTEXTUAL_MAB_MAP,this.se),this.on(r.SET_ODP_SEGMENTS,this.fe)},fe:function(t){this.W.odpSegments=t,this.emitChange()},getOdpSegments:function(){return this.W.odpSegments},getContextualMabMap:function(){return i.cloneDeep(this.W.contextualMabMap)},getContextualMabMapString:function(){return o.stringify(this.W.contextualMabMap)},ce:function(t){var n=this.W.contextualMabMap[t.layerId]||{};i.isEqual(n[t.experimentId],t.variationData)||(n[t.experimentId]=t.variationData,this.W.contextualMabMap[t.layerId]=n,this.emitChange())},se:function(t){var n=this.W.contextualMabMap;i.forEach(t.contextualMabMap,(function(t,e){n[e]||(n[e]={}),i.forEach(t,(function(t,i){n[e][i]||(n[e][i]=t)}))})),this.W.contextualMabMap=n,this.emitChange()},getVariationIdMap:function(){return i.cloneDeep(this.W.variationIdMap)},getVariationIdMapString:function(){return o.stringify(this.W.variationIdMap)},re:function(t){var n=this.W.variationIdMap[t.layerId]||{};n[t.experimentId]!==t.variationId&&(n[t.experimentId]=t.variationId,this.W.variationIdMap[t.layerId]=n,this.emitChange())},oe:function(t){var n=this.getVariationIdMap(),e=t.variationIdMap;i.each(n||{},(function(t,n){e[n]?i.assign(e[n],t):e[n]=t})),this.W.variationIdMap=e,this.emitChange()},getPreferredLayerMap:function(){return i.cloneDeep(this.W.preferredLayerMap)},getPreferredLayerMapString:function(){return o.stringify(this.W.preferredLayerMap)},getPreferredLayerId:function(t){return this.W.preferredLayerMap[t]},ae:function(t){this.W.preferredLayerMap[t.groupId]!==t.layerId&&(this.W.preferredLayerMap[t.groupId]=t.layerId,this.emitChange())},ue:function(t){var n=this.getPreferredLayerMap(),e=t.preferredLayerMap;i.assign(e,n),this.W.preferredLayerMap=e,this.emitChange()}}},9665:function(t,n,e){e(2001);var i=e(3428);e(8395).J;t.exports={initialize:function(){this.W={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(i.SET_VISITOR_EVENTS,this.vt),this.on(i.SET_FOREIGN_VISITOR_EVENTS,this.le),this.on(i.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.de)},getEvents:function(){return this.W.events},getForeignEvents:function(){return this.W.foreignEvents},getForeignEventQueues:function(){return this.W.foreignEventQueues},vt:function(t){this.W.events=t,this.emitChange()},le:function(t){this.W.foreignEvents[t.key]=t.value},de:function(t){this.W.foreignEventQueues[t.key]=t.value}}},4789:function(t,n,e){var i=e(3428);t.exports={initialize:function(){this.W={baseMap:{},eventQueue:[],lastEvent:null,initialized:!1,cleared:!1},this.on(i.UPDATE_BEHAVIOR_STORE,this.ve)},getBaseMap:function(){return this.W.baseMap},getEventQueue:function(){return this.W.eventQueue},getLastEvent:function(){return this.W.lastEvent},getCleared:function(){return this.W.cleared},getInitialized:function(){return this.W.initialized},ve:function(t){this.W[t.key]=t.value}}},717:function(t,n,e){var i=e(2001),r=e(3428);t.exports={initialize:function(){this.W={randomId:null,visitorIdLocator:null},this.on(r.SET_VISITOR_ID,this.vt),this.on(r.DATA_LOADED,this.he)},getBucketingId:function(){return this.getRandomId()},getRandomId:function(){return this.W.randomId},getVisitorIdLocator:function(){return this.W.visitorIdLocator},vt:function(t){i.extend(this.W,t),this.emitChange()},he:function(t){i.isEmpty(t.data.visitorIdLocator)||(this.W.visitorIdLocator=t.data.visitorIdLocator,this.emitChange())}}},1727:function(t,n,e){var i=e(2001),r=e(528),o=e(3428);t.exports={initialize:function(){this.W={frames:[],defaultFrame:null,messages:[],subscribers:[],canonicalOrigins:null,disabled:!1},this.on(o.XDOMAIN_SET_DEFAULT_FRAME,this.pe),this.on(o.XDOMAIN_ADD_FRAME,this.ge),this.on(o.XDOMAIN_SET_MESSAGE,this.me),this.on(o.XDOMAIN_ADD_SUBSCRIBER,this._e),this.on(o.XDOMAIN_SET_CANONICAL_ORIGINS,this.ye),this.on(o.XDOMAIN_SET_DISABLED,this.we)},getMessages:function(){return i.cloneDeep(this.W.messages)},getOffset:function(){return 0===this.W.messages.length?0:this.W.messages[0].data.id},getNextMessageId:function(){return this.W.messages.length+this.getOffset()},getMessageById:function(t){return this.W.messages[t-this.getOffset()]},getSubscribers:function(){return this.W.subscribers},getFrames:function(){return this.W.frames},getNextFrameId:function(){return this.W.frames.length},getDefaultFrame:function(){return this.W.defaultFrame},getCanonicalOrigins:function(){return i.cloneDeep(this.W.canonicalOrigins)},isDisabled:function(){return this.W.disabled},pe:function(t){this.W.defaultFrame=t},ge:function(t){this.W.frames.push(t)},me:function(t){for(this.W.messages[t.messageId-this.getOffset()]=t.message;this.W.messages.length>1e3;){var n=this.W.messages.shift();r.debug(“XDomainStorage: Cleared old message: “+n.data.id)}},_e:function(t){this.W.subscribers.push(t.subscriber)},ye:function(t){this.W.canonicalOrigins=t.canonicalOrigins},we:function(t){this.W.disabled=t.disabled}}},6290:function(t,n){n.locatorType={CSS_SELECTOR:”css_selector”,JAVASCRIPT:”javascript”,URL_REGEX:”url_regex”},n.valueType={STRING:”string”,NUMBER:”number”,CURRENCY:”currency”},n.nodeNames={INPUT:”INPUT”,SELECT:”SELECT”}},7170:function(t,n,e){var i=e(5334).v;n.Error=i(“TagError”)},7712:function(t,n,e){var i=e(3876).PluginTypes,r=e(1037).get(“stores/plugins”);n.getTagValue=function(t){var e=r.getPlugin(i.viewTagLocators,t.locatorType);if(!e)throw new n.Error(“No locator registered for tag locatorType: “+t.locatorType);return e(t)},n.enums=e(6290),n.Error=e(7170).Error},1916:function(t,n,e){var i=e(3428),r=e(3933),o=e(7877).Promise,a=e(1037).get(“stores/async_request”);n.makeAsyncRequest=function(t,n){var e,u,c=a.getPromise(t);if(c)return c;var s=new o((function(t,n){e=t,u=n}));return r.dispatch(i.REGISTER_ASYNC_DEFERRED,{source:t,promise:s,resolver:e,rejecter:u}),n&&n(),s},n.resolveRequest=function(t,n){r.dispatch(i.RESOLVE_DEFERRED,{source:t,resolveWith:n})},n.rejectRequest=function(t,n){r.dispatch(i.REJECT_DEFERRED,{source:t,rejectWith:n})}},7346:function(t,n,e){var i=e(6046),r=e(3250);n.getLanguage=function(){return r.getNavigatorLanguage()},n.getQueryParams=i.getQueryParams,n.getQueryParamValue=i.getQueryParamValue,n.getUrl=function(){return r.getHref()}},186:function(t,n,e){var i=e(2001),r=e(5334).v,o=e(1038),a=e(1327),u=e(3250),c=e(3428),s=e(1037),f=e(3933),l=s.get(“stores/cookie_options”),d=n.SetError=r(“CookieSetError”),v=n.MismatchError=r(“CookieMismatchError”),h=[“co”,”com”,”net”,”org”,”edu”,”gov”,”mil”,”int”,”ac”,”com”,”net”,”org”];n.getAll=function(t){var e,r,o,u,c;i.isUndefined(t)&&(t=!0),e=a.getCookieString().split(/\s*;\s*/);var s={};for(o=0;o0&&void 0===s[c=n.safeDecodeURIComponent(r.substring(0,u))]){var f=r.substring(u+1);t&&(f=n.safeDecodeURIComponent(f)),s[c]=f}return s},n.safeDecodeURIComponent=function(t){try{return decodeURIComponent(t)}catch(n){return t}},n.get=function(t,e){return n.getAll(e)[t]},n.set=function(t,e,r,s){r=i.extend({encodeValue:!0},r),!1!==s&&(s=!0);var m=[];if(i.isUndefined(r.domain)){var _=l.getCurrentDomain();_||(_=function(t,e){!1!==e&&(e=!0);for(var r,o,a=t.hostname.split(“.”),u=[],s=null,l=a.length-1;l>=0;l–)if(u.unshift(a[l]),r=u.join(“.”),!(a.length>1&&(1===u.length||2===u.length&&i.includes(h,u[0]))||i.includes(p,r))){o={domain:e?”.”+r:r};try{n.set(g,Math.random().toString(),o),n.remove(g,o),s=o.domain;break}catch(d){}}return f.dispatch(c.SET_COOKIE_DOMAIN,s),s}(u.getLocation(),!0)),r.domain=_}if(r.domain&&m.push(“domain=”+r.domain),i.isUndefined(r.path)&&(r.path=”/”),r.path&&m.push(“path=”+r.path),i.isUndefined(r.expires)){var y=i.isUndefined(r.maxAge)?l.getDefaultAgeInSeconds():r.maxAge;r.expires=new Date(o.now()+1e3*y)}if(i.isUndefined(r.expires)||m.push(“expires=”+r.expires.toUTCString()),r.secure&&m.push(“secure”),a.setCookie(t+”=”+(r.encodeValue?encodeURIComponent(e):e)+”;”+m.join(“;”)),s){var w=r.encodeValue,b=n.get(t,w);if(b!==e){if(!b)throw new d(‘Failed to set cookie “‘+t+'”‘);throw new v(‘Expected “‘+e+'” for “‘+t+'”, got “‘+b+'”‘)}}},n.remove=function(t,e){for(var r=u.getLocation().hostname.split(“.”),o=1===r.length?0:1;r.length>o&&(2!==r.length||!i.includes(h,r[0]));)n.set(t,null,i.extend({},e,{domain:”.”+r.join(“.”),expires:new Date(0)}),!1),r.shift()};var p=[“optimizely.test”],g=”optimizelyDomainTestCookie”},5334:function(t,n,e){var i=e(1094),r=i(“InternalError”);n.C=r,n.v=function(t){return i(t,r)}},1423:function(t,n,e){var i=e(2001),r=e(7877).Promise;t.exports=function(){var t,n,e=new r((function(e,i){t=e,n=i}));return e.resolve=function(){return t.apply(null,i.toArray(arguments)),e},e.reject=function(){return n.apply(null,i.toArray(arguments)),e},e}},7895:function(t,n,e){var i=e(2001);n.deepFreeze=function(t){},n.safeReference=function(t){return i.cloneDeep(t)}},5487:function(t,n,e){var i=e(2001);n.getFieldValue=function(t,n){i.isArray(n)||(n=[n]);for(var e=t,r=0;r=t},s.prototype.matchesLogMessage=function(t,n){var e=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return”GROUPSTART”===t?this.logGroup++:”GROUPEND”===t&&this.logGroup–,!0;var r=i.some(n,(function(t){if(!i.isString(t))try{t=c.stringify(t)}catch(n){}return i.isString(t)&&i.includes(t,e)}));return r&&”GROUPSTART”===t&&this.logGroup++,r},s.prototype.storeLog=function(t,n){var e={logLevel:t,logMessage:n};u.dispatch(r.LOG,e)},s.prototype.flush=function(){var t=e(1037).get(“stores/log”);this.logGroup=0;var n=t.getLogs();i.each(n,i.bind((function(t){this.Ie(t.logLevel,t.logMessage,!0)}),this))},s.prototype.Ie=function(t,n,e){var r,o=t;if(console)switch(t){case”GROUPSTART”:r=console.groupCollapsed,o=a.LogLevel.DEBUG;break;case”GROUPEND”:r=console.groupEnd,o=a.LogLevel.DEBUG;break;case a.LogLevel.ERROR:r=console.error;break;case a.LogLevel.WARN:r=console.warn;break;case a.LogLevel.DEBUG:r=console.debug;break;default:r=console.log}try{e||this.be()&&!this.shouldLog(o)||(i.isArray(n)&&i.isString(n[0])&&(n=this.Ae(n)),this.storeLog(t,n)),r&&this.shouldLog(o)&&this.matchesLogMessage(t,n)&&r.apply(console,n)}catch(u){console&&(console.error?console.error(u):console.log(u))}},s.prototype.debug=function(){this.Ie(a.LogLevel.DEBUG,[].slice.call(arguments))},s.prototype.log=function(){this.Ie(a.LogLevel.INFO,[].slice.call(arguments))},s.prototype.logAlways=function(){var t=this.Ae([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,t),this.storeLog(a.LogLevel.INFO,t)},s.prototype.warn=function(){this.Ie(a.LogLevel.WARN,[].slice.call(arguments))},s.prototype.error=function(t){var n=[].slice.call(arguments);1===n.length&&t.stack?(this.Ie(a.LogLevel.ERROR,[this.Te(),t]),this.Ie(a.LogLevel.INFO,[t.stack])):this.Ie(a.LogLevel.ERROR,n)},s.prototype.groupCollapsed=function(){this.Ie(“GROUPSTART”,[].slice.call(arguments))},s.prototype.groupEnd=function(){this.Ie(“GROUPEND”,[].slice.call(arguments))},s.prototype.Ae=function(t){var n=this.Te().toString();return n.length<6&&(n=(" "+n).slice(-6)),[n+"| Optly / "+t[0]].concat(t.slice(1))},s.prototype.Te=function(){return this.timebase?o.now()-this.timebase:0},s.prototype.Ee=function(t){return t&&("TRUE"===(t=t.toUpperCase())&&(t="INFO"),"FALSE"===t&&(t="OFF"),"ALL"===t&&(t="DEBUG"),!i.isUndefined(a.LogLevel[t]))?a.LogLevel[t]:null},t.exports=new s},303:function(t,n,e){var i;i=e(611),t.exports=i},8466:function(t,n){n.isSingleExperimentPolicy=function(t){return"single_experiment"===t||"multivariate"===t}},3597:function(t,n,e){var i=e(2001),r=e(7877).Promise,o=e(3250);n.pollFor=function(t,n,e){var a,u;return i.isFunction(e)?u=e:(a=e||100,u=function(){return--a<-1}),n=n||50,new r((function(e,i){!function r(){var a;if(!u()){try{var c=t();if(c)return e(c)}catch(s){a=s}return o.setTimeout(r,n)}i(a||new Error("Poll timed out"))}()}))}},2167:function(t,n,e){var i=e(2001),r=e(7877).Promise;n.firstToResolve=function(t){return new r((function(n){i.each(t,(function(t){r.resolve(t).then(n,(function(){}))}))}))}},6046:function(t,n,e){var i=e(2001),r=e(3250);n.getQueryParams=function(){var t=r.getLocationSearch()||"";if(0===t.indexOf("?")&&(t=t.substring(1)),0===t.length)return[];for(var n=t.split("&"),e=[],i=0;i0&&(o=u[0]),u.length>1&&(a=u[1]),e.push([o,a])}return e},n.getQueryParamValue=function(t){for(var e=n.getQueryParams(),i=0;i“),a.close();var l=i.mapValues(c.SandboxedFunctions,(function(t){return e[t]}));s.dispatch(r.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:l})}catch(d){f.warn(“Unable to create a sandbox: “,d)}}},2423:function(t,n,e){var i=e(1327),r=e(528),o=e(6008);n.addScriptAsync=function(t,n){var e=i.querySelector(“head”),o=i.createElement(“script”);o.type=”text/javascript”,o.async=!0,o.src=t,n&&(o.onload=n),e.insertBefore(o,e.firstChild),r.debug(“Asynchronously requesting “+t)},n.addScriptSync=function(t,e){try{var a=”optimizely_synchronous_script_”+Math.floor(1e5*Math.random());if(-1!==t.indexOf(‘”‘))return void r.error(“Blocked attempt to load unsafe script: “+t);i.write(“ “);var u=i.querySelector(“#”+a);if(!u)throw new Error(“DocumentEnv.write failed to append script”);u.onload=e,u.onerror=function(i){r.warn(“Failed to load script (“+t+”) synchronously:”,i),n.addScriptAsync(t,e)}}catch(c){r.debug(“DocumentEnv.write failed for “+t+”: “+c.message);return o.request({url:t,async:!1,contentType:”text/plain”,success:function(t){new Function(t.responseText)(),e&&e()}})[“catch”]((function(i){r.error(“Failed to load “+t+” via synchronous XHR: “+i.message),n.addScriptAsync(t,e)}))}}},3053:function(t,n,e){var i=e(7877).Promise,r=e(3250);n.makeTimeoutPromise=function(t){return new i((function(n,e){r.setTimeout((function(){e(new Error(“Timed out after “+t+” ms”))}),t)}))}},70:function(t,n,e){var i=e(2001),r=e(2209),o=e(3250),a=e(3428),u=e(1037),c=e(3933),s=u.get(“stores/ua_data”);n.get=function(){var t=s.get();return i.isEmpty(t)&&(t=r.parseUA(o.getUserAgent()),c.dispatch(a.SET_UA_DATA,{data:t})),t}},8555:function(t,n){n.guessDomain=function(t,n){if(!t)return””;try{return n?t.match(/:\/\/(.[^/]+)/)[1]:t.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(e){return””}}},9912:function(t,n,e){var i=e(2001),r=e(7877).Promise,o=e(3428),a=e(1037),u=e(3933),c=e(6149),s=e(5334).v,f=e(1038),l=e(1327),d=e(588),v=e(3597),h=e(3641),p=e(3250),g=e(3876).VisitorStorageKeys,m=e(528),_=a.get(“stores/xdomain”),y=n.Error=s(“XDomainStorageError”);function w(t){var n;if(i.find(_.getFrames(),{origin:t.origin})){try{n=d.parse(t.data)}catch(a){return void m.debug(“XDomain”,”Ignoring malformed message event:”,t)}if(“ERROR”===n.type)u.dispatch(o.XDOMAIN_SET_DISABLED,{disabled:!0}),c.emitInternalError(new y(“Xdomain Error: “+n.response));else if(“SYNC”===n.type)i.each(_.getSubscribers(),(function(t){t(n.response.key,n.response.value)}));else{var e=_.getMessageById(n.id);if(!e){if(m.warn(“XDomain”,”No stored message found for ID”,n.id),i.isNumber(n.id)){var r=_.getNextMessageId();n.id>=r?c.emitInternalError(new y(“Message ID is greater than expected maximum ID (“+n.id+”>”+r+”)”)):n.id<0?c.emitInternalError(new y("Message ID is < 0: "+n.id)):c.emitInternalError(new y("No stored message found for message ID: "+n.id))}else c.emitInternalError(new y("Message ID is not a number: "+n.id));return}if(!e.resolver)return void m.warn("XDomain","Message already resolved, ignoring:",n.id);e.resolver(n.response),u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:n.id,message:{data:{id:n.id,type:e.data.type,key:e.data.key},startTime:e.startTime,endTime:f.now()}})}}else m.debug("XDomain","No frame found for origin: "+t.origin)}function b(t){return!(["GET","PUT"].includes(t.type)&&!t.key.includes(g.SESSION_STATE))}function E(t,n){return n||(n=_.getDefaultFrame()),new r((function(e){var r={data:i.extend({},t,{id:_.getNextMessageId(),use_cookie:b(t)}),resolver:e};n?_.isDisabled()||I(r,n):u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:r.data.id,message:r})}))}function I(t,n){var e=t.data;u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:t.data.id,message:i.extend({},t,{startTime:f.now()})}),n.target.postMessage(d.stringify(e),n.origin)}n.setItem=function(t,n,e){return E({type:"PUT",key:t,value:n},e)},n.getItem=function(t,n){return E({type:"GET",key:t},n)},n.fetchAll=function(t){return E({type:"GETALL"},t)},n.deleteData=function(t,n){return E({type:"DELETE",visitorId:t},n)},n.subscribe=function(t){u.dispatch(o.XDOMAIN_ADD_SUBSCRIBER,{subscriber:t})},n.loadIframe=function(t,n){return new r((function(e){var i=l.createElement("iframe");i.src=t+n,i.hidden=!0,i.setAttribute("tabindex","-1"),i.setAttribute("title","Optimizely Internal Frame"),i.style.display="none",i.height=0,i.width=0,i.onload=function(){var r={id:_.getNextFrameId(),target:i.contentWindow,origin:t,path:n};u.dispatch(o.XDOMAIN_ADD_FRAME,r),e(r)},l.appendTo(l.querySelector("body"),i)}))},n.getXDomainUserId=function(t,n){var e,r={},o=i.keys(t);return i.each(n,(function(t){r[t]=[],i.each(o,(function(n){var o=h.getUserIdFromKey(n,t);!e&&o&&(e=o),o&&!i.includes(r[t],o)&&r[t].push(o)}))})),m.debug("XDomain: Found userIds:",r),e},n.load=function(t,e){p.addEventListener("message",w);return v.pollFor((function(){return!!l.querySelector("body")})).then((function(){return n.loadIframe(t,e)})).then((function(t){u.dispatch(o.XDOMAIN_SET_DEFAULT_FRAME,t),_.isDisabled()||i.each(_.getMessages(),(function(n){n.startTime||I(n,t)}))}))}},6008:function(t,n,e){var i=e(2001),r=e(3428),o=e(1038),a=e(3933),u=e(588),c=e(528),s=e(7877).Promise,f=e(2170);n.isCORSSupported=function(){return"withCredentials"in new(f.get("XMLHttpRequest"))},n.request=function(t){return t=i.extend({method:"GET",async:!0,contentType:"text/plain;charset=UTF-8"},t),new s((function(e,r){if(!n.isCORSSupported())return r("CORS is not supported");var o=new(f.get("XMLHttpRequest"));o.onload=function(){t.success&&t.success(o),e(o)},o.onerror=function(){t.error&&t.error(o),r(o)},i.isObject(t.data)&&(t.data=u.stringify(t.data)),o.open(t.method,t.url,t.async),t.withCredentials&&(o.withCredentials=t.withCredentials),o.setRequestHeader("Content-Type",t.contentType),i.isObject(t.headers)&&i.forEach(t.headers,(function(t,n){o.setRequestHeader(n,t)})),o.send(t.data)}))},n.retryableRequest=function(t,e,u,f){if(!e)return s.reject(new Error("No id specified for request."));if(!n.isCORSSupported())return s.reject(new Error("CORS is not supported."));i.isUndefined(f)&&(f=3),i.isUndefined(u)&&(u=0);var l={id:e,timeStamp:o.now(),data:t,retryCount:u};return a.dispatch(r.SET_PENDING_EVENT,l),c.debug("Sending event ",e),n.request(t).then((function(t){return a.dispatch(r.REMOVE_PENDING_EVENT,{id:e}),t}),(function(t){throw l.retryCount>=f?(a.dispatch(r.REMOVE_PENDING_EVENT,{id:e}),c.warn(“Event “,l,” could not be sent after “,f,” attempts.”)):(l.retryCount++,a.dispatch(r.SET_PENDING_EVENT,l),c.debug(“Event “,l,” failed to send, with error “,t,” It will be retried “,f-u,” times.”)),t}))},n.sendBeacon=function(t,e){if(!t.url||!t.data)return s.reject(new Error(“Must provide required options”));if(navigator&&navigator.sendBeacon)try{var r=i.isObject(t.data)?u.stringify(t.data):t.data;if(navigator.sendBeacon(t.url,r))return s.resolve();throw new Error(“Unable to sendBeacon”)}catch(o){c.warn(“sendBeacon failed: “,o)}return t=i.extend({method:”POST”},t),n.request(t,e)}},2208:function(t,n,e){var i=e(2001),r=e(3428),o=e(1078),a=e(4433),u=e(1038),c=e(1037),s=e(3876),f=e(8652),l=e(3933),d=e(528),v=e(7712),h=c.get(“stores/event_data”),p=c.get(“stores/plugins”),g=c.get(“stores/rum”),m=c.get(“stores/view”),_=c.get(“stores/view_data”);n.parseViewTags=function(t){var e=n.evaluateViewTags(t);n.setParsedViewTags(t.id,e)},n.updateAllViewTags=function(){var t=m.getActiveViewStates();i.each(t,(function(t){var e=_.get(t.id);n.parseViewTags(e)}))},n.evaluateViewTags=function(t){return t.tags?i.reduce(t.tags,(function(t,n){try{t[n.apiName]=v.getTagValue(n)}catch(r){e=r,(null!=(i=v.Error)&&”undefined”!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](e):e instanceof i)?d.warn(“Page / Ignoring unparseable tag”,n,r):d.error(r)}var e,i;return t}),{}):{}},n.createViewTicket=function(){var t={};return i.each(p.getAllPlugins(s.PluginTypes.viewProviders),(function(n){t[n.provides]=c.evaluate(n.getter)})),t},n.registerViews=function(t,n){l.dispatch(r.REGISTER_VIEWS,{views:t,forceClean:n})},n.activateViaAPI=function(t,e){e&&n.setUserSuppliedViewTags(t.id,e),n.activateMultiple([t],e)},n.getViewsAndActivate=function(t){var e=_.getAllViewsForActivationType(t);n.activateMultiple(e)},n.activateMultiple=function(t,e){var a=[];return i.each(t,(function(t){var u=m.getViewState(t.id),c=n.createViewTicket();if(u.isActive)if(t.deactivationEnabled)try{n.hasValidStaticConditions(t,c)||n.deactivate(t)}catch(p){d.error(“Page / Error evaluating whether to deactivate page “,n.description(t),p)}else d.log(“Not activating Page, already active “,n.description(t));else{try{if(!n.hasValidStaticConditions(t,c))return i.isBoolean(u.isActive)||n.setViewActiveState(t,!1),void d.log(“Page / Failed to match page conditions for “+n.description(t),t.staticConditions)}catch(p){return i.isBoolean(u.isActive)||n.setViewActiveState(t,!1),void d.error(“Page / Error evaluating whether to activate page “,n.description(t),p)}if(a.push(t),n.setViewActiveState(t,!0),d.log(“Activated Page”,n.description(t)),o.emitViewActivated({view:t,metadata:e}),g.getSampleRum()){var f=t.activationType||s.ViewActivationTypes.immediate;l.dispatch(r.RECORD_ACTIVATION_TYPE_USAGE,{activationType:f,entityId:t.id})}var v=h.getByPageId(t.id);n.toggleEventImplementations(v,!0)}})),i.isEmpty(a)||o.emitViewsActivated({views:a}),a},n.deactivate=function(t){if(m.getViewState(t.id).isActive){n.setViewActiveState(t,!1),d.log(“Deactivated Page”,n.description(t)),o.emitPageDeactivated({page:t});var e=h.getByPageId(t.id);n.toggleEventImplementations(e,!1)}else d.log(“Not deactivating Page, already inactive “,n.description(t))},n.setViewActiveState=function(t,n){l.dispatch(r.SET_VIEW_ACTIVE_STATE,{view:t,timestamp:u.now(),isActive:n})},n.setGlobalTags=function(t){l.dispatch(r.SET_GLOBAL_TAGS,t)},n.setParsedViewTags=function(t,n){l.dispatch(r.UPDATE_PARSED_VIEW_METADATA,{pageId:t,metadata:n})},n.setUserSuppliedViewTags=function(t,n){l.dispatch(r.UPDATE_USER_SUPPLIED_METADATA,{pageId:t,metadata:n})},n.hasValidStaticConditions=function(t,n){var e={};if(i.isEmpty(t.staticConditions))return!0;var o=p.getAllPlugins(s.PluginTypes.viewMatchers);d.groupCollapsed(“Page / Evaluating staticConditions:”,t.staticConditions),d.debug(“Matching to current value:”,n);var u=a.evaluate(t.staticConditions,(function(t){var i=t.type,r=o[i];if(!r)throw new Error(“Page / No matcher found for type=”+i);return r&&(e[t.type]||(e[t.type]=!0)),r.match(n,t)}));return d.groupEnd(),g.getSampleRum()&&u&&l.dispatch(r.RECORD_VIEW_FEATURE_USAGE,{featuresUsed:i.keys(e),entityId:t.id}),u},n.description=function(t){return'”‘+t.name+'” (‘+t.id+”)”},n.toggleEventImplementations=function(t,n){i.forEach(t,(function(t){if(t.eventType!==f.CUSTOM){var e=p.getPlugin(s.PluginTypes.eventImplementations,t.eventType);e?n?e.attach(t):e.detach(t):d.warn(“No implementation found for event type:”,t.eventType,”needed for event:”,t)}}))},n.isActivationTypeImmediate=function(t){return t===s.ViewActivationTypes.immediate||!t},n.shouldTriggerImmediately=function(t){return t===s.ViewActivationTypes.DOMChanged||t===s.ViewActivationTypes.URLChanged||t===s.ViewActivationTypes.immediate||!t},n.create=function(t,n){return{id:t,apiName:n,category:”other”}},n.createState=function(t){return{id:t,isActive:!0,metadata:{},parsedMetadata:{},userSuppliedMetadata:{}}}},3641:function(t,n,e){Object.defineProperty(n,”ee”,{value:!0});var i,r=e(2001),o=e(3933),a=e(3428),u=e(5427),c=e(3390),s=e(186),f=e(1038),l=e(1037),d=e(3876),v=e(588),h=e(5487),p=e(461).DT,g=e(528),m=e(7877).Promise,_=e(6046),y=e(3876).VisitorStorageKeys,w=e(3250);i=e(9912);var b=l.get(“stores/cookie_options”),E=l.get(“stores/global”),I=l.get(“stores/layer”),A=l.get(“stores/plugins”),T=l.get(“stores/rum”),S=l.get(“stores/session”),k=l.get(“stores/visitor_id”),R=l.get(“stores/visitor_bucketing”),C=l.get(“stores/visitor”),N=l.get(“stores/provider_status”);function D(t,n){var e=function(t,e){var i;n.attributionType&&(i=f.now()),o.dispatch(a.SET_VISITOR_ATTRIBUTES,{attributes:[{key:t,value:e,metadata:{lastModified:i}}]})};if(n.getter){var i=n.provides;if(r.isArray(i)||(i=[i]),!(n.isSticky&&!r.isUndefined(h.getFieldValue(t,i)))){var u;try{var c=l.evaluate(n.getter);r.isFunction(c)&&(c=c((function(){return h.getFieldValue(t,i)}),(function(t){e(i,t)}))),r.isUndefined(c)||(n.isAsync?(u=c.then((function(t){e(i,t)}),(function(t){g.warn(‘Failed to evaluate provider for “‘+n.provides+'”; error was:’,t)})),o.dispatch(a.SET_VISITOR_ATTRIBUTE_PENDING,{key:i,pending:u})):e(i,c))}catch(s){g.warn(‘Failed to evaluate getter for provider for “‘+n.provides+'”; error was: ‘+s.message)}return u}}}function O(t){var n=P(t),e=p.getItem(n);return r.isString(e)&&(e=V(e)),e}function x(t){var n;if(t.layerId)n=t;else{var e=t;n={layerId:e.i,pageId:e.p,decisionTimestamp:e.t,decisionTicket:{audienceIds:e.a||[]},decision:{layerId:e.i,experimentId:e.x||null,variationId:e.v||null,isLayerHoldback:e.h||!1}}}return n}function M(t,n,e){try{var r=P(t);e||(n=v.stringify(n));try{p.setItem(r,n)}catch(o){throw g.warn(“Visitor / Unable to set localStorage key, error was:”,o),new Error(“Unable to set localStorage”)}i.setItem(r,n)}catch(o){g.warn(“Unable to persist visitor data:”,o.message)}}function P(t){var e=k.getBucketingId();if(!e)throw new Error(“Visitor bucketingId not set”);var i=n.getNamespace();if(!i)throw new Error(“Namespace is not set”);return[e,i,t].join(“$$”)}function L(t,e){if(!k.getBucketingId())throw new Error(“Cannot update local store because bucketingId not set”);if(U(t)){var i=n.getStorageKeyFromKey(t);if(r.includes(y,i)){var u=P(i);if(!(t.indexOf(u)<=0)&&(e=V(e)))if(i===y.EVENT_QUEUE)o.dispatch(a.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:t,value:c.deserialize(e)});else if(i===y.EVENTS)o.dispatch(a.SET_FOREIGN_VISITOR_EVENTS,{key:t,value:c.deserialize(e)});else if(i===y.LAYER_STATES)o.dispatch(a.LOAD_PERSISTED_LAYER_STATES,{layerStates:r.map(e,x),merge:!0});else if(i===y.VARIATION_MAP)o.dispatch(a.MERGE_VARIATION_ID_MAP,{variationIdMap:e});else if(i===y.CONTEXTUAL_MAB)o.dispatch(a.MERGE_CONTEXTUAL_MAB_MAP,{contextualMabMap:e});else if(i===y.VISITOR_PROFILE){var s=e;r.each(["custom"],(function(t){var n=A.getPlugin(d.PluginTypes.visitorProfileProviders,t);if(n){if(s.profile&&s.metadata){var e=function(t,n,e){var i=C.getAttribute(n),o=C.getAttributeMetadata(n),a=t.profile[n],u=t.metadata[n];if(r.isEmpty(i))return{data:a,metadata:u};var c={};return r.forOwn(a,(function(t,n){var i,a;o&&o[n]&&(i=o[n].lastModified),u&&u[n]&&(a=u[n].lastModified),(e===d.AttributionTypes.FIRST_TOUCH&&i>=a||e===d.AttributionTypes.LAST_TOUCH&&a>=i||r.isUndefined(i)&&a)&&(c.data=c.data||{},c.data[n]=t,a&&(c.metadata=c.metadata||{},c.metadata[n]=c.metadata[n]||{},c.metadata[n].lastModified=a))})),c}(s,t,n.attributionType);if(!r.isEmpty(e)){var i=[];r.forOwn(e.data,(function(n,r){var o=e.metadata[r],a={key:[t,r],value:n,metadata:o};i.push(a)})),o.dispatch(a.SET_VISITOR_ATTRIBUTES,{attributes:i})}}}else g.debug(“Attribute type”,t,”not used by any audiences”)}))}}}}function U(t){return t.split(“$$”)[0].indexOf(“://”)>0}function V(t){try{return v.parse(t)}catch(n){return g.debug(“Failed to parse: “,t,n),null}}n.getOrGenerateId=function(){return{randomId:n.getCurrentId()||”oeu”+f.now()+”r”+Math.random()}},n.getCurrentId=function(){var t=k.getVisitorIdLocator();return C.getVisitorIdFromAPI()||(t?function(t){var n,e=t.name;switch(t.type){case d.VisitorIdLocatorType.COOKIE:n=s.get(e);break;case d.VisitorIdLocatorType.JS_VARIABLE:n=w.getGlobalByPath(e);break;case d.VisitorIdLocatorType.LOCALSTORAGE:try{n=w.getGlobal(“localStorage”).getItem(e)}catch(u){throw new Error(“Unable to read localStorage: “+u.toString())}break;case d.VisitorIdLocatorType.QUERY:n=_.getQueryParamValue(e)}try{if(!n)throw g.error(“Visitor / Customer provided visitor id cannot be found. Type:”,t.type,” Name:”,e),new Error(“Failure to obtain visitor id from “+t.type);if(!r.isString(n)&&!r.isNumber(n))throw g.error(“Visitor / Customer provided visitor id is not a string or number. Type:”,t.type,” Name:”,e,” Id Type:”,(i=n)&&”undefined”!=typeof Symbol&&i.constructor===Symbol?”symbol”:typeof i),new Error(“Customer provided visitor id is not a string or number”)}catch(c){throw T.getSampleRum()&&o.dispatch(a.RECORD_VISITOR_ID_ERROR,{isError:!0}),c}var i;T.getSampleRum()&&(o.dispatch(a.RECORD_VISITOR_ID_ERROR,{isError:!1}),o.dispatch(a.RECORD_VISITOR_ID_LOCATOR_USAGE,{visitorIdLocatorType:t.type,entityId:n}));return String(n)}(t):s.get(d.COOKIES.VISITOR_ID))},n.hasSomeData=function(){return p.keys().length>0},n.setId=function(t){var e,c,f=k.getBucketingId();o.dispatch(a.SET_VISITOR_ID,t),k.getBucketingId()!==f&&(!function(){!function(t,n){0;u.initializeStore(t,n)}(O(y.EVENTS)||[],O(y.EVENT_QUEUE)||[]);var t=(e=y.LAYER_STATES,i=k.getBucketingId(),c=[],s=new RegExp(i+”\\$\\$([^$]+?)\\$\\$”+e),r.each(p.keys(),(function(t){var n=t.match(s);if(n){var e={namespace:n[1],userId:i,item:V(p.getItem(t))};c.push(e)}})),c);var e,i,c,s;r.forEach(t,(function(t){t.item=r.map(t.item,x)})),l=t,v=[],r.each(l,(function(t){r.each(t.item,(function(n){n.namespace=t.namespace,v.push(n)}))})),g=v,o.dispatch(a.LOAD_PERSISTED_LAYER_STATES,{layerStates:r.filter(g,(function(t){return!!t.decision}))}),h=O(y.SESSION_STATE)||{},h=r.extend({lastSessionTimestamp:0,sessionId:null},h),o.dispatch(a.LOAD_SESSION_STATE,h),function(t){var n,e,i=A.getAllPlugins(d.PluginTypes.visitorProfileProviders),u=r.filter(i,(function(t){return r.isFunction(t.restorer)}));t.profile&&t.metadata?(n=t.profile,e=t.metadata):(n=t,e={});n=r.reduce(n,(function(t,n,e){var i=n,o=r.find(u,{provides:e});return o&&(i=o.restorer(n)),t[e]=i,t}),{}),o.dispatch(a.LOAD_EXISTING_VISITOR_PROFILE,{profile:n,metadata:e})}(O(y.VISITOR_PROFILE)||{});var f=O(y.TRACKER_OPTIMIZELY);f&&(m=f,o.dispatch(a.SET_TRACKER_PERSISTABLE_STATE,m));var l,v;var h;var g;var m;n.loadForeignData(),n.removeLegacySessionStateCookies()}(),n.deleteOldLocalData(),i.deleteData(t));try{k.getVisitorIdLocator()||n.maybePersistVisitorId(t)}catch(l){if(g.error(“Visitor / Unable to persist visitorId, disabling tracking”),o.dispatch(a.LOAD_DIRECTIVE,{trackingDisabled:!0}),e=l,null!=(c=s.MismatchError)&&”undefined”!=typeof Symbol&&c[Symbol.hasInstance]?c[Symbol.hasInstance](e):e instanceof c)throw g.error(“Visitor / Cookie not set to correct value:”,l),new Error(“Cookie mismatch error while persisting visitorId”);throw l}n.refreshSession()},n.getVariationIdMap=function(){return O(y.VARIATION_MAP)||{}},n.updateVariationIdMap=function(t,n,e){o.dispatch(a.UPDATE_VARIATION_ID_MAP,{layerId:t,experimentId:n,variationId:e})},n.persistVariationIdMap=function(){var t=R.getVariationIdMapString();M(y.VARIATION_MAP,t,!0)},n.getContextualMabMap=function(){return O(y.CONTEXTUAL_MAB)||{}},n.updateContextualMabMap=function(t,n,e){o.dispatch(a.UPDATE_CONTEXTUAL_MAB_MAP,{layerId:t,experimentId:n,variationData:e})},n.persistContextualMabMap=function(){var t=R.getContextualMabMapString();M(y.CONTEXTUAL_MAB,t,!0)},n.getOdpSegments=function(){return O(y.ODP_SEGMENTS)||{}},n.persistOdpSegments=function(t){M(y.ODP_SEGMENTS,t,!1)},n.persistTrackerOptimizelyData=function(t){M(y.TRACKER_OPTIMIZELY,t)},n.refreshSession=function(){o.dispatch(a.REFRESH_SESSION)},n.populateEagerVisitorData=function(t,e){var i=r.filter(t,(function(t){return!t.isLazy}));return n.populateVisitorData(i,e)},n.populateLazyVisitorData=function(t,e,i){g.debug(“Populating lazy visitor. List of all providers”,t);var o=r.filter(t,(function(t){return t.isLazy&&i.has(t.provides)}));return g.debug(“Filtered list of providers that are lazy and present in audiences”,o),n.populateVisitorData(o,e)},n.populateVisitorData=function(t,n){n=n||{};var e=r.partial(D,n),i=r(t).filter({isAsync:!0}).map(e).filter().value();return r.forEach(r.filter(t,(function(t){return!t.isAsync})),e),i.length>0?m.all(i):m.resolve()},n.persistBehaviorEvents=function(t){M(y.EVENTS,t)},n.persistBehaviorEventQueue=function(t){M(y.EVENT_QUEUE,t)},n.getPersistedBehaviorEventCount=function(){var t=O(y.EVENTS)||[],n=O(y.EVENT_QUEUE)||[];return c.deserialize(t).length+c.deserialize(n).length},n.persistLayerStates=function(){var t=I.getLayerStates(n.getNamespace());t=r.map(t,(function(t){return r.omit(t,”namespace”)})),M(y.LAYER_STATES,t)},n.persistSessionState=function(){M(y.SESSION_STATE,S.getState())},n.persistVisitorProfile=function(){var t=function(){var t=C.getVisitorProfile(),n=C.getVisitorProfileMetadata(),e=A.getAllPlugins(d.PluginTypes.visitorProfileProviders);if(e){var i=r.reduce(e,(function(t,n){return n.provides&&(t[n.provides]=n),t}),{});t=r.omitBy(t,(function(t,n){var e=i[n];return e&&e.isTransient}))}return{profile:t,metadata:n}}();M(y.VISITOR_PROFILE,t)},n.persistVisitorBucketingStore=function(){n.persistVariationIdMap(),n.persistContextualMabMap()},n.getUserIdFromKey=function(t,e){var i;return r.includes(t,e)&&r.includes(t,”_”)&&r.includes(t,”$$”)&&r.includes(t.slice(t.indexOf(“$$”)),n.getNamespace())&&(i=t.slice(t.indexOf(“_”)+1,t.indexOf(“$$”))),i},n.maybePersistVisitorId=function(t){t.randomId&&(b.getAutoRefresh()||n.getCurrentId()!==t.randomId?(s.set(d.COOKIES.VISITOR_ID,t.randomId),g.log(“Persisting visitorId:”,t.randomId)):g.log(“Not persisting visitorId: value is not changed and also auto-refresh is disabled”))},n.getAttribute=function(t){return C.getAttribute(t)},n.getPendingAttributeValue=function(t){return N.getPendingAttributeValue(t)},n.isForeignKey=U,n.checkKeyForVisitorId=function(t){var e=k.getBucketingId()||n.getCurrentId(),i=n.getIdFromKey(t);return!i||i===e},n.getIdFromKey=function(t){var e=t.split(“$$”)[0],i=n.getStorageKeyFromKey(t);if(r.includes(d.StorageKeys,i))return null;var o=e.indexOf(“_”);return-1===o?e:e.substring(o+1)},n.getStorageKeyFromKey=function(t){var n,e=t.split(“$$”).pop();if(e.indexOf(“://”)>-1){var i=e.indexOf(“_”);n=e.substring(i+1)}else n=e;return r.includes(r.values(d.AllStorageKeys),n)?n:null},n.deleteOldLocalData=function(){var t=p.keys();r.each(t,(function(t){n.isForeignKey(t)||n.checkKeyForVisitorId(t)||p.removeItem(t)}))},n.deleteOldForeignData=function(){var t=p.keys();r.each(t,(function(t){n.isForeignKey(t)&&p.removeItem(t)}))},n.loadForeignData=function(){r.each(p.keys(),(function(t){var n=p.getItem(t);n&&L(t,n)}))},n.getNamespace=function(){return E.getNamespace()},n.serializeFieldKey=function(t){return r.isArray(t)?t.join(“$$”):t},n.removeLegacySessionStateCookies=function(){var t=s.getAll();r.forEach(r.keys(t),(function(t){0===t.indexOf(d.COOKIES.SESSION_STATE+”$$”)&&s.remove(t)}))}},3588:function(t,n,e){var i=e(2001),r=e(3876);n.normalizeClientData=function(t){!t.listTargetingKeys&&t.listTargetingCookies&&(t.listTargetingKeys=i.map(t.listTargetingCookies,(function(t){return{type:r.ListTargetingKeyTypes.COOKIE,key:t}})),delete t.listTargetingCookies)}},6774:function(t,n,e){e(1037).register(“env/jquery”,e(7414))},7414:function(t,n,e){var i,r=e(3250);try{i=$}catch(a){}var o=r.getGlobal(“$”);t.exports=i&&i!==o?i:o},9509:function(t,n,e){e(2001),e(5334).C,e(1038);var i=e(1037),r=(e(1327),e(528));e(3250),e(6008),i.get(“stores/client_metadata”),i.get(“stores/global”);n.handleError=function(t,n){n?r.error(“Uncaught error:”,t,n):r.error(“Uncaught error:”,t)}},1275:function(t,n,e){var i=e(2001),r=e(3428),o=e(6149),a=e(3722),u=e(5334).v,c=e(4254),s=e(1423),f=e(1037).get(“stores/directive”),l=e(1327),d=e(7105),v=e(3933),h=e(528),p=e(9751),g=e(5599),m=e(7251).create(),_=1e3,y=10,w=u(“ChangeOverheatError”);function b(t,n){if(this.change=t,this.identifier=n.identifier,this.startTime=n.startTime,f.shouldObserveChangesIndefinitely()){v.dispatch(r.INITIALIZE_CHANGE_METRICS),this.rateMeter=new p(_);var e=i.isNull(y)?Number.POSITIVE_INFINITY:y;this.rateMeter.addListener(e,i.bind((function(){h.warn(“AppendChange”,this,”has overheated and will no longer apply or reapply”),this.cancel(),v.dispatch(r.RECORD_CHANGE_OVERHEATED),o.emitError(new w(“Change “+this.identifier+” has overheated”),{layerId:n.action&&n.action.layerId,experimentId:n.action&&n.action.experimentId,variationId:n.action&&n.action.variationId,changeId:t.id,changeType:t.type,movingWindowMilliseconds:_,maxMacroTasksInMovingWindow:e})}),this));for(var a=Math.min(e,50),u=0;u<=a;u++)this.rateMeter.addListener(u,i.partial((function(t){v.dispatch(r.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:t})}),u))}}b.prototype.numberOfRootNodes=function(t){var n=document.createElement("div");return n.innerHTML=t,n.childNodes.length},b.prototype.getSiblingElements=function(t,n,e){for(var i=t,r=[],o=0;o0},f.prototype.addEvent=function(t){this.events.push(t)},f.prototype.removeEvent=function(t){this.events=r.filter(this.events,(function(n){return n.apiName!==t.apiName}))},t.exports=f},7148:function(t,n,e){var i=e(9775),r=e(5332),o=e(528),a=e(2208);function u(t){return”apiName: “+t.apiName+”, selector: “+t.eventFilter.selector}t.exports=function(t){var n=new r((function(t){a.updateAllViewTags(),i.trackClickEvent(t)?o.log(“Tracking click event:”,t):o.log(“Not tracking click event:”,t)}));t.registerEventImplementation(“click”,{attach:function(t){n.hasEvents()||n.listen(),n.addEvent(t),o.debug(“Started listening for click event (“+u(t)+”):”,t)},detach:function(t){n.removeEvent(t),n.hasEvents()||n.unlisten(),o.debug(“Stopped listening for click event (“+u(t)+”):”,t)}})}},7624:function(t,n,e){var i=e(2001),r=e(7632),o=e(5155),a=e(9414);function u(t,n){var e=o.buildFromSpecV0_1(n);if(1!==e.length)throw new Error(“Invalid query descriptor; verify that no aggregators are specified”);return a.execute(e[0],t)}function c(t,n){return i.map(t,(function(t){return i.isFunction(t.toObject)?t.toObject(n):t}))}function s(t,n){if(!t)return[“Descriptor not defined”];var e=[];return t.count&&e.push(‘Unexpected “count” clause specified’),t.pick&&t.pick.modifier&&-1===n.indexOf(t.pick.modifier)&&e.push(‘Invalid “pick” modifier “‘+t.pick.modifier+'”‘),i.each(t.filters,(function(t){i.isUndefined(t.modifier)||e.push(‘Unexpected “filter” modifier “‘+t.modifier+'”‘)})),e.length>0?e:void 0}function f(t,n){var e={revenueAsTag:!1,timeAsTimestamp:!0};if(i.isUndefined(n))return c(r.getEvents(t),e);if(i.isNumber(n)){if(n<=0)throw new Error("Count must be a positive integer, got "+n);return c(r.getEvents(t).slice(-n),e)}var a=s(n,i.values(o.RECENCY_FILTERS));if(a)throw new Error(a.join("\n"));return c(u(r.getEvents(t),n),e)}function l(t,n){if(!(n=i.cloneDeep(n)||{}).pick)throw new Error('No "pick" clause provided in query descriptor');if(!n.pick.name)throw new Error('No field name provided in "pick" clause');n.pick.modifier=n.pick.modifier||o.FREQUENCY_FILTERS.MOST_FREQUENT;var e=s(n,i.values(o.FREQUENCY_FILTERS));if(e)throw new Error(e.join("\n"));return u(r.getEvents(t),n)}function d(t,n){var e=o.buildFromSpecV0_2(n),u=r.getEvents(t),s=c(a.execute(e,u),{revenueAsTag:!0,timeAsTimestamp:!1});return(n.pick||n.reduce&&"count"===n.reduce.aggregator)&&(s=i.flatten(s)),n.reduce&&(s=s[0]),s}t.exports=["stores/visitor_events",function(t){return{getEvents:i.partial(f,t),getByFrequency:i.partial(l,t),query:i.partial(d,t)}}]},1360:function(t,n,e){t.exports=function(t){t.registerApiModule("behavior",e(7624))}},7418:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(1381)),t.registerAudienceMatcher("behavior",e(9260))}},9260:function(t,n,e){var i=e(2001),r=e(588),o=e(5155),a=e(9414);t.exports={fieldsNeeded:["events"],match:function(t,n){var e,u=r.parse(n.value);return e=i.isUndefined(u.version)?[u]:o.buildFromSpecV0_1(u),i.every(e,(function(n){return a.isSatisfied(n,t.events)}))}}},1381:function(t,n,e){var i=e(7632);t.exports={provides:"events",isTransient:!0,getter:[function(){return i.getEvents()}]}},7542:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(1285))}},1285:function(t,n,e){var i=e(2001),r=e(9795),o=e(7632),a=e(588),u=e(5155);t.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity",function(t,n){var e=t.getProjectId(),c=i.filter(i.map(n.getCustomBehavioralAttributes(e),(function(t){try{return{id:t.id,granularity:r.GRANULARITY.ALL,rule:u.buildFromSpecV0_2(a.parse(t.rule_json))}}catch(n){return}}))),s=o.getEvents();return r.evaluate(c,s)}]}},4973:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(5545)),t.registerAudienceMatcher("first_session",e(6856))}},6856:function(t){t.exports={fieldsNeeded:["first_session"],match:function(t){return!!t.first_session}}},5545:function(t,n,e){var i=e(9757),r=e(7632),o=e(5487).getFieldValue,a=e(6377).CURRENT_SESSION_INDEX;t.exports={provides:"first_session",shouldTrack:!0,getter:[function(){var t=r.getEvents();if(t&&t.length>0){var n=t[0];return o(n,[i.FIELDS.SESSION_INDEX])===a}return!0}]}},9795:function(t,n,e){var i=e(528),r={FIELDS:e(9757).FIELDS},o=e(5155),a=e(9414);n.GRANULARITY={ALL:”all”,CURRENT_SESSION:”current_session”,LAST_30_DAYS:”last_30_days”,LAST_60_DAYS:”last_60_days”},n.evaluate=function(t,e){var u={};if(0===e.length){for(var c=0;c0&&i===t[n-1][e];)n–;return t.slice(n)}(e),f=function(t,n){if(0===t.length||n<=0)return[];var e=+new Date-n*o.MILLIS_IN_A_DAY;e-=e%o.MILLIS_IN_A_DAY;for(var i=t.length;i>0&&e<=t[i-1][r.FIELDS.TIME];)i--;return t.slice(i)}(e,60);for(c=0;c“:”gt”,”>=”:”gte”,”=”:”eq”,”==”:”eq”};function f(t){return t=(t||””).toString().trim(),s[t]||t}function l(t,n,e){var a={where:n};if(t.count&&(a.limit=t.count),t.modifier===i.FREQUENCY_FILTERS.MOST_FREQUENT){var u=i.getFieldKeyPathForSource(t.name,e),c=i.aggregate(“count”),s=i.aggregateField(“count”),f=i.groupField(u);return r.extend(a,{select:[{field:f}],groupBy:i.groupBy([u]),aggregate:[c],orderBy:[{field:s,direction:”DESC”}]})}return r.extend(a,{orderBy:[{field:[o.FIELDS.TIME],direction:”DESC”}]})}i.fieldComparison=function(t,n,e){return t=f(t),r.isString(n)&&(n=[n]),”exists”===t?{op:t,args:[{field:n}]}:{op:t,args:[{field:n},{value:e}]}},i.relativeTimeComparison=function(t,n){return{op:f(t),args:[{op:”-“,args:[{eval:”now”},{field:[o.FIELDS.TIME]}]},{value:n*i.MILLIS_IN_A_DAY}]}},i.rangeTimeComparison=function(t){return r.isArray(t)?{op:”between”,args:[{field:[o.FIELDS.TIME]},{value:[t[0]||+new Date(0),t[1]||+new Date]}]}:(u.error(“Rule builder”,”rangeTimeComparison passed invalid range”,t),null)},i.groupBy=function(t){for(var n=[],e=0;e0)throw new Error(‘A “pick” clause must not be specified with “count” or “most_recent”, “most_frequent” modifiers’+a.stringify(t));return[l(t.pick,n,t.source)]}return e.length>0?e:[{where:n}]},i.buildFromSpecV0_2=function(t){!function(t){var n=[];if(r.isUndefined(t))throw new Error(“rule is undefined”);if(!r.isObject(t))throw new Error(“rule is not an Object”);”0.2″!==t.version&&n.push(‘version: not “0.2”‘),t.filter&&(r.isArray(t.filter)?r.each(t.filter,(function(t,e){var r=i.validateFieldKeyPathV0_2(t.field,i.FieldPurpose.FILTER);r&&n.push(“filter[“+e+”]: “+r);var o=i.validateComparatorAndValue(t.comparator,t.value);o&&n.push(“filter[“+e+”]: “+o)})):n.push(“filter: not an array”));var e=[],o=[];t.sort&&(t.reduce&&t.reduce.aggregator&&”nth”!==t.reduce.aggregator&&n.push(“sort: superfluous because we can apply aggregator “+a.stringify(t.reduce.aggregator)+” to unsorted items”),r.isArray(t.sort)?r.each(t.sort,(function(t,u){var c=i.validateFieldKeyPathV0_2(t.field,i.FieldPurpose.SORT);c&&n.push(“sort[“+u+”]: “+c),t.field&&”frequency”===t.field[0]?e.push(t):o.push(t);var s=function(t){var n=”direction “+(a.stringify(t)||String(t));if(!r.includes([“ascending”,”descending”],t))return n+’ is not “ascending” or “descending”‘}(t.direction);s&&n.push(“sort[“+u+”]: “+s)})):n.push(“sort: not an array”),e.length&&o.length&&n.push(‘sort: sorting by non-[“frequency”] field is pointless because we are going to sort the picked values by [“frequency”]’),e.length&&!t.pick&&n.push(‘sort: sorting by [“frequency”] is impossible because no values have been picked’));if(t.pick){t.reduce&&”count”===t.reduce.aggregator&&n.push(‘pick: superfluous because we can apply aggregator “count” to raw events’);var u=i.validateFieldKeyPathV0_2(t.pick.field);u&&n.push(“pick: “+u)}if(t.reduce){var c=t.reduce.aggregator,s=”aggregator “+(a.stringify(c)||String(c)),f=t.reduce.n,l=”index “+(a.stringify(f)||String(f));r.includes([“sum”,”avg”,”max”,”min”,”count”,”nth”],c)||n.push(“reduce: “+s+” is unknown”),r.includes([“sum”,”avg”,”max”,”min”],c)&&(t.pick||n.push(“reduce: “+s+” is impossible to use because no values have been picked”)),”nth”===c?((!r.isNumber(f)||isNaN(f)||parseInt(f,10)!==f||f<0)&&n.push("reduce: "+l+" is not a non-negative integer (mandated by "+s+")"),t.sort||n.push('reduce: aggregator "nth" is meaningless without a specific sort order')):r.isUndefined(f)||n.push("reduce: "+l+" is defined (not mandated by "+s+")")}if(n.length)throw new Error(n.join("\n"))}(t);var n={where:{op:"and",args:r.map(t.filter||[],(function(t){return"age"===t.field[0]?i.relativeTimeComparison(t.comparator||"eq",t.value/i.MILLIS_IN_A_DAY):i.fieldComparison(t.comparator||"eq",i.convertFieldKeyPathFromSpecV0_2(t.field),t.value)}))}};if(t.reduce&&"count"===t.reduce.aggregator)return r.extend(n,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var e=[],o=[];if(t.sort&&(r.each(t.sort,(function(t){r.includes(["ascending","descending"],t.direction)&&(r.includes(["time","age"],t.field[0])&&o.push(t),"frequency"===t.field[0]&&e.push(t))})),o.length&&!e.length&&(n.orderBy=r.filter(r.map(o,(function(t){return"time"===t.field[0]?{field:i.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===t.direction?"ASC":"DESC"}:"age"===t.field[0]?{field:i.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===t.direction?"DESC":"ASC"}:void 0}))))),t.pick&&t.pick.field){var u=i.convertFieldKeyPathFromSpecV0_2(t.pick.field);if(t.reduce&&r.includes(["avg","max","min","sum"],t.reduce.aggregator))return r.extend(n,{aggregate:[{op:t.reduce.aggregator,args:[{field:u}]}],select:[{field:[c.generateAlias(t.reduce.aggregator,u)]}]});n=e.length?r.extend(n,{groupBy:[{field:u}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===e[0].direction?"ASC":"DESC"}],select:[{field:[u.join(".")]}]}):r.extend(n,{select:[{field:u}]})}if(t.reduce&&"nth"===t.reduce.aggregator){var s=t.reduce.n;if(r.isNumber(s)&&s>=0&&Number(s)===Math.floor(Number(s)))return r.extend(n,{offset:s,limit:1})}return n},i.convertFieldKeyPathFromSpecV0_2=function(t){return”tags”===t[0]&&”revenue”===t[1]?[“r”]:[o.FIELDS_V0_2[t[0]]].concat(t.slice(1))},i.FieldPurpose={FILTER:”filter”,SORT:”sort”,PICK:”pick”},i.validateFieldKeyPathV0_2=function(t,n){var e=”field “+(a.stringify(t)||String(t));if(!r.isArray(t)||!r.every(t,r.isString))return e+” is not an array of strings”;if(“tags”===t[0]&&t.length>2||”tags”!==t[0]&&t.length>1)return e+” includes too many strings”;if(“tags”===t[0]&&t.length<2)return e+" does not specify an exact tag";if(t.length<1)return e+" does not specify a top-level field";var u=r.keys(o.FIELDS_V0_2),c=["age","frequency"];return n===i.FieldPurpose.FILTER&&(u.push("age"),c=["frequency"]),n===i.FieldPurpose.SORT&&(u=["time","age","frequency"],c=["name","type","category","tags"]),r.includes(c,t[0])?e+" is not supported here":r.includes(u,t[0])?void 0:e+" is unknown"},i.validateComparatorAndValue=function(t,n){var e="comparator "+(a.stringify(t)||String(t)),i="value "+(a.stringify(n)||String(n));if(!r.isString(t)&&!r.isUndefined(t))return e+" is not a string";switch(t){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if(!r.isNumber(n))return i+" is not a number (mandated by "+e+")";break;case"in":if(!r.isArray(n))return i+" is not an array (mandated by "+e+")";break;case"between":if(!(r.isArray(n)&&2===n.length&&r.isNumber(n[0])&&r.isNumber(n[1])&&n[0]<=n[1]))return i+" is not a pair of increasing numbers (mandated by "+e+")";break;case"regex":if(!(r.isString(n)||r.isArray(n)&&2===n.length&&r.isString(n[0])&&r.isString(n[1])))return i+" is not a pattern string or a [pattern string, flags string] array (mandated by "+e+")";break;case"exists":if(!r.isUndefined(n))return i+" is not undefined (mandated by "+e+")";break;default:return e+" is unknown"}}},9414:function(t,n,e){var i=e(2001),r=e(3876),o=e(528),a=i.bind(o.log,o),u=e(1038),c=e(5487).getFieldValue,s=e(588),f=function(t,n,e){if(t.getValueOrDefault)return t.getValueOrDefault(n,e);if(!i.isArray(n))return e;var r=c(t,n);return void 0===r&&(r=e),r},l=function(t){return"string"==typeof t?t.trim().toLowerCase():t};n.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},n.DEFAULT_FIELD=["*"],n.booleanOperators={eq:function(t){var n=i.map(t,l);return n[0]==n[1]},is:function(t){return t[0]===t[1]},gt:function(t){return t[0]>t[1]},lt:function(t){return t[0]=t[1]},lte:function(t){return t[0]<=t[1]},"in":function(t){var n=i.map(t[1]||[],l);return i.includes(n,l(t[0]))},between:function(t){return t[1][0]<=t[0]&&t[0]<=t[1][1]},contains:function(t){var n=i.map(t,(function(t){return"string"==typeof t?t.toLowerCase():t}));return-1!==(n[0]||"").indexOf(n[1])},regex:function(t){try{var n,e;return i.isString(t[1])?(n=t[1],e="i"):(n=t[1][0]||"",e=t[1][1]||""),new RegExp(n,e).test(t[0])}catch(r){return o.error("Rules",'In operator "regex", error: '+(r.message||"invalid RegExp /"+[n,e].join("/"))),!1}},exists:function(t){return void 0!==t[0]},and:function(t){return i.every(t,(function(t){return t}))},or:function(t){return i.some(t,(function(t){return t}))},not:function(t){return!t[0]}},n.arithmeticOperators={"+":function(t){return(t[0]||0)+(t[1]||0)},"-":function(t){return(t[0]||0)-(t[1]||0)},"/":function(t){return(t[0]||0)/(t[1]||1)},"%":function(t){return(t[0]||0)%(t[1]||1)}},n.aggregateOperators={sum:function(t,e){for(var i=t[0]||n.DEFAULT_FIELD,r=0,o=0;o0)&&(u[n.clause.AGGREGATE]=(t[n.clause.AGGREGATE]||[]).concat(e));for(var c=[n.clause.GROUP_BY,n.clause.ORDER_BY,n.clause.SELECT,n.clause.OFFSET,n.clause.LIMIT],s=0;s0&&(r=i.map(r,(function(t){return”Sub-rule “+e+”: “+t}))),t.hasOwnProperty(n.clause.FROM)&&(r=r.concat(h(t[n.clause.FROM],e+1))),r},p=function(t,e){var r,u,c,l=e;if(t.hasOwnProperty(n.clause.FROM)&&(o.debug(“Evaluating FROM clause:”,t[n.clause.FROM]),l=p(t[n.clause.FROM],l),o.debug(“Results after FROM:”,l)),o.debug(“Evaluating WHERE clause:”,t[n.clause.WHERE]),l=i.filter(l,(function(e){return v(e,t[n.clause.WHERE])})),o.debug(“Results after WHERE:”,l),t.hasOwnProperty(n.clause.AGGREGATE)){o.debug(“Evaluating AGGREGATE clause:”,t[n.clause.AGGREGATE]);var d=function(t,n){var e={};if(void 0===t||!i.isArray(t)||0===t.length)return e[“*”]={fieldValues:{},events:n},e;for(var r=i.map(t,(function(t){return t.field})),o=0;oc)return o}return 0})):(a(“Rules”,”groupBy rule must be an array”),n)}(t[n.clause.ORDER_BY],l),o.debug(“Results after ORDER_BY:”,l));var h,g=0;return t.hasOwnProperty(n.clause.OFFSET)&&(o.debug(“Evaluating OFFSET clause:”,t[n.clause.OFFSET]),g=Number(t[n.clause.OFFSET])),t.hasOwnProperty(n.clause.LIMIT)&&(o.debug(“Evaluating LIMIT clause:”,t[n.clause.LIMIT]),h=g+Number(t[n.clause.LIMIT])),(g>0||!i.isUndefined(h))&&(l=l.slice(g,h),o.debug(“Results after OFFSET/LIMIT:”,l)),t.hasOwnProperty(n.clause.SELECT)&&(o.debug(“Evaluating SELECT clause:”,t[n.clause.SELECT]),l=function(t,n){return i.map(n,(function(n){return i.map(t,(function(t){return v(n,t)}))}))}(t[n.clause.SELECT],l),o.debug(“Results after SELECT:”,l)),l};n.execute=function(t,e){t=n.rewrite(t),o.shouldLog(r.LogLevel.DEBUG)&&o.groupCollapsed(“Evaluating Behavioral Rule”),o.debug(“Rule:”,t,s.stringify(t)),o.debug(“Events:”,e);var i=h(t);if(i.length>0)throw new Error(“Rule “+s.stringify(t)+” has violations: “+i.join(“\n”));var a=p(t,e);return o.debug(“Rule result:”,a),o.shouldLog(r.LogLevel.DEBUG)&&o.groupEnd(),a},n.isSatisfied=function(t,e){try{return n.execute(t,e).length>0}catch(i){return o.error(“Rules”,”Error “+i.toString()+” while evaluating rule “+s.stringify(t)),!1}}},5868:function(t,n,e){t.exports=function(t){t.registerDependency(“sources/browser_id”,e(5749)),t.registerVisitorProfileProvider(e(2857)),t.registerVisitorProfileProvider(e(1430)),t.registerAudienceMatcher(“browser_version”,e(3730))}},3730:function(t,n,e){var i=e(6060).G;t.exports={fieldsNeeded:[“browserVersion”,”browserId”],match:function(t,n){var e=n.value,r=t.browserId,o=t.browserVersion;if(0===e.indexOf(r)){var a=e.substr(r.length);return 0===i(o,a)}return!1}}},2857:function(t){t.exports={provides:”browserId”,shouldTrack:!0,isSticky:!0,getter:[“sources/browser_id”,function(t){return t.getId()}]}},1430:function(t){t.exports={provides:”browserVersion”,getter:[“sources/browser_id”,function(t){return t.getVersion()}]}},5749:function(t,n,e){var i=e(70);n.getId=function(){return i.get().browser.id},n.getVersion=function(){return i.get().browser.version}},2863:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(350)),t.registerAudienceMatcher(“campaign”,e(9169))}},9169:function(t,n,e){var i=e(5521);t.exports={fieldsNeeded:[“campaign”],match:function(t,n){return i.hasMatch(n.value,n.match,t.campaign)}}},350:function(t,n,e){var i=e(7346);t.exports={provides:”campaign”,shouldTrack:!0,isSticky:!0,getter:[function(){return i.getQueryParamValue(“utm_campaign”)}]}},7475:function(t,n,e){var i=e(2001),r=e(588),o=e(6008),a=e(528),u=e(3641),c=e(8860);n.getCmabPredictionUrl=function(){return”https://prediction.cmab.optimizely.com/predict”},n.getCmabPredictionUrlForExperiment=function(t){return t?n.getCmabPredictionUrl()+”/”+t:””},n.createPayload=function(t,n){var e=i.map(t.variations,”id”),r=c.getVisitorCmabAttributesForExperiment(t),o=c.getDcpCustomerIds(),a=c.getDcpServiceId();return{instances:[{visitorId:u.getCurrentId(),experimentId:t.id,cmabUUID:n,variationIds:e,attributes:r,dcpCustomerIds:o,dcpServiceId:a}]}},n.parseApiResponse=function(t){var n=null;try{n=r.parse(t)}catch(e){return a.error(“CMAB API / Error parsing response:”,e),null}return n&&n.predictions&&0!==n.predictions.length?n.predictions[0].variation_id.toString():(a.debug(“CMAB API / No predictions found in API response”,n),null)},n.validateVariationId=function(t,n){return t&&i.find(n.variations,{id:t})?(a.debug(“CMAB API / Variation ID:”,t,”from API response found in experiment:”,n.id),t):(a.debug(“CMAB API / Variation ID:”,t,”from API response not found in experiment:”,n.id),null)},n.handleCmabApiResponse=function(t,e){if(200!==t.status)return a.error(“CMAB API / API call failed with status:”,t.status,t.statusText),null;a.debug(“CMAB API / API call successful:”,t.responseText);var i=n.parseApiResponse(t.responseText);return n.validateVariationId(i,e)},n.makeSyncApiCallWithXHR=function(t,e){a.debug(“CMAB API / SYNC / Making a synchronous API call to get variation.”);try{var i=n.createPayload(t,e),o=n.getCmabPredictionUrlForExperiment(t.id),u=new XMLHttpRequest;return u.open(“POST”,o,!1),u.send(r.stringify(i)),n.handleCmabApiResponse(u,t)}catch(c){return a.error(“CMAB API / SYNC / API call encountered an error:”,c),null}},n.makeAsyncApiCall=function(t,e){a.debug(“CMAB API / ASYNC / Making an asynchronous API call to get variation.”);var i=n.createPayload(t,e),r=n.getCmabPredictionUrlForExperiment(t.id);return o.request({url:r,contentType:”application/json”,method:”POST”,data:i})}},5747:function(t,n,e){var i=e(528),r=e(8860),o=e(7475),a=e(2451);n.isCmabEnabled=function(){return!0},n.isExperimentSyncApiEnabled=function(t){return!0},n.defaultToSnippetBucketing=function(t,n,e){i.debug(“CMAB / Defaulting to snippet bucketing with variation:”,n,”for experiment:”,t.id),r.setCmabVariationDataInVisitorStore(t,n,e)},n.processCmabExperiment=function(t,e){if(!n.isCmabEnabled())return i.debug(“CMAB / Feature flag is disabled. Defaulting to snippet bucketing with variation:”,e,”for experiment:”,t.id),e;if(i.debug(“CMAB / Feature flag is enabled. Processing CMAB for experiment:”,t.id),r.activateTimeoutForNonBucketedCmabExperiments(t),!r.isCmabExperiment(t))return e;var u=r.getCmabVariationDataFromVisitorStore(t);if(!r.isCmabTimeout(t,u))return u.variationId;a.startCmabApiCallPerformanceTimer(t.id);var c=null,s=r.generateCmabUUID();if(n.isExperimentSyncApiEnabled(t))try{return(c=o.makeSyncApiCallWithXHR(t,s))?(r.setCmabVariationDataInVisitorStore(t,c,s),a.endCmabApiCallPerformanceTimer(t.id),c):(n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e)}catch(f){return i.error(“CMAB API / SYNC / API call failed with error:”,f),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),null}return o.makeAsyncApiCall(t,s).then((function(u){return(c=o.handleCmabApiResponse(u,t))?(i.debug(“CMAB API / ASYNC / Variation:”,c,”for experiment:”,t.id),r.setCmabVariationDataInVisitorStore(t,c,s),a.endCmabApiCallPerformanceTimer(t.id),c):(n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e)}),(function(r){return i.error(“CMAB API / ASYNC / API call failed with error:”,r),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),null})),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e},n.getCmabUUIDAndUpdate30MinTimeout=function(t,n){var e=r.getCmabUUIDFromVisitorStore(t,n);return r.updateCmabTimeoutInVisitorStore(t,n),e}},2451:function(t,n,e){e(1766),e(528);n.startCmabApiCallPerformanceTimer=function(t){0},n.endCmabApiCallPerformanceTimer=function(t){0}},8860:function(t,n,e){var i=e(2001),r=e(9867),o=e(588),a=e(1037),u=e(998),c=e(3641),s=e(528),f=e(3876),l=e(3854),d=a.get(“stores/visitor”),v=a.get(“stores/plugins”),h=a.get(“stores/global”);n.generateCmabUUID=function(){return u.generate()},n.getCmabLayerIdFromExperiment=function(t){return t.experimentMetadata&&t.experimentMetadata.layerId||t.id},n.isCmabExperiment=function(t){var n=t.experimentMetadata&&t.experimentMetadata.allocationPolicy;return n?n===f.AllocationPolicyEnum.CMAB:(s.debug(“No allocation policy found in metadata for experiment:”,t.id),!1)},n.isCmabTimeout=function(t,e){if(!n.isCmabVariationStorageDataValid(e))return s.debug(“CMAB / Timeout CMAB Storage Variation Data is invalid”),!0;var r=e.variationId;return i.find(t.variations,{id:r})?e.isTimeout?(s.debug(“CMAB / Timeout flag is set:”,e.cmabUUID),!0):n.hasAttributesChanged(t,e)?(s.debug(“CMAB / Timeout User attributes have changed”),!0):n.has30MinOr24HrTimeoutOccurred(e)?(s.debug(“CMAB / Timeout for 30 minutes or 24 hours:”,e.cmabUUID),!0):(s.debug(“CMAB / No timeout happened for:”,e.cmabUUID),!1):(s.debug(“CMAB / Timeout Variation ID:”,r,”not found in experiment:”,t.id),!0)},n.has30MinOr24HrTimeoutOccurred=function(t){if(!n.isCmabVariationStorageDataValid(t))return s.debug(“CMAB / Timeout CMAB Storage Variation Data is invalid”),!0;var e=(new Date).getTime(),i=new Date(t.st30MinTimeout).getTime(),r=new Date(t.st24HrTimeout).getTime();return e-i>18e5||e-r>864e5},n.isCmabVariationStorageDataValid=function(t){if(!t)return!1;for(var n=[“variationId”,”visitorId”,”cmabUUID”,”st30MinTimeout”,”st24HrTimeout”,”userAttributeHash”],e=0;e4&&i[4]||””).trim();if(“GB”===r){o={EN:”ENG”,NI:”NIR”,SC:”SCT”,WA:”WLS”}[o]||o}switch(i.length){case 1:if(e.country===r)return!0;break;case 2:if(e.region===o&&e.country===r)return!0;break;case 3:if(e.city===a&&(e.region===o||””===o)&&e.country===r)return!0;break;case 4:if(e.continent===u)return!0;break;case 5:if(e.dma===c)return!0}return!1}},3052:function(t,n,e){var i=e(887);t.exports={provides:”location”,isAsync:!0,getter:[function(){return i.getIPDerivedGeolocation()}]}},2982:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(7232)),t.registerAudienceMatcher(“referrer”,e(525))}},525:function(t,n,e){var i=e(7210);n.fieldsNeeded=[“referrer”],n.match=function(t,n){return null!==t.referrer&&i(t.referrer,n)}},7232:function(t,n,e){var i=e(1327),r=e(6884);t.exports={provides:”referrer”,shouldTrack:!0,isSticky:!0,getter:[function(){var t=r.getReferrer()||i.getReferrer();return””===t&&(t=null),t}]}},6493:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(3278)),t.registerAudienceMatcher(“source_type”,e(9355))}},9355:function(t,n,e){var i=e(5521);n.fieldsNeeded=[“source_type”],n.match=function(t,n){return i.hasMatch(n.value,n.match,t.source_type)}},3278:function(t,n,e){var i=e(7346),r=e(1327),o=e(6884),a=e(8555),u=[“google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)”,”bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)”,”yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search”,”baidu\\.\\w{2,3}(\\.\\w{2,3})?/”,”https://(www)?\\.google\\..*?/?$”,”https://search\\.yahoo\\..*?/?$”,”https://(www)?\\.bing\\..*?/?$”];t.exports={provides:”source_type”,shouldTrack:!0,isSticky:!1,getter:[function(){return function(t,n){var e,c=t(),s=function(){if(i.getQueryParamValue(“utm_source”)||i.getQueryParamValue(“utm_campaign”)||i.getQueryParamValue(“gclid”)||i.getQueryParamValue(“otm_source”))return”campaign”;for(var t=o.getReferrer()||r.getReferrer(),n=0;n=o&&u<=a&&i.includes(e.days,c)}},4731:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(754))}},754:function(t){t.exports={provides:"visitorId",getter:["stores/visitor_id",function(t){return t.getRandomId()}]}},660:function(t,n,e){var i,r=e(588),o=e(528),a=e(1766),u=e(3597),c=e(7382),s=e(3250),f=e(5530),l=e(2323),d=e(7877),v=e(3933),h=e(1037),p=e(3428),g=h.get("stores/tracker_optimizely"),m=h.get("stores/rum"),_=h.get("stores/integration_settings"),y="google_analytics_4",w="gtag",b="dataLayer",E="optimizely_decision",I="experience_impression",A=[],T=function(){var t=g.canSend();if(o.debug("GA4 Integration: Got canSend:",t),t){for(var n=[];A.length>0;){o.debug(“GA4 Integration: decisionEventQueue length:”,A.length);var e=A.shift(),r=e.firstPartyData,a=e.customEventData;o.debug(“GA4 Integration: calling track with decision data:”,{firstPartyData:r,customEventData:a}),i?n.push(k(r,a)[“catch”]((function(t){o.warn(“Tracker for GTM “,y,”failed:”,t)}))):n.push(S(r,a)[“catch”]((function(t){o.warn(“Tracker for “,y,”failed:”,t)})))}return Promise.all(n)}return o.debug(“GA4 Integration: Not sending events (holding)”),Promise.resolve()},S=function(t,n){return u.pollFor((function(){return function(t){var n=t.getGlobal(w);return n||null}(s)}),200,50).then((function(e){o.log(“GA4 Integration: gtag finally exists, sending now.”),m.getSampleRum()&&a.timeEnd(“gtagReady”),o.debug(“GA4 Integration: calling ga4 with data: “+r.stringify(t)),e(“event”,I,t),o.debug(“GA4 Integration: calling ga4 with custom event data: “+r.stringify(n)),e(“event”,E,n)}))};var k=function(t,n){var e=s.getGlobal(b);o.debug(“GA4 Integration: found dataLayer object “+e),e||(o.debug(“GA4 Integration: dataLayer object “+b+” is empty, initializing it”),s.setGlobal(b,[]),e=s.getGlobal(b)),o.log(“GA4 Integration: attempting push to “+b);try{var i=Object.assign({event:I},t);o.debug(“GA4 Integration: pushing data to GTM: “+r.stringify(i)),e.push(i);var a=Object.assign({event:E},n);o.debug(“GA4 Integration: pushing custom data to GTM: “+r.stringify(a)),e.push(a)}catch(u){o.warn(“GA4 Integration: Push to “+b+” failed: “+u)}return Promise.resolve()},R={preRedirectPolicy:c.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:c.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:c.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:function(t){var n=t.integrationSettings;if(!n||!n[y])return o.debug(“GA4 Integration: did not find vendor “+y+” in integration settings, exiting”),d.resolve();if(!t.experimentId||!t.variationId)return o.debug(“GA4 Integration: empty experiment or variation ID, exiting”),d.resolve();var e=_.get(y)||{};i=”on”===e.global_is_use_gtm||”on”===n[y].is_using_gtm,o.debug(“GA4 Integration: is using GTM: “+i);var r,a,u,c=”equal_priority”===t.layerPolicy;return o.debug(“GA4 Integration: is personalization campaign: “+c),c?(u=”OPT-“+t.layerId+”(“+t.layerName+”)-“+t.experimentId+”(“+t.experimentName+”)-“+t.variationId+”(“+t.variationName+”)”,a={Campaign:t.layerName+” (“+t.layerId+”)”,Variation:t.variationName+” (“+t.variationId+”)”,Holdback:t.isLayerHoldback}):(u=”OPT-“+t.experimentId+”(“+t.experimentName+”)-“+t.variationId+”(“+t.variationName+”)”,a={Experiment:t.experimentName+” (“+t.experimentId+”)”,Variation:t.variationName+” (“+t.variationId+”)”,Holdback:t.isLayerHoldback}),r={exp_variant_string:u,Holdback:t.isLayerHoldback},o.debug(“GA4 Integration: pushing decision data to queue:”,{firstPartyData:r,customEventData:a}),A.push({firstPartyData:r,customEventData:a}),T()},serializeSettings:r.stringify,deserializeSettings:r.parse};t.exports=function(t){t.registerAnalyticsTracker(“google_analytics_4″,R),f.on({filter:{type:l.TYPES.ANALYTICS,name:”sendEvents”},handler:function(){v.dispatch(p.SET_TRACKER_SEND_EVENTS,!0),T()}}),f.on({filter:{type:l.TYPES.ANALYTICS,name:”maybeSendEvents”},handler:function(){T()}})}},3827:function(t,n,e){var i=e(2001),r=e(6149),o=e(998),a=e(3428),u=e(5334).v,c=e(588),s=e(528),f=e(7382),l=e(3641),d=e(3250),v=e(6008),h=e(1037),p=(e(1327),e(5530)),g=e(2323),m=e(3933),_=h.get(“stores/global”),y=h.get(“stores/tracker_optimizely”),w=e(5747),b=n.Error=u(“OptimizelyTrackerError”),E=”client_activation”,I=”campaign_activated”,A=”view_activated”,T={revenue:{validate:M,sanitize:Math.floor,excludeFeature:!0},quantity:{validate:M,sanitize:Math.floor,excludeFeature:!0},value:{validate:M,sanitize:i.identity}},S=”AUTO”,k=[function(){return function(t){L(function(t){var n=i.extend({entity_id:t.pageId,key:t.pageApiName,timestamp:t.timestamp,uuid:t.eventId,type:A},D(t.eventTags));return n}(t),t.userFeatures,W(t.layerStates))}}],R=[function(){return function(t){!function(t){var n=i.isNull(_.getAnonymizeIP())?void 0:_.getAnonymizeIP(),e={account_id:t.accountId,anonymize_ip:n,client_name:t.clientName,client_version:t.clientVersion,project_id:t.projectId,visitors:[]};e.revision=t.revision,e.enrich_decisions=!0;var r={session_id:V(t.sessionId),visitor_id:t.visitorId,attributes:[],snapshots:[]},o=W(t.layerStates);m.dispatch(a.REGISTER_TRACKER_VISITOR,{data:e,visitor:r,decisions:o}),$()}(t),L(function(t){return{entity_id:null,type:E,uuid:t.eventId,timestamp:t.timestamp}}(t),t.userFeatures,W(t.layerStates))}}],C=[function(){return function(t){var n;L((n=t,i.extend({entity_id:n.eventEntityId,key:n.eventApiName,timestamp:n.timestamp,uuid:n.eventId,type:n.eventCategory,properties:O(n.eventProperties)},D(n.eventTags))),t.userFeatures,W(t.layerStates))}}],N=[function(){return function(t){var n;L((n=t,i.extend({entity_id:n.eventEntityId,key:n.eventApiName,timestamp:n.timestamp,uuid:n.eventId,type:n.eventCategory},D(n.eventTags))),t.userFeatures,W(t.layerStates))}}];function D(t){var n=function(t,n,e){try{x(n),t[e]=n}catch(i){r.emitError(new b(“Bad value for eventTags[“+e+”]: “+i.message))}return t},e=i.keys(T),o=i.omit(t,e),a=i.pick(t,e),u=i.reduce(o,n,{}),c=i.reduce(a,(function(t,e,i){var o=T[i];o.excludeFeature||n(u,e,i);try{o.validate(e),t[i]=o.sanitize(e),u[i]=t[i]}catch(a){r.emitError(new b(“Bad value for eventMetrics[“+i+”]: “+a.message))}return t}),{});return c.tags=u,c}function O(t){if(i.keys(t).length<=15)return t;var n={},e={},r=0;for(var o in t)r<15?n[o]=t[o]:e[o]=t[o],r++;return s.log("Custom event has more than 15 properties. The following properties were not pushed",e),n}function x(t){if(null==t)throw new Error("Feature value is null");if("object"==typeof t){var n;try{n=c.stringify(t)}catch(e){}throw new Error('Feature value is complex: "'+n)}}function M(t){if(null==t)throw new Error("Metric value is null");if(!i.isNumber(t))throw new Error("Metric value is not numeric")}function P(t){return i.reduce(t,(function(t,n){try{x(n.value),t.push({entity_id:n.id||null,key:n.name,type:n.type,value:n.value})}catch(e){s.warn("Error evaluating user feature",n,e)}return t}),[])}function L(t,n,e){m.dispatch(a.REGISTER_TRACKER_EVENT,{event:t,decisions:e}),U(n),$()}function U(t){var n=P(t);m.dispatch(a.UPDATE_TRACKER_VISITOR_ATTRIBUTES,{attributes:n})}function V(t){return S}function F(){if(y.canSend()){var t=y.hasEventsToSend(),n=y.hasPreviousBatchesToSend();t||n?(n&&(i.each(y.getPreviousBatches(),B),m.dispatch(a.RESET_TRACKER_PREVIOUS_BATCHES)),t&&(m.dispatch(a.FINALIZE_BATCH_SNAPSHOT),B(y.getEventBatch()),m.dispatch(a.RESET_TRACKER_EVENTS))):s.debug("Not sending events because there are no events to send")}else s.debug("Not sending events (holding)")}function B(t){s.debug("Sending ticket:",t);var n=o.generate(),e={url:"https://logx.optimizely.com/v1/events",method:"POST",data:z(t)};y.shouldUseBeacon()?v.sendBeacon(e,n):v.retryableRequest(e,n)}function z(t){return i.extend({},i.pick(t,["account_id","anonymize_ip","client_name","client_version","enrich_decisions","project_id","revision"]),{visitors:i.map(t.visitors,G)})}function G(t){return{visitor_id:t.visitor_id,session_id:S,attributes:i.map(t.attributes,j),snapshots:i.map(t.snapshots,q)}}function j(t){return K(t,{entity_id:"e",key:"k",type:"t",value:"v"})}function q(t){var n=t.events;return n=function(t){var n=i.reduce(t,(function(t,n){var e;if(t[e=n.type===A&&i.isEmpty(n.tags)&&i.isEmpty(i.pick(n,i.keys(T)))?n.type:n.uuid]){var r=t[e].timestamp;n.timestamp>r&&(r=n.timestamp),t[e]=i.extend({},t[e],{key:t[e].key+”-“+(n.key||””),entity_id:t[e].entity_id+”-“+n.entity_id,timestamp:r})}else t[e]=n;return t}),{});return i.values(n)}(n),{activationTimestamp:_.getActivationTimestamp(),decisions:i.map(t.decisions,H),events:i.map(n,Y)}}function H(t){var n=K(t,{campaign_id:”c”,experiment_id:”x”,is_campaign_holdback:”h”,variation_id:”v”});return n.m=t.metadata?K(t.metadata,{cmab_uuid:”cmab_uuid”}):{},n}function Y(t){return t.key===I&&(t.type=I,delete t.key),K(t,{entity_id:”e”,key:”k”,quantity:”q”,revenue:”$”,tags:”a”,properties:”p”,timestamp:”t”,uuid:”u”,value:”v”,type:”y”})}function K(t,n){return i.reduce(t,(function(t,e,i){return i in n&&(t[n[i]||i]=e),t}),{})}function $(){if(y.shouldBatch()){if(!y.isPolling()){d.setTimeout((function t(){F(),y.isPolling()&&d.setTimeout(t,1e3)}),1e3),m.dispatch(a.SET_TRACKER_POLLING,!0),d.setTimeout((function(){m.dispatch(a.SET_TRACKER_BATCHING,!1),m.dispatch(a.SET_TRACKER_POLLING,!1)}),1e4)}}else F()}function W(t){return i.map(t,(function(t){var n=w.getCmabUUIDAndUpdate30MinTimeout(t.layerId,t.decision.experimentId),e=n?{cmab_uuid:n}:{};return{campaign_id:t.layerId,experiment_id:t.decision.experimentId,variation_id:t.decision.variationId,is_campaign_holdback:t.decision.isLayerHoldback,metadata:e}}))}function X(){var t=y.getPersistableState();if(t)try{s.debug(“Persisting pending batch:”,t),l.persistTrackerOptimizelyData(t),m.dispatch(a.SET_TRACKER_DIRTY,!1)}catch(n){s.debug(“Failed to persist pending batch:”,n)}}var J={trackLayerDecision:function(t){t.isLayerConcluded?s.debug(“Layer is already concluded, skipping decision tracking”):t.timing===f.TrackLayerDecisionTimingFlags.postRedirectPolicy?function(t){var n=P(t.userFeatures),e={account_id:t.accountId,anonymize_ip:t.anonymizeIP,client_name:t.clientName,client_version:t.clientVersion,project_id:t.projectId,visitors:[{session_id:V(t.sessionId),visitor_id:t.visitorId,attributes:n,snapshots:[{decisions:[{campaign_id:t.layerId,experiment_id:t.experimentId,variation_id:t.variationId,is_campaign_holdback:t.isLayerHoldback}],events:[{uuid:t.decisionId,entity_id:t.layerId,timestamp:t.timestamp,type:I}]}]}]};m.dispatch(a.REGISTER_PREVIOUS_BATCH,e),$()}(t):function(t){var n={entity_id:t.layerId,type:I,uuid:t.decisionId,timestamp:t.timestamp};m.dispatch(a.REGISTER_TRACKER_DECISION,{decisionEvent:n,decisions:W(t.layerStates)}),U(t.userFeatures),$()}(t)},preRedirectPolicy:f.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT,postRedirectPolicy:f.PostRedirectPolicies.TRACK_AFTER_SYNC,nonRedirectPolicy:f.NonRedirectPolicies.TRACK_IMMEDIATELY,onPageActivated:k,onClientActivation:R,onClickEvent:N,onCustomEvent:C};t.exports=function(t){t.registerAnalyticsTracker(“optimizely”,J),p.on({filter:{type:g.TYPES.ANALYTICS,name:”sendEvents”},handler:function(){m.dispatch(a.SET_TRACKER_SEND_EVENTS,!0),F()}}),p.on({filter:{type:g.TYPES.ANALYTICS,name:”maybeSendEvents”},handler:function(){F()}}),p.on({filter:{type:g.TYPES.ANALYTICS,name:”holdEvents”},handler:function(){m.dispatch(a.SET_TRACKER_SEND_EVENTS,!1)}}),m.dispatch(a.SET_TRACKER_SEND_EVENTS,!0);var n=p.on({filter:{type:”lifecycle”,name:”activated”},handler:function(){y.observe(X),p.off(n)}})}},1484:function(t,n,e){var i=e(2272),r={match:function(t,n){return i.apply(n.value)}};t.exports=function(t){t.registerViewMatcher(“custom_code”,r)}},8240:function(t,n,e){t.exports=function(t){t.registerViewProvider(e(4916)),t.registerViewMatcher(“url”,e(5327))}},5327:function(t,n,e){var i=e(7210);t.exports={fieldsNeeded:[“url”],match:function(t,n){return i(t.url,n)}}},4916:function(t,n,e){var i=e(7346);t.exports={provides:”url”,getter:[function(){return i.getUrl()}]}},2933:function(t,n,e){var i=e(1327),r=e(3876),o=e(5530),a=e(851),u=e(2208),c={token:void 0,setUpObserver:function(){a.createDOMChangedObserver(),this.token=o.on({filter:{type:”viewTrigger”,name:”DOMChanged”},handler:function(){u.getViewsAndActivate(r.ViewActivationTypes.DOMChanged)}})},turnOffObserver:function(){o.off(this.token)}};t.exports=function(t){i.isReady()?c.setUpObserver():i.addReadyHandler(c.setUpObserver),t.registerViewTrigger(“DOMChanged”,c)}},2538:function(t,n,e){var i=e(2001),r=e(3428),o=e(1037),a=e(3876),u=e(5530),c=e(3933),s=o.get(“stores/history”),f=e(528),l=e(7877).Promise,d=e(2208),v=e(3250);function h(t){u.emit({type:”viewTrigger”,name:”URLChanged”,data:{source:t,newURL:v.getHref()}},!0)}t.exports=function(t){var n;n=function(){var t=s.getOriginalPushState().apply(this,arguments);return l.resolve().then((function(){h(“pushState”)}))[“catch”]((function(t){f.error(“Error while wrapPushState: “,t)})),t},c.dispatch(r.ENSURE_ORIGINAL_PUSHSTATE),v.getGlobal(“history”).pushState=n,function(){var t=function(){var t=s.getOriginalReplaceState().apply(this,arguments);return l.resolve().then((function(){h(“replaceState”)}))[“catch”]((function(t){f.error(“Error while wrapReplaceState: “,t)})),t};c.dispatch(r.ENSURE_ORIGINAL_REPLACESTATE),v.getGlobal(“history”).replaceState=t}(),v.addEventListener(“popstate”,p,!1),v.addEventListener(“hashchange”,g,!1),u.on({filter:{type:”viewTrigger”,name:”URLChanged”},handler:function(){d.getViewsAndActivate(a.ViewActivationTypes.URLChanged)}}),t.registerViewTrigger(“URLChanged”)};var p=i.partial(h,”popstate”),g=i.partial(h,”hashchange”)},8771:function(t,n,e){var i=e(2001),r=e(1037),o=e(5530),a=e(2323),u=e(3250),c=r.get(“stores/directive”),s=”optimizelyPreview”,f=function(t){u.getGlobal(s).push(t)};n.initialize=function(t){c.isSlave()&&function(t){var n=!1;if(i.isArray(window.optimizely)&&i.each(window.optimizely,(function(e){i.isArray(e)&&”verifyPreviewProject”===e[0]&&String(e[1])===t&&(n=!0)})),!n)throw new Error(“Preview projectId: “+t+” does not match expected”)}(t),o.on({filter:{type:a.TYPES.ANALYTICS,name:”trackEvent”},handler:f}),o.on({filter:{type:a.TYPES.LIFECYCLE,name:”viewActivated”},handler:f}),o.on({filter:{type:a.TYPES.LIFECYCLE,name:”layerDecided”},handler:f}),o.on({filter:{type:”error”},publicOnly:!0,handler:f})},n.setupPreviewGlobal=function(){u.getGlobal(s)||u.setGlobal(s,[])},n.pushToPreviewGlobal=function(t){f(t)}},1846:function(t,n,e){var i=e(2001),r=e(998),o=e(1916),a=e(5427),u=e(1038),c=e(1327),s=e(3933),f=e(461).DT,l=e(528),d=e(2349),v=e(7877).Promise,h=e(3641),p=e(3250),g=e(6008),m=e(3428),_=e(3876),y=e(1037),w=y.get(“stores/async_request”),b=y.get(“stores/client_metadata”),E=y.get(“stores/global”),I=y.get(“stores/rum”),A=y.get(“stores/performance”),T=y.get(“stores/xdomain”),S=y.get(“stores/view_data”),k=e(8269),R=”https://rum.optimizely.com/rum”,C=”1.0″;function N(t){return i.isEmpty(t)?v.resolve():(n=function(){return g.request({url:R,method:”POST”,data:t,withCredentials:!0}).then((function(t){return o.resolveRequest(“RUM_FIRST_BEACON”,t),t}))[“catch”]((function(t){throw l.error(“POST to client-rum failed:”,t),o.rejectRequest(“RUM_FIRST_BEACON”,t),t}))},(e=w.getPromise(“RUM_FIRST_BEACON”))?e.then(n):o.makeAsyncRequest(“RUM_FIRST_BEACON”,n));var n,e}function D(){try{return!c.querySelector(“body”)}catch(t){return null}}function O(){var t=p.getGlobal(“performance”),n=t?t.timing:{},e=A.getMarks()||{},r=I.getApiData(),o=I.getDOMObservationData(),a=k.get(“state”).getActiveExperimentIds(),u=I.getFeaturesNeededData(),s=c.parseUri(I.getScriptSrc()),l=I.getRumData()||{},v=l.extras||{};i.assign(v,{apiCalls:r,DOMObservationData:o,paintTimings:M(),activeExperimentIds:a,numPages:S.getNumberOfPages(),snippet:{scheme:s.protocol.slice(0,-1),host:s.host,path:s.pathname},networkInfo:x(),experimental:E.getExperimental(),featuresNeeded:u,beacon:{cjsOnload:!0}});var g=p.getGlobal(“Prototype”);g&&!i.isUndefined(g.Version)&&(v.prototypeJS=g.Version);var m=!1;m=!0;var _=T.getFrames();_.length&&(v.xdFramesLoaded=_.length);var y={id:I.getRumId(),v:C,project:E.getSnippetId()||E.getProjectId(),navigationTimings:n,userTimings:e,xd:m,apis:i.keys(r),extras:v,sampleRate:l.sampleRate};(function(){var t=f.keys(),n=i.filter(i.map(t,(function(t){var n=h.getStorageKeyFromKey(t);return n?{key:t,isForeign:h.isForeignKey(t),category:n,size:t.length+f.getItem(t).length}:null}))),e=i.reduce(n,(function(t,n){var e=n.key,i=h.getIdFromKey(e);return i?((n.isForeign?t.foreign:t.local)[i]=!0,t):t}),{local:{},foreign:{}}),r=i.chain(n).filter({isForeign:!0}).reduce((function(t,n){return t[n.key.split(“_”)[0]]=!0,t}),{}).value(),o={local:0,foreign:0},a={local:{},foreign:{}};i.forEach(n,(function(t){var n=t.isForeign?”foreign”:”local”;o[n]+=t.size,a[n][t.category]||(a[n][t.category]=0),a[n][t.category]+=t.size}));var u={numKeys:f.allKeys().length,sizeKeys:f.allKeys().toString().length,sizeValues:f.allValues().toString().length,idCounts:{local:i.keys(e.local).length,foreign:i.keys(e.foreign).length},foreignOriginCount:i.keys(r).length,byteTotals:o,byteTotalsByCategory:a};return d.estimateStorage().then((function(t){return i.assign(u,{storageEstimate:t})}))})().then((function(t){N(i.assign(y,{lsMetrics:t}))}))}function x(){var t=p.getGlobal(“navigator”);if(t&&t.connection)return i.pick(t.connection,[“downlink”,”rtt”,”effectiveType”])}function M(){var t=p.getGlobal(“performance”);if(t)try{var n=t.getEntriesByType(“paint”);if(i.isEmpty(n))return;return i.reduce(n,(function(t,n){return t[n.name]=Math.round(n.startTime),t}),{})}catch(e){return}}n.initialize=function(){var t,n=r.generate().replace(/-/g,””);t=Math.random()<.01;var e=function(){var t=c.getCurrentScript();if(t)return t.src}();s.dispatch(m.SET_RUM_DATA,{id:n,RumHost:R,inRumSample:t,src:e,data:{id:n,sync:D(),timebase:u.now(),sampleRate:.01,url:e,extras:{initialDOMState:c.getReadyState()}}})},n.queueBeacons=function(){return I.getSampleRum()?(function(){try{p.getGlobal("requestAnimationFrame")((function(){var t=I.getRumData().timebase;s.dispatch(m.SET_RUM_DATA,{data:{render:u.now()-(t||0)}})}))}catch(t){return}}(),c.isLoaded()?p.setTimeout(O,3e3):p.addEventListener("load",O),new v((function(t,n){p.setTimeout((function(){(function(){!function(){var t={id:I.getRumId(),v:C,account:E.getAccountId(),project:E.getSnippetId()||E.getProjectId(),snippet:E.getSnippetId(),revision:E.getRevision(),clientVersion:b.getClientVersion(),hasSlave:!1,wxhr:!0,extras:{}},n=h.getPersistedBehaviorEventCount(),e=a.getEventCount();t.numBehaviorEvents=e;var r=e-n;i.extend(t.extras,{behaviorEventCountDiff:r,behaviorEventCountDecreased:r<0}),i.assign(t,function(){var t=p.getGlobal("performance");if(!t)return;var n,e=I.getScriptSrc();try{if(e){l.debug("Using derived script src: ",e);var r=t.getEntriesByName(e);r.length>0&&(n=r[0])}if(!n){var o=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;l.debug(“Scanning resource timing entries with regex”);var a=t.getEntriesByType(“resource”);n=i.find(a,(function(t){return o.test(t.name)}))}if(n)return i.mapValues(_.ResourceTimingAttributes,(function(t,e){var i=n[e];return”number”==typeof i?Math.round(1e3*(i||0))/1e3:”serverTiming”===e?i||[]:void 0}))}catch(u){return}}(),A.getDurationsFor(i.values(_.RUMPerformanceTimingAttributes))),s.dispatch(m.SET_RUM_DATA,{data:t})}();var t=I.getRumData(),n=A.getMarks()||{};return t.extras=t.extras||{},t.extras.beacon={cjsTimeout:!0},t.userTimings=n,N(t=i.pickBy(t,(function(t){return!i.isUndefined(t)})))})().then(t,n)}),3e3)}))[“catch”]((function(t){l.warn(“RUM / Error sending data:”,t)}))):v.resolve()}},9331:function(t,n,e){function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e ._modeRock_1o2xc3v_241″}]}]}], “weightDistributions”: [{“entityId”: “27482160911”, “endOfRange”: 10000}], “name”: “P – Rider – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27457141132”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27604020182”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27463380961”, “name”: “P – RubyMine – /promo/”, “commitId”: “27592900038”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27453711165”, “integrationSettings”: null, “variations”: [{“id”: “27555660667”, “name”: “Original”, “actions”: []}, {“id”: “27507590995”, “name”: “Variation #1”, “actions”: [{“viewId”: “27541060863”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/ruby/download/download-thanks.html”}, “type”: “attribute”, “id”: “358AA642-9AD9-47EC-813C-06F4E5B1DD7F”, “selector”: “.menu-second__download-button”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/ruby/download/download-thanks.html”}, “type”: “attribute”, “id”: “0240EEBB-1047-462B-A208-8D9D8DB35962”, “selector”: “.rubymine-header ._modeClassic_1o2xc3v_168”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/ruby/download/download-thanks.html”}, “type”: “attribute”, “id”: “52312A58-4E6D-40AA-8B3D-A53C120F88F2”, “selector”: “#ruby-professionals ._modeClassic_1o2xc3v_168”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/ruby/download/download-thanks.html”}, “type”: “attribute”, “id”: “937634FB-242A-44CD-80AA-16181AC5179B”, “selector”: “.get-started-section__buttons ._modeRock_1o2xc3v_241”}]}]}], “weightDistributions”: [{“entityId”: “27507590995”, “endOfRange”: 10000}], “name”: “P – RubyMine – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27463380961”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27541060863”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27474690720”, “name”: “P – DataGrip – /promo/”, “commitId”: “27446031378”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27478850932”, “integrationSettings”: null, “variations”: [{“id”: “27468941237”, “name”: “Original”, “actions”: []}, {“id”: “27499270955”, “name”: “Variation #1”, “actions”: [{“viewId”: “27443960928”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/datagrip/download/download-thanks.html”}, “type”: “attribute”, “id”: “2E781021-7D92-492D-99CD-75153F2134A3”, “selector”: “.menu-second__download-button”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/datagrip/download/download-thanks.html”}, “type”: “attribute”, “id”: “A2705A71-5B43-48F6-B9B5-06A6DB38BB1C”, “selector”: “._modeRock_1o2xc3v_241._sizeL_1o2xc3v_106”}]}]}], “weightDistributions”: [{“entityId”: “27499270955”, “endOfRange”: 10000}], “name”: “P – DataGrip – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27474690720”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27443960928”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27552250531”, “name”: “P – CLion – /promo/”, “commitId”: “27695820054”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27575340510”, “integrationSettings”: null, “variations”: [{“id”: “27677800068”, “name”: “Original”, “actions”: []}, {“id”: “27569640678”, “name”: “Variation #1”, “actions”: [{“viewId”: “27536390632”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/clion/download/download-thanks.html”}, “type”: “attribute”, “id”: “7cc104c8d7a842938008741bfdc10a73”, “selector”: “.menu-second__download-button”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/clion/download/download-thanks.html”}, “type”: “attribute”, “id”: “494843d0c9c746e59502cc592777b733”, “selector”: “._modeRock_1o2xc3v_241”}, {“css”: {}, “dependencies”: [], “attributes”: {“hide”: true}, “type”: “attribute”, “id”: “8B0FC2D4-8DD5-4210-8194-14EB7AB93411”, “selector”: “.wt-row_size_s.wt-row_align-items_center p.rs-text-3_theme_light”}]}]}], “weightDistributions”: [{“entityId”: “27569640678”, “endOfRange”: 10000}], “name”: “P – CLion – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27552250531”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27536390632”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27607960402”, “name”: “P – ReSharper – /promo/”, “commitId”: “27748130191”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27476781155”, “integrationSettings”: null, “variations”: [{“id”: “27478191346”, “name”: “Original”, “actions”: []}, {“id”: “27432391153”, “name”: “Variation #1”, “actions”: [{“viewId”: “27570340631”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“remove”: true}, “type”: “attribute”, “id”: “1B8E287A-A9F9-4432-99CF-C6D7D5E5B679”, “selector”: “.wt-section_bg_gray-light.wt-section_theme_light”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/resharper/download/download-thanks.html”}, “type”: “attribute”, “id”: “BD20ECCA-82EB-4430-9291-4C17D4153D92”, “selector”: “.menu-second__download-button”}]}]}], “weightDistributions”: [{“entityId”: “27432391153”, “endOfRange”: 10000}], “name”: “P – ReSharper – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27607960402”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27570340631”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27617760040”, “name”: “P – IntelliJ IDEA – /promo/”, “commitId”: “28788400357”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27607840071”, “integrationSettings”: null, “variations”: [{“id”: “27472440320”, “name”: “Original”, “actions”: []}, {“id”: “27659130008”, “name”: “Variation #1”, “actions”: [{“viewId”: “27622100054”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/idea/download/download-thanks.html”}, “type”: “attribute”, “id”: “621458AF-BE8B-4BF1-9990-7C587824FDDA”, “selector”: “a[href*=\”/idea/download/\”]”}]}]}], “weightDistributions”: [{“entityId”: “27659130008”, “endOfRange”: 10000}], “name”: “P – IntelliJ IDEA – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27617760040”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27622100054”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27621830089”, “name”: “Banner – YouTrack – JetBrains AI Banner – JS-19827”, “commitId”: “27584500176”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {“is_using_gtm”: “on”}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27655370007”], “audienceName”: “ncountryCodeCookie – JS-19827”, “changes”: null, “id”: “27636060005”, “integrationSettings”: null, “variations”: [{“id”: “27595220328”, “name”: “Original”, “actions”: []}, {“id”: “27465320888”, “name”: “Variation #1”, “actions”: [{“viewId”: “27615930076”, “changes”: [{“id”: “BAA9F942-556F-4F0A-9202-0C18E74E41E3”, “src”: “/actions/1e57e05a1903dad51539f0e299c574ea7e45f16ab866f21aa39ff7d126d0ef05.js”, “dependencies”: [], “type”: “widget”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “B5ECE38C-DD22-4D3E-8FA8-990B49830E3A”, “selector”: “a[href*=\”/legal/docs/terms/jetbrains-ai/service-territory/\”]#optly-link”}]}]}], “weightDistributions”: [{“entityId”: “27465320888”, “endOfRange”: 10000}], “name”: “Banner – YouTrack – JetBrains AI Banner – JS-19827”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27621830089”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27615930076”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27698020043”, “name”: “P – WebStorm – /promo/”, “commitId”: “27448401279”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27682720049”, “integrationSettings”: null, “variations”: [{“id”: “27696880004”, “name”: “Original”, “actions”: []}, {“id”: “27674750067”, “name”: “Variation #1”, “actions”: [{“viewId”: “27717330076”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/webstorm/download/download-thanks.html”}, “type”: “attribute”, “id”: “18de2104f25d4ab5b6f4fd50d78aab79”, “selector”: “.menu-second__download-button”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/webstorm/download/download-thanks.html”}, “type”: “attribute”, “id”: “FE2B147B-CAE9-48DF-B401-B31B062F3A37”, “selector”: “.wt-button_size_m”}, {“css”: {}, “dependencies”: [], “attributes”: {“remove”: true}, “type”: “attribute”, “id”: “724FC8E8-4B10-49BF-8303-08E5380E9D64”, “selector”: “section:nth-of-type(5)”}]}]}], “weightDistributions”: [{“entityId”: “27674750067”, “endOfRange”: 10000}], “name”: “P – WebStorm – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27698020043”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27717330076”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27717820005”, “name”: “P – GoLand – /promo/”, “commitId”: “27582650738”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “27678630057”, “integrationSettings”: null, “variations”: [{“id”: “27716950062”, “name”: “Original”, “actions”: []}, {“id”: “27699930058”, “name”: “Variation #1”, “actions”: [{“viewId”: “27711390043”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“href”: “/go/download/download-thanks.html”}, “type”: “attribute”, “id”: “f1e594b6d5214e879252deddff8c0015”, “selector”: “.menu-second__download-button”}, {“css”: {}, “dependencies”: [], “attributes”: {“href”: “/go/download/download-thanks.html”}, “type”: “attribute”, “id”: “6506CB1F-C88B-46A4-BA98-A24650BDA132”, “selector”: “.wt-col-inline.wt-offset-top-sm-48 > .wt-button_size_m”}]}]}], “weightDistributions”: [{“entityId”: “27699930058”, “endOfRange”: 10000}], “name”: “P – GoLand – /promo/”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27717820005”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27711390043”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “27826140304”, “name”: “Banner – Sales – RU – JS-17442”, “commitId”: “27822370206”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “27834020368”, “integrationSettings”: null, “variations”: [{“id”: “27832310283”, “name”: “Original”, “actions”: []}, {“id”: “27833460392”, “name”: “Variation #1”, “actions”: [{“viewId”: “27814210327”, “changes”: [{“id”: “27EF39F0-B269-4BF2-8E1D-9DEAEB945310”, “src”: “/actions/2f1132a57bad03541d08cb01d85aea9260eee5e9ad37dde2054718c554fe4416.js”, “dependencies”: [], “type”: “widget”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “6485AF1B-4FF6-459C-93F0-98623F8A0F05”, “selector”: “#optly-link”}]}]}], “weightDistributions”: [{“entityId”: “27833460392”, “endOfRange”: 10000}], “name”: “Banner – Sales – RU – JS-17442”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “27826140304”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“27814210327”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “28189850649”, “name”: “P – TeamCity – Pipelines – Product Hunt – JS-19936”, “commitId”: “28342730587”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {“is_using_gtm”: “on”}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “28238900404”, “integrationSettings”: null, “variations”: [{“id”: “28197310747”, “name”: “Original”, “actions”: []}, {“id”: “28306010093”, “name”: “Variation #1”, “actions”: [{“viewId”: “28239310449”, “changes”: [{“id”: “50FA95E4-9294-4199-B7D4-44E24FF24D03”, “src”: “/actions/707b1aee3e2933bc2612ceab78c636336ace34f6e43d26d9502e5bd8717b44c8.js”, “dependencies”: [], “type”: “attribute”}, {“id”: “4250570E-F30E-4AFF-85EC-3C5E0048C192”, “src”: “/actions/707b1aee3e2933bc2612ceab78c636336ace34f6e43d26d9502e5bd8717b44c8.js”, “dependencies”: [], “type”: “attribute”}, {“operator”: “before”, “dependencies”: [], “value”: “
“, “type”: “append”, “id”: “8826C9F9-47B1-46F5-86FA-C53D3DF88C2E”, “selector”: “div.teamcity-pipelines-content > div:nth-child(1) > div”}]}]}], “weightDistributions”: [{“entityId”: “28306010093”, “endOfRange”: 10000}], “name”: “P – TeamCity – Pipelines – Product Hunt – JS-19936”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “28189850649”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“28239310449”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “28344210926”, “name”: “Banner – Fleet – Early Preview – JS-20123”, “commitId”: “28373860664”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {“is_using_gtm”: “on”}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “28464170018”, “integrationSettings”: null, “variations”: [{“id”: “28350560857”, “name”: “Original”, “actions”: []}, {“id”: “28413450577”, “name”: “Variation #1”, “actions”: [{“viewId”: “28382850574”, “changes”: [{“id”: “099C0019-0C0F-48FF-A375-5DE666CD6F2C”, “src”: “/actions/8a388935a68f007714f573155a84da1b4567ca55ec1b3d9c777ce18350d3a260.js”, “dependencies”: [], “type”: “widget”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “7BFC507E-ED01-433F-9115-644BD279341F”, “selector”: “#optly-link”}]}]}], “weightDistributions”: [{“entityId”: “28413450577”, “endOfRange”: 10000}], “name”: “Banner – Fleet – Early Preview – JS-20123”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “28344210926”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“28382850574”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “28962740017”, “name”: “P – Rider – JetAsteroids – JS-xxxx”, “commitId”: “29360180072”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “28968270096”, “integrationSettings”: null, “variations”: [{“id”: “28976670093”, “name”: “Original”, “actions”: [{“viewId”: “29000310062”, “changes”: [{“id”: “B81CA8B4-6C5E-441C-93C0-C7093700AFAB”, “type”: “append”, “selector”: “head”, “value”: ““, “dependencies”: []}, {“id”: “023249B1-ED9E-4F8F-BF28-FF7E67902352”, “src”: “/actions/56cdca4279ca3b1e10da4521f5e10809d8fd010b5cb15be2e085529217773f3c.js”, “dependencies”: [], “type”: “insert_html”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “130A24A0-0D30-4F58-92DD-FDEFFE3192AD”, “selector”: “#jetbrains-asteroid-game”}]}]}], “weightDistributions”: null, “name”: “P – Rider – JetAsteroids – JS-xxxx”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “28962740017”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“29000310062”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “29044210696”, “name”: “P – Qodana – Dynamic page titles – DM-4589”, “commitId”: “29244160614”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”], “audienceName”: “All visitors – Desktop/Laptop”, “changes”: null, “id”: “29146870008”, “integrationSettings”: null, “variations”: [{“id”: “28978630453”, “name”: “Original”, “actions”: []}, {“id”: “29150520007”, “name”: “Variation #1”, “actions”: [{“viewId”: “28980690957”, “changes”: [{“id”: “329A9387-D8BC-4380-BA40-AF5C02133974”, “type”: “custom_code”, “value”: function($){var utils = window[“optimizely”].get(‘utils’);
const parsedUrl = new URL(window.location.href);
const searchParams = parsedUrl.searchParams;
const adgroup = searchParams.get(‘adgroup’);
// Wait for the footer element to appear in the DOM, then change the color
utils.waitForElement(‘.rs-hero’).then(function(subtitleElement) {
var adgroupText = ”;
if (adgroup === ‘static_code_analysis_tools’) {
adgroupText = ‘Static Code Analysis Platform for Teams and Enterprises’;
} else if (adgroup === ‘static_code_analysis_java’) {
adgroupText = ‘Static Code Analysis for Java and 60+ Other Languages’;
} else if (adgroup === ‘static_code_analysis_python’) {
adgroupText = ‘Static Code Analysis for Python and 60+ Other Languages’;
} else if (adgroup === ‘static_code_analysis_js’) {
adgroupText = ‘Static Code Analysis for JavaScript and 60+ Other Languages’;
} else if (adgroup === ‘sonarlint’) {
adgroupText = ‘Static Code Analysis With Best-In-Class IDE Integration’;
} else {
// Default text when adgroup doesn’t match any specified values
adgroupText = ‘Code quality done right’; // Setting adgroupText to an empty string
}
if(adgroupText === ”){
subtitleElement.textContent = “Code quality done right”;
}else{
subtitleElement.textContent = adgroupText;
}
});
}, “dependencies”: []}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “F121ED55-2846-4A5E-A6F1-8CC927615C87”, “selector”: “a[href*=\”qodana.cloud/onboarding\”]”}]}]}], “weightDistributions”: [{“entityId”: “29150520007”, “endOfRange”: 10000}], “name”: “P – Qodana – Dynamic page titles – DM-4589”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “29044210696”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“28980690957”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “29422120524”, “name”: “P – Easter Eggs – JS-20056”, “commitId”: “29468140146”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “29396860520”, “integrationSettings”: null, “variations”: [{“id”: “29439280492”, “name”: “Original”, “actions”: [{“viewId”: “29398690450”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “883DF140-032C-4753-AAD5-94E88F2B17E1”, “selector”: “.rs-h2 > .animation-starter”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “9F5B4A41-E915-4913-A2EF-6E8E10F343EB”, “selector”: “.wizardry-starter”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “238129F0-EDED-4E0D-B29D-CB54DD2B1315”, “selector”: “#trial .animation-starter”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “5524EF69-9851-4DBF-9D38-C3DD99A08F16”, “selector”: “.wt-youtube-player”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “017E2620-6B4A-402F-AC50-438AE1EC46B2”, “selector”: “.phpstorm-ready-section__card_php”}]}]}], “weightDistributions”: null, “name”: “P – Easter Eggs – JS-20056”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “29422120524”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“29398690450”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “29426920671”, “name”: “P – GoLand – Footer – JS-20234”, “commitId”: “29459340403”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “29422120522”, “integrationSettings”: null, “variations”: [{“id”: “29433150441”, “name”: “Original”, “actions”: [{“viewId”: “29423970375”, “changes”: [{“id”: “99135E94-C65F-4201-A22D-ECB7D9D41D0D”, “type”: “append”, “dependencies”: [], “selector”: “.wt-footer__main”, “value”: “ “, “operator”: “after”}]}]}], “weightDistributions”: null, “name”: “P – GoLand – Footer – JS-20234”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “29426920671”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“29423970375”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “30063761524”, “name”: “Banner – Country Suggest – China – JS-21049”, “commitId”: “30151080736”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “30012680612”, “integrationSettings”: null, “variations”: [{“id”: “30048380659”, “name”: “Original”, “actions”: [{“viewId”: “30039601521”, “changes”: [{“id”: “D0DDA0D5-8FB0-4FE3-B910-A8BC4665A6D4”, “src”: “/actions/2fae05350bf8a2ce550ff2946368cf1383f53fd0e2c86e27f97ddf5ef9992ef6.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – Country Suggest – China – JS-21049”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “30063761524”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“30039601521”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “30413310951”, “name”: “P – AI Assistant – Trial 30-day – JS-20804”, “commitId”: “5392516030660608”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “30394150897”, “integrationSettings”: null, “variations”: [{“id”: “30432020702”, “name”: “Original”, “actions”: [{“viewId”: “30417121013”, “changes”: [{“css”: {}, “dependencies”: [], “attributes”: {“html”: “30”}, “type”: “attribute”, “id”: “D496CC56-4057-468C-B585-FA5294C93C02”, “selector”: “[data-js-crawler=’content-root’] > div > section > div > div > div:nth-of-type(2) > div:nth-of-type(1) > div > div > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(1) > p > span”}]}]}], “weightDistributions”: null, “name”: “P – AI Assistant – Trial 30-day – JS-20804”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “30413310951”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“30417121013”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “30498170038”, “name”: “P – AI Assistant – Social Share Image – JS-21360”, “commitId”: “30500870025”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “30515380025”, “integrationSettings”: null, “variations”: [{“id”: “30531210049”, “name”: “Original”, “actions”: [{“viewId”: “30521300045”, “changes”: [{“id”: “DA16D99E-CF20-4A9D-80EA-9235A86CAFC9”, “src”: “/actions/aab0b8741b3fca52e786b935e50f9bfafc4a0bd12a2ac3784f6c0ecc118587e3.js”, “dependencies”: [], “type”: “custom_code”}]}]}], “weightDistributions”: null, “name”: “P – AI Assistant – Social Share Image – JS-21360”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “30498170038”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“30521300045”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “4721786189774848”, “name”: “Banner – Rider – Xamarin – JS-22033”, “commitId”: “5105343949176832”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5135337425469440”, “integrationSettings”: null, “variations”: [{“id”: “5451673536036864”, “name”: “Original”, “actions”: [{“viewId”: “6413074316394496”, “changes”: [{“id”: “745232D6-7391-4C9A-A423-E16D1FC3F47B”, “src”: “/actions/ec8d8e2cec0318b4593e48af7e48e51833b840fe7ed7c7bfdb326353620f1ea5.js”, “dependencies”: [], “type”: “widget”}, {“id”: “86724832-FF4D-4431-A193-605C39F627B8”, “src”: “/actions/ec8d8e2cec0318b4593e48af7e48e51833b840fe7ed7c7bfdb326353620f1ea5.js”, “dependencies”: [“745232D6-7391-4C9A-A423-E16D1FC3F47B”], “type”: “attribute”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “144A5DF9-7AC9-4F24-9CA1-97B22987E230”, “selector”: “#optly-banner-JS-22033 > p > a”}]}]}], “weightDistributions”: null, “name”: “Banner – Rider – Xamarin – JS-22033”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “4721786189774848”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6413074316394496”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “4751263120752640”, “name”: “P – IntelliJ Conf – Sessionize”, “commitId”: “5085861541314560”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5570039412162560”, “integrationSettings”: null, “variations”: [{“id”: “5058930116657152”, “name”: “Original”, “actions”: [{“viewId”: “6580850469371904”, “changes”: [{“id”: “D3B7C703-30FC-4554-9836-C740A44D4F11”, “type”: “custom_code”, “value”: function($){// Custom waitForElement function to check repeatedly for the target container
function waitForElement(selector, callback) {
var checkInterval = setInterval(function () {
var element = document.querySelector(selector);
if (element) {
console.log(`✅ Found ${selector}`, element);
clearInterval(checkInterval);
callback(element);
}
}, 500); // Check every 500ms
}
// Global flag to prevent multiple insertions
var scheduleInserted = false;
waitForElement(‘section.v-slim-wrapper:nth-child(4)>div.wt-container’, function(targetElement) {
// If the schedule container is already present, skip insertion
if (targetElement.querySelector(‘.sessionize-loader’)) {
console.warn(“⚠️ Schedule already inserted, skipping injection.”);
return;
}
// Override document.write so that any calls from the Sessionize script
// are intercepted and inserted into our target container instead.
var originalDocumentWrite = document.write;
document.write = function(content) {
if (!scheduleInserted) {
console.warn(“⚠️ document.write() intercepted. Inserting content into target element.”);
targetElement.insertAdjacentHTML(‘beforeend’, content);
scheduleInserted = true;
} else {
console.warn(“⚠️ Schedule already inserted, ignoring document.write() call.”);
}
};
// Insert required CSS styles for the loader
var style = document.createElement(“style”);
style.type = “text/css”;
style.innerHTML = `
.sz-spinner {
width: 40px;
height: 40px;
margin: 100px auto;
background-color: #1ab394;
border-radius: 100%;
-webkit-animation: sz-scaleout 1.0s infinite ease-in-out;
animation: sz-scaleout 1.0s infinite ease-in-out;
}
@-webkit-keyframes sz-scaleout {
0% { -webkit-transform: scale(0); }
100% { -webkit-transform: scale(1.0); opacity: 0; }
}
@keyframes sz-scaleout {
0% { -webkit-transform: scale(0); transform: scale(0); }
100% { -webkit-transform: scale(1.0); transform: scale(1.0); opacity: 0; }
}
`;
document.head.appendChild(style);
// Create and insert the Sessionize loader container into the target element
var sessionizeContainer = document.createElement(“div”);
sessionizeContainer.className = “sessionize-loader”;
sessionizeContainer.setAttribute(“data-sessionize-load-url”, “https://sessionize.com/api/v2/aq6rai8u/view/GridSmart?under=True”);
sessionizeContainer.innerHTML = ‘‘;
targetElement.appendChild(sessionizeContainer);
// Create and append the Sessionize script to the body
var script = document.createElement(‘script’);
script.type = “text/javascript”;
script.src = “https://sessionize.com/api/v2/aq6rai8u/view/GridSmart”;
script.async = true;
document.body.appendChild(script);
script.onload = function() {
console.log(“✅ Sessionize script loaded.”);
// Restore the original document.write
document.write = originalDocumentWrite;
// Delay slightly and then trigger sessionize.loader() if available
setTimeout(function() {
if (typeof sessionize !== “undefined” && typeof sessionize.loader === “function”) {
console.log(“✅ Running sessionize.loader()”);
sessionize.loader();
} else {
console.warn(“❌ sessionize.loader() is not available.”);
}
}, 500);
};
});
}, “dependencies”: []}, {“id”: “66A78C98-EACC-4E1D-BC82-BAB472C0F734”, “type”: “append”, “selector”: “head”, “value”: ““, “dependencies”: []}, {“css”: {}, “dependencies”: [], “attributes”: {“style”: “padding-bottom: 0px !important;”}, “type”: “attribute”, “id”: “85796ECA-19E8-4A93-9D32-EF4D751BDB84”, “selector”: “section:nth-of-type(2) > div:nth-of-type(1)”}]}]}], “weightDistributions”: null, “name”: “P – IntelliJ Conf – Sessionize”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “4751263120752640”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6580850469371904”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “4913015959584768”, “name”: “P – Community Education – Redirect – JS-21676”, “commitId”: “6102695627456512”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5821799531806720”, “integrationSettings”: null, “variations”: [{“id”: “6258062277738496”, “name”: “Original”, “actions”: [{“viewId”: “5365298967085056”, “changes”: [{“id”: “58FA5BC1-3A4E-46C0-993D-BE1DE55FA759”, “type”: “redirect”, “dependencies”: [], “dest”: “https://www.jetbrains.com/academy/bootcamps/”, “preserveParameters”: true, “allowAdditionalRedirect”: false}]}]}], “weightDistributions”: null, “name”: “P – Community Education – Redirect – JS-21676”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “4913015959584768”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5365298967085056”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5038757442224128”, “name”: “Banner – AI Assistant – EAP – JS-21320”, “commitId”: “6130105058590720”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5319919590965248”, “integrationSettings”: null, “variations”: [{“id”: “5837162468868096”, “name”: “Original”, “actions”: [{“viewId”: “5713463216439296”, “changes”: [{“id”: “96641C99-9314-4FC0-BD8E-ED79237BD3EC”, “src”: “/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js”, “dependencies”: [], “type”: “custom_css”}, {“id”: “3BE40EEC-9A91-4FDB-BE3A-BF9605821129”, “src”: “/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js”, “dependencies”: [], “type”: “widget”}, {“id”: “AE0BA0AA-0CF9-4895-A268-63195AA8E268”, “src”: “/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js”, “dependencies”: [“3BE40EEC-9A91-4FDB-BE3A-BF9605821129”], “type”: “attribute”}, {“id”: “10DF65A3-F983-4FDC-8E96-3EA11B3AB185”, “src”: “/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js”, “dependencies”: [“AE0BA0AA-0CF9-4895-A268-63195AA8E268”], “type”: “attribute”}, {“id”: “0CAEF448-1029-480E-8B76-4B574185377D”, “src”: “/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js”, “dependencies”: [“10DF65A3-F983-4FDC-8E96-3EA11B3AB185”], “type”: “attribute”}]}]}], “weightDistributions”: null, “name”: “Banner – AI Assistant – EAP – JS-21320”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5038757442224128”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5713463216439296”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5181621393948672”, “name”: “Banner – JetBrains AI – China – JS-22515”, “commitId”: “6143447694835712”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “28658270038”], “audienceName”: “ncountryCodeCookie – CN”, “changes”: null, “id”: “6285909880995840”, “integrationSettings”: null, “variations”: [{“id”: “6650276870881280”, “name”: “Original”, “actions”: [{“viewId”: “6363071300501504”, “changes”: [{“id”: “15B0DA0F-D1BD-47B8-86A1-1027A96F7247”, “src”: “/actions/d580cea3744677d3f3cb9fb44b7d6a8af3e97f4dd7e4d25302fe388bf0875a59.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – JetBrains AI – China – JS-22515”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5181621393948672”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6363071300501504”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5181825891434496”, “name”: “AB – AI Chatbot – Support – JS-23037”, “commitId”: “6403983611265024”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “27453331160”, “6008766089396224”], “audienceName”: “All visitors – Desktop/Laptop,Un-restricted Countries – JS-23037”, “changes”: null, “id”: “5251655550107648”, “integrationSettings”: null, “variations”: [{“id”: “4552077184073728”, “name”: “Original”, “actions”: [{“viewId”: “4527153153310720”, “changes”: [{“id”: “C2E4B4A8-2ACD-450C-AB36-A6C5E5AA0B03”, “type”: “redirect”, “dependencies”: [], “dest”: “https://www.jetbrains.com/support/?var=1”, “preserveParameters”: true, “allowAdditionalRedirect”: false}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “8324EE80-657D-4E28-9360-DD7B927C42C6”, “selector”: “div.rw-widget-container”}]}]}], “weightDistributions”: null, “name”: “AB – AI Chatbot – Support – JS-23037”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5181825891434496”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4527153153310720”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5214931197362176”, “name”: “Redirect – CodeCanvas – #contact-sales – JS-22484”, “commitId”: “6510205152788480”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5108864010420224”, “integrationSettings”: null, “variations”: [{“id”: “5569582769897472”, “name”: “Original”, “actions”: [{“viewId”: “5497595477360640”, “changes”: [{“id”: “3B2BC3B5-1B61-430C-AF06-00FB354DD34B”, “type”: “redirect”, “dependencies”: [], “dest”: “/codecanvas/get-in-touch/”, “preserveParameters”: true, “allowAdditionalRedirect”: false}]}]}], “weightDistributions”: null, “name”: “Redirect – CodeCanvas – #contact-sales – JS-22484”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5214931197362176”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5497595477360640”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5263519122194432”, “name”: “Banner – JetBrains AI – /aia-vscode/ – JS-22515”, “commitId”: “6597613944832000”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “6389419029037056”, “integrationSettings”: null, “variations”: [{“id”: “4982044145483776”, “name”: “Original”, “actions”: [{“viewId”: “5685229243858944”, “changes”: [{“id”: “aa599b142cdf4366b1a3171e107f234d”, “src”: “/actions/6e779b8c8c1c270cae4e924a67429179ba95253b214a80409c773c42325bac46.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – JetBrains AI – /aia-vscode/ – JS-22515”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5263519122194432”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5685229243858944”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5326006190342144”, “name”: “Banner – AI – 50% discount – JS-21748”, “commitId”: “5705389241532416”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “28658270038”], “audienceName”: “ncountryCodeCookie – CN”, “changes”: null, “id”: “4927114894376960”, “integrationSettings”: null, “variations”: [{“id”: “5383574052929536”, “name”: “Original”, “actions”: [{“viewId”: “4763056236920832”, “changes”: [{“id”: “D727816B-7D4A-405F-82FD-32B9B1E46879”, “src”: “/actions/e8b846d994d5a1539113f5d2907ebbd4c8f887dae3aa822c5210891fcb7270ae.js”, “dependencies”: [], “type”: “custom_code”}, {“id”: “04D04CC4-43FF-433B-8036-2025923FEA29”, “src”: “/actions/e8b846d994d5a1539113f5d2907ebbd4c8f887dae3aa822c5210891fcb7270ae.js”, “dependencies”: [], “type”: “custom_css”}, {“id”: “D99CF527-A5CA-4057-88FB-81FE704536BC”, “src”: “/actions/e8b846d994d5a1539113f5d2907ebbd4c8f887dae3aa822c5210891fcb7270ae.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – AI – 50% discount – JS-21748”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5326006190342144”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4763056236920832”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5584399819866112”, “name”: “P – Junie – Easter Egg Snake – JS-23240”, “commitId”: “5613271609245696”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5258816548241408”, “integrationSettings”: null, “variations”: [{“id”: “5395839158321152”, “name”: “Original”, “actions”: [{“viewId”: “6088001659338752”, “changes”: [{“id”: “D27B102F-D171-478B-9CE4-595E82DAB083”, “src”: “/actions/ff808af4e037acf39ee1f264a78d7d2f2e8a75bba94b1673c6e0e5f8915b4647.js”, “dependencies”: [], “type”: “attribute”}]}]}], “weightDistributions”: null, “name”: “P – Junie – Easter Egg Snake – JS-23240”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5584399819866112”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6088001659338752”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5650267048247296”, “name”: “P – Vision – Git Client – Download links – JS-23042 “, “commitId”: “6620542975868928”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5607079461781504”, “integrationSettings”: null, “variations”: [{“id”: “6082632816001024”, “name”: “Original”, “actions”: [{“viewId”: “6482886308659200”, “changes”: [{“id”: “AAAE4503-1856-4E2D-ADD9-9D39C10DF8F4”, “type”: “custom_code”, “value”: function($){// Retrieve the utils library
var utils = window[“optimizely”].get(‘utils’);
// Common path for all JetBrains download links
const JETBRAINS_DOWNLOAD_PATH = ‘/idea/download/download-thanks.html’;
// Define the link mappings
const linkMappings = {
‘mac’: ‘https://jb.gg/gitclient-dmg’,
‘macM1’: ‘https://jb.gg/gitclient-aarch64-dmg’,
‘windows’: ‘https://jb.gg/gitclient-exe’,
‘windowsZip’: ‘https://jb.gg/gitclient-win-zip’,
‘windowsARM64’: ‘https://jb.gg/gitclient-aarch64-exe’,
‘linux’: ‘https://jb.gg/gitclient-tar-gz’,
‘linuxARM64’: ‘https://jb.gg/git-client-aarch64-tar-gz’
};
// Poll for each link type every 1 second
Object.keys(linkMappings).forEach(function(platform) {
utils.poll(function() {
var links = document.querySelectorAll(‘a[href*=”‘ + JETBRAINS_DOWNLOAD_PATH + ‘”]’);
links.forEach(function(link) {
// Parse URL to check platform parameter
try {
var url = new URL(link.href);
var platformParam = url.searchParams.get(‘platform’);
if (platformParam === platform) {
link.href = linkMappings[platform];
}
} catch (e) {
// Skip if URL parsing fails
}
});
}, 1000);
});
}, “dependencies”: []}]}]}], “weightDistributions”: null, “name”: “P – Vision – Git Client – Download links – JS-23042 “, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5650267048247296”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6482886308659200”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5758540892078080”, “name”: “P – Learn – Hide Twitter Widget – JS-23227”, “commitId”: “5222749694590976”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “4536070725959680”, “integrationSettings”: null, “variations”: [{“id”: “5072341953150976”, “name”: “Original”, “actions”: [{“viewId”: “4857308845441024”, “changes”: [{“id”: “315E9B3F-9282-415A-B01C-DAAA2B5B618A”, “type”: “append”, “selector”: “head”, “value”: ““, “dependencies”: []}]}]}], “weightDistributions”: null, “name”: “P – Learn – Hide Twitter Widget – JS-23227”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5758540892078080”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4857308845441024”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5760713419915264”, “name”: “Banner – YouTrack – Legal Teams Event – AgiLawer – JS-21824”, “commitId”: “6679729449730048”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “4857767916208128”], “audienceName”: “Location – Western Europe – JS-21824”, “changes”: null, “id”: “5529462851239936”, “integrationSettings”: null, “variations”: [{“id”: “6428827962834944”, “name”: “Original”, “actions”: [{“viewId”: “5175064799215616”, “changes”: [{“id”: “8e90ee882ca343ffa61f969e659122b5”, “src”: “/actions/781008e78cb4583e797043cd7ddf8cc6ab214726432aef19248195905ea9d736.js”, “dependencies”: [], “type”: “widget”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “76ab17099a854fbd9c9767f832c6c1d3”, “selector”: “a#optly-link[href=\”https://agilawyer.com/partners/jetbrains/\”]”}]}]}], “weightDistributions”: null, “name”: “Banner – YouTrack – Legal Teams Event – AgiLawer – JS-21824”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5760713419915264”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5175064799215616”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: [{“id”: “F8985764-7551-4CD0-BF57-38428C04AD2A”, “type”: “custom_code”, “value”: function($){var utils = window[“optimizely”].get(‘utils’);
// Define video mappings by index (0-based)
var videosByIndex = [
{
// AI Toolkit Video (1st video – index 0)
videos: {
‘/ru-ru/’: ’80uyZ21Rlsk’,
‘/de-de/’: ‘tSrxxFKIKPM’,
‘/fr-fr/’: ‘AYeVLK3ttSg’,
‘/es-es/’: ‘5FZBf1RMaQY’,
‘/ja-jp/’: ‘iPOiRUukago’,
‘/pt-br/’: ‘3as7cfLeM0c’,
‘/ko-kr/’: ‘wHsveJL_fSA’,
‘/zh-cn/’: ‘Wx4UunIcBg0’
}
},
{
// AI Playground Video (2nd video – index 1)
videos: {
‘/ru-ru/’: ‘RI777Akfmjs’,
‘/de-de/’: ‘_FYQDONNZNE’,
‘/fr-fr/’: ‘Qcyb1IA-pEw’,
‘/es-es/’: ‘IZd7L5a0EHc’,
‘/ja-jp/’: ‘n0xSkmyoQ3I’,
‘/pt-br/’: ‘z3-LM28dn7I’,
‘/ko-kr/’: ‘G_5iRltyx7Y’,
‘/zh-cn/’: ‘KzUtFOLDIZk’
}
},
{
// AI Agents Debugger Video (3rd video – index 2)
videos: {
‘/ru-ru/’: ‘sk_qYSvYjbQ’,
‘/de-de/’: ‘TFV8IRbyWa0’,
‘/fr-fr/’: ‘aiVpizTzGlw’,
‘/es-es/’: ‘KfvvUXOo5YM’,
‘/ja-jp/’: ‘E5GgEuhsu3I’,
‘/pt-br/’: ‘zz_WXELqLNo’,
‘/ko-kr/’: ‘s7RC6_t0OW4’,
‘/zh-cn/’: ‘ogGBY7R7MPM’
}
}
];
// Get current language
function getCurrentLang() {
var location = window.location.href;
var supportedLangs = [‘/ru-ru/’, ‘/de-de/’, ‘/fr-fr/’, ‘/es-es/’, ‘/ja-jp/’, ‘/pt-br/’, ‘/ko-kr/’, ‘/zh-cn/’];
for (var i = 0; i < supportedLangs.length; i++) {
if (location.includes(supportedLangs[i])) {
return supportedLangs[i];
}
}
return null;
}
function replaceVideo(element, videoId) {
// Create iframe
var iframe = document.createElement('iframe');
iframe.width = '560';
iframe.height = '315';
iframe.src = 'https://www.youtube.com/embed/' + videoId;
iframe.title = 'YouTube video player';
iframe.frameBorder = '0';
iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
iframe.referrerPolicy = 'strict-origin-when-cross-origin';
iframe.allowFullscreen = true;
iframe.style.maxWidth = '100%';
iframe.style.height = 'auto';
iframe.style.aspectRatio = '16 / 9';
// Replace element
element.parentNode.replaceChild(iframe, element);
}
var currentLang = getCurrentLang();
// Only process if language is found
if (currentLang) {
// 100ms delay before waiting for elements
setTimeout(function() {
// Wait for any video element to appear
utils.waitForElement('section div > div.wt-youtube-player’).then(function() {
// Once at least one exists, get all video elements
var videoElements = document.querySelectorAll(‘section div > div.wt-youtube-player’);
// Process each video element
videoElements.forEach(function(element, index) {
if (index < videosByIndex.length && videosByIndex[index].videos[currentLang]) {
replaceVideo(element, videosByIndex[index].videos[currentLang]);
console.log('Replaced video #' + (index + 1) + ' with ' + currentLang + ' version');
}
});
});
}, 100);
} else {
console.warn('No supported language detected in URL');
}
}, "dependencies": []}], "id": "5766402494169088", "name": "P - AI Engineers LP - Localized Videos - JS-23185", "commitId": "5693051230748672", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "4921977564037120", "integrationSettings": null, "variations": [{"id": "5725328312631296", "name": "Original", "actions": [{"viewId": "4527233025441792", "changes": [{"id": "5C7328F6-77DD-48C7-95A0-95D67BBC004E", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
// Define video mappings by index (0-based)
var videosByIndex = [
{
// AI Toolkit Video (1st video - index 0)
videos: {
'/ru-ru/': '80uyZ21Rlsk',
'/de-de/': 'tSrxxFKIKPM',
'/fr-fr/': 'AYeVLK3ttSg',
'/es-es/': '5FZBf1RMaQY',
'/ja-jp/': 'iPOiRUukago',
'/pt-br/': '3as7cfLeM0c',
'/ko-kr/': 'wHsveJL_fSA',
'/zh-cn/': 'Wx4UunIcBg0'
}
},
{
// AI Playground Video (2nd video - index 1)
videos: {
'/ru-ru/': 'RI777Akfmjs',
'/de-de/': '_FYQDONNZNE',
'/fr-fr/': 'Qcyb1IA-pEw',
'/es-es/': 'IZd7L5a0EHc',
'/ja-jp/': 'n0xSkmyoQ3I',
'/pt-br/': 'z3-LM28dn7I',
'/ko-kr/': 'G_5iRltyx7Y',
'/zh-cn/': 'KzUtFOLDIZk'
}
},
{
// AI Agents Debugger Video (3rd video - index 2)
videos: {
'/ru-ru/': 'sk_qYSvYjbQ',
'/de-de/': 'TFV8IRbyWa0',
'/fr-fr/': 'aiVpizTzGlw',
'/es-es/': 'KfvvUXOo5YM',
'/ja-jp/': 'E5GgEuhsu3I',
'/pt-br/': 'zz_WXELqLNo',
'/ko-kr/': 's7RC6_t0OW4',
'/zh-cn/': 'ogGBY7R7MPM'
}
}
];
// Get current language
function getCurrentLang() {
var location = window.location.href;
var supportedLangs = ['/ru-ru/', '/de-de/', '/fr-fr/', '/es-es/', '/ja-jp/', '/pt-br/', '/ko-kr/', '/zh-cn/'];
for (var i = 0; i < supportedLangs.length; i++) {
if (location.includes(supportedLangs[i])) {
return supportedLangs[i];
}
}
return null;
}
function replaceVideo(element, videoId) {
// Create iframe
var iframe = document.createElement('iframe');
iframe.width = '560';
iframe.height = '315';
iframe.src = 'https://www.youtube.com/embed/' + videoId;
iframe.title = 'YouTube video player';
iframe.frameBorder = '0';
iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
iframe.referrerPolicy = 'strict-origin-when-cross-origin';
iframe.allowFullscreen = true;
iframe.style.maxWidth = '100%';
iframe.style.height = 'auto';
iframe.style.aspectRatio = '16 / 9';
// Replace element
element.parentNode.replaceChild(iframe, element);
}
var currentLang = getCurrentLang();
// Only process if language is found
if (currentLang) {
// 100ms delay before waiting for elements
setTimeout(function() {
// Wait for any video element to appear
utils.waitForElement('section div > div.wt-youtube-player’).then(function() {
// Once at least one exists, get all video elements
var videoElements = document.querySelectorAll(‘section div > div.wt-youtube-player’);
// Process each video element
videoElements.forEach(function(element, index) {
if (index < videosByIndex.length && videosByIndex[index].videos[currentLang]) {
replaceVideo(element, videosByIndex[index].videos[currentLang]);
console.log('Replaced video #' + (index + 1) + ' with ' + currentLang + ' version');
}
});
});
}, 100);
} else {
console.warn('No supported language detected in URL');
}
}, "dependencies": []}]}]}], "weightDistributions": null, "name": "P - AI Engineers LP - Localized Videos - JS-23185", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5766402494169088"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4527233025441792"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5813139040632832", "name": "AB - AI Chatbot - Support Sales - JS-23244", "commitId": "6500675236921344", "groupId": null, "holdback": 6000, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160", "6008766089396224"], "audienceName": "All visitors - Desktop/Laptop,Un-restricted Countries - JS-23037", "changes": null, "id": "5250189087211520", "integrationSettings": null, "variations": [{"id": "5256212522991616", "name": "Original", "actions": [{"viewId": "5243769935626240", "changes": [{"id": "A80DF905-58FF-4A57-A662-C8E1C3994A8E", "type": "redirect", "dependencies": [], "dest": "https://www.jetbrains.com/support/sales/?var=1", "preserveParameters": true, "allowAdditionalRedirect": false}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "96F8480A-1299-433C-855E-F5A438EBC224", "selector": "div.rw-widget-container"}]}]}], "weightDistributions": null, "name": "AB - AI Chatbot - Support Sales - JS-23244", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5813139040632832"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5243769935626240"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5864286682087424", "name": "P - PyCharm - Anaconda - JS-21570", "commitId": "4921172639350784", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "6521933257244672", "integrationSettings": null, "variations": [{"id": "4724774883033088", "name": "Original", "actions": [{"viewId": "5715952269000704", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "
“}, “type”: “attribute”, “id”: “499D2EA2-03EC-4A6A-BF6F-45AB037B3DAC”, “selector”: “[data-js-crawler=’content-root’] > div > section > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1)”}]}]}], “weightDistributions”: null, “name”: “P – PyCharm – Anaconda – JS-21570”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5864286682087424”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5715952269000704”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “5999460124196864”, “name”: “Redirect – AI IDEs – FAQ”, “commitId”: “5865039056338944”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5506294010871808”, “integrationSettings”: null, “variations”: [{“id”: “5052698689536000”, “name”: “Original”, “actions”: [{“viewId”: “5341189277220864”, “changes”: [{“id”: “AB7165E1-36BB-4245-860B-A7C2D25C1D7F”, “type”: “redirect”, “dependencies”: [], “dest”: “https://lp.jetbrains.com/ai-ides-faq/”, “preserveParameters”: true, “allowAdditionalRedirect”: false}]}]}], “weightDistributions”: null, “name”: “Redirect – AI IDEs – FAQ”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “5999460124196864”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5341189277220864”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6225533007560704”, “name”: “Banner – CodeCanvas – Remote Dev – JS-21399”, “commitId”: “4875890923405312”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5156076805947392”, “integrationSettings”: null, “variations”: [{“id”: “6150589703782400”, “name”: “Original”, “actions”: [{“viewId”: “4675419315109888”, “changes”: [{“id”: “66FDEF2D-E80D-48A6-948F-9B3C51D4CA92”, “src”: “/actions/8254453ab7f25bdac79fbdbb7df95f221b822092f7baefc55651685a3fba3ba5.js”, “dependencies”: [], “type”: “widget”}, {“id”: “29EC2434-81BA-4B56-AE00-0D89511BA9D3”, “src”: “/actions/8254453ab7f25bdac79fbdbb7df95f221b822092f7baefc55651685a3fba3ba5.js”, “dependencies”: [“66FDEF2D-E80D-48A6-948F-9B3C51D4CA92”], “type”: “attribute”}]}]}], “weightDistributions”: null, “name”: “Banner – CodeCanvas – Remote Dev – JS-21399”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6225533007560704”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4675419315109888”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6446015012667392”, “name”: “Banner – AI – 50% discount – store – JS-21748”, “commitId”: “6348910902378496”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: [“and”, “28658270038”], “audienceName”: “ncountryCodeCookie – CN”, “changes”: null, “id”: “5038640129114112”, “integrationSettings”: null, “variations”: [{“id”: “6233946707460096”, “name”: “Original”, “actions”: [{“viewId”: “4708090688307200”, “changes”: [{“id”: “94d8cd94dbf2443db6de3dbd16ffc7bd”, “src”: “/actions/27513111153d3cb752a7bcf67c29cd95220ab763e17a5a005366ccaa57246b6a.js”, “dependencies”: [], “type”: “custom_code”}, {“id”: “42b3f37d3bc74702836a502c86d1b432”, “src”: “/actions/27513111153d3cb752a7bcf67c29cd95220ab763e17a5a005366ccaa57246b6a.js”, “dependencies”: [], “type”: “custom_css”}, {“id”: “3aa6cc8c286a42a8b92bddc31f03deb1”, “src”: “/actions/27513111153d3cb752a7bcf67c29cd95220ab763e17a5a005366ccaa57246b6a.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – AI – 50% discount – store – JS-21748”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6446015012667392”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4708090688307200”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6450491966619648”, “name”: “P – MPS – Remix – JS-xxxx”, “commitId”: “5140939258200064”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5037981107486720”, “integrationSettings”: null, “variations”: [{“id”: “6595573613068288”, “name”: “Original”, “actions”: [{“viewId”: “6310681876627456”, “changes”: [{“id”: “34649B4A-3FE0-4190-8786-7D4D5A763749”, “type”: “attribute”, “dependencies”: [], “name”: “”, “selector”: “.header-section__button._sizeL_1coqd7n_29.wt-offset-top-sm-16”, “attributes”: {“html”: “\n\n Watch Video\n“}, “css”: {“background-color”: “rgba(247, 51, 5, 1)”}}, {“id”: “D6613B04-CF9A-4302-A5C2-51C76B60DBE8”, “type”: “attribute”, “dependencies”: [], “name”: “”, “selector”: “body > div > div > section > div > div > div > a[data-test=’button’]”, “attributes”: {“html”: “\n Download\n“}, “css”: {“background-color”: “rgba(36, 255, 4, 1)”}}, {“id”: “F3B468BA-45D4-4291-A3BD-A8DD54F344A6”, “type”: “attribute”, “dependencies”: [], “name”: “”, “selector”: “body > div > div > section > div:nth-of-type(2) > p:nth-of-type(1)”, “attributes”: {“html”: “Optimizely”}, “css”: {}}, {“id”: “D598D767-B23D-4EB3-B0B5-CBFCAC65BEF9”, “type”: “attribute”, “dependencies”: [], “name”: “”, “selector”: “body > div > div > section > div > h1”, “attributes”: {“html”: “Optimizely”}, “css”: {}}, {“id”: “E01C196A-B361-46BD-8647-CF4DEC2415A8”, “type”: “attribute”, “dependencies”: [], “name”: “”, “selector”: “body > div > div > section:nth-of-type(2) > div > h2”, “attributes”: {“html”: “Why Optimizely”}, “css”: {}}, {“id”: “38166FD2-CBA0-4051-B0C9-6D66D1393831”, “type”: “append”, “dependencies”: [], “name”: “”, “selector”: “body > div > div > section > div:nth-of-type(2) > div:nth-of-type(2)”, “value”: “\n Download\n\n“, “operator”: “after”}]}]}], “weightDistributions”: null, “name”: “P – MPS – Remix – JS-xxxx”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6450491966619648”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6310681876627456”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6460172206342144”, “name”: “Banner – WebStorm – Overview – WebStorm 2010”, “commitId”: “5219351859560448”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “5957089684619264”, “integrationSettings”: null, “variations”: [{“id”: “6030104246091776”, “name”: “Original”, “actions”: [{“viewId”: “4850320484859904”, “changes”: [{“id”: “F0BA489B-E441-4F20-B726-8AD9697A716D”, “src”: “/actions/a2daf73555a93fe306171a05d2dbe6c6d42a27890c82a92ac0e1a3865c425e5a.js”, “dependencies”: [], “type”: “custom_code”}, {“css”: {}, “dependencies”: [], “attributes”: {}, “type”: “attribute”, “id”: “2EDFBE42-EDA5-4E95-A302-9B1360A3120B”, “selector”: “.toggle-container”}]}]}], “weightDistributions”: null, “name”: “Banner – WebStorm – Overview – WebStorm 2010”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6460172206342144”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“4850320484859904”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6502706039226368”, “name”: “Redirect – Careers – Jobs – 404 – JS-22897”, “commitId”: “5735298630418432”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “4537471006932992”, “integrationSettings”: null, “variations”: [{“id”: “5197766897434624”, “name”: “Original”, “actions”: [{“viewId”: “5376806132383744”, “changes”: [{“id”: “4BCD6B31-A550-4E6E-8DF2-CFEDF1E8EE18”, “type”: “redirect”, “dependencies”: [], “dest”: “https://www.jetbrains.com/careers/jobs/”, “preserveParameters”: true, “allowAdditionalRedirect”: false}]}]}], “weightDistributions”: null, “name”: “Redirect – Careers – Jobs – 404 – JS-22897”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6502706039226368”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5376806132383744”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6506837609021440”, “name”: “P – PhpStorm – /phpstorm/laravel/ – JS-22212”, “commitId”: “6332077134577664”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “6207977263202304”, “integrationSettings”: null, “variations”: [{“id”: “6127961766625280”, “name”: “Original”, “actions”: [{“viewId”: “6343240157233152”, “changes”: [{“id”: “ed8797a6ca0c4c21998b972f120c3622”, “type”: “custom_code”, “value”: function($){var optiUtils = window[“optimizely”].get(“utils”);
var startTime = Date.now();
var cancelPolling = optiUtils.poll(function() {
var element = document.querySelector(‘a.menu-second__download-button[href*=”/phpstorm/download/”]’);
if (element) {
var location = window.location.href;
var langMatch = location.match(/\/([a-z]{2}-[a-z]{2})\//);
var langPrefix = langMatch ? ‘/’ + langMatch[1] : ”;
element.href = langPrefix + “/phpstorm/laravel/#offer”;
}
if (Date.now() – startTime > 10000) {
cancelPolling();
}
}, 200);
}, “dependencies”: []}]}]}], “weightDistributions”: null, “name”: “P – PhpStorm – /phpstorm/laravel/ – JS-22212”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6506837609021440”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“6343240157233152”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}, {“changes”: null, “id”: “6716398269890560”, “name”: “Banner – Space – Space Pivot – JS-21677”, “commitId”: “5568270003077120”, “groupId”: null, “holdback”: 0, “activation”: {}, “integrationSettings”: {“google_analytics_4”: {“is_using_gtm”: “on”}, “26667870446”: {}}, “integrationStringVersion”: 2, “experiments”: [{“audienceIds”: null, “audienceName”: “Everyone else”, “changes”: null, “id”: “6066088748777472”, “integrationSettings”: null, “variations”: [{“id”: “5418648131600384”, “name”: “Original”, “actions”: [{“viewId”: “5489087541411840”, “changes”: [{“id”: “2e49ad12c4f14d31a98b52e535f8cfc4”, “type”: “custom_code”, “value”: function($){// Retrieve the utils library
/*
var utils = window[“optimizely”].get(“utils”);
utils.waitForElement(“#optly-link”).then(function (bannerElement) {
var location = window.location.href;
if (location.includes(“/zh-cn/”)) {
bannerElement.innerHTML =
“Space 即将更名为 SpaceCode,侧重于 Git 托管和代码审查。了解详情 →”;
}
if (location.includes(“/de-de/”)) {
bannerElement.innerHTML =
“Space wird zu SpaceCode, mit dem Schwerpunkt Git-Hosting und Code-Reviews. Mehr erfahren →”;
}
if (location.includes(“/fr-fr/”)) {
bannerElement.innerHTML =
“Space devient SpaceCode et est axé sur l’hébergement Git et les révisions de code. En savoir plus →”;
}
if (location.includes(“/ja-jp/”)) {
bannerElement.innerHTML =
“Space は Git ホスティングとコードレビューに特化した SpaceCode に生まれ変わります。詳細 →”;
}
if (location.includes(“/ko-kr/”)) {
bannerElement.innerHTML =
“Space가 Git 호스팅 및 코드 검토에 초점을 둔 SpaceCode로 변경됩니다. 자세히 알아보기 →”;
}
if (location.includes(“/pt-br/”)) {
bannerElement.innerHTML =
“O Space está mudando para SpaceCode, com foco em hospedagem de Git e revisões de código. Saiba mais →”;
}
if (location.includes(“/es-es/”)) {
bannerElement.innerHTML =
“Space pasa a ser SpaceCode para centrarse en el alojamiento Git y las revisiones de código. Más información →”;
}
if (location.includes(“/ru-ru/”)) {
bannerElement.innerHTML =
“Space меняет направление развития и трансформируется в SpaceCode — решение для Git-хостинга и ревью кода. Подробнее →”;
}
});
*/
}, “dependencies”: []}, {“id”: “b9d95865efc54a908544b81b180b9495”, “src”: “/actions/dddb5b8654be558d73b61338691e47180cee540ddbd826bd9ef989f231a53440.js”, “dependencies”: [], “type”: “widget”}]}]}], “weightDistributions”: null, “name”: “Banner – Space – Space Pivot – JS-21677”, “bucketingStrategy”: null, “experimentMetadata”: {“allocationPolicy”: “manual”, “layerId”: “6716398269890560”}, “deployed”: false}], “policy”: “single_experiment”, “viewIds”: [“5489087541411840”], “weightDistributions”: null, “decisionMetadata”: null, “concluded”: false}], “groups”: [], “audiences”: [{“id”: “27453331160”, “name”: “All visitors – Desktop/Laptop”, “conditions”: [“and”, [“or”, [“or”, {“match”: null, “name”: null, “type”: “device”, “value”: “desktop”}]]]}, {“id”: “27655370007”, “name”: “ncountryCodeCookie – JS-19827”, “conditions”: [“and”, [“or”, [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “CN”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “XK”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “VE”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “RU”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “BY”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “MO”}], [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “HK”}]]]}, {“id”: “28658270038”, “name”: “ncountryCodeCookie – CN”, “conditions”: [“and”, [“or”, [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “CN”}]]]}, {“id”: “4857767916208128”, “name”: “Location – Western Europe – JS-21824”, “conditions”: [“and”, [“or”, [“or”, {“match”: null, “name”: null, “type”: “location”, “value”: “BE”}, {“match”: null, “name”: null, “type”: “location”, “value”: “FR”}, {“match”: null, “name”: null, “type”: “location”, “value”: “LU”}, {“match”: null, “name”: null, “type”: “location”, “value”: “IE”}, {“match”: null, “name”: null, “type”: “location”, “value”: “MC”}, {“match”: null, “name”: null, “type”: “location”, “value”: “NL”}, {“match”: null, “name”: null, “type”: “location”, “value”: “GB”}, {“match”: null, “name”: null, “type”: “location”, “value”: “AD”}, {“match”: null, “name”: null, “type”: “location”, “value”: “PT”}, {“match”: null, “name”: null, “type”: “location”, “value”: “ES”}]]]}, {“id”: “6008766089396224”, “name”: “Un-restricted Countries – JS-23037”, “conditions”: [“and”, [“or”, [“not”, [“or”, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “CN”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “MO”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “HK”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “VE”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “RU”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “BY”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “XK”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “AX”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “AS”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “AI”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “AW”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “BM”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “IO”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “VG”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “MM”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “CV”}, {“match”: “exact”, “name”: “ncountryCodeCookie”, “type”: “cookies”, “value”: “UA”}]]], [“or”, [“not”, [“or”, {“match”: null, “name”: null, “type”: “location”, “value”: “CN”}, {“match”: null, “name”: null, “type”: “location”, “value”: “MO||MACAO”}, {“match”: null, “name”: null, “type”: “location”, “value”: “HK”}, {“match”: null, “name”: null, “type”: “location”, “value”: “VE”}, {“match”: null, “name”: null, “type”: “location”, “value”: “RU”}, {“match”: null, “name”: null, “type”: “location”, “value”: “BY”}, {“match”: null, “name”: null, “type”: “location”, “value”: “BA||KOSOVO”}, {“match”: null, “name”: null, “type”: “location”, “value”: “AS”}, {“match”: null, “name”: null, “type”: “location”, “value”: “AI”}, {“match”: null, “name”: null, “type”: “location”, “value”: “AW”}, {“match”: null, “name”: null, “type”: “location”, “value”: “BM”}, {“match”: null, “name”: null, “type”: “location”, “value”: “IO”}, {“match”: null, “name”: null, “type”: “location”, “value”: “VG”}, {“match”: null, “name”: null, “type”: “location”, “value”: “MM”}, {“match”: null, “name”: null, “type”: “location”, “value”: “CV”}, {“match”: null, “name”: null, “type”: “location”, “value”: “UA”}]]]]}], “listTargetingKeys”: [], “visitorAttributes”: [], “visitorIdLocator”: null, “integrationSettings”: [{“id”: “google_analytics_4”, “global_is_use_gtm”: “on”}], “views”: [{“id”: “27443960928”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo_4”, “name”: “URL Targeting for P – DataGrip – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/datagrip/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27499810022”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_youtrack_test”, “name”: “URL Targeting for P – YouTrack – Dynamic competitive titles – MKT-29028”, “staticConditions”: [“and”, [“or”, {“match”: “substring”, “type”: “url”, “value”: “/youtrack/compare/youtrack-competitive-offer/”}], [“or”, {“match”: “substring”, “type”: “url”, “value”: “adgroup”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: []}, {“id”: “27536390632”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_p_clion_promo”, “name”: “URL Targeting for P – CLion – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/clion/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27541060863”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo_2”, “name”: “URL Targeting for P – RubyMine – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/ruby/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27570340631”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_p__resharper__promo”, “name”: “URL Targeting for P – ReSharper – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/resharper/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27578240316”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo_3”, “name”: “URL Targeting for P – PhpStorm – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/phpstorm/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27604020182”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo_5”, “name”: “URL Targeting for P – Rider – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/rider/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27615930076”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_p__youtrack__jetbrains_ai_banner__”, “name”: “URL Targeting for Banner – YouTrack – JetBrains AI Banner – JS-19827”, “staticConditions”: [“and”, [“or”, {“match”: “regex”, “type”: “url”, “value”: “https:\\/\\/www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?youtrack\\/”}, {“match”: “regex”, “type”: “url”, “value”: “https:\\/\\/www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?youtrack\\/features\\/ai_assistant\\.html”}]], “deactivationEnabled”: true, “undoOnDeactivation”: false, “tags”: [], “activationType”: “callback”, “activationCode”: function callbackFn(activate, options) {
window.addEventListener(‘banner-rotator-initialized’, function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {“id”: “27622100054”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo”, “name”: “URL Targeting for P – IntelliJ IDEA – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/idea/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27678070009”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_copy_of_p__template__promo_6”, “name”: “URL Targeting for P – ReSharper C++ – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/resharper-cpp/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27711390043”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_p__goland__promo_7”, “name”: “URL Targeting for P – GoLand – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/go/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27717330076”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_p_webstorm_promo”, “name”: “URL Targeting for P – WebStorm – /promo/”, “staticConditions”: [“and”, [“or”, {“match”: “simple”, “type”: “url”, “value”: “https://www.jetbrains.com/webstorm/promo/”}]], “deactivationEnabled”: false, “undoOnDeactivation”: false, “tags”: [], “activationType”: “dom_changed”}, {“id”: “27814210327”, “category”: “other”, “apiName”: “26613100737_url_targeting_for_banner__sales__ru__js17442”, “name”: “URL Targeting for Banner – Sales – RU – JS-17442”, “staticConditions”: [“or”, [“or”, {“match”: “substring”, “type”: “url”, “value”: “https://www.jetbrains.com/ru-ru/”}], [“or”, {“type”: “custom_code”, “value”: function jsCondition() {
function getCookie(name) {
var cookies = document.cookie.split(‘; ‘);
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i].split('=');
if (cookie[0] === name) {
return cookie[1];
}
}
return null;
}
var ncountryCodeCookie = getCookie("ncountryCodeCookie");
if (ncountryCodeCookie && ncountryCodeCookie === 'RU') {
return true;
} else {
return false;
}
}
}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
window.addEventListener('banner-rotator-initialized', function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {"id": "28239310449", "category": "other", "apiName": "26613100737_url_targeting_for_p__teamcity__pipelines__js19936", "name": "URL Targeting for P - TeamCity - Pipelines - Product Hunt - JS-19936", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/teamcity/pipelines/"}], ["or", {"match": "substring", "type": "url", "value": "www.jetbrains.com"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "28382850574", "category": "other", "apiName": "26613100737_url_targeting_for_banner__fleet__early_preview__js20", "name": "URL Targeting for Banner - Fleet - Early Preview - JS-20123", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/fleet/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
window.addEventListener('banner-rotator-initialized', function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {"id": "28430050695", "category": "other", "apiName": "26613100737_pycharm_download_downloadthanks", "name": "pycharm_download_download-thanks", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28468080498", "category": "other", "apiName": "26613100737_pycharm_download_downloadthanks_professional", "name": "pycharm_download_download-thanks_professional", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}], ["not", ["or", {"match": "substring", "type": "url", "value": "code=PCC"}]]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28519850167", "category": "other", "apiName": "26613100737_pycharm_download_downloadthankshtml_community", "name": "pycharm_download_download-thanks.html_community", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}], ["or", {"match": "substring", "type": "url", "value": "code=PCC"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28579210417", "category": "other", "apiName": "26613100737_url_targeting_for_banner__jetbrains_ai__china__js200", "name": "Banner - JetBrains AI - China - JS-20099", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/webstorm/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/datagrip/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/idea/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/ruby/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/pycharm/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/clion/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/go/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/rider/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/resharper/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/resharper-cpp/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/phpstorm/whatsnew/"}], ["or", {"match": "regex", "type": "url", "value": "https://www.jetbrains.com/(zh-cn/)?(webstorm|datagrip|idea|ruby|pycharm|clion|go|rider|resharper|resharper-cpp|phpstorm|grazie)/$"}], ["or", {"match": "substring", "type": "url", "value": "/ai/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
window.addEventListener('banner-rotator-initialized', function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {"id": "28980690957", "category": "other", "apiName": "26613100737_url_targeting_for_p__qodana__dynamic_page_titles__dm", "name": "URL Targeting for P - Qodana - Dynamic page titles - DM-4589", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/qodana/"}], ["or", {"match": "substring", "type": "url", "value": "adgroup"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "29000310062", "category": "other", "apiName": "26613100737_url_targeting_for_p__rider__jetasteroids__jsxxxx", "name": "URL Targeting for P - Rider - JetAsteroids - JS-xxxx", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/asteroid-game-challenge/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "29398690450", "category": "other", "apiName": "26613100737_url_targeting_for_p__easter_eggs__js20056", "name": "URL Targeting for P - Easter Eggs - JS-20056", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/ides/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/phpstorm/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "29423970375", "category": "other", "apiName": "26613100737_url_targeting_go_footer", "name": "URL Targeting for P - GoLand - Footer - JS-20234", "staticConditions": ["or", ["or", {"match": "exact", "type": "url", "value": "https://www.jetbrains.com/go/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "30039601521", "category": "other", "apiName": "26613100737_url_targeting_for_banner__country_suggest__china__js", "name": "URL Targeting for Banner - Country Suggest - China - JS-21049", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://account.jetbrains.com/login"}], ["or", {"match": "substring", "type": "url", "value": "var=test"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "30417121013", "category": "other", "apiName": "26613100737_url_targeting_for_p__ai_assistant__trial_30day__js20", "name": "URL Targeting for P - AI Assistant - Trial 30-day - JS-20804", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/"}], ["or", {"match": "substring", "type": "url", "value": "/ai/"}], ["or", {"match": "substring", "type": "url", "value": "utm_medium=link"}], ["or", {"match": "substring", "type": "url", "value": "utm_source=product"}], ["or", {"match": "regex", "type": "url", "value": "(.*)utm_campaign=(PS|PY|PC)(.*)"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "30521300045", "category": "other", "apiName": "26613100737_url_targeting_for_p__ai_assistant__social_share_imag", "name": "URL Targeting for P - AI Assistant - Social Share Image - JS-21360", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/zh-cn/ai/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4527153153310720", "category": "other", "apiName": "26613100737_url_targeting_for_ab_test__ai_chatbot__support__js23", "name": "URL Targeting for AB - AI Chatbot - Support - JS-23037", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/support/"}], ["not", ["or", {"match": "substring", "type": "url", "value": "var=1"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4527233025441792", "category": "other", "apiName": "26613100737_url_targeting_for_p__ai_engineers_lp__localized_vide", "name": "URL Targeting for P - AI Engineers LP - Localized Videos - JS-23185", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://lp.jetbrains.com/"}, {"match": "substring", "type": "url", "value": "/pycharm-for-ai-engineers/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "4675419315109888", "category": "other", "apiName": "26613100737_url_targeting_for_banner__codecanvas__remote_dev__js", "name": "URL Targeting for Banner - CodeCanvas - Remote Dev - JS-21399", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/remote-development/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
window.addEventListener('banner-rotator-initialized', function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {"id": "4708090688307200", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__ai__50_discount__j", "name": "URL Targeting for Banner - AI - 50% discount - store - JS-21748", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/store/"}, {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/zh-cn/store/"}], ["or", {"match": "substring", "type": "url", "value": "section=personal"}]], "deactivationEnabled": true, "undoOnDeactivation": false, "tags": [], "activationType": "url_changed"}, {"id": "4763056236920832", "category": "other", "apiName": "26613100737_url_targeting_for_banner__ai__50_discount__js21748", "name": "URL Targeting for Banner - AI - 50% discount - JS-21748", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/ai/"}, {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/zh-cn/ai/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": [], "activationType": "dom_changed"}, {"id": "4850320484859904", "category": "other", "apiName": "26613100737_url_targeting_for_banner__webstorm__overview__websto", "name": "URL Targeting for Banner - WebStorm - Overview - WebStorm 2010", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/webstorm/"}], ["or", {"match": "substring", "type": "url", "value": "var=new"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4857308845441024", "category": "other", "apiName": "26613100737_url_targeting_for_p__learn__hide_twitter_widget__js2", "name": "URL Targeting for P - Learn - Hide Twitter Widget - JS-23227", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/resources/"}], ["or", {"match": "substring", "type": "url", "value": "/learn/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5175064799215616", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__youtrack__legal_te", "name": "URL Targeting for Banner - YouTrack - Legal Teams Event - AgiLawer - JS-21824", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/youtrack/teams/legal.html"}]], "deactivationEnabled": true, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
window.addEventListener('banner-rotator-initialized', function(event) {
var rotatorBanners = event.detail.banners;
if (rotatorBanners.length === 0) {
activate();
}
});
}
}, {"id": "5243769935626240", "category": "other", "apiName": "26613100737_url_targeting_for_ab__ai_chatbot__support_sales", "name": "URL Targeting for AB - AI Chatbot - Support Sales - JS-23244", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/support/sales/"}], ["not", ["or", {"match": "substring", "type": "url", "value": "var=1"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5341189277220864", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__ai_ides__faq", "name": "URL Targeting for Redirect - AI IDEs - FAQ", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "www.jetbrains.com"}], ["or", {"match": "substring", "type": "url", "value": "/ai-ides-faq/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5365298967085056", "category": "other", "apiName": "26613100737_url_targeting_for_p__community_education__redirect__", "name": "URL Targeting for P - Community Education - Redirect - JS-21676", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/community/education/"}], ["or", {"match": "substring", "type": "url", "value": "#courses"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "url_changed"}, {"id": "5376806132383744", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__careers__jobs__404__js22", "name": "URL Targeting for Redirect - Careers - Jobs - 404 - JS-22897", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/careers/jobs/"}], ["or", {"type": "custom_code", "value": function jsCondition() {
return document.title.includes('404');
}
}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "5489087541411840", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__space__space_pivot", "name": "URL Targeting for Banner - Space - Space Pivot - JS-21677", "staticConditions": ["or", ["or", {"match": "regex", "type": "url", "value": "https://www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?space\\/"}, {"match": "substring", "type": "url", "value": "/space/features/code-reviews.html"}, {"match": "substring", "type": "url", "value": "/space-source-code-management/"}, {"match": "substring", "type": "url", "value": "/space/learn/"}, {"match": "substring", "type": "url", "value": "/space/download/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "5497595477360640", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__codecanvas__contactsales", "name": "URL Targeting for Redirect - CodeCanvas - #contact-sales - JS-22484", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/codecanvas/"}], ["or", {"match": "substring", "type": "url", "value": "#contact-sales"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5685229243858944", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__jetbrains_ai__chin", "name": "URL Targeting for Banner - JetBrains AI - /aia-vscode/ - JS-22515", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/zh-cn/aia-vscode/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "5713463216439296", "category": "other", "apiName": "26613100737_url_targeting_for_banner__ai_assistant__eap__js21320", "name": "URL Targeting for Banner - AI Assistant - EAP - JS-21320", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/nextversion/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/idea/nextversion/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5715952269000704", "category": "other", "apiName": "26613100737_url_targeting_for_p__pycharm__anaconda__js21570", "name": "URL Targeting for P - PyCharm - Anaconda - JS-21570", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com"}], ["or", {"match": "substring", "type": "url", "value": "var=anaconda"}], ["or", {"match": "substring", "type": "url", "value": "/pycharm/data-science/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5878715926708224", "category": "other", "apiName": "26613100737_go_extendtrial", "name": "go_extend-trial", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/buy/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6088001659338752", "category": "other", "apiName": "26613100737_url_targeting_for_p__junie__easter_egg_snake__js2324", "name": "URL Targeting for P - Junie - Easter Egg Snake - JS-23240", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6310681876627456", "category": "other", "apiName": "26613100737_url_targeting_for_p__mps__remix__jsxxxx", "name": "URL Targeting for P - MPS - Remix - JS-xxxx", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://entry.i18n.w3jbcom.aws.intellij.net/mps/"}], ["or", {"match": "substring", "type": "url", "value": "var=1"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6343240157233152", "category": "other", "apiName": "26613100737_url_targeting_for_of_p__phpstorm__laravel__js20", "name": "URL Targeting for P - PhpStorm - /phpstorm/laravel/ - JS-22212", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/phpstorm/laravel/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6363071300501504", "category": "other", "apiName": "26613100737_url_targeting_for_banner__jetbrains_ai__china__js225", "name": "URL Targeting for Banner - JetBrains AI - China - JS-22515", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/whatsnew/"}, {"match": "substring", "type": "url", "value": "/ai/"}, {"match": "substring", "type": "url", "value": "/store/"}, {"match": "substring", "type": "url", "value": "/buy/"}, {"match": "substring", "type": "url", "value": "/junie/"}], ["not", ["or", {"match": "regex", "type": "url", "value": "(youtrack|teamcity|space|qodana|datalore|codecanvas)"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6413074316394496", "category": "other", "apiName": "26613100737_url_targeting_for_banner__rider__xamarin__js22033", "name": "URL Targeting for Banner - Rider - Xamarin - JS-22033", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/lp/rider-xamarin/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6482886308659200", "category": "other", "apiName": "26613100737_url_targeting_for_p__vision__git_client__download_li", "name": "URL Targeting for P - Vision - Git Client - Download links - JS-23042 ", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/download-git-client/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6580850469371904", "category": "other", "apiName": "26613100737_url_targeting_for_p__intellij_conf__sessionize", "name": "URL Targeting for P - IntelliJ Conf - Sessionize", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://internal.vision.jetbrains.dev/ijconf-2025/agenda/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6693701808816128", "category": "other", "apiName": "26613100737_datalore", "name": "datalore", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/datalore/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}], "events": [{"id": "26590800666", "viewId": null, "name": "download_edu-products", "category": "other", "apiName": "download_edu-products", "eventType": "custom", "eventFilter": null}, {"id": "26592110684", "viewId": null, "name": "download_dottool", "category": "other", "apiName": "download_dottool", "eventType": "custom", "eventFilter": null}, {"id": "26597440531", "viewId": null, "name": "download_goland", "category": "other", "apiName": "download_goland", "eventType": "custom", "eventFilter": null}, {"id": "26612150686", "viewId": null, "name": "download_dotultimate", "category": "other", "apiName": "download_dotultimate", "eventType": "custom", "eventFilter": null}, {"id": "26643290258", "viewId": null, "name": "download_clion", "category": "other", "apiName": "download_clion", "eventType": "custom", "eventFilter": null}, {"id": "26649870313", "viewId": null, "name": "download_datagrip", "category": "other", "apiName": "download_datagrip", "eventType": "custom", "eventFilter": null}, {"id": "26669570229", "viewId": null, "name": "download_idea", "category": "other", "apiName": "download_idea", "eventType": "custom", "eventFilter": null}, {"id": "26751651737", "viewId": null, "name": "download_webstorm", "category": "other", "apiName": "download_webstorm", "eventType": "custom", "eventFilter": null}, {"id": "26774281056", "viewId": null, "name": "download_rider", "category": "other", "apiName": "download_rider", "eventType": "custom", "eventFilter": null}, {"id": "26790720653", "viewId": null, "name": "download_phpstorm", "category": "other", "apiName": "download_phpstorm", "eventType": "custom", "eventFilter": null}, {"id": "26798020769", "viewId": null, "name": "download_pycharm", "category": "other", "apiName": "download_pycharm", "eventType": "custom", "eventFilter": null}, {"id": "26828020330", "viewId": null, "name": "download_teamcity", "category": "other", "apiName": "download_teamcity", "eventType": "custom", "eventFilter": null}, {"id": "26865560220", "viewId": null, "name": "download_fleet", "category": "other", "apiName": "download_fleet", "eventType": "custom", "eventFilter": null}, {"id": "26871750180", "viewId": null, "name": "download_resharper", "category": "other", "apiName": "download_resharper", "eventType": "custom", "eventFilter": null}, {"id": "26875270240", "viewId": null, "name": "download_youtrack", "category": "other", "apiName": "download_youtrack", "eventType": "custom", "eventFilter": null}, {"id": "26879760104", "viewId": null, "name": "download_resharper-cpp", "category": "other", "apiName": "download_resharper-cpp", "eventType": "custom", "eventFilter": null}, {"id": "26880700043", "viewId": null, "name": "download_rubymine", "category": "other", "apiName": "download_rubymine", "eventType": "custom", "eventFilter": null}, {"id": "26958950038", "viewId": null, "name": "download_rustrover", "category": "other", "apiName": "download_rustrover", "eventType": "custom", "eventFilter": null}, {"id": "27507701129", "viewId": "27615930076", "name": "click_optly-link", "category": "other", "apiName": "26613100737_click_optlylink", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/legal/docs/terms/jetbrains-ai/service-territory/\"]#optly-link"}}, {"id": "27745650405", "viewId": null, "name": "purchase_CL", "category": "other", "apiName": "purchase_CL", "eventType": "custom", "eventFilter": null}, {"id": "27815840245", "viewId": "27814210327", "name": "click_optly-link", "category": "other", "apiName": "26613100737_click_optlylink_2", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#optly-link"}}, {"id": "27831800237", "viewId": "27499810022", "name": "Click Get it free - YouTrack Compare", "category": "other", "apiName": "26613100737_click_event_for__allowmultiline_1o2xc3v_114", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "._allowMultiline_1o2xc3v_114"}}, {"id": "27938750349", "viewId": null, "name": "purchase_II", "category": "other", "apiName": "purchase_II", "eventType": "custom", "eventFilter": null}, {"id": "27940740483", "viewId": null, "name": "purchase_DS", "category": "other", "apiName": "purchase_DS", "eventType": "custom", "eventFilter": null}, {"id": "27944140319", "viewId": null, "name": "purchase_YT", "category": "other", "apiName": "purchase_YT", "eventType": "custom", "eventFilter": null}, {"id": "27944310293", "viewId": null, "name": "purchase_RD", "category": "other", "apiName": "purchase_RD", "eventType": "custom", "eventFilter": null}, {"id": "27946440347", "viewId": null, "name": "purchase_PS", "category": "other", "apiName": "purchase_PS", "eventType": "custom", "eventFilter": null}, {"id": "27951940287", "viewId": null, "name": "purchase_RM", "category": "other", "apiName": "purchase_RM", "eventType": "custom", "eventFilter": null}, {"id": "27957940509", "viewId": null, "name": "purchase_AIP", "category": "other", "apiName": "purchase_AIP", "eventType": "custom", "eventFilter": null}, {"id": "27965690323", "viewId": null, "name": "purchase_QDU", "category": "other", "apiName": "purchase_QDU", "eventType": "custom", "eventFilter": null}, {"id": "27969350286", "viewId": null, "name": "purchase_TC", "category": "other", "apiName": "purchase_TC", "eventType": "custom", "eventFilter": null}, {"id": "27978560322", "viewId": null, "name": "purchase", "category": "other", "apiName": "purchase", "eventType": "custom", "eventFilter": null}, {"id": "27980910333", "viewId": null, "name": "purchase_RS", "category": "other", "apiName": "purchase_RS", "eventType": "custom", "eventFilter": null}, {"id": "28001970258", "viewId": null, "name": "purchase_GO", "category": "other", "apiName": "purchase_GO", "eventType": "custom", "eventFilter": null}, {"id": "28006640157", "viewId": null, "name": "purchase_DG", "category": "other", "apiName": "purchase_DG", "eventType": "custom", "eventFilter": null}, {"id": "28033690148", "viewId": null, "name": "purchase_WS", "category": "other", "apiName": "purchase_WS", "eventType": "custom", "eventFilter": null}, {"id": "28034840034", "viewId": null, "name": "purchase_PC", "category": "other", "apiName": "purchase_PC", "eventType": "custom", "eventFilter": null}, {"id": "28039930057", "viewId": null, "name": "purchase_ALL", "category": "other", "apiName": "purchase_ALL", "eventType": "custom", "eventFilter": null}, {"id": "28072990007", "viewId": null, "name": "purchase_DUL", "category": "other", "apiName": "purchase_DUL", "eventType": "custom", "eventFilter": null}, {"id": "28198870540", "viewId": "28239310449", "name": "click_get-started", "category": "other", "apiName": "26613100737_click_getstarted", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href^=\"http://authservice.core.teamcity.com\"]"}}, {"id": "28367230507", "viewId": "28382850574", "name": "click_optly-link", "category": "other", "apiName": "26613100737_click_optlylink_4", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#optly-link"}}, {"id": "28371160599", "viewId": null, "name": "Visit Page: go", "category": "other", "apiName": "visit_page_go", "eventType": "custom", "eventFilter": null}, {"id": "28411880197", "viewId": "28239310449", "name": "click_product-hunt", "category": "other", "apiName": "26613100737_click_producthunt_2", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href^=\"https://www.producthunt.com\"]"}}, {"id": "29031250005", "viewId": "29000310062", "name": "click_canvas", "category": "other", "apiName": "26613100737_click_canvas", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#jetbrains-asteroid-game"}}, {"id": "29268140193", "viewId": "28980690957", "name": "click_try_for_free", "category": "other", "apiName": "26613100737_click_try_for_free", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"qodana.cloud/onboarding\"]"}}, {"id": "29384840127", "viewId": null, "name": "Visit Page: Space", "category": "other", "apiName": "visit_page_space", "eventType": "custom", "eventFilter": null}, {"id": "29416370517", "viewId": "29398690450", "name": "click_php_animation", "category": "other", "apiName": "26613100737_click_php_animation", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".phpstorm-ready-section__card_php"}}, {"id": "29438790277", "viewId": "29398690450", "name": "click_idesstandout_animation", "category": "other", "apiName": "26613100737_click_idesstandout_animation", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#trial .animation-starter"}}, {"id": "29446100341", "viewId": "29398690450", "name": "click_video_animation", "category": "other", "apiName": "26613100737_click_video_animation", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".wt-youtube-player"}}, {"id": "29454610147", "viewId": "29398690450", "name": "click_wizardry_animation", "category": "other", "apiName": "26613100737_click_wizardry_animation", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".wizardry-starter"}}, {"id": "29477150200", "viewId": "29398690450", "name": "click_ide_animation", "category": "other", "apiName": "26613100737_click_ide_animation", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".rs-h2 > .animation-starter”}}, {“id”: “29586910132”, “viewId”: null, “name”: “consent_analytics_storage”, “category”: “other”, “apiName”: “consent_analytics_storage”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “29608770194”, “viewId”: null, “name”: “select_promotion”, “category”: “other”, “apiName”: “select_promotion”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “29610230195”, “viewId”: null, “name”: “view_promotion”, “category”: “other”, “apiName”: “view_promotion”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “29613510200”, “viewId”: null, “name”: “consent_all”, “category”: “other”, “apiName”: “consent_all”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “29631030117”, “viewId”: null, “name”: “consent_ad_storage”, “category”: “other”, “apiName”: “consent_ad_storage”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “29655510005”, “viewId”: null, “name”: “consent_personalization_storage”, “category”: “other”, “apiName”: “consent_personalization_storage”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “30003550463”, “viewId”: null, “name”: “purchase_PLARAVEL”, “category”: “other”, “apiName”: “purchase_PLARAVEL”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “4571392339869696”, “viewId”: “6413074316394496”, “name”: “click_optly-link_rider-xamarin”, “category”: “other”, “apiName”: “26613100737_click_optlylink_riderxamarin”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “#optly-banner-JS-22033 > p > a”}}, {“id”: “4802221548765184”, “viewId”: null, “name”: “get-in-touch_datalore”, “category”: “other”, “apiName”: “get-in-touch_datalore”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “4903623277150208”, “viewId”: null, “name”: “download_aia”, “category”: “other”, “apiName”: “download_aia”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “4996359321812992”, “viewId”: “6693701808816128”, “name”: “click_signup_datalore”, “category”: “other”, “apiName”: “26613100737_click_signup_datalore”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “form#datalore-signup [data-test=’submit-button’], a[href*=\”/api/google/\”],a[href*=\”/api/jetbrains/\”],a[href*=\”account.jetbrains.com/signup\”]”}}, {“id”: “5060232951365632”, “viewId”: null, “name”: “scroll”, “category”: “other”, “apiName”: “scroll”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “5140869062328320”, “viewId”: “5243769935626240”, “name”: “click_rw-widget-container”, “category”: “other”, “apiName”: “26613100737_click_rwwidgetcontainer”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “div.rw-widget-container”}}, {“id”: “5278083704422400”, “viewId”: “4527153153310720”, “name”: “click_rw-widget-container_”, “category”: “other”, “apiName”: “26613100737_click_rwwidgetcontainer_”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “div.rw-widget-container”}}, {“id”: “5524137653829632”, “viewId”: null, “name”: “download_product”, “category”: “other”, “apiName”: “download_product”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “5555464673951744”, “viewId”: “4675419315109888”, “name”: “click_optly-link_JS-21399”, “category”: “other”, “apiName”: “26613100737_click_optlylink_js21399”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a#optly-link”}}, {“id”: “5615176045559808”, “viewId”: “4850320484859904”, “name”: “click_toggle-container”, “category”: “other”, “apiName”: “26613100737_click_togglecontainer”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “.toggle-container”}}, {“id”: “5646837047099392”, “viewId”: “6088001659338752”, “name”: “click_button_snake-game-trigger”, “category”: “other”, “apiName”: “26613100737_click_button_snakegametrigger”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “button.snake-game-trigger, button.snake-game-trigger > *”}}, {“id”: “5659462745194496”, “viewId”: “6693701808816128”, “name”: “click_get-demo_datalore”, “category”: “other”, “apiName”: “26613100737_click_getdemo_datalore”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a[href^=\”/datalore/get-in-touch/\”]”}}, {“id”: “5732817699602432”, “viewId”: “6693701808816128”, “name”: “click_signup_jetbrains_datalore”, “category”: “other”, “apiName”: “26613100737_click_signup_jetbrains_datalore”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a[href*=\”/api/jetbrains/\”]”}}, {“id”: “5765340014051328”, “viewId”: null, “name”: “download_junie”, “category”: “other”, “apiName”: “download_junie”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “5989950544936960”, “viewId”: “5713463216439296”, “name”: “click_optly-banner-JS-21320”, “category”: “other”, “apiName”: “26613100737_click_optlybannerjs21320”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “div#optly-banner-JS-21320”}}, {“id”: “6019085591379968”, “viewId”: “6693701808816128”, “name”: “click_signup_google_datalore”, “category”: “other”, “apiName”: “26613100737_click_signup_google_datalore”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a[href*=\”/api/google/\”]”}}, {“id”: “6302135697014784”, “viewId”: null, “name”: “signup_teamcity_on-prem”, “category”: “other”, “apiName”: “signup_teamcity_on-prem”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “6303895954128896”, “viewId”: “5175064799215616”, “name”: “click_agilawyer-com_partners_jetbrains”, “category”: “other”, “apiName”: “26613100737_click_youtrackforlegalteamsprg_VzPKZB6YhzcZjzUK5WdLv”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a#optly-link[href=\”https://agilawyer.com/partners/jetbrains/\”]”}}, {“id”: “6317077229731840”, “viewId”: null, “name”: “signup_teamcity_cloud”, “category”: “other”, “apiName”: “signup_teamcity_cloud”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “6383419911831552”, “viewId”: null, “name”: “signup_teamcity_pipelines”, “category”: “other”, “apiName”: “signup_teamcity_pipelines”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “6402795805343744”, “viewId”: null, “name”: “purchase_AIPU”, “category”: “other”, “apiName”: “purchase_aipu”, “eventType”: “custom”, “eventFilter”: null}, {“id”: “6574963595935744”, “viewId”: “6693701808816128”, “name”: “click_signup_email_datalore”, “category”: “other”, “apiName”: “26613100737_click_signup_email_datalore”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “form#datalore-signup [data-test=’submit-button’]”}}, {“id”: “6662039309910016”, “viewId”: “5878715926708224”, “name”: “click_extended-trial-go”, “category”: “other”, “apiName”: “26613100737_click_extendedtrialgo”, “eventType”: “click”, “eventFilter”: {“filterType”: “target_selector”, “selector”: “a[href*=\”/shop/eform/extended-trial/go/\”]”}}, {“id”: “6738668065390592”, “viewId”: null, “name”: “signup_teamcity”, “category”: “other”, “apiName”: “signup_teamcity”, “eventType”: “custom”, “eventFilter”: null}], “dimensions”: [{“id”: “26849170434”, “name”: “session_type”, “apiName”: “session_type”, “segmentId”: null}, {“id”: “28101220033”, “name”: “screen_breakpoint”, “apiName”: “screen_breakpoint”, “segmentId”: null}, {“id”: “28253990137”, “name”: “campaign_brand-type”, “apiName”: “campaign_brand-type”, “segmentId”: null}, {“id”: “28769210013”, “name”: “Google Analytics ID”, “apiName”: “ga_id”, “segmentId”: null}, {“id”: “29621180261”, “name”: “country”, “apiName”: “country”, “segmentId”: null}], “projectJS”: function(){var currentDomain = window.location.hostname;
var domainPattern = /^.*\.jetbrains\.(com|dev)$/;
var domainStagingPattern = /^.*\.intellij\.net$/;
var domainLocalPattern = /^localhost$/;
if (domainPattern.test(currentDomain) || domainStagingPattern.test(currentDomain) || domainLocalPattern.test(currentDomain)) {}
else {
window[“optimizely”].push(“disable”);
}
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
‘event’: ‘optimizely_init’
});
}, “plugins”: [function(PluginManager) {
var Hogan=function(t){function r(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=t,r.c=n,r.p=””,r(0)}([function(t,r){function n(t){this.r=t,this.buf=””}function e(t,r){var n;if(r&&”object”==typeof r)if(void 0!==r[t])n=r[t];return n}function i(t){return String(null===t||void 0===t?””:t)}function o(t){return t=i(t),p.test(t)?t.replace(u,”&”).replace(f,”<“).replace(c,”>”).replace(l,”'”).replace(a,”"”):t}t.exports=n,n.prototype={r:function(t,r,n){return””},v:o,t:i,render:function(t,r,n){return this.ri([t],r||{},n)},ri:function(t,r,n){return this.r(t,r,n)},rs:function(t,r,n){var e=t[t.length-1];if(!s(e))return void n(t,r,this);for(var i=0;i=0;c–)if(u=r[c],o=e(t,u),void 0!==o){f=!0;break}if(!f)return i?!1:””;if(!i&&”function”==typeof o)o=this.mv(o,r,n);return o},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf=””,t},mv:function(t,r,n){var e=r[r.length-1],o=t.call(e);if(“function”==typeof o)return this.ct(i(o.call(e)),e,n);else return o}};var u=/&/g,f=//g,l=/’/g,a=/”/g,p=/[&<>“‘]/,s=Array.isArray||function(t){return”[object Array]”===Object.prototype.toString.call(t)}}]);
PluginManager.registerAnalyticsTracker(‘26667870446’, {
preRedirectPolicy: ‘PERSIST_BEFORE_REDIRECT’,
postRedirectPolicy: ‘TRACK_IMMEDIATELY’,
nonRedirectPolicy: ‘TRACK_IMMEDIATELY’,
trackLayerDecision: function(decisionData) {
var extension = decisionData.integrationSettings && decisionData.integrationSettings[‘26667870446’];
if (!extension) {
return;
}
var campaign = {
id: decisionData.layerId,
name: decisionData.layerName,
policy: decisionData.layerPolicy,
integrationStringVersion: decisionData.integrationStringVersion,
};
var campaignId = campaign.id;
var experimentId = decisionData.experimentId;
var variationId = decisionData.variationId;
var isHoldback = decisionData.isLayerHoldback;
extension.$fieldDefaults = [];
(function(widg) {
var i = 0;
var field;
for (; i < widg.$fieldDefaults.length; ++i) {
field = widg.$fieldDefaults[i];
if (!widg.hasOwnProperty(field.name)) {
widg[field.name] = field.default_value;
}
}
})(extension);
var state = window['optimizely'].get('state');
var campaignObject = state.getDecisionObject({'campaignId':campaignId});
if(campaignObject !== null){
var utils = window["optimizely"].get("utils");
utils.waitUntil(function() {
return typeof(clarity) === 'function';
}).then(function() {
//console.log('clarity is finally a function. Sending now.');
clarity("set", "Optimizely", campaignObject.experiment +' - ' + campaignObject.variation);
});
}
},
serializeSettings: JSON.stringify,
deserializeSettings: JSON.parse,
});
PluginManager.registerWidget({
widgetId: '27273030100',
showFn: function(event) {
var $ = window.optimizely.get('jquery');
var widget = event.data.config;
var _template = new Hogan(function(c,p,i) {var t=this;t.b(i=i||"");t.b(" “);return t.fl(); })
widget.$id = “27273030100”;
widget.$instance = event.data.id;
widget.$render = _template.render.bind(_template)
widget.$fieldDefaults = [{“name”:”promotionId”,”default_value”:”JS-1234″},{“name”:”promotionName”,”default_value”:”Rider 50% discount”},{“name”:”promotionCreative”,”default_value”:”🎁 Get 50% OFF Rider”},{“name”:”promotionLink”,”default_value”:”https://www.jetbrains.com/”},{“name”:”insertAfter”,”default_value”:”div.page__header”},{“name”:”positionToInsert”,”default_value”:”afterbegin”}];
(function(widg) {
var i = 0;
var field;
for (; i < widg.$fieldDefaults.length; ++i) {
field = widg.$fieldDefaults[i];
if (!widg.hasOwnProperty(field.name)) {
widg[field.name] = field.default_value;
}
}
})(widget);
widget.$html = _template.render({ widget: widget, extension: widget })
var extension = widget;
widget._styleTag = document.createElement('style');
widget._styleTag.id = 'widget-css-27273030100';
widget._styleTag.innerHTML = '.optly-banner { position: relative; z-index: 100; text-align: center; background-color: #6B57FF; font-family: "JetBrains Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif; font-size: 16px; font-weight: 530; line-height: 24px;}.optly-banner > p { margin: 0 16px; padding: 10px; color: #FFFFFF;}.optly-banner > p > a { padding: 0 4px; color: inherit;}.optly-banner > p > a:hover { padding: 0 4px; text-decoration: underline; color: inherit;}.optly-banner > p > span { justify-content: center; padding: 2px 8px; border: 1px solid #FFF; border-radius: 4px; letter-spacing: 0.058px; font-size: 13px; font-weight: 400;}.optly-banner > p > button { position: absolute; top: 6px; right: 0; float: right; width: 32px; height: 32px; margin-right: 14px; border: none; cursor: pointer; color: inherit; background-color: transparent; font-size: 24px;}/* banners.pcss */._academy-banner-optly,._dot-memory-banner-optly,._dottrace-banner-optly,._fleet-banner-optly,._go-banner-optly,._grazie-banner-optly,._hub-banner-optly,._jetbrains-banner-optly,._phpstorm-banner-optly,._toolbox-app-banner-optly { background-color: #6B57FF;}._ai-banner-optly,._gamedev-banner-optly,._license-vault-banner-optly { background-color: #8D48FF;}._appcode-banner-optly,._upsource-banner-optly { background-color: #167dff;}._aqua-banner-optly,._codecanvas-banner-optly,._compose-multiplatform-banner-optly,._datalore-banner-optly,._dataspell-banner-optly,._dot-cover-banner-optly,._dotpeek-banner-optly,._riderflow-banner-optly,._space-banner-optly,._teamcity-banner-optly,._webstorm-banner-optly { background-color: #0068FD;}._clion-banner-optly,._cpp-banner-optly,._mps-banner-optly,._pycharm-banner-optly { background-color: #088484;}._code-with-me-banner-optly,._pycharm-edu-banner-optly { background-color: #28b8a0;}._datagrip-banner-optly,._kotlin-multiplatform-banner-optly,._ruby-banner-optly { background-color: #7E42FF;}._idea-banner-optly { background-color: #0047FD;}._ides-banner-optly,._rider-banner-optly { background-color: #671FFF;}._kotlin-banner-optly { background-color: #675ce9;}._qodana-banner-optly,._resharper-banner-optly,._resharper-cpp-banner-optly,._writerside-banner-optly { background-color: #DF2477;}._rust-banner-optly { background-color: #00874D;}._youtrack-banner-optly { background-color: #E20F86;}’;
document.getElementsByTagName(‘head’)[0].appendChild(widget._styleTag);
const utils = window.optimizely.get(‘utils’);
const bannerId = ‘optly-banner-‘ + extension.promotionId;
// Check if the banner is closed
const isClosed = window.localStorage.getItem(bannerId) || false;
// Check if there are other banners
const optlyBanner = window.optlyBanner || false;
let productClass = ‘_jetbrains-banner-optly’;
const path = window.location.pathname.toLowerCase();
if (path.includes(‘/academy/’)) {
productClass = ‘_academy-banner-optly’;
} else if (path.includes(‘/ai/’)) {
productClass = ‘_ai-banner-optly’;
} else if (path.includes(‘/appcode/’)) {
productClass = ‘_appcode-banner-optly’;
} else if (path.includes(‘/aqua/’)) {
productClass = ‘_aqua-banner-optly’;
} else if (path.includes(‘/clion/’)) {
productClass = ‘_clion-banner-optly’;
} else if (path.includes(‘/code-with-me/’)) {
productClass = ‘_code-with-me-banner-optly’;
} else if (path.includes(‘/codecanvas/’)) {
productClass = ‘_codecanvas-banner-optly’;
} else if (path.includes(‘/compose-multiplatform/’)) {
productClass = ‘_compose-multiplatform-banner-optly’;
} else if (path.includes(‘/cpp/’)) {
productClass = ‘_cpp-banner-optly’;
} else if (path.includes(‘/datagrip/’)) {
productClass = ‘_datagrip-banner-optly’;
} else if (path.includes(‘/datalore/’)) {
productClass = ‘_datalore-banner-optly’;
} else if (path.includes(‘/dataspell/’)) {
productClass = ‘_dataspell-banner-optly’;
} else if (path.includes(‘/dot-cover/’)) {
productClass = ‘_dot-cover-banner-optly’;
} else if (path.includes(‘/dot-memory/’)) {
productClass = ‘_dot-memory-banner-optly’;
} else if (path.includes(‘/dotpeek/’)) {
productClass = ‘_dotpeek-banner-optly’;
} else if (path.includes(‘/dottrace/’)) {
productClass = ‘_dottrace-banner-optly’;
} else if (path.includes(‘/fleet/’)) {
productClass = ‘_fleet-banner-optly’;
} else if (path.includes(‘/gamedev/’)) {
productClass = ‘_gamedev-banner-optly’;
} else if (path.includes(‘/go/’)) {
productClass = ‘_go-banner-optly’;
} else if (path.includes(‘/grazie/’)) {
productClass = ‘_grazie-banner-optly’;
} else if (path.includes(‘/hub/’)) {
productClass = ‘_hub-banner-optly’;
} else if (path.includes(‘/ides/’)) {
productClass = ‘_ides-banner-optly’;
} else if (path.includes(‘/idea/’)) {
productClass = ‘_idea-banner-optly’;
} else if (path.includes(‘/kotlin/’)) {
productClass = ‘_kotlin-banner-optly’;
} else if (path.includes(‘/kotlin-multiplatform/’)) {
productClass = ‘_kotlin-multiplatform-banner-optly’;
} else if (path.includes(‘/license-vault/’)) {
productClass = ‘_license-vault-banner-optly’;
} else if (path.includes(‘/mps/’)) {
productClass = ‘_mps-banner-optly’;
} else if (path.includes(‘/phpstorm/’)) {
productClass = ‘_phpstorm-banner-optly’;
} else if (path.includes(‘/pycharm/’)) {
productClass = ‘_pycharm-banner-optly’;
} else if (path.includes(‘/pycharm-edu/’)) {
productClass = ‘_pycharm-edu-banner-optly’;
} else if (path.includes(‘/qodana/’)) {
productClass = ‘_qodana-banner-optly’;
} else if (path.includes(‘/resharper/’)) {
productClass = ‘_resharper-banner-optly’;
} else if (path.includes(‘/resharper-cpp/’)) {
productClass = ‘_resharper-cpp-banner-optly’;
} else if (path.includes(‘/rider’)) {
productClass = ‘_rider-banner-optly’;
} else if (path.includes(‘/riderflow/’)) {
productClass = ‘_riderflow-banner-optly’;
} else if (path.includes(‘/ruby/’)) {
productClass = ‘_ruby-banner-optly’;
} else if (path.includes(‘/rust/’)) {
productClass = ‘_rust-banner-optly’;
} else if (path.includes(‘/space/’)) {
productClass = ‘_space-banner-optly’;
} else if (path.includes(‘/teamcity/’)) {
productClass = ‘_teamcity-banner-optly’;
} else if (path.includes(‘/toolbox-app/’)) {
productClass = ‘_toolbox-app-banner-optly’;
} else if (path.includes(‘/upsource/’)) {
productClass = ‘_upsource-banner-optly’;
} else if (path.includes(‘/webstorm/’)) {
productClass = ‘_webstorm-banner-optly’;
} else if (path.includes(‘/writerside/’)) {
productClass = ‘_writerside-banner-optly’;
} else if (path.includes(‘/youtrack/’)) {
productClass = ‘_youtrack-banner-optly’;
} else {
productClass = ‘_jetbrains-banner-optly’;
}
if (!isClosed && !optlyBanner) {
window.optlyBanner = true;
utils.waitForElement(extension.insertAfter).then(function(elem) {
const isHeader = elem.matches(‘div.page__header’);
const positionToInsert = isHeader ? ‘afterbegin’ : extension.positionToInsert;
elem.insertAdjacentHTML(positionToInsert, extension.$html);
const bannerElement = document.getElementById(bannerId);
// Change background color based on a product
bannerElement.classList.add(productClass);
try {
const promotionData = {
id: extension.promotionId,
name: extension.promotionName,
creative: extension.promotionCreative,
position: ‘ribbon’
};
promoView(promotionData);
const optlyLink = document.querySelector(‘a#optly-link’);
addEventListenerToElement(optlyLink, ‘click’, function(event) {
promoClick(promotionData);
});
addEventListenerToElement(optlyLink, ‘touchstart’, function(event) {
promoClick(promotionData);
});
const optlyCloseButton = document.querySelector(‘button#optly-banner_close’);
addEventListenerToElement(optlyCloseButton, ‘click’, function(event) {
bannerElement.style.display = ‘none’;
window.localStorage.setItem(bannerId, ‘true’);
});
addEventListenerToElement(optlyCloseButton, ‘touchstart’, function(event) {
bannerElement.style.display = ‘none’;
window.localStorage.setItem(bannerId, ‘true’);
});
} catch (error) {
// Silent error handling
}
});
}
/**
* Records a promotion view event in the data layer
* @param {Object} promotion – The promotion data
*/
function promoView(promotion) {
window.dataLayer = window.dataLayer || [];
dataLayer.push({
event: ‘promotionView’,
ecommerce: {
promoView: {
promotions: [
{
id: promotion.id,
name: promotion.name,
creative: promotion.creative,
position: promotion.position
}
]
}
}
});
}
/**
* Records a promotion click event in the data layer
* @param {Object} promotion – The promotion data
*/
function promoClick(promotion) {
window.dataLayer = window.dataLayer || [];
dataLayer.push({
event: ‘promotionClick’,
ecommerce: {
promoClick: {
promotions: [
{
id: promotion.id,
name: promotion.name,
creative: promotion.creative,
position: promotion.position
}
]
}
}
});
}
/**
* Adds an event listener to an element if it exists
* @param {HTMLElement} element – The target element
* @param {string} eventType – The event type
* @param {Function} callback – The callback function
*/
function addEventListenerToElement(element, eventType, callback) {
if (element) {
element.addEventListener(eventType, callback);
}
}
},
hideFn: function(event) {
var $ = window.optimizely.get(‘jquery’);
var widget = event.data.config;
widget.$id = “27273030100”;
widget.$instance = event.data.id;
widget.$fieldDefaults = [{“name”:”promotionId”,”default_value”:”JS-1234″},{“name”:”promotionName”,”default_value”:”Rider 50% discount”},{“name”:”promotionCreative”,”default_value”:”🎁 Get 50% OFF Rider”},{“name”:”promotionLink”,”default_value”:”https://www.jetbrains.com/”},{“name”:”insertAfter”,”default_value”:”div.page__header”},{“name”:”positionToInsert”,”default_value”:”afterbegin”}];
(function(widg) {
var i = 0;
var field;
for (; i < widg.$fieldDefaults.length; ++i) {
field = widg.$fieldDefaults[i];
if (!widg.hasOwnProperty(field.name)) {
widg[field.name] = field.default_value;
}
}
})(widget);
var extension = widget;
widget._styleTag = document.getElementById('widget-css-27273030100');
if (widget._styleTag) widget._styleTag.parentNode.removeChild(widget._styleTag);
/*
* Editor now supports ES6 compliant code. Note that adding ES6
* specific code to an experiment will break for users running
* ES5-only browsers as code entered is not transpiled down to ES5.
*/
var bannerId = "optly-banner-" + extension.promotionId;
var extensionElement = document.getElementById(bannerId);
window.localStorage.removeItem(bannerId);
if (extensionElement) {
extensionElement.parentElement.removeChild(extensionElement);
}
},
});
}
], "interestGroups": [], "tagGroups": []},l=__webpack_require__(7152),d="initializeOptimizelyPreview";if(l.initGlobalStore(f),c.populateDirectiveData(),r.clientHasAlreadyInitialized())e.warn("Main / Disabling because Optimizely has already initialized on this page load. Are there multiple snippets on the page?");else if(r.shouldBailForDesktopApp())e.log("Main / Disabling because of desktop app.");else if(r.conflictInObservingChanges())e.log("Main / Disabling: Observe Changes Indefinitely is on, but browser does not support it.");else{if(r.shouldLoadInnie())u.registerFunction("getProjectId",(function(){return f.projectId})),u.registerFunction("getAccountId",(function(){return f.accountId})),s.addScriptAsync("https://app.optimizely.com/js/innie.js"),e.log("Main / Disabling in favor of the editor client.");else if(r.shouldLoadEmbeddedEditor()){e.log("Main / Loading embedded editor");var v="true"===a.get("useLocalBundle");c.setOptOut(!1);var h=v?"http://localhost:9888/main.js":"https://app.optimizely.com/dist/visual-editor/main.js";s.addScriptAsync(h)}else if(r.shouldLoadPreview()){(r.isSlave()?window.optimizely:window.optimizely=window.optimizely||[]).push({type:"load",data:f}),e.log("Main / Disabling in favor of the preview client."),__webpack_require__(8771).setupPreviewGlobal(),__webpack_require__(8771).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:f}),r.isSlave()||(u.registerFunction("getProjectId",(function(){return f.projectId})),s.addScriptSync("https://cdn.optimizely.com/js/preview2/26613100737.js"))}else if(r.shouldBootstrapDataForPreview()){u.registerFunction(d,(function(n){t(),u.unregisterFunction(d)}));var p=r.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:u.getFunction("getProjectId")();m=r.getProjectToken(),_=p,y=r.getPreviewLayerIds(),o="/dist/preview_data.js?token=__TOKEN__&preview_layer_ids=__PREVIEW_LAYER_IDS__".replace("__TOKEN__",m).replace("__PROJECT_ID__",_).replace("__PREVIEW_LAYER_IDS__",y.join(",")).replace("__GET_ONLY_PREVIEW_LAYERS__",!0);var g=r.getForceVariationIds();g&&g.length>0&&(o+=”&optimizely_x=”+g.join(“,”)),s.addScriptSync(o),__webpack_require__(8771).setupPreviewGlobal(),s.addScriptAsync(“/dist/js/preview_ui.js”)}else r.shouldBootstrapDataForEditor()?(u.registerFunction(d,(function(n){t(),u.unregisterFunction(d)})),s.addScriptAsync(window.optimizely_editor_data_endpoint)):r.shouldInitialize()&&t();var m,_,y;n.timeEnd(“block”);var w=n.now();n.setMark(“optimizelyFinished”,w,w)}}try{main()}catch(e){try{__webpack_require__(9509).handleError(e)}catch(err){console.log(err)}}})();