/** Webtrekk MCP 1.1.2 - 2025-2-26 */(function(){'use strict';function aa(c,a){aa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(b[e]=d[e])};return aa(c,a)}function h(c,a){function b(){this.constructor=c}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");aa(c,a);c.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)} function p(c,a,b){if(b||2===arguments.length)for(var d=0,e=a.length,f;d>>0),ja=0; function ka(){return"https:"===document.location.protocol?"https:":"http:"}function u(c){var a=typeof c;return"object"===a&&null!==c||"function"===a}function w(c){var a=typeof c;a="object"!==a?a:c?Array.isArray(c)?"array":a:"null";return"array"===a||"object"===a&&"number"===typeof c.length}function x(c){return"number"===typeof c}function y(c){return"string"===typeof c}function la(c){return"function"!==typeof c}function ma(c){return"undefined"!==typeof c&&null!==c}function z(){return Date.now()} function A(c,a){return"undefined"===typeof c?a:c}function B(){try{var c=window.encodeURI(window.location.href);if(!ha[c]){var a=new URL(c);a&&a.searchParams&&a.searchParams.get&&(ha[c]=a.searchParams.get("wt_mcp_parent"))}var b="true"===ha[c];return window.parent!==window&&b}catch(d){D.D({type:"error",F:"isLikelyChildFrame - ".concat(d.message)})}return!1} function na(c){for(var a=[],b=1;b>>0).toString(16)}var E=JSON.parse,F=JSON.stringify,pa=0,qa=function(){function c(a,b,d,e){this.Va=this.ub=!1;this.listener=a;this.proxy=b;this.src=d;this.type=e;this.key=++pa}c.prototype.Dd=function(){this.ub=!0;this.src=this.proxy=this.listener=null};return c}(); function G(c,a){var b;void 0===b&&(b=0);b=null===b?0:0>b?Math.max(0,c.length+b):b;if("string"===typeof c)return"string"!==typeof a||1!==a.length?-1:c.indexOf(a,b);for(;b'']/,Ja=/&/g,Ka=//g,Ma=/'/g,Na=/'/g,Oa=/\x00/g;function Pa(c){var a={"&":"&","<":"<",">":">",""":'"'},b=M.createElement("div");return c.replace(Ha,function(d,e){var f=a[d];if(f)return f;"#"===e.charAt(0)&&(e=Number("0".concat(e.substring(1))),isNaN(e)||(f=String.fromCharCode(e)));f||(b.innerHTML="".concat(d," "),f=b.firstChild.nodeValue.slice(0,-1));return a[d]=f})} var Qa=String.prototype.trim?function(c){return c.trim()}:function(c){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(c)[1]};function Ra(c){for(var a=0,b=0;b>>0;return a}var Sa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function Ta(c){return!(!c.querySelectorAll||!c.querySelector)}function Ua(c){c=String(c);"application/xhtml+xml"===document.contentType&&(c=c.toLowerCase());return document.createElement(c)}function Va(c,a){r(a,function(b,d){"style"===d?c.style.cssText=b:"class"===d?c.className=b:Sa.hasOwnProperty(d)?c.setAttribute(Sa[d],b):0===d.lastIndexOf("aria-",0)||0===d.lastIndexOf("data-",0)?c.setAttribute(d,b):c[d]=b})} function Wa(c,a,b){b=b||document;c=c&&"*"!==c?String(c).toUpperCase():"";return Ta(b)&&(c||a)?b.querySelectorAll(c+(a?".".concat(a):"")):[]}function Xa(c,a){null!==a&&(y(a)&&(a=new Text(a)),c.appendChild(a))}function Ya(c){return"string"===typeof c.className?c.className:c.getAttribute&&c.getAttribute("class")||""}function Za(c,a){"string"===typeof c.className?c.className=a:c.setAttribute&&c.setAttribute("class",a)}function $a(c,a){c=Ya(c).match(/\S+/g)||[];return 0<=G(c,a)} function ab(c,a){var b=Ya(c);Za(c,b+(0\n

Webtrekk Predictions:

\n

".concat(rb(a),"%

\n ").concat(e,"\n ");e+='

Input factors:

'; var f=[];r(b,function(k,l){w(k)&&(k=k.join(", "));f.push(" - ".concat(l,": ").concat(rb(k),""))});var g=c.replace(/\W/ig,"").toLowerCase();sb(g).innerHTML="
".concat(e).concat(f.join("
"),"
")},250)} function vb(c,a,b,d,e,f){void 0===d&&(d=!1);void 0===e&&(e="");void 0===f&&(f="");var g=c;-1!==c.indexOf(";")&&(-1!==c.indexOf("&")&&(c=Pa(c)),g=c);c=M.Re("body")[0];!d&&c?(b="".concat(b,"/mcp/rm.html"),b+="?url=".concat(window.encodeURIComponent(g)),b+="&campaign=".concat(window.encodeURIComponent(a)),b+="&acc=".concat(window.encodeURIComponent(e)),b+="&id=".concat(window.encodeURIComponent(f)),e=M,f=e.i,d="wt-audience-stream-".concat,Ia.test(a)&&(-1!==a.indexOf("&")&&(a=a.replace(Ja,"&")),-1!== a.indexOf("<")&&(a=a.replace(Ka,"<")),-1!==a.indexOf(">")&&(a=a.replace(La,">")),-1!==a.indexOf('"')&&(a=a.replace(Ma,""")),-1!==a.indexOf("'")&&(a=a.replace(Na,"'")),-1!==a.indexOf("\x00")&&(a=a.replace(Oa,"�"))),a=f.call(e,"iframe",{horizontalscrolling:"no",verticalscrolling:"no",scrolling:"no",width:"0px",height:"0px",seamless:"true",name:d.call("wt-audience-stream-",a),sandbox:"allow-scripts",style:"display: none;",src:b}),M.appendChild(c,a)):(new Image).src=g} var D={info:function(){for(var c=[],a=0;a=Ab&&wb()}var Db=yb; function Eb(c){if(fb())throw c;}function Fb(c,a){c||Eb("Expected condition but got ".concat(c,": ").concat(c," ").concat(a))}function T(c,a){"string"!==typeof c&&Eb("Expected string but got ".concat(typeof c,": ").concat(c," ").concat(a))}function U(c,a){Array.isArray(c)||Eb("Expected array but got ".concat(typeof c,": ").concat(c," ").concat(a))}function Gb(c){u(c)||Eb("Expected object but got ".concat(typeof c,": ").concat(c," ").concat(void 0))} function Hb(c,a){("number"!==typeof c||isNaN(c))&&Eb("Expected number but got ".concat(typeof c,": ").concat(a?a:c))}function Ib(c,a){"boolean"!==typeof c&&Eb("Expected boolean but got ".concat(typeof c,": ").concat(a?a:c))} function V(c,a,b){var d=!1;if("object"===typeof b){var e=b.Yb;d=b.Sf||!1;var f=b.domain||void 0;var g=b.path||void 0;var k=b.$a}if(/[;=\s]/.test(c))throw Error("Invalid cookie name '".concat(c,"'"));if(/[;\r\n]/.test(a))throw Error("Invalid cookie value ".concat(a));void 0===k&&(k=-1);document.cookie="".concat(c,"=").concat(a).concat(f?";domain=".concat(f):"").concat(g?";path=".concat(g):"").concat(0>k?"":0===k?";expires=".concat((new Date(1970,1,1)).toUTCString()):";expires=".concat((new Date(Date.now()+ 1E3*k)).toUTCString())).concat(d?";secure":"").concat(null!==e?";samesite=".concat(e):"")}function Jb(c,a){for(var b="".concat(c,"="),d=(document.cookie||"").split(";"),e=0,f;ed.dataInvalidation&&(D.log("serverConfig: invalidating cache"),d.data=null);a.sessionId=this.sessionId;d.lastContact=z();this.H[b]=d;if(u(this.H[b].ia)){d=this.H[b].ia;delete this.H[b].ia;try{O(this.$b, this.H)}catch(f){D.error("Servercfg persist1 ".concat(f.message))}this.H[b].ia=d;return Promise.resolve(this.H[b].ia)}if(u(this.H[b].data)){try{O(this.$b,this.H)}catch(f){D.error("Servercfg persist2 ".concat(f.message))}this.H[b].ia=Sb(this.H[b].data);return Promise.resolve(this.H[b].ia)}var e=this;return this.ab=(window.wt_masterExampleMockResponse?Promise.resolve(F(window.wt_masterExampleMockResponse)):Ub("".concat(this.s.ec,"?cfg=1"),"POST",{trackId:this.s.trackId,placements:[],sessionId:a.sessionId, pageId:a.Kc,url:this.s.url,withConfig:!0,inputKeys:{eid:this.s.g.eid,geid:this.s.g.geid,cdbeid:this.s.g.cdbeid,newVisitor:this.s.g.newVisitor},version:"1.1.2"})).then(function(f){try{var g=E(f).config||{}}catch(k){g="serverCfg parsing - ".concat(k.message),D.error("error parsing serverCfg",k),-1!==f.indexOf("this.Ad};a.prototype.qf=function(b){var d=b.relatedTarget;this.Ha?this.Nf(b.clientY)&& (this.Ac?30>this.Dc&&(!d||this!==d||"HTML"===d.nodeName)&&this.B():d&&"HTML"!==d.nodeName||this.B()):D.info("ExitIntent: suppressed not solo")};return a}(Symbol),Xb=function(c){function a(b,d){var e=c.call(this,{type:"number",name:b,context:d})||this;e.wa=!0;e.qd=z();if(B())return e;e.qa=!0;e.kc=null;L("leaderTab",function(f){e.qa!==f&&(e.qa=f,window.clearInterval(e.kc),e.kc=null,e.value=0,f&&e.Kd())});e.Kd();return e}h(a,c);a.prototype.Kd=function(){var b=this;this.qd=z();this.kc=window.setInterval(function(){b.B()}, 1E3)};a.prototype.B=function(){this.value=(z()-this.qd)/1E3;this.count=1;K("symbolUpdate",[this.name])};return a}(Symbol),Yb=function(c){function a(b,d){var e=c.call(this,{type:"number",name:b,context:d})||this;e.wa=!0;e.Cc=z();if(B())return e;e.qa=!0;var f=0;L("activity",function(){window.clearInterval(f);e.qa&&(e.Cc=z(),f=window.setInterval(function(){e.B()},1E3))});L("leaderTab",function(g){e.qa!==g&&(e.Cc=z(),e.qa=g)});return e}h(a,c);a.prototype.B=function(){this.qa&&(this.value=(z()-this.Cc)/ 1E3,this.count=1,K("symbolUpdate",[this.name]))};return a}(Symbol);function Zb(c,a){return c.call.apply(c.bind,[c,a])}function $b(c,a){if(!c)throw Error();return function(){return c.apply(a,[c,a])}}function ac(c,a){return(Function.prototype.bind&&-1!==Function.prototype.bind.toString().indexOf("native code")?Zb:$b).apply(null,[c,a])} var bc=function(){function c(){}c.clear=function(a){window.clearTimeout(a)};c.Va=function(a,b,d){if("function"===typeof a)d&&(a=ac(a,d));else throw Error("Invalid listener argument");return 2147483647k&&(k=m,m=document.documentElement,m=Math.round(k/(window.innerHeight+window.scrollMaxY||m&&m.scrollHeight||document.body.offsetHeight)*100),100l?parseInt(String(f[l])):1;g[b].value+=e.length>l?parseFloat(String(e[l])):0;g[b].count+=m}g["product-name"]=c.Ja(g.product);g["".concat(b,"-name")]=g["product-name"];delete g.product;delete g.productPrice;delete g.productQuantity;delete g.productAction}D.log("Pixel (input/output)",a,g);return g};return c}()),qc=["page","visit","visitor"],rc=/^(.+)~!~(.+)$/,X=new (function(){function c(){this.aa={page:{},visit:{},visitor:{}};this.data=null;this.J={page:[],visit:[], visitor:[]};this.rc=new pc;this.K={Yd:!1,storage:!1}}c.prototype.ed=function(){18E5=g.last)){if(-1!==d.J[f].indexOf(k)){if(!la(d.aa[f][k].setData)|| d.aa[f][k].wa||!g.last)return;d.aa[f][k].setData(g)}else d.J[f].push(k),d.cb(k,g.type,"visit",g);e.push(k)}}})});0===e.length?D.log("store: visitStore update didnt contain any new data"):(D.log("store: updating visit store with localStorage content for ".concat(e)),this.data=a,K("symbolUpdate",e),b&&this.Pc())};c.prototype.Lf=function(a){var b=this,d=a;w(d)||(d=[a]);var e=!1;H(d,function(f){var g=f.store?f.store:"visit";y(f.name)&&-1===b.J[g].indexOf(f.name)?(b.J[g].push(f.name),f.data?b.cb(f.name, f.type,f.store,f.data):b.cb(f.name,f.type,f.store),f.Ba&&(D.info("store: set rule node (".concat(JSON.stringify(f.Ba,null,4),")")),b.aa[f.store][f.name].Jd(f.Ba)),e=!0):f.Ba&&(D.info("store: update rule node (".concat(JSON.stringify(f.Ba,null,4),")")),b.aa[f.store][f.name].Jd(f.Ba))});e&&D.info("store: new updated whitelist (".concat(this.J,")"))};c.prototype.Vd=function(a,b,d){var e=this;if("undefined"!==typeof b&&y(a)){var f=!1;H(qc,function(g){u(e.aa[g][a])&&(f=!0,ca(e.data[g][a],e.aa[g][a].update(b, d)),K("symbolUpdate",[a]))});f&&this.Pc()}};c.prototype.ja=function(a,b,d){return y(a)&&u(this.aa[b])&&u(this.aa[b][a])?this.aa[b][a].get(b,d):null};c.prototype.cb=function(a,b,d,e){void 0===d&&(d="visit");e=e||this.data[d][a];0===a.indexOf("exit-intent")?(this.rc.start(),e=new Wb(a,d)):0===a.indexOf("engagement")?(this.rc.start(),e=new Xb(a,d)):0===a.indexOf("inactivity")?(this.rc.start(),e=new Yb(a,d)):e=0===a.search(/blur|focus|scroll-up|scroll-down/)?new dc(a,d):0===a.search(/opt-out|new-visitor|country|region|city|zip|cid|operatingSystem|deviceClass/)? new kc(a,b,e,d):0===a.indexOf("click-on-element-")?new gc(a,e,d):0===a.indexOf("scroll-percentage")?new hc(a,d):0===a.indexOf("time-on-page-")?new ic(a,e,d):0===a.search(/custom-js-(string|number|boolean)/)?new jc(a,e,d):"number"===b?new lc(a,e,d):"binary"===b?new mc(a,e,d):new nc(a,e,d);if(null!==e){var f={page:e.page,visit:e.cc,visitor:e.dc};this.aa[d][a]=e;this.data[d][a]||(this.data[d][a]=f[d],this.data[d][a].type=b)}};c.prototype.Be=function(a){var b=this;D.log("Store creating store for ".concat(a)); if(null!==this.data)return Promise.resolve(this.data);this.data={page:{},visit:{},visitor:{}};return N.Bf(a).catch(function(d){D.error("store: loading crossdomain localStorage -> working locally",d);return{}}).then(function(d){L("updateDataStore",function(g){b.Ud(g,!0)});try{var e=db("wt.mcp.data")||{};b.data.page=e.page||{};b.data.visit=e.visit||{};b.data.visitor=e.visitor||{}}catch(g){D.error("symbolStore getting store",g),b.data.page={},b.data.visit={},b.data.visitor={},D.D({type:"error",F:"symbolStore getting store - ".concat(g.message)})}var f= !1;H(qc,function(g){"page"!==g&&(u(d[g])&&(d[g]["last-access"]>b.data[g]["last-access"]||!b.data[g]["last-access"])?(D.info("store: ".concat(g," version retrieved from iframe is newer than current one"),d),b.data[g]=d[g]||{}):(D.info("store: local ".concat(g," version is newer than retrieved one"),b.data),f=!0))});u(b.data)||(b.data={page:{},visit:{},visitor:{}});b.ed();!f||q(b.data.visit)&&q(b.data.visit)||N.Xc({visit:b.data.visit,visitor:b.data.visitor});H(qc,function(g){r(b.data[g],function(k, l){"last-access"!==l&&(b.J[g].push(l),b.cb(l,k.type,g,k))})});b.K.Yd||(b.K.Yd=!0,L("updateWhiteList",function(g){b.Lf(g)}));b.K.storage||(b.K.storage=!0,I(window,"storage",function(g){if("wt.mcp.data"===g.key){D.log("store: detected change in localStorage");g=null;try{g=db("wt.mcp.data")||{}}catch(k){D.error("storageEvent: getting visit store",k),D.D({type:"error",F:"storageEvent getting visit store - ".concat(k.message)})}u(g)&&b.Ud(g)}}));return b.data})};c.prototype.Mc=function(a,b,d){var e=this; void 0===a&&(a={});void 0===b&&(b={});void 0===d&&(d={});D.log("store: parsing inputKeys",a,b,d);var f={};ca(f,a,b);f=W.parse(f,d);var g=[];H(qc,function(k){r(e.J[k],function(l){if(y(l)){var m=l.match(rc);m=f[m&&3<=m.length?m[1]:""];if("undefined"!==typeof m){var n=e.aa[k][l];"undefined"!==typeof n&&(m=n.update(m),B()||(e.data[k][l]?ca(e.data[k][l],m):(e.data[k][l]=m,D.error("store: a symbol has been update which didnt exist in ".concat(k," object!")))),g.push(l))}}})});0!==g.length&&(D.log("sending symbol update for ".concat(g)), this.Pc(),K("symbolUpdate",g))};return c}()),sc={Na:"",bb:"",cmp:"",Hd:"",content:""};function tc(c){var a=null,b={};try{b=E(decodeURIComponent(Jb("wt_mcp_optin","{}")))}catch(d){}"undefined"!==typeof b[c]&&(a=b[c]);return a} function uc(c,a){var b={};try{b=E(decodeURIComponent(Jb("wt_mcp_optin","{}")))}catch(e){}b[a]=c;c="{}";try{c=F(b)}catch(e){}c=encodeURIComponent(c);b=0;a=document.domain;for(var d=a.split(".");b ").concat(d,"."),void 0,a);"object"===typeof a.g&&"object"===typeof a.g.urmCategory&&"string"===typeof a.g.urmCategory[c.Tb]?b=a.g.urmCategory[c.Tb]:"object"===typeof c.na&&"string"===typeof c.na[c.Ka]&&null===d&&(b=c.na[c.Ka]);d===b||"1"!==b&&"0"!==b||(D.info("clientRule.preprocessOptIn: ".concat(c.h.cmp," update/set opt-in status > ").concat(b,".")),uc(b,c.Ka)); "MCP"===c.type&&"1"===b&&window.setTimeout(function(){c.evaluate()},10)}} var xc=function(){function c(a){var b=this;this.Mf=function(d){if(!d)return d;var e="^";H(d.split(""),function(f){switch(f){case "*":e+=".*";break;case "?":e+=".?";break;case "(":case ")":case "[":case "]":case "$":case "^":case ".":case "{":case "}":case "|":case "\\":e+="\\".concat(f);break;default:e+=f}});return e+="$"};this.Ve=function(d){var e=/(?:-(value|count|average|elapsed))?(?:-(last|session))?(?:-(number|binary|string))?$/,f=d.v.match(e);f&&3<=f.length&&(d.v=d.v.replace(e,""),f[2]&&(d.store= "session"!==f[2]?"page":"visit"),f[1]&&(d.op=f[1]),f[3]&&(d.t=f[3]));return d};this.je=function(d,e){-1===b.G.J[d.store].indexOf(d.v)&&(b.G.J[d.store].push(d.v),b.Oa.push({name:d.v,type:e.r.t,store:d.store,data:{time:d.a}}))};this.de=function(d,e){-1===b.G.J[d.store].indexOf(d.v)&&(b.G.J[d.store].push(d.v),b.Oa.push({name:d.v,type:e.r.t,store:d.store,data:{selector:d.a}}))};this.fe=function(d,e){-1===d.v.indexOf("~!~")&&(d.v="".concat(d.v,"~!~").concat(oa("".concat(d.d,"-").concat(e.t,"-").concat(e.r.v)))); -1===b.G.J[d.store].indexOf(d.v)&&(b.G.J[d.store].push(d.v),b.Oa.push({name:d.v,type:e.r.t,store:d.store,data:{code:d.d}}))};this.he=function(d,e){d=b.Ve(d);-1===d.v.indexOf("~!~")&&(d.v="".concat(d.v,"~!~").concat(oa("".concat(e.t,"-").concat(e.r.v))));-1===b.G.J[d.store].indexOf(d.v)&&(b.G.J[d.store].push(d.v),b.Oa.push({name:d.v,type:e.r.t,store:d.store,Ba:e}));"elapsed"===d.op&&b.G.Od.push({name:d.v,store:d.store,Ba:e,value:e.r.v,te:e.t})};this.ge=function(d,e){if("string"===d.t){var f=d.v;-1!== ["contains","nc"].indexOf(e.t)&&(f="*".concat(f,"*"));d.v=b.Mf(f).toLowerCase()}};this.ee=function(d,e){if(d.metric.l&&d.metric.l.v){var f=d.metric;b.counter=e||0;b.counter+=1;e={ib:0,label:"",oa:"".concat(b.G.data.Cb,"-combined-").concat(b.counter),Cb:"".concat(b.G.data.Cb,"-combined-").concat(b.counter),Y:d.data,action:{type:"COMBINED",hf:f.l.v},h:{cmp:""}};b.Gb(f,d,b.counter);d.t=f.t;d.l={t:"identifier",v:"".concat(b.G.data.Cb,"-combined-").concat(b.counter)};d.r={t:"number",v:f.r.v};delete d.data; delete d.metric;-1===b.G.J.visit.indexOf(e.oa)&&(b.G.J.visit.push(e.oa),b.Oa.push({name:e.oa,type:"number",store:"visit"}));b.G.rb.clientRules[e.oa]||(b.G.rb.clientRules[e.oa]=new wc(e,b.G.M,b.G.rb,b.G.na))}};this.Gb=function(d,e,f){if(d){var g=d.t;"identifier"===g&&d.v?0===d.v.indexOf("click-on-element-")?b.de(d,e):0===d.v.indexOf("time-on-page-")?b.je(d,e):0===d.v.indexOf("custom-js-")?b.fe(d,e):b.he(d,e):"combine"===g&&d.metric?b.ee(d,f):-1!==["binary","number","string"].indexOf(g)?b.ge(d,e):(b.counter= b.counter?b.counter:f,b.Gb(d.l,d,b.counter),b.Gb(d.r,d,b.counter))}};this.Oa=[];this.G=a;this.counter=0}c.prototype.pf=function(){var a=this;this.G.J={page:[],visit:[],visitor:[]};H(this.G.pd,function(b){-1===a.G.J.visit.indexOf(b.name)&&(a.G.J.visit.push(b.name),a.Oa.push(b))});this.G.Y&&this.Gb(this.G.Y,this.G.Y);K("updateWhiteList",this.Oa)};return c}(),yc=new (function(){function c(){var a=this;this.Ic={and:function(b){var d=a.evaluate(c.right(b));"undefined"===typeof c.right(b)&&(d=!0);return d&& a.evaluate(c.left(b))},or:function(b){return a.evaluate(c.left(b))||a.evaluate(c.right(b))},gt:function(b){return a.evaluate(c.left(b))>a.evaluate(c.right(b))},lt:function(b){return a.evaluate(c.left(b)) '").concat(b,"'"),a)}return b};return c}()),zc=[],Ac=null,Bc=function(){function c(a, b,d){D.info("TeaserHandler.ctor");a.data.Qa&&a.data.Ra?(this.configuration=a,this.item=a.item,this.sa=a.sa||a.item,this.data={L:a.data,o:a.o},this.Za="1"===d,this.type=b,this.U=a.U,this.be={titlePlacement:["520","rank"],titleTeaser:["521","name"],type:["522","type"],views:["523",""],clicks:["524",""],pi:["525","pi"],titleCampaign:["526","content"],variant:["527","variant"],conf:["528","conf"],requestId:["529","requestId"],targetGroup:["530","targetGroup"],rule:["531","rule"],itemPage:["532","itemPage"], itemPosition:["533","itemPosition"],conversionType:["","cType"],conversionGoal:["","cGoal"],conversionValue:["","cValue"]},this.ce=this.Za?0:1,this.yf(),this.Wd(this.data.L),this.Wd(this.data.o),this.item||"manual"===this.type||(D.log("TeaserHandler.ctor: passed item not present in DOM, switching to type manual"),this.type="manual"),"manual"!==this.type&&(this.Za&&this.item.setAttribute(this.configuration.Fb,F({ck:this.Kb()})),null===this.sa.parentNode?this.interval=this.setInterval():this.Y())): D.error("TeaserHandler.ctor: faulty configuration (titlePlacement and/or titleTeaser)",a.data.Qa,a.data.Ra)}c.prototype.yf=function(){D.info("TeaserHandler._setConversionData");switch(this.type){case "reco":this.data.o.type=this.data.o.type?this.data.o.type:"product";this.data.o.da=this.data.o.da?this.data.o.da:"order";this.data.o.value=this.data.o.value?this.data.o.value:"";break;case "overlay":this.data.o.type=this.data.o.type?this.data.o.type:"view";this.data.o.da=this.data.o.da?this.data.o.da: "goal";this.data.o.value=this.data.o.value?this.data.o.value:"1";break;case "banner":case "custom":this.data.o.type=this.data.o.type?this.data.o.type:"click";this.data.o.da=this.data.o.da?this.data.o.da:"both";this.data.o.value=this.data.o.value?this.data.o.value:"1";break;case "manual":D.info("TeaserHandler.setConversionData: no default values for current type '".concat(this.type,"'"));break;default:D.error("TeaserHandler.setConversionData: unknown type '".concat(this.type,"'"))}};c.prototype.Wd= function(a){r(a,function(b,d){"undefined"===typeof b||null===b?a[d]="":"number"===typeof b&&(a[d]=String(a[d]))})};c.prototype.setInterval=function(){var a=this;D.info("TeaserHandler._setInterval");return window.setInterval(function(){null!==a.sa.parentNode&&(window.clearInterval(a.interval),D.info("TeaserHandler._setInterval: found parent element (parent)",[a.sa.parentNode]),a.Y())},100)};c.prototype.u=function(a){return this.be[a][this.ce]};c.prototype.Kb=function(a){var b={};b[this.u("titlePlacement")]= this.data.L.Qa;b[this.u("titleTeaser")]=this.data.L.Ra;b[this.u("type")]=this.data.L.type;this.Za&&(b[this.u("views")]="view"===this.data.L.type?"1":"",b[this.u("clicks")]="click"===this.data.L.type?"1":"","click"===this.data.L.type||"view"===this.data.L.type)&&(b[this.u("type")]="");b[this.u("conf")]="";b[this.u("pi")]=this.data.L.mf;b[this.u("titleCampaign")]=this.data.L.Pa;b[this.u("variant")]=this.data.L.variant;b[this.u("requestId")]=this.data.L.requestId;b[this.u("targetGroup")]=this.data.L.Ef; b[this.u("rule")]=this.data.L.Aa;b[this.u("itemPage")]=this.data.L.gf;b[this.u("itemPosition")]=this.data.L.xd;!this.Za&&a&&(b[this.u("conversionType")]=this.configuration.qb.Db?"view":this.data.o.type,b[this.u("conversionGoal")]=this.data.o.da,b[this.u("conversionValue")]=this.data.o.value);return b};c.prototype.qb=function(a){D.info("TeaserHandler.manual: sending tracking data for ".concat(this.data.L.Pa));if(this.Za)if(D.info("TeaserHandler.manual: detected V1 teaser tracking plugin"),a.tt&&la(a.tt.addClickParameter)){var b= this.Kb();a.tt.addClickParameter(b[this.u("titlePlacement")],b[this.u("titleTeaser")],b[this.u("type")],b[this.u("views")],b[this.u("clicks")],b[this.u("pi")],b[this.u("titleCampaign")],b[this.u("variant")],b[this.u("conf")],this.configuration.qb.Db,b[this.u("requestId")],b[this.u("targetGroup")],b[this.u("rule")],b[this.u("itemPage")],b[this.u("itemPosition")])}else D.error("couldn't send tracking data for ".concat(this.data.L.Pa," -> no tracking pixel"),a);else a=this.U,window[a]=window[a]||[], window[a].push([this.data.L.type,this.Kb(!0)])};c.prototype.Y=function(){D.info("TeaserHandler.trigger");if(this.Za){if(na(window,"wt_tt","tt")){var a=window.wt_tt.tt;la(a.searchTeaser)&&a.searchTeaser();la(a.setScrollPos)&&a.setScrollPos()}}else a=this.U,window[a]=window[a]||[],window[a].push({selector:this.item,exclude:[],data:this.Kb(),conversion:this.data.o})};return c}(); function Cc(){return{item:null,sa:null,qb:{Db:!1},data:{Qa:"",Ra:"",type:"",mf:"",Pa:"",variant:"",requestId:"",Ef:"",Aa:"",gf:"",xd:""},o:{type:"",da:"",value:""},Fb:"",U:"wt_ttv2"}}function Dc(c,a,b){D.info("wt.mcp.teaserHandler.create",c,a,b);try{return new Bc(c,a,b)}catch(d){return D.error("wt.mcp.teaserHandler.create: ".concat(d)),null}} function Ec(c,a,b){D.info("invokeTeaserTracking (mcpState, options, teaserVersion)",c,a,b);if(c.X||"1"!==b){var d=Cc();d.data.type=a.we?"click":"view";d.qb.Db=!0===a.Db;d.data.Qa=a.nf;d.data.Ra=a.ye;d.data.Pa=a.pc;d.data.variant=a.variant?a.variant:"campaign";d.item=a.item;d.o.da="both";d.o.value="1";d.U=a.U;if(d=Dc(d,a.Ca||"manual",b))try{d.qb(c.X)}catch(e){D.error("invokeTeaserTracking: ".concat(e))}}else D.info("couldn't send tracking data for ".concat(a.pc," -> no pixel; polling for it")),zc.push(a), null===Ac&&(Ac=window.setInterval(function(){c.X&&(D.info("found a pixel instance; sending queued tracking requests"),window.clearInterval(Ac),Ac=null,zc.forEach(function(e){D.log("sending queued tracking data for ".concat(a.pc));Ec(c,e,b)}),zc=[])},1E3))}var Fc=Ec,Gc=function(){function c(a,b){this.width=a;this.height=b}c.He=function(a,b){return a===b?!0:a&&b?a.width===b.width&&a.height===b.height:!1};return c}(); function Hc(c){var a=M.i("style",{type:"text/css"});try{a.styleSheet?a.styleSheet.cssText=c:a.textContent?a.textContent=c:document.createTextNode&&M.appendChild(a,document.createTextNode(c))}catch(b){}M.appendChild(M.Te(),a)}function getComputedStyle(c,a){var b=document;return b.defaultView&&b.defaultView.getComputedStyle&&(c=b.defaultView.getComputedStyle(c,null))?c[a]||c.getPropertyValue(a)||"":""}function Ic(c){return"number"===typeof c?"".concat(Math.round(c),"px"):c} function Jc(c,a){c.style.height=Ic(a)}function Kc(c,a){c.style.width=Ic(a)}function Lc(c,a){if("string"===typeof a)a&&(c.style[a]=void 0);else for(var b in a){var d=b+"";d&&(c.style[d]=a[b+""])}}var Mc=getComputedStyle;function Nc(c){Nc[" "](c);return c}Nc[" "]=function(){for(var c=0;c span:before {color: #fff;font-size: 20px;line-height: 1.3;font-family: Arial;content: '\\D7';}.wt-mcp-ol-modal-close:hover {text-decoration: none;opacity: 0.8;filter: alpha(opacity=80);cursor: pointer;}#wt_mcp_prediction {width: 30%;height: 30%;position: fixed;right: 1px;bottom: 1px;background: #8fbc13;border: 1px solid #97bf0d;overflow: scroll;border-radius: 10px;-moz-border-radius: 10px;-webkit-border-radius: 10px;box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);}"))} c.prototype.Fd=function(a){var b=this;H(a.getElementsByClassName("wt-mcp-ol-modal-close"),function(d){J(d,["click","touchend"],function(e){b.Mb(e)})});c.focus(a)};c.prototype.show=function(a){var b=this;if(!a&&Uc)return!1;Uc=!0;if(!this.P){D.log("Overlay: ".concat(this.id," wasnt preloaded, loading it now"));this.preload();if(this.Zb)return!0;this.Zb=window.setInterval(function(){b.P&&(window.clearInterval(b.Zb),b.Zb=null,b.show(!0))},10);return!0}if(this.xa)return!1;this.xa=!0;this.escape();this.Zc(function(){if(b.P){var d= b.P;d.style.display="";Oc(d.offsetWidth);M.lc(d,"wt-mcp-ol-in");b.Af();b.Ge();Y?(J(d,Y.end,function(){b.Fd(d)}),c.tc(d)):b.Fd(d)}});this.pb.push(I(window,"message",function(d){var e=d.data;"wt-mcp-close-modal"===e?(D.log("Overlay ".concat(b.id,": got close modal event"),d),b.Mb(d)):"wt-mcp-track-click"===e&&(D.log("Overlay ".concat(b.id,": got tracking event"),d),b.Jf(!0))}));return!0};c.prototype.Mb=function(a){var b=this,d=this.P;a&&a.preventDefault();this.xa&&(this.xa=!1,this.escape(),this.Rd(), M.Xb(d,"wt-mcp-ol-in"),Y.end?(J(d,Y.end,function(){b.ud()}),c.tc(d)):this.ud())};c.prototype.Ge=function(){var a=this;Fa(this.yd);this.yd=I(document,"focusin",function(b){"undefined"!==typeof b&&a.P&&a.P!==b.target&&!a.P.contains(b.target)&&c.focus(a.P)})};c.prototype.escape=function(){var a=this;if(this.xa){var b=I(window,"keyup",function(d){27===d.keyCode&&a.Mb()});this.pb.push(b)}else this.xa||Ea(this.P)};c.prototype.ud=function(){var a=this;this.P.style.display="none";this.Zc(function(){a.ca.parentNode.removeChild(a.ca); Uc=!1;M.removeNode(a.P);a.Rd();a.P=null;a.yc=String(z())})};c.prototype.Zc=function(a){var b=this;if(a)if(this.xa){this.ca=M.i("div",{id:"wt-mcp-ol-bd",className:"wt-mcp-ol-modal-backdrop wt-mcp-ol-fade"});M.appendChild(document.body,this.ca);var d=I(this.P,["click","touchend"],ac(function(e){e.target===e.currentTarget&&b.Mb()},this));this.pb.push(d);Oc(this.ca.offsetWidth);Lc(this.ca,{opacity:this.options.Jc});Y?(J(this.ca,Y.end,a),c.tc(this.ca)):a()}else!this.xa&&this.ca?(Lc(this.ca,{opacity:0}), Y&&0!==this.options.Jc?J(this.ca,Y.end,a):a()):a&&a()};c.prototype.preload=function(){var a=this,b=M.getElementById(this.od);if(b){if(b.getAttribute("data-inst")===this.yc)return;M.removeNode(b)}var d=this.options.Ke?"width: ":"max-width: ",e=M.i("div",{id:this.od,"class":"wt-mcp-ol-modal wt-mcp-ol-fade",tabIndex:"-1",style:"display: none","data-inst":this.yc});b=[];this.options.height&&b.push("height: ".concat(this.options.height,"px"));this.options.width&&b.push("width: ".concat(this.options.width, "px"));b=M.i("div",{"class":"wt-mcp-ol-modal-content",style:b.join("; ")});var f;"iframe"===this.type?f=M.i("iframe",{id:"wt-mcp-ol-iframe-".concat(this.id),"class":"wt-mcp-ol-iframe",horizontalscrolling:"no",verticalscrolling:"no",scrolling:"no",width:"100%",height:"100%",frameborder:"0",vspace:"0",hspace:"0",marginWidth:"0",marginHeight:"0",allowtransparency:"true",seamless:"true",target:"_parent",src:this.options.url}):"div"===this.type&&(f=M.i("div",{id:"wt-mcp-ol-div-".concat(this.id),"class":"wt-mcp-ol-div", height:"100%"}));var g=[];this.options.width&&g.push("".concat(d).concat(this.options.width+40,"px"));switch(this.options.position){case "top":g.push("top: 0");g.push("left: 50%");g.push("transform: translateX(-50%) !important");break;case "right":g.push("right: 0");g.push("top: 50%");g.push("transform: translateY(-50%) !important");break;case "bottom":g.push("bottom: 0");g.push("left: 50%");g.push("transform: translateX(-50%) !important");break;case "left":g.push("left: 0");g.push("top: 50%");g.push("transform: translateY(-50%) !important"); break;case "center":g.push("top: 50%");g.push("left: 50%");g.push("transform: translateX(-50%) translateY(-50%) !important");break;case "custom":var k=d="0",l="0",m="0";this.options.Bd&&(l=this.options.Bd);this.options.Cd&&(m=this.options.Cd);g.push("margin: ".concat(m," ").concat(l));"left"===this.options.positionX?g.push("left: 0"):"right"===this.options.positionX?g.push("right: 0"):(g.push("left: 50%"),d="-50%");"top"===this.options.positionY?g.push("top: 0"):"bottom"===this.options.positionY? g.push("bottom: 0"):(g.push("top: 50%"),k="-50%");g.push("transform: translateX(".concat(d,") translateY(").concat(k,") !important"))}g=M.i("div",{"class":"wt-mcp-ol-modal-dialog",style:g.join("; ")},b);this.options.zf&&M.appendChild(g,M.i("div",{"class":this.options.xe||"wt-mcp-ol-modal-close","data-dismiss":"overlay"},M.createElement("span")));M.appendChild(e,g);f&&M.appendChild(b,f);document.body?(M.appendChild(document.body,e),this.P=e):document.addEventListener("DOMContentLoaded",function(){M.appendChild(document.body, e);a.P=e})};c.prototype.Rd=function(){H(this.pb,function(a){Fa(a)});this.pb=[]};c.focus=function(a){la(a.focus)&&a.focus()};c.tc=function(a){var b=!1;J(a,Y.end,function(){b=!0});setTimeout(function(){if(!b){var d=Y.end,e=xa(a);if(e&&(d=e.K[d.toString()]))for(d=d.concat(),e=0;e=this.action.fb)?(D.log("clientRule: ".concat(this.h.cmp, " sessionCount reached -> not registered.")),!0):!1};c.prototype.ie=function(){var a=this;w(this.action.Ma)&&0f||b&&b>f||(b=f)}});b?(D.info("clientRule: starting timeSymbol timer for ".concat(this.h.cmp)),this.kb(1E3*b,"clientRule: timeSymbol timer fired for ".concat(this.h.cmp))):d&&this.kb()};c.prototype.Df=function(){var a=this;L("symbolUpdate",function(b){a.Ga||(a.Y||"AUDIENCESTREAM"!==a.action.type?H(["page","visit","visitor"],function(d){for(var e in b)if(0<=G(a.J[d],b[e+""])){D.info("clientRule: symbol update received (".concat(a.h.cmp, ") for ").concat(b));a.kb();break}}):(D.info("clientRule: re-trigger (".concat(a.h.cmp,"), if the page was updated (").concat(b,")")),a.kb()))});L("pageChange",function(){a.Jb=!1;a.Ga=!1})};c.prototype.bf=function(){var a=this;""===this.action.url?this.type="MADE":B()?D.log("clientRule: stopping because in iframe ".concat(this.h.cmp)):(this.Ca="overlay",this.action.content=Ub(this.M.Eb+this.action.url,"GET").catch(function(b){D.error("clientRule: couldnt grab custom html content",b);D.D({trackId:a.M.trackId, C:a.M.g.eid,type:"error",F:"clientRule: couldnt grab custom html - ".concat(b),X:a.M.V});return""}),this.ta=new Vc(this.id,"div",this.action,function(b){a.yb(b)},function(){Q(a.h);a.Vc("Overlay - Custom HTML")}))};c.prototype.cf=function(){function a(){}var b=this;if(this.action.content&&y(this.action.content))try{a=new Function("".concat(this.action.content))}catch(d){D.error('error parsing custom js content "'.concat(this.h.content,'"'),d),D.D({type:"error",F:'custom js content "'.concat(this.h.content, '" parsing - ').concat(d.message)})}this.action.ac=!1;this.Ca="manual";this.ta={show:function(){try{a()}catch(d){D.error('error executing custom js "'.concat(b.h.content,'"'),d),D.D({type:"error",F:'custom js "'.concat(b.h.content,'" executing - ').concat(d.message)})}return!0}}};c.prototype.df=function(){var a=this;B()?D.log("clientRule: stopping because in iframe ".concat(this.h.cmp)):(this.Ca="overlay",this.action.url=jb(this.action.url||"",{wt_eid:this.M.g.eid,wt_t:z(),wt_mcp_parent:!0}),this.ta= new Vc(this.id,"iframe",this.action,function(b){a.yb(b)},function(){Q(a.h);a.Vc("Overlay - Layer")}))};c.prototype.$e=function(){var a=this;this.ie();this.action.ac=!1;this.Ca="manual";this.ta={show:function(){D.log("clientRule: ".concat(a.h.cmp," triggered audience stream tracking."));var b=a.action.url;if("CUSTOM_TRACKING_EVENT_WHITEBOARD"===a.action.Sc){var d={ct:"webtrekk_ignore",ecwen:a.h.cmp,ecwei:a.ib};b+="?p=600,0";b=jb(b,d)}d=a.rb.ya[a.Ub].R;var e=d.inputKeys||d.g,f=!1;if(w(a.action.Ma)&& 0 setting inactive.")),this.Ga=!0;else if("MADE"!==this.type&&(this.fd(),this.Df(),!this.Y))var d=window.setInterval(function(){document.body&&(window.clearInterval(d),d=null,a.kb(1))},100)}};c.prototype.evaluate=function(a, b){void 0===a&&(a="MCP");void 0===b&&(b="");if(this.type!==a||b&&this.Ub!==b)return!1;if(this.Ga)return D.log("clientRule: ".concat(this.h.cmp," is deactivated.")),!1;if(this.Jb)return D.log("clientRule: ".concat(this.h.cmp," already fired -> suppressed.")),!1;if(-1!==this.action.fb&&X.ja(this.wb,"visit","count")>=this.action.fb)return D.log("clientRule: ".concat(this.h.cmp," sessionCount reached -> suppressed.")),this.Ga=!0,!1;if(this.action.urlRegex&&-1===window.location.href.search(this.action.urlRegex))return D.log("clientRule: ".concat(this.h.cmp, " urlRegex not fullfilled -> suppressed.")),this.Ga=!0,!1;D.info("clientRule: eval rule ".concat(this.h.cmp," (").concat(this.id,") for type ").concat(a));try{if(null!==this.Y&&!yc.evaluate(this.Y))return this.fd(),D.info("clientRule: ".concat(this.h.cmp," didnt eval true -> suppressed.")),!1}catch(d){return D.error("clientRule: exception in ".concat(this.h.Na),d),D.D({trackId:this.M.trackId,C:this.M.g.eid,type:"error",F:"clientRule: exception in ".concat(this.h.Na," - ").concat(d.message),X:this.M.V}), !1}a=!0;this.Fc?this.Ka?(D.info("clientRule.checkOptIn: ".concat(this.h.cmp," need an opt-in.")),b=tc(this.Tb),"1"!==b&&(a=!1),D.info("clientRule.checkOptIn: ".concat(this.h.cmp," opt-in status: ").concat(a," (").concat(b,")"))):D.info("clientRule.checkOptIn: ".concat(this.h.cmp," opt-in key is empty.")):D.info("clientRule.checkOptIn: ".concat(this.h.cmp," doesn't need an opt-in."));if(!a)return!1;D.log("clientRule: ".concat(this.h.cmp," fired!"));if(this.ta){a=this.ta.show();D.log("clientRule: ".concat(this.h.cmp, " action handle result (").concat(a,")!"));if(!a)return!1;"COMBINED"!==this.action.type&&this.yb(!1)}D.log("clientRule: ".concat(this.h.cmp," > ").concat(this.type," fired!"));"MCP"===this.type&&(this.Jb=!0);D.log("clientRule: ".concat(this.h.cmp," > ").concat(this.type," fired (").concat(this.Jb,")!"));-1!==this.action.fb&&(X.Vd(this.wb,1),X.ja(this.wb,"visit","count")>=this.action.fb&&(this.Ga=!0));return!0};return c}(); function Wc(c,a){var b=Z,d=b.ya[a],e="(".concat(d.A.count,"/").concat(a,")");D.log("init.headCall ".concat(e));return(new Vb(c,void 0)).get(d).then(function(f){D.log("init.headCall ".concat(e,": got serverCfg"),f);d.ma=f;f.C&&f.C!==d.C?(d.C=f.C,c.g.eid=d.C):d.C&&!c.g.eid&&(c.g.eid=d.C);if(!f.ua||0===f.ua.length)return D.log("init.headCall ".concat(e,": rtb engine didnt start -> no rules")),f;D.info("init.headCall ".concat(e,": rtb engine starting"));return X.Be(a).then(function(g){D.log("init.headCall ".concat(e, ": rtb engine started"),g);0 ").concat(b));var f=this.O.height/b;isFinite(a)||(a=1);isFinite(f)||(f=1);e=!e&&d?b/d:null;var g=this.O.height/this.O.width;D.log("Banner.getDimensions (".concat(this.identifier,") box ratio:").concat(e," and img ratio: ").concat(g));return{height:b,width:d,Lb:f,fc:a,ratio:e,xc:g}};c.prototype.Ce=function(a){var b=this.Ne(a),d=M.i("img",{src:this.O.url}),e=M.i("div",null,M.i("a",{href:this.O.Ff},d));e.style.overflow="hidden";e.style["text-align"]="center"; var f=Cc();f.item=e;f.data.Qa=this.j.m.title;f.data.Ra=this.O.title;f.data.Pa=this.j.ha.$c;f.data.variant="campaign";f.data.requestId=this.j.eb;this.j.ff?f.data.variant="testing":this.j.Ob&&(f.data.variant="control group");f.Fb=this.Ec.Tc;f.U=this.Ec.U;Dc(f,"banner",this.Ec.zb);M.Gd(a);M.appendChild(a,e);"define"===this.O.Qc?(a=b.height,Kc(e,b.width),Jc(e,a),1>=b.fc&&1>=b.Lb?(b=this.O.height,Kc(d,this.O.width),Jc(d,b)):(D.log("Banner.buildWidget (".concat(this.identifier,"): scaling image ").concat(b.fc, "/").concat(b.Lb)),b.Lb*this.O.width>=b.width&&b.fc*this.O.height=M.mb(this.identifier).length?D.error("Banner.start (".concat(this.identifier,"): couldnt find the target element ").concat(this.identifier)):this.re()};return c}(),ad=function(){function c(a,b){this.jc="wt-mcp-html-script-"; this.item=null;this.vb=[];D.log("CustomHtml.ctor");this.j=a;this.R=b;this.identifier=c.Sa(this.j.m.identifier);this.sa=M.mb(this.identifier);this.Rb=this.j.va.vd;0>=this.sa.length?D.error("customHtml.create: couldnt find element",this.identifier):y(this.Rb)||D.error("customHtml.create: no markup given")}c.Sa=function(a){return/^[#.].+/.test(a)?a:/^[1-9]/.test(a)?"[id='".concat(a,"']"):"#".concat(a)};c.prototype.wf=function(a){var b=this;D.log("CustomHtml.replaceScriptTags (markup)",a);return a.replace(/([\s\S]*?)<\/script>/gmi, function(d,e,f){return b.xf(d,e,f)})};c.prototype.xf=function(a,b,d){D.log("CustomHtml.replaceScriptTagsMatchHandler (match, attrs, content)",[a,b,d]);b=M.createElement("div");b.innerHTML=a;a=b.firstChild;b={};for(var e=0;e")};c.prototype.Ye=function(){var a=this;D.log("CustomHtml.includeScriptTags",this.vb);H(this.vb,function(b, d){var e=M.Oe("".concat(a.jc).concat(d+1),a.item);e?M.appendChild(e,b):D.error("Couldnt find script tag selector ".concat(a.jc).concat(d+1))});this.vb=[]};c.prototype.yb=function(a){D.log("CustomHtml._teaserTracking");var b=Cc();b.item=a;b.data.Qa=this.j.m.title;b.data.Ra=this.j.va.jd;b.data.Pa=this.j.va.dd;b.data.variant="campaign";b.data.requestId=this.j.eb;this.j.Ob&&(b.data.variant="control group");b.Fb=this.R.Tc;b.U=this.R.U;Dc(b,"custom",this.R.zb)};c.prototype.start=function(){var a=this;D.log("CustomHtml.append"); var b=this;H(this.sa,function(d){M.Gd(d);b.Rb=b.wf(a.Rb);b.item=M.createElement("div");b.item.innerHTML=b.Rb;b.Ye();M.appendChild(d,b.item);b.yb(d)})};return c}(),bd=!1,cd=function(){function c(a,b,d){this.Ya={};this.Pb=!1;this.Yc=this.Ea=this.Fa=this.$=this.Z=this.Da=this.S=this.N=this.Ta=null;this.align="horizontal";D.log("Reco(".concat(a.m.identifier,").ctor"));this.s=a.m.ra;this.j=a;this.R=b;this.sc="wt-".concat(this.j.eb);this.I=a.m.identifier;this.identifier=c.Sa(this.I);this.T=d;this.s.id= this.I;this.jb=new Gc(0,0);this.ba={hc:null,ic:null};this.j.rd=this.j.rd||!1;this.j.Hb=this.j.Hb||!1}c.Sa=function(a){return/^[#.].+/.test(a)?a:/^[1-9]/.test(a)?"[id='".concat(a,"']"):"#".concat(a)};c.prototype.Ia=function(a,b){D.log("Reco(".concat(this.I,").loadPage (next:").concat(a,", isEndless:").concat(b,")"));var d=this;return function(){D.info("Reco(".concat(d.I,").loadPage.click (isSlideshowActive:").concat(d.Pb,")"));if(!d.Pb){d.Pb=!0;var e=void 0!==d.S.style.transitionDuration,f=parseFloat(d.S.getAttribute("data-transition-duration")), g=0;if("vertical"===d.align){var k=d.S.offsetTop;var l=d.N.clientHeight;var m=d.S.clientHeight;var n="top"}else k=d.S.offsetLeft,l=d.N.clientWidth,m=d.S.clientWidth,n="left";a?g=b&&-k===m-l?0:-(k-l)>=m-l?-(m-l):k-l:0<-k-l&&(g=k+l);d.td(-g,l,m);e&&b&&0===g&&(d.S.style.transitionDuration="0s");d.S.style[n]="".concat(g,"px");window.setTimeout(function(){e&&(d.S.style.transitionDuration="".concat(f,"s"));d.Pb=!1},1E3*f)}}};c.prototype.td=function(a,b,d){null!==this.$&&null!==this.Z&&(0>=a?(M.lc(this.$, "disabled"),M.Xb(this.Z,"disabled")):(a+b>=d?M.lc(this.Z,"disabled"):M.Xb(this.Z,"disabled"),M.Xb(this.$,"disabled")))};c.prototype.Uc=function(a){D.info("Reco(".concat(this.I,").toggleAutoCarousel stop:").concat(a));this.Ua&&window.clearInterval(this.Ua);a?this.Yc&&window.clearTimeout(this.Yc):this.Ua=window.setInterval(this.Ia(!0,!0),1E3*this.s.fa.Ua)};c.prototype.ef=function(){D.log("Reco(".concat(this.I,").injectCss"));bd||(Hc(".wt-widget, .wt-widget * {box-sizing: border-box;}.wt-widget {height: 100%;width: 100%;overflow: hidden;position: relative;}.wt-widget-row:after, .wt-widget-row:before {display: table;content: ' ';clear: both;}.wt-widget-col {height: 100%;float: left;}.wt-widget-nav-outer {width: 39px;cursor: pointer;}.wt-widget-vertical .wt-widget-nav-outer {height: 39px;width: 100%;text-align: center;}.wt-widget-nav {height: 100%;width: 100%;display: inline-block;}.wt-widget-nav:before {display: block;}.wt-widget-nav.up:before,.wt-widget-nav.left:before {content: '<';}.wt-widget-nav.down:before,.wt-widget-nav.right:before {content: '>';}.wt-widget-nav.up:before,.wt-widget-nav.down:before {position: relative;top: 50%;transform: translateY(-50%) rotate(90deg);-ms-transform: translateY(-50%) rotate(90deg);}.wt-widget-nav.right,.wt-widget-nav.left {text-align: center;}.wt-widget-horizontal .wt-widget-nav,.wt-widget-cubical .wt-widget-nav,.wt-widget-nav.right:before,.wt-widget-nav.left:before {position: relative;top: 50%;transform: translateY(-50%);-ms-transform: translateY(-50%);}.wt-reco-wrapper-outer {height: 100%;margin: 0;padding: 0;position: relative;overflow: hidden;}.wt-reco-wrapper-inner {height: 100%;margin: 0;padding: 0;display: block;list-style-type: none;position: absolute;left: 0;top: 0;overflow: hidden;white-space: nowrap;}.wt-widget-vertical .wt-reco-wrapper-inner {height: auto;width: 100%;}.wt-widget-vertical .wt-reco-item {width: auto;display: block;}.wt-reco-item img {max-width: 100%;height: auto;}.wt-reco-item {height: 100%;width: 160px;padding: 5px 8px;display: inline-block;white-space: nowrap;color: #333;font-size: 14px;text-align: center;text-decoration: none;}.wt-reco-item-empty {display: none;}.wt-reco-item a {display: block;max-height: 100%;overflow: hidden;color: inherit;text-decoration: inherit;}.wt-reco-item a:active, .wt-reco-item a:focus, .wt-reco-item a:visited {color: inherit;text-decoration: inherit;}.wt-reco-item img {max-height: 180px;width: auto;}.wt-widget-banner-front,.wt-widget-banner-back {display:none;}.wt-widget-banner a {height:100%;width: 100%;display:inline-block;}"), bd=!0);if(this.s.Wa&&y(this.s.Wa)){var a=this.identifier;this.s.Wa=this.s.Wa.replace(/(^|}|\*\/)\.(wt-widget-|wt-reco-)/gmi,function(d,e,f){return"".concat(e).concat(a," .").concat(f)});this.pa={};var b=this.s.Wa.match(/\.wt-reco-item\s{([^*]*)}/gmi);b&&y(b[0])&&(this.pa={width:(b[0].match(/min-width\s*:\s*(\d*)px/mi)||[])[1],height:(b[0].match(/min-height\s*:\s*(\d*)px/mi)||[])[1]},D.info("Reco(".concat(this.I,").injectCss: found reco item min width value ").concat(this.pa)));Hc(this.s.Wa)}};c.prototype.md= function(){D.log("Reco(".concat(this.I,").determineDimensions"));var a=this.j.Hb,b=this.Ta.clientHeight-1,d=this.Ta.clientWidth-1;null===this.$||null===this.Z||a||("vertical"!==this.align?(d-=this.$.offsetWidth,d-=this.Z.offsetWidth):(b-=this.$.offsetHeight,b-=this.Z.offsetHeight));"horizontal"!==this.align?(b-=this.Ea.offsetHeight,b-=this.Fa.offsetHeight):(d-=this.Ea.offsetWidth,d-=this.Fa.offsetWidth);return new Gc(d,b)};c.prototype.Kf=function(){var a=this.T.clientHeight,b=this.T.clientHeight; this.j.rd&&null!==this.Da?(a+=this.Da.offsetHeight,a+=this.Da.offsetTop):null!==this.Da&&(b-=this.Da.offsetHeight,b-=this.Da.offsetTop);"vertical"!==this.align||this.j.Hb||null===this.$||null===this.Z||(b-=this.$.offsetHeight,b-=this.Z.offsetHeight);"horizontal"!==this.align&&(b-=this.Fa.offsetHeight,b-=this.Ea.offsetHeight);this.T.style.height="".concat(a,"px");this.N.parentElement.style.height="".concat(b,"px")};c.prototype.se=function(){var a=this;D.log("Reco(".concat(this.I,").buildWidgetScaffold")); this.T.innerHTML="";var b=this.s.fa.sd;this.Ta=M.i("div",{id:this.sc,"class":"wt-widget wt-widget-reco wt-widget-".concat(this.align),style:"visibility: hidden;"});M.appendChild(this.T,this.Ta);b&&0this.s.fa.bc? (this.$=this.bd("vertical"===this.align?"up":"left"),this.Z=this.bd("vertical"===this.align?"down":"right"),this.$.onclick=this.Ia(),this.Z.onclick=this.Ia(!0),this.td(0,0,0),-1!==this.s.fa.Ua&&(this.Uc(),I(this.T,"mouseover",function(){D.info("Reco(".concat(a.I,") autoCarousel: mouseover detected -> stopping auto scroll"));a.Uc(!0)}),I(this.T,"mouseout",function(){D.info("Reco(".concat(a.I,") autoCarousel: mouseout detected -> continuing auto scroll"));a.Uc()}))):this.j.Hb=!0;this.N=M.i("div",{"class":"wt-widget-col wt-reco-wrapper-outer"}); b=[];"vertical"===this.align?(b.push(M.i("div",{"class":"wt-widget-row"},this.Fa)),b.push(M.i("div",{"class":"wt-widget-row"},this.$)),b.push(M.i("div",{"class":"wt-widget-row"},this.N)),b.push(M.i("div",{"class":"wt-widget-row"},this.Z)),b.push(M.i("div",{"class":"wt-widget-row"},this.Ea))):"cubical"===this.align?(b.push(M.i("div",{"class":"wt-widget-row"},this.Fa)),b.push(M.i("div",{"class":"wt-widget-row"},this.$,this.N,this.Z)),b.push(M.i("div",{"class":"wt-widget-row"},this.Ea))):b.push(M.i("div", {"class":"wt-widget-row"},this.Fa,this.$,this.N,this.Z,this.Ea));M.ke(this.Ta,b);this.jb=this.md();this.N.style.width="".concat(this.jb.width,"px");this.Kf();this.oe();M.appendChild(this.N,this.S);this.Ta.style.visibility=""};c.prototype.ad=function(a,b){D.log("Reco(".concat(this.I,").buildBanner suffix: ").concat(a,", link: ").concat(b));return M.i("div",{id:"".concat(this.I,"-wt-widget-banner-").concat(a),"class":"wt-widget-col wt-widget-banner wt-widget-banner-".concat(a)},M.i("a",{href:b,target:"_blank"}))}; c.prototype.bd=function(a){D.log("Reco(".concat(this.I,").buildNavItem orientation: ").concat(a));return M.i("div",{"class":"wt-widget-col wt-widget-nav-outer"},M.i("span",{"class":"wt-widget-nav ".concat(a)}))};c.prototype.oe=function(){var a=this;D.log("Reco(".concat(this.I,").buildReco"));var b=this.gd(),d=this.j.la.items,e=Math.ceil(d.length/b)*b;this.S=this.pe(this.ue(b,e));var f=this.s.fa.Gc,g=!1;H(this.j.la.Xd,function(m,n){a.Ya[m.id]=n;"url"===m.dataType&&(a.De=n);!g&&0<=G(f,m.id)&&(g=!0)}); if(f&&f.length){b=Math.floor(100/e*100)/100;for(var k=0;kl&&(m="".concat(m.substring(0,l-3),"..."))),l=m,m="wt-widget-text-field"}m+=" wt-widget-category-".concat(e[k].toLowerCase().split(" ").join("")); g.push(M.i("div",{"class":m},l))}e=M.i.apply(M,p(["a",{href:d[this.De]||"#",target:"_top"}],g,!1));f="width";"vertical"===this.align&&(f="height");b=M.i("li",{"class":"wt-reco-item wt-reco-item-slot-".concat(a),style:"".concat(f,": ").concat(b,"%;")},e);f=Cc();g=this.Ya.campaignTitle||this.Ya.ruleTitle;f.item=e;f.sa=this.S;f.data.Qa=this.j.m.title;f.data.Ra=d[this.Ya.id];f.data.Pa=d[g];f.data.variant="campaign";f.data.requestId=this.j.eb;f.data.xd="".concat(a);this.j.Ob&&(f.data.variant="control group"); f.Fb=this.R.Tc;f.U=this.R.U;Dc(f,"reco",this.R.zb);return b};c.prototype.Hf=function(a){if(a=a.touches[0]||a.changedTouches[0])this.ba.move=!1,this.ba.hc=a.clientX,this.ba.ic=a.clientY};c.prototype.Gf=function(a){if(this.ba.hc&&this.ba.ic&&this.ba.move){D.info("Reco(".concat(this.I,").touchend: detected touch swipe to change page"));var b=a.touches[0]||a.changedTouches[0];b&&(a=this.ba.hc-b.clientX,b=this.ba.ic-b.clientY,Math.abs(a)>Math.abs(b)?0b?"cubical":this.T.clientHeight>this.T.clientWidth?"vertical":"horizontal";this.ef();this.se();var d=I(window,"resize",function(){D.log("Reco(".concat(a.I, ").resize ").concat(a.sc));if(M.getElementById(a.sc)){var e=a.md();if(0!==e.width&&0!==e.height&&!Gc.He(a.jb,e)){D.log("RecoWidget.resize: size changed!");a.jb=e;a.N.style.width="".concat(a.jb.width,"px");e=a.gd();var f=Math.ceil(a.j.la.items.length/e)*e;"vertical"===a.align?a.S.style.height="".concat(a.N.offsetHeight/e*f,"px"):a.S.style.width="".concat(a.N.offsetWidth/e*f,"px");var g=Math.floor(100/f*100)/100;H(M.Qe("wt-reco-item",a.S),function(k){"vertical"===a.align?k.style.height="".concat(g, "%"):k.style.width="".concat(g,"%")})}}else Fa(d)});this.T.addEventListener("touchstart",function(e){a.Hf(e)});this.T.addEventListener("touchmove",function(e){a.ba.move=!0;e.preventDefault()});this.T.addEventListener("touchend",function(e){a.Gf(e)})}else D.log("Reco(".concat(this.I,").start: no items found aborting.")),!0===this.j.Ob&&(D.log("Reco(".concat(this.I,").start: this is an empty contrl grp, sending tracking data.")),"1"===this.R.zb?this.R.V.tt.addClickParameter(this.j.m.title,"no visible controlgroup", "","1","","","","control group","",!1,this.j.eb,"","","",""):(b=this.R.U,window[b]=window[b]||[],window[b].push(["view",{name:"no visible controlgroup",rank:this.j.m.title,content:"",variant:"control group",requestId:this.j.eb,targetGroup:"",rule:"",itemPage:"",itemPosition:""}])))};return c}(),dd=function(){function c(){}c.Sa=function(a){return/^[#.].+/.test(a)?a:/^[1-9]/.test(a)?"[id='".concat(a,"']"):"#".concat(a)};c.prototype.start=function(a,b){H(M.mb(c.Sa(a.m.identifier)),function(d){D.log("wt.mcp.recommend.create", a,b);(new cd(a,b,d)).start()})};return c}(); function ed(c,a,b,d){var e=c.trackId;D.log("(".concat(e,") serverContent: grabing widgetData"));if(window.wt_masterExampleMockResponse)return Promise.resolve(ra(window.wt_masterExampleMockResponse.content,Zc));var f={};f=b&&b.filter.g&&0<=b.filter.g.length?ea(c.g,function(n,v){return 0<=G(b.filter.g,v)}):c.g;d&&u(d.g)&&r(d.g,function(n,v){f[v]=n});f.eid||(f.eid=c.g.eid);var g=[];if(b&&b.filter.tb&&0<=b.filter.tb.length){var k=W.wc(c.g,{},"");W.Lc(c.g,k,W.Oc(k));H(b.filter.tb,function(n){w(n.categoryFilters)&& H(n.categoryFilters,function(v){if(y(v.inputKey)&&ma(k[v.inputKey])){var t=k[v.inputKey];w(t)&&(t=t.join(";"));v.inputValue=t}});-1!==G(a,n.identifier)&&g.push(n)})}var l={trackId:e,url:c.url||document.location.href,withConfig:!1,inputKeys:f,placements:g};d&&u(d.request)&&r(d.request,function(n,v){l[v]=n});var m;return Ub(c.ec,"POST",l).then(function(n){n=E(n).content||[];D.log("(".concat(e,") serverContent: grabing widgetConfigs"));if(!n||0===n.length)return D.log("(".concat(e,") serverContent: no content retrieved -> stopping")), Promise.all([]);var v=[];m=ra(n,Zc);H(m,function(t){var C=c.Eb+t.m.ra;"ONSITEDIV_CUSTOM_HTML"===t.m.type&&(C=c.Eb+t.va.ze);t.la&&0===t.la.items.length?(D.error("(".concat(e,") serverContent: no reco items transmitted, stopping for this widget cfg"),t.m.identifier),v.push(Promise.resolve("[]"))):v.push(Ub(C,"GET"))});return Promise.all(v)}).then(function(n){D.log("(".concat(e,") serverContent: merging serverContent and config"),m,n);var v=[];H(n||[],function(t,C){var R=m[C].m;if(u(t))D.error("(".concat(e, ") serverContent: couldn't grab widgetConfig"),t.text),D.D({trackId:e,C:c.g.eid,type:"error",F:"serverContent: couldn't grab widgetConfig (".concat(R.ra,") - ").concat(t.text),X:c.V}),m[C].Xe=!0,v.push(m[C]);else{try{var sa=E(t)}catch(nd){sa=t}w(sa)&&w(sa)&&!sa.length||("ONSITEDIV_CUSTOM_HTML"===R.type?m[C].va.vd=t:R.ra=0!==t.length?sa:null,v.push(m[C]))}});return v}).catch(function(n){D.error("(".concat(e,") error retrieving serverContent"),n);D.D({trackId:e,C:c.g.eid,type:"error",F:"error retrieving serverContent (".concat(a, ")- ").concat(n),X:c.V});return[]})} function fd(c,a,b){var d=[],e,f=!1;H(c,function(g){D.log("switch: ".concat(g.m.type),g.m.identifier);d.push(g.m.identifier);if(!g.Xe)switch(g.m.type){case "ONSITEDIV_BANNER":f=!0;e=E(g.ha.ha);Q({identifier:g.m.identifier,type:g.m.type,bb:g.m.title,cmp:g.ha.$c,content:(e||{}).title||""});D.log("Banner.create",g.ha.ha);var k=E(g.ha.ha);if(k){var l=g.m.ra;D.log("Banner.externalToBannerConfig");D.log("banner scaling type and size",l.bannerScaling,l.bannerSize);var m={id:k.id};m.width=k.width||0;m.height= k.height;m.title=k.title;m.url=k.url;m.Ff=k.targetUrl;m.Qc=A(l.bannerScaling,"contain");m.Ee=A(l.bannerSize,"250x250");Hb(m.id,"invalid id");Hb(m.width,"invalid width");(new $c(m,g,a)).start()}break;case "ONSITEDIV_RECO":if(!u(g.m.ra))break;f=!0;Q({identifier:g.m.identifier,type:g.m.type,bb:g.m.title,cmp:"",content:""});k=g.m;l=g.m.ra;D.log("extToRecoConfig",l);m=l.customCss;var n=l.layout;D.log("wt.mcp.recommendDiv.externalToLayoutConfig",n);n={Ua:A(n.autoCarousel,-1),kd:A(n.currencySymbol,"\u20ac"), Fe:A(n.displayLoadingAnimation,!1),sd:A(n.feedRowTitles,[]),Gc:A(n.objectPropertyDisplayOrder,[]),Rc:A(n.shortenTitlesTo,40),hb:A(n.thousandSeparator,"comma"),bc:A(n.visibleObjectCount,6)};switch(n.hb){case "comma":n.hb=",";break;case "point":n.hb="."}Hb(n.Ua,"autoCarousel");T(n.kd,"currencySymbol");Ib(n.Fe,"displayLoadingAnimation");U(n.sd,"feedRowTitles");U(n.Gc,"objectPropertyDisplayOrder");Hb(n.Rc,"shortenTitlesTo");Fb(10 10");T(n.hb,"thousandSeparator");Hb(n.bc,"visibleObjectCount"); Fb(0 0");k.ra={id:"",Wa:m,fa:n,Me:l.frontBannerLink,le:l.backBannerLink,version:parseInt("".concat(l.version))||0};1<=g.m.ra.version&&(D.log("wt.mcp.recommendDiv.create",g,a),(new dd).start(g,a));break;case "ONSITEDIV_CUSTOM_HTML":f=!0;Q({identifier:g.m.identifier,type:g.m.type,bb:g.m.title,cmp:g.va.dd,content:g.va.jd});D.log("customHtml.create identifier ".concat(g.m.identifier));(new ad(g,a)).start();break;default:D.log("init.bodyCall ".concat(b,": unknown channelType ").concat(g.m.type))}}); return{Le:d,vf:f}}function gd(c,a){a=a||[];for(var b=[],d=0;d