!function(d){var r=null==d.c?"":d.c,l=null==d.mc?"":d.mc,m=[{pattern:"^https?://example.com[/?]",click_key:"click",mcv_key:"mcv"},{pattern:"^https?://mobee2.jp[/?]",click_key:"_xuid",mcv_key:"sad"}],i=function(a){var h=document.cookie;if(""===h)return"";a=h.match(RegExp("(?:^|;)\\s*"+a+"\\s*\x3d\\s*([^;\\s]+)"));return null===a?"":decodeURIComponent(a[1])};d=function(a,h){var b;""!==h&&(b=""+(a+"\x3d"+encodeURIComponent(h)+";"),b+="path\x3d/;max-age\x3d7776000;",document.cookie=b)};var n=function(a){var b;
try{b=window.top.location.href}catch(d){b=document.referrer}var e=new XMLHttpRequest;a="https://k.zucks.net/ce/?c\x3d"+encodeURIComponent(r)+"\x26t\x3dlp\x26m\x3d"+encodeURIComponent(a)+"\x26loc\x3d"+encodeURIComponent(b)+"\x26suuid\x3d"+encodeURIComponent(i("_ZUCKSUUID"))+"\x26suid\x3d"+encodeURIComponent(i("_ZUCKSSUID"));e.open("GET",a,!0);"withCredentials"in e&&(document.location.origin&&"null"!==document.location.origin&&"file://"!==document.location.origin)&&(e.withCredentials=!0);e.send()},
o=function(a){if("string"!==typeof a)return"";a=a.match(/(?:\?|&)_zucks_suid=([^&#]+)/);return null===a?"":a[1]},p=function(a){return a.key+"\x3d"+a.value},j=function(a,b,d,e){if(a&&"body"!==a.nodeName.toLowerCase()&&b)if(a.href){var g=a.href;if(/^https?:\/\//.test(g)){var c=[{key:"_zucks_suid",value:encodeURIComponent(b)}];d&&(c=c.concat(e.filter(function(a){try{return RegExp(a.pattern).test(g)}catch(b){return n(b.message),!1}}).map(function(a){return[{key:a.click_key,value:encodeURIComponent(b)},
{key:a.mcv_key,value:d}]}).flat()));if(0!==c.filter(function(a){return-1===g.indexOf(p(a))}).length){e=c.map(p).join("\x26");var c=-1===g.indexOf("?")?"?":"\x26",f=g.indexOf("#");a.href=-1===f?g+c+e:g.slice(0,f)+c+e+g.slice(f)}}}else return j(a.parentNode,b,d,e)};try{var f,b;try{b=o(window.top.location.search)}catch(t){b=""}var c=b||o(document.referrer);f=decodeURIComponent(c)||i("_ZUCKSSUID");if(""!==f){d("_ZUCKSSUID",f);var k=i("_ZUCKSUUID");if(""===k){b="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("");
for(var c=0,s=b.length;c<s;c++)switch(b[c]){case "x":b[c]=Math.floor(16*Math.random()).toString(16);break;case "y":b[c]=(Math.floor(4*Math.random())+8).toString(16)}k=b.join("")}d("_ZUCKSUUID",k);window.addEventListener("click",function(a){j(a.target,f,l,m)},!1);try{window!=window.top&&window.top.addEventListener("click",function(a){j(a.target,f,l,m)},!1)}catch(u){}}}catch(q){throw n(q.message),q;}}({"c":"_4bad1bbb26"});