<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">;
(function () {

  var query = location.search.substring(1).split("&amp;").reduce(function (acc, query) {
    var parts = query.split('=');
    if (parts[0] &amp;&amp; 1 &lt; parts.length) {
      acc[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1])
    };
    return acc;
  }, {});

  var ic = query["ic"];
  if (ic) {
    var sns = query["sns"] ? query["sns"] : "none";
    var click = {
      "affiliate_url": location.href,
      "affiliate_introducer_code": ic,
      "affiliate_sns": sns,
      "click_datetime": Date.now(),
      "click_client": navigator.userAgent.match(/iPhone|Android.+Mobile/) ? "sp" : "pc",
      "click_referer": document.referrer
    };
    document.cookie = "click=" + encodeURIComponent(JSON.stringify(click)) + "; path=/; max-age=86400; Secure; SameSite=Lax";
  }

})();
</pre></body></html>