$(document).ready((function(){var $window=$(window),width=$window.width(),height=$window.height(),$centerArea=$("#middle-area > div.center-area"),$params=$("#params"),siteType="smart"==$params.data("device")?"SP":"PC",$sectionType=$("section.section .block-area"),$bg=$("#bg"),$section=$bg.find("section.section"),gdprCookieFlg=$bg.data("gdpr-cookie-flg");if(!window.name){var rum=Math.ceil(100*Math.random()),now=Date.now()/1e3,win_name=Math.ceil(now*rum);window.name=win_name}siteType="smart"==($params=$bg).data("device")?"SP":"PC";var pageID=$params.data("page-id");if($.cookie.json=!0,gdprCookieFlg)var scrollParam=$.cookie("scroll"),clickParam=$.cookie("click");null==scrollParam&&(scrollParam=[]),null==clickParam&&(clickParam=[]);var cl_data={},mouse_moves=[];if($("#bg").on("mousemove",(function(e){if("PC"!=siteType)return!1;x=e.clientX,y=e.clientY+$window.scrollTop(),mouse_moves.push({x:x,y:y})})).on("click tap",(function(e){var offset=0,x,y,data,sp_flg=!1,sp_full_flg=!1,scroll=0;if($sectionType.length){var centerW=$sectionType.eq(0).width(),sectionh=$section.eq(0).height(),centerh=$sectionType.eq(0).height();if(scroll=$window.scrollTop(),width=$bg.width(),sp_flg=!0,pos2_header=0,pos2_footer=0,pos2_other=0,page_bottom=0,1==$bg.data("sp-type")&&"PC"==siteType){var st_index=$("section.section").filter(".active").length?$("section.section").index($("section.section").filter(".active")):0;scroll=sectionh*st_index,page_bottom=sectionh*parseInt($("section.section").length),$("#bg").find("#header").length&&!$("#bg").find("#header.pos2").length&&(page_bottom+=parseInt($("#bg").find("#header").height()))}else{var lt_index=$("section.section").length-1,$_lt_sction=$("section.section").eq(lt_index);page_bottom=parseInt($_lt_sction.position().top)+parseInt($_lt_sction.height()),$("#bg").find("#header").length&&!$("#bg").find("#header.pos2").length&&(page_bottom+=parseInt($("#bg").find("#header").height()))}$(e.target).closest("#header").length&&(!$("#bg").find("#header.pos2").length||$("#bg").find("#header").hasClass("normal-header")),pageID=$bg.data("page-id")}else var centerW=$window.width();"PC"==siteType&&(offset=(width-centerW)/2),sp_flg?("PC"==siteType&&(offset=width>=centerW&&!($(e.target).closest("#header").length||$(e.target).closest("#footer").length||$(e.target).closest("#fixedbanner").length)?(width-centerW)/2:0),x=e.clientX-offset,y=e.clientY+scroll+pos2_header,1==$bg.data("sp-type")&&"PC"==siteType?(y=y-(sectionh-centerh)/2*st_index+pos2_header,x=$(e.target).closest("#header").length||$(e.target).closest("#footer").length||$(e.target).closest("#fixedbanner").length?Math.round(x*(1020/width)):Math.round(x*(1020/centerW)),y=Math.round(y*(573.75/sectionh))):$bg.data("sp-type")||"PC"!=siteType||($(e.target).closest("#header").length&&!$(e.target).closest("#header").hasClass("normal-header")||$(e.target).closest("#footer").length||$(e.target).closest("#fixedbanner").length)&&(x=Math.round(x*(1100/width))),$(e.target).closest("#header").length&&($("#bg").find("#header.pos2").length&&!$("#bg").find("#header").hasClass("normal-header")||$("#bg").find("#header.a-logo-fixed").length&&"PC"!=siteType)&&(y=e.clientY),$(e.target).closest("#footer.pos2").length&&(pos2_footer=$(e.target).closest("#footer.pos2").height(),y=page_bottom-pos2_footer+(e.clientY-parseInt($(e.target).closest("#footer.pos2").position().top))),$(e.target).closest("#fixedbanner.pos2").length&&($("#bg").find("#footer").length&&!$("#bg").find("#footer").hasClass("pos2")&&(page_bottom+=$("#bg").find("#footer").height()),y=page_bottom+(e.clientY-parseInt($(e.target).closest("#fixedbanner.pos2").position().top)))):(x=e.clientX-offset,y=e.clientY+$window.scrollTop()),cl_data={x:x,y:y,page_id:$params.data("page-id"),site_type:siteType,url:location.href,window:width+","+height},(clickParam=[]).push(cl_data),gdprCookieFlg&&$.cookie("click",clickParam,{path:"/"})})),SHFlg>0){var scrolltimer=!1,visittimer=!1,scPageID=$params.data("page-id"),sc_data={},scroll_y=$window.scrollTop(),scroll_x=$window.scrollLeft(),scroll_count_url=analysisUrl+"/scroll_tracking/";visittimer=setInterval((function(){sc_data={x:scroll_x,y:scroll_y,page_id:scPageID,site_type:siteType,url:location.href,window:width+","+height,height:height,width:width,page_size:$("#bg").width()+","+$("#bg").height()},scrollParam.push(sc_data),gdprCookieFlg&&$.cookie("scroll",scrollParam,{path:"/"}),clearTimeout(visittimer)}),2),$(window).scroll((function(){!1!==visittimer&&clearTimeout(visittimer),!1!==scrolltimer&&clearTimeout(scrolltimer),scrolltimer=setTimeout((function(){if(scroll_y=$window.scrollTop(),scroll_x=$window.scrollLeft(),sc_data={x:scroll_x,y:scroll_y,page_id:scPageID,site_type:siteType,url:location.href,window:width+","+height,height:height,width:width,page_size:$("#bg").width()+","+$("#bg").height()},scrollParam.length<=5){if(5==scrollParam.length){var new_scrollParam=[];for(let key in scrollParam)0!=key&&new_scrollParam.push(scrollParam[key]);scrollParam=new_scrollParam}scrollParam.push(sc_data),gdprCookieFlg&&$.cookie("scroll",scrollParam,{path:"/"})}}),1e3)}))}if($(window).on("beforeunload",(function(event){var tracking_url=analysisUrl+"/tracking/";$.ajax({type:"POST",cache:!1,data:{sc_data:scrollParam,cl_data:clickParam},async:!1,url:tracking_url,success:function(){},beforeSend:function(xhr){xhr.setRequestHeader("X-CSRF-Token",CsrfToken)}})})),clickParam!=[]||scrollParam!=[]){var data={sc_data:scrollParam,cl_data:clickParam},tracking_url=analysisUrl+"/tracking/";$.ajax({type:"POST",data:data,async:!1,url:tracking_url,success:function(){$.removeCookie("scroll",{path:"/"}),scrollParam=[],$.removeCookie("click",{path:"/"}),clickParam=[]},beforeSend:function(xhr){xhr.setRequestHeader("X-CSRF-Token",CsrfToken)}})}}));