!function(t,e,r,o,i,s,n,a){if("string"!=typeof e)return;const p="core";if("string"!=typeof t[e].tagVersion||""==t[e].tagVersion)return;const c=t[e].tagVersion;if("function"!=typeof t.CustomEvent){function h(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r}h.prototype=t.Event.prototype,t.CustomEvent=h}var g=function(){this.constant={LIMIT_COOKIE_KEY_LENGTH_IE:35,LIMIT_COOKIE_BYTE_VOLUME_IE:8500,LIMIT_COOKIE_KEY_LENGTH_FIREFOX:125,LIMIT_COOKIE_BYTE_VOLUME_FIREFOX:25165824,LIMIT_COOKIE_KEY_LENGTH_CHROME:155,LIMIT_COOKIE_BYTE_VOLUME_CHROME:25165824,LIMIT_COOKIE_KEY_LENGTH_SAFARI:550,LIMIT_COOKIE_BYTE_VOLUME_SAFARI:3e3,LIMIT_COOKIE_KEY_LENGTH_OPERA:40,LIMIT_COOKIE_BYTE_VOLUME_OPERA:8500,LIMIT_COOKIE_KEY_LENGTH_UNKNOWN:40,LIMIT_COOKIE_BYTE_VOLUME_UNKNOWN:8500,COOKIE_LIFETIME_DEFAULT:31536e6,COOKIE_LIFETIME_SESSION:18e5,COOKIE_KEY_USER_ID:"__juicer_uid_9i3nsdfP_",COOKIE_KEY_JUICER_ID:"__juicer_jid_9i3nsdfP_",COOKIE_KEY_SESSION_ID:"__juicer_sesid_9i3nsdfP_",COOKIE_KEY_SESSION_REFERRER:"__juicer_session_referrer_9i3nsdfP_",COOKIE_KEY_INTEREST_ID:"__juicer_interestid_9i3nsdfP_",COOKIE_KEY_PEACH_ID:"__juicer_peach_id_9i3nsdfP_",COOKIE_KEY_TD_GLOBAL_ID:"_td_global",COOKIE_KEY_TD_CLIENT_ID:"_td",COOKIE_KEY_IS_OPTOUT:"__juicer_optout_",UNSUPPORTED_BROWSER:["ie6","ie7","ie8","ie9"],TIMEOUT_SMOOOTHIE_API_REQUEST:2e3,TD_TABLE_BASE_LOG:"juicertag_first_logs",TD_TABLE_ABTEST_LOG:"juicertag_abtest_logs",TD_TABLE_POPUP_NPS_LOG:"juicertag_nps_logs",TD_TABLE_POPUP_AD_IMPRESSION_LOG:"juicertag_popup_impression_logs",TD_TABLE_POPUP_AD_CLICK_LOG:"juicertag_popup_click_logs",TD_TABLE_COLLABORATION_TG_LOG:"juicertag_collaborate_tag007_logs",TD_TABLE_SECOND_LOG:"juicertag_second_logs",TD_TABLE_ABTEST_CLICK_LOG:"juicertag_click_logs",IS_NOT_PRIVATE_MODE:1,IS_PRIVATE_MODE:2,DEVICE_TYPE_PC:"pc",DEVICE_TYPE_TABLET:"tablet",DEVICE_TYPE_SMARTPHONE:"smartphone",DEVICE_TYPE_UNKNOWN:"unknown",SEX_TYPE_MALE:1,SEX_TYPE_FEMALE:2,SEX_TYPE_DATA:{1:"男性",2:"女性"},IP_INFO_RESOURCE_TYPE_DATA:{dokodokojp:1,landscape:2}},this.property={domain:r,id:{},config:"",tagVersion:"",pageInActionId:"",color:o,siteId:"",syncId:"",juicerId:"",userId:"",sessionId:"",interestId:"",peachId:"",tdClientId:"",tdGlobalId:"",imUid:"",ipUaMixIdByMd5:"",ipUaMixIdBySha256:"",endpoint:"",browser:"",browserVersion:"",charset:"",host:"",ip:"",language:"",os:"",osVersion:"",path:"",platform:"",referrer:"",screen:"",time:"",title:"",protocol:"",url:"",userAgent:"",version:"",viewport:"",userCard:{},interestCategoryDefault:{},interestCategoryO:{},age:0,sex:0,area:"",storageType:0,isPrivateMode:0,cookieStatus:{},ready:!1,isLoadedTreasureDataSdk:!1,tdData:{},option:{},gaClientId:"",canGetGaClientId:!1,canUseErrorReporting:!1,errorReportStocks:[]}};g.prototype.validateObjectType=function(t,e){var r=typeof t;return"undefined"!=r&&r.toLowerCase()==e},g.prototype.getByteLength=function(t){try{if(!this.validateObjectType(t,"string"))throw new Error("argument $v is not string");return encodeURI(t).replace(/%../g,"*").length}catch(t){return t=t instanceof Error?t:"getByteLength :: "+t,this.logging(t),0}},g.prototype.convertStringToObject=function(t){try{return new Function("return "+t)()}catch(t){return{}}},g.prototype.logging=function(e){try{var r="string"==typeof this.property.domain?this.property.domain:"",o="string"==typeof e||"error"==typeof e?e:"";return("#u5Sq77frGuy475KLcXeYRMCQ7DyW3LF4"==location.hash||null!=r.match("^localhost")||null!=r.match("^test.")||null!=r.match("^testing.")||null!=r.match("^development."))&&t.console&&t.console.log&&("#u5Sq77frGuy475KLcXeYRMCQ7DyW3LF4"==location.hash&&void 0!==e.stack&&console.error(e),!o||console.log(o),!e.message||console.log(e.message),!e.stack||console.log(e.stack)),!0}catch(t){return!1}},g.prototype.execGetRequest=function(e,r){try{var o,i=!1;if(this.validateObjectType(r,"function")||(r=function(t){}),void 0===t.XDomainRequest||"ie8"!=this.getBrowser()&&"ie9"!=this.getBrowser()?o=t.XMLHttpRequest?new XMLHttpRequest:t.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null:(o=new XDomainRequest,i=!0),null==o)throw new Error("browser is not support to ajax request");return o.open("GET",e,!0),o.timeout=this.constant.TIMEOUT_SMOOOTHIE_API_REQUEST,i?(o.onload=function(){r({status:200,url:e,type:"",text:o.responseText})},setTimeout((function(){o.send()}),0)):(o.addEventListener("loadend",(function(){r({status:o.status,url:o.responseURL,type:o.responseType,text:o.responseText})})),o.send()),!0}catch(t){return t=t instanceof Error?t:"execGetRequest :: "+t,this.logging(t),!1}},g.prototype.setCharset=function(){return this},g.prototype.setLanguage=function(){return this},g.prototype.setOs=function(){return this},g.prototype.setOsVersion=function(){return this},g.prototype.setPlatform=function(){return this},g.prototype.setScreen=function(){return this},g.prototype.setVersion=function(){return this},g.prototype.setViewport=function(){return this},g.prototype.setBrowser=function(){try{var e=t.navigator.userAgent.toLowerCase(),r=t.navigator.appVersion.toLowerCase(),o="unknown";-1!=e.indexOf("msie")?o=-1!=r.indexOf("msie 6.")?"ie6":-1!=r.indexOf("msie 7.")?"ie7":-1!=r.indexOf("msie 8.")?"ie8":-1!=r.indexOf("msie 9.")?"ie9":-1!=r.indexOf("msie 10.")?"ie10":"ie":-1!=e.indexOf("trident/7")?o="ie11":-1!=e.indexOf("chrome")?o="chrome":-1!=e.indexOf("safari")?o="safari":-1!=e.indexOf("opera")?o="opera":-1!=e.indexOf("firefox")?o="firefox":-1!=e.indexOf("edge")&&(o="edge"),this.property.browser=o}catch(t){this.property.browser=""}return this},g.prototype.setBrowserVersion=function(){return this},g.prototype.setUserAgent=function(){try{this.property.userAgent=t.navigator.userAgent}catch(t){this.property.userAgent=""}return this},g.prototype.setReferrer=function(){try{this.property.referrer=document.referrer}catch(t){this.property.referrer=""}return this},g.prototype.setTime=function(){try{this.property.time=(new Date).getTime()}catch(t){this.property.time=""}return this},g.prototype.setTitle=function(){try{this.property.title=document.title.replace(/^\s+|\s+$/g,"")}catch(t){this.property.title=""}return this},g.prototype.setUrl=function(){try{this.property.url=location.href}catch(t){this.property.url=""}return this},g.prototype.setProtocol=function(){try{this.property.protocol=location.protocol}catch(t){this.property.protocol=""}return this},g.prototype.setHost=function(){try{this.property.host=location.hostname}catch(t){this.property.host=""}return this},g.prototype.setPath=function(){try{this.property.path=location.pathname}catch(t){this.property.path=""}return this},g.prototype.setId=function(t){return this.property.id=t,this},g.prototype.setIp=function(t){return this.property.ip=t,this},g.prototype.setDomain=function(t){return this.property.domain=t,this},g.prototype.setEndpoint=function(t){return this.property.endpoint=t,this},g.prototype.setTdData=function(t){return this.property.tdData=t,this},g.prototype.setJuicerId=function(t){return this.property.juicerId=t,this},g.prototype.setUserId=function(t){return this.property.userId=t,this},g.prototype.setSessionId=function(t){return this.property.sessionId=t,this},g.prototype.setPeachId=function(t){return this.property.peachId=t,this},g.prototype.setInterestId=function(t){return this.property.interestId=t,this},g.prototype.setTdClientId=function(t){return this.property.tdClientId=t,this},g.prototype.setTdGlobalId=function(t){return this.property.tdGlobalId=t,this},g.prototype.setConfig=function(t){return this.property.config=t,this},g.prototype.setTagVersion=function(t){return this.property.tagVersion=t,this},g.prototype.setColor=function(t){return this.property.color=t,this},g.prototype.setSiteId=function(t){return this.validateObjectType(t,"string")||this.validateObjectType(t,"number")?(this.validateObjectType(t,"string")&&(t=t.match(/^[0-9]{1,}$/)&&parseInt(t)==parseInt(t)?parseInt(t):0),this.property.siteId=t,this):this},g.prototype.setSyncId=function(t){return this.property.syncId=t,this},g.prototype.setOption=function(t){return this.property.option=t,this},g.prototype.setInterestCategoryDefault=function(t){return this.validateObjectType(t,"object")?(this.property.interestCategoryDefault=t,this):this},g.prototype.setInterestCategoryO=function(t){return this.validateObjectType(t,"object")?(this.property.interestCategoryO=t,this):this},g.prototype.setArea=function(t){return this.validateObjectType(t,"string")?(this.property.area=t,this):this},g.prototype.setPageInActionId=function(t){return this.validateObjectType(t,"string")?(this.property.pageInActionId=t,this):this},g.prototype.setIpUaMixIdByMd5=function(t){return this.property.ipUaMixIdByMd5=t,this},g.prototype.setIpUaMixIdBySha256=function(t){return this.property.ipUaMixIdBySha256=t,this},g.prototype.setImuid=function(t){return this.property.imUid=t,this},g.prototype.setDevice=function(t){return this.validateObjectType(t,"string")?(this.property.device=t,this):this},g.prototype.setUserCard=function(t){return this.validateObjectType(t,"object")?(this.property.userCard=t,this.validateObjectType(this.property.userCard.age,"string")||this.validateObjectType(this.property.userCard.age,"number")||(this.property.userCard.age=0),this.validateObjectType(this.property.userCard.age,"string")&&parseInt(this.property.userCard.age)!=parseInt(this.property.userCard.age)&&(this.property.userCard.age=0),this.property.userCard.age=parseInt(this.property.userCard.age),this.validateObjectType(this.property.userCard.sex,"string")||this.validateObjectType(this.property.userCard.sex,"number")||(this.property.userCard.sex=0),this.validateObjectType(this.property.userCard.sex,"string")&&parseInt(this.property.userCard.sex)!=parseInt(this.property.userCard.sex)&&(this.property.userCard.sex=0),this.property.userCard.sex=parseInt(this.property.userCard.sex),this):this},g.prototype.setGaClientId=function(t){if(!this.validateObjectType(t,"string"))return this;this.property.gaClientId=t},g.prototype.setCanGetGaClientId=function(t){if(!this.validateObjectType(t,"boolean"))return this;this.property.canGetGaClientId=t},g.prototype.setCanUseErrorReporting=function(t){return this.validateObjectType(t,"boolean")?(this.property.canUseErrorReporting=t,this):this},g.prototype.setErrorReportStocks=function(t){if(!(t instanceof Array))return this;for(const e of t)if(!e.hasOwnProperty("error")||!e.hasOwnProperty("tagName"))return this;return this.property.errorReportStocks=t,this},g.prototype.addErrorReportStocks=function(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("tagName")?(this.property.errorReportStocks.push({error:t.error,tagName:t.tagName}),this):this},g.prototype.getBrowser=function(){return this.validateObjectType(this.property.browser,"string")?this.property.browser:""},g.prototype.getBrowserVersion=function(){return this.validateObjectType(this.property.browserVersion,"string")?this.property.browserVersion:""},g.prototype.getDevice=function(){return this.validateObjectType(this.property.device,"string")?this.property.device:""},g.prototype.getCharset=function(){return this.validateObjectType(this.property.charset,"string")?this.property.charset:""},g.prototype.getHost=function(){return this.validateObjectType(this.property.host,"string")?this.property.host:""},g.prototype.getProtocol=function(){return this.validateObjectType(this.property.protocol,"string")?this.property.protocol:""},g.prototype.getIp=function(){return this.validateObjectType(this.property.ip,"string")?this.property.ip:""},g.prototype.getLanguage=function(){return this.validateObjectType(this.property.language,"string")?this.property.language:""},g.prototype.getOs=function(){return this.validateObjectType(this.property.os,"string")?this.property.os:""},g.prototype.getOsVersion=function(){return this.validateObjectType(this.property.osVersion,"string")?this.property.osVersion:""},g.prototype.getPath=function(){return this.validateObjectType(this.property.path,"string")?this.property.path:""},g.prototype.getPlatform=function(){return this.validateObjectType(this.property.platform,"string")?this.property.platform:""},g.prototype.getReferrer=function(){return this.validateObjectType(this.property.referrer,"string")?this.property.referrer:""},g.prototype.getScreen=function(){return this.validateObjectType(this.property.screen,"string")?this.property.screen:""},g.prototype.getUserAgent=function(){return this.validateObjectType(this.property.userAgent,"string")?this.property.userAgent:""},g.prototype.getVersion=function(){return this.validateObjectType(this.property.version,"string")?this.property.version:""},g.prototype.getViewport=function(){return this.validateObjectType(this.property.viewport,"string")?this.property.viewport:""},g.prototype.getTime=function(){return this.validateObjectType(this.property.time,"number")?this.property.time:""},g.prototype.getTitle=function(){return this.validateObjectType(this.property.title,"string")?this.property.title:""},g.prototype.getDomain=function(){return this.validateObjectType(this.property.domain,"string")?this.property.domain:""},g.prototype.getEndpoint=function(){return this.validateObjectType(this.property.endpoint,"string")?this.property.endpoint:""},g.prototype.getUrl=function(){return this.validateObjectType(this.property.url,"string")?this.property.url:""},g.prototype.getReady=function(){return!!this.validateObjectType(this.property.ready,"boolean")&&this.property.ready},g.prototype.getPrivateMode=function(){return this.validateObjectType(this.property.isPrivateMode,"number")?this.property.isPrivateMode:0},g.prototype.getStorageType=function(){return this.validateObjectType(this.property.storageType,"number")?this.property.storageType:0},g.prototype.getTdData=function(){return this.validateObjectType(this.property.tdData,"object")?this.property.tdData:{}},g.prototype.getJuicerId=function(){return this.validateObjectType(this.property.juicerId,"string")?this.property.juicerId:""},g.prototype.getUserId=function(){return this.validateObjectType(this.property.userId,"string")?this.property.userId:""},g.prototype.getSessionId=function(){return this.validateObjectType(this.property.sessionId,"string")?this.property.sessionId:""},g.prototype.getPeachId=function(){return this.validateObjectType(this.property.peachId,"string")?this.property.peachId:""},g.prototype.getInterestId=function(){return this.validateObjectType(this.property.interestId,"string")?this.property.interestId:""},g.prototype.getTdClientId=function(){return this.validateObjectType(this.property.tdClientId,"string")?this.property.tdClientId:""},g.prototype.getTdGlobalId=function(){return this.validateObjectType(this.property.tdGlobalId,"string")?this.property.tdGlobalId:""},g.prototype.getConfig=function(){return this.validateObjectType(this.property.config,"object")?this.property.config:{}},g.prototype.getTagVersion=function(){return this.validateObjectType(this.property.tagVersion,"string")?this.property.tagVersion:""},g.prototype.getSyncId=function(){return this.validateObjectType(this.property.syncId,"string")?this.property.syncId:""},g.prototype.getOption=function(){return this.validateObjectType(this.property.option,"object")?this.property.option:{}},g.prototype.getUserCard=function(){return this.validateObjectType(this.property.userCard,"object")?this.property.userCard:{}},g.prototype.getInterestCategoryDefault=function(){return this.validateObjectType(this.property.interestCategoryDefault,"object")?this.property.interestCategoryDefault:{}},g.prototype.getInterestCategoryO=function(){return this.validateObjectType(this.property.interestCategoryO,"object")?this.property.interestCategoryO:{}},g.prototype.getArea=function(){return this.validateObjectType(this.property.area,"string")?this.property.area:""},g.prototype.getPageInActionId=function(){return this.validateObjectType(this.property.pageInActionId,"string")?this.property.pageInActionId:""},g.prototype.getId=function(){return this.validateObjectType(this.property.id,"object")?this.property.id:{}},g.prototype.getSiteId=function(){return this.validateObjectType(this.property.siteId,"number")?this.property.siteId:0},g.prototype.getColor=function(){return this.validateObjectType(this.property.color,"string")?this.property.color:{}},g.prototype.getIpUaMixIdByMd5=function(){return this.validateObjectType(this.property.ipUaMixIdByMd5,"string")?this.property.ipUaMixIdByMd5:""},g.prototype.getIpUaMixIdBySha256=function(){return this.validateObjectType(this.property.ipUaMixIdBySha256,"string")?this.property.ipUaMixIdBySha256:""},g.prototype.getImuid=function(){return this.validateObjectType(this.property.imUid,"string")?this.property.imUid:""},g.prototype.getGaClientId=function(){return this.validateObjectType(this.property.gaClientId,"string")?this.property.gaClientId:""},g.prototype.getCanGetGaClientId=function(){return!!this.validateObjectType(this.property.canGetGaClientId,"boolean")&&this.property.canGetGaClientId},g.prototype.getCanUseErrorReporting=function(){return!!this.validateObjectType(this.property.canUseErrorReporting,"boolean")&&this.property.canUseErrorReporting},g.prototype.getErrorReportStocks=function(){return this.property.errorReportStocks instanceof Array?this.property.errorReportStocks:[]},g.prototype.getLocalStorage=function(e){try{if(!this.validateObjectType(e,"string"))throw new Error("argument $k is not string");return""==e?"":null!=t.localStorage.getItem(e)?t.localStorage.getItem(e):""}catch(t){return t=t instanceof Error?t:"getLocalStorage :: "+t,this.logging(t),""}},g.prototype.setLocalStorage=function(e,r){if(!this.validateObjectType(e,"string"))throw new Error("argument $k is not string");if(!this.validateObjectType(r,"string")&&!this.validateObjectType(r,"number"))throw new Error("argument $v is not string, number");return""==e?"":(t.localStorage.setItem(e,r),this)},g.prototype.deleteLocalStorage=function(e){try{if(!this.validateObjectType(e,"string"))throw new Error("argument $k is not string");return""==e?"":(t.localStorage.removeItem(e),this)}catch(t){return t=t instanceof Error?t:"deleteLocalStorage :: "+t,this.logging(t),this}},g.prototype.deleteAllLocalStorage=function(t){return this.deleteLocalStorage(this.constant.COOKIE_KEY_USER_ID).deleteLocalStorage(this.constant.COOKIE_KEY_JUICER_ID).deleteLocalStorage(this.constant.COOKIE_KEY_SESSION_ID).deleteLocalStorage(this.constant.COOKIE_KEY_INTEREST_ID),this},g.prototype.setCookie=function(t,e,r,o,i,s){try{if(!this.validateObjectType(t,"string"))throw new Error("argument $k is not string");if(!this.validateObjectType(e,"string")&&!this.validateObjectType(e,"number"))throw new Error("argument $v is not string, number");if(!this.validateObjectType(r,"string"))throw new Error("argument $domain is not string");if(!this.validateObjectType(o,"string"))throw new Error("argument $path is not string");if(!this.validateObjectType(i,"number"))throw new Error("argument $lifetime is not number");if(!this.validateObjectType(s,"string"))throw new Error("argument $secure is not string");if(!this.validateObjectType(this.property.cookieStatus,"object")||!this.validateObjectType(this.property.cookieStatus.cookieWriteEnabled,"number")||1!=this.property.cookieStatus.cookieWriteEnabled)return this;var n=new Date(this.getTime()+i);return document.cookie=escape(t)+"="+escape(e)+"; expires="+n+(""!=r?"; domain="+r:"")+(""!=o?"; path="+o:"")+(""!=s?"; secure":""),this}catch(t){return t=t instanceof Error?t:"setCookie :: "+t,this.logging(t),this}},g.prototype.getCookie=function(t){try{if(!this.validateObjectType(t,"string"))throw new Error("argument $k is not string");if(""==t)return"";var e=null;return(e=new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")).test(document.cookie)?(e=new RegExp("(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),unescape(document.cookie.replace(e,"$1"))):""}catch(t){return t=t instanceof Error?t:"getCookie :: "+t,this.logging(t),""}},g.prototype.deleteCookie=function(t,e,r){try{if(e=this.validateObjectType(e,"undefined")?this.property.getHost():e,r=this.validateObjectType(r,"undefined")?"":r,!this.validateObjectType(t,"string"))throw new Error("argument $k is not string");if(!this.validateObjectType(e,"string"))throw new Error("argument $host is not string");if(!this.validateObjectType(r,"string"))throw new Error("argument $path is not string");return""==t?"":(""!=r&&(document.cookie=escape(t)+"=; max-age=0; path="+r+"; domain="+e,document.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path="+r+"; domain="+e),""==r&&(document.cookie=escape(t)+"=; max-age=0; domain="+e,document.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain="+e),this)}catch(t){return t=t instanceof Error?t:"deleteCookie :: "+t,this.logging(t),this}},g.prototype.setPrivateMode=function(){try{var r;if("chrome"==this.getBrowser())return t.webkitRequestFileSystem(t.TEMPORARY,1,(function(){t[e].property.isPrivateMode=1}),(function(r){t[e].property.isPrivateMode=2})),this;if("firefox"==this.getBrowser()){try{r=t.indexedDB.open("test")}catch(r){return t[e].property.isPrivateMode=2,this}if(0==t[e].property.isPrivateMode){var o=0;retry=t.setInterval((function(){try{if(o++,"done"!=r.readyState&&o<3)return;return o>=3&&t.clearInterval(retry),r.result&&void 0!==r.result?void(t[e].property.isPrivateMode=1):void(t[e].property.isPrivateMode=2)}catch(e){t.clearInterval(retry)}}),10)}return this}if(t.localStorage&&"safari"==this.getBrowser()){try{t.localStorage.setItem("_m_i_x_e_r_local_storage_test",1),this.property.isPrivateMode=1,t.localStorage.removeItem("_m_i_x_e_r_local_storage_test")}catch(t){this.property.isPrivateMode=2}return this}if(null!=this.getBrowser().match(/^ie[0-9]{1,2}$/)||"edge"==this.getBrowser()){try{t.indexedDB&&(this.property.isPrivateMode=1),t.indexedDB&&null!=typeof t.indexedDB||(this.property.isPrivateMode=2)}catch(t){this.property.isPrivateMode=2}return this}this.property.isPrivateMode=1}catch(t){this.property.isPrivateMode=1}return this},g.prototype.setStorageType=function(){try{if(this.property.storageType=t.localStorage?2:1,1==this.property.storageType)return this;try{if(t.localStorage.setItem("_m_i_x_e_r_","success"),"success"!=t.localStorage.getItem("_m_i_x_e_r_"))throw new Error("disable local storage");t.localStorage.removeItem("_m_i_x_e_r_")}catch(t){return this.logging("Safari(プライベートモード)の為、ローカルストレージを使用出来ません"),this.property.storageType=1,this}var e={cookie:this.getCookie(this.constant.COOKIE_KEY_USER_ID),localStorage:this.getLocalStorage(this.constant.COOKIE_KEY_USER_ID)};if(""==e.cookie&&""==e.localStorage)return this;if(""!=e.cookie&&""!=e.localStorage&&this.deleteCookie(this.constant.COOKIE_KEY_USER_ID,this.getHost(),"/").deleteCookie(this.constant.COOKIE_KEY_JUICER_ID,this.getHost(),"/"),""!=e.localStorage)return this;this.setLocalStorage(this.constant.COOKIE_KEY_USER_ID,this.getCookie(this.constant.COOKIE_KEY_USER_ID)).setLocalStorage(this.constant.COOKIE_KEY_JUICER_ID,this.getCookie(this.constant.COOKIE_KEY_JUICER_ID)),this.deleteCookie(this.constant.COOKIE_KEY_USER_ID,this.getHost(),"/").deleteCookie(this.constant.COOKIE_KEY_JUICER_ID,this.getHost(),"/")}catch(t){this.property.storageType=3}return this},g.prototype.setCookieStatus=function(){try{return this.logging("exec setCookieStatus"),this.property.cookieStatus={cookieKeyLength:0,cookieKeyVolume:0,cookieWriteEnabled:1,isManyCookieKey:!0,isHighCapacityCookie:!0},this.setCookie("_t_e_s_t_c_o_o_k_i_e_","success",this.getHost(),"/",this.constant.COOKIE_LIFETIME_DEFAULT,""),"success"!=this.getCookie("_t_e_s_t_c_o_o_k_i_e_")?(this.property.cookieStatus.cookieWriteEnabled=0,this):(this.deleteCookie("_t_e_s_t_c_o_o_k_i_e_",this.getHost(),"/"),2==this.getStorageType()||(this.property.cookieStatus.cookieKeyLength=document.cookie.split(";").length,this.property.cookieStatus.cookieKeyVolume=this.getByteLength(document.cookie),null!=this.getBrowser().match(/^ie[0-9]{1,2}$/)||"edge"==this.getBrowser()?(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_IE,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_IE):"firefox"==this.getBrowser()?(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_FIREFOX,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_FIREFOX):"chrome"==this.getBrowser()?(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_CHROME,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_CHROME):"safari"==this.getBrowser()?(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_SAFARI,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_SAFARI):"opera"==this.getBrowser()?(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_OPERA,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_OPERA):(this.property.cookieStatus.isManyCookieKey=this.property.cookieStatus.cookieKeyLength>this.constant.LIMIT_COOKIE_KEY_LENGTH_UNKNOWN,this.property.cookieStatus.isHighCapacityCookie=this.property.cookieStatus.cookieKeyVolume>this.constant.LIMIT_COOKIE_BYTE_VOLUME_UNKNOWN)),this)}catch(t){return this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"updateJuicerId :: "+t,this.logging(t),this}},g.prototype.getCookieStatus=function(){try{if(this.logging("exec getCookieStatus"),!(this.validateObjectType(this.property.cookieStatus.cookieKeyLength,"number")&&this.validateObjectType(this.property.cookieStatus.cookieKeyVolume,"number")&&this.validateObjectType(this.property.cookieStatus.isManyCookieKey,"boolean")&&this.validateObjectType(this.property.cookieStatus.isHighCapacityCookie,"boolean")))throw new Error("Invalid cookie status");return this.property.cookieStatus}catch(t){return this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"getCookieStatus :: "+t,this.logging(t),{}}},g.prototype.funcTagEnabled=function(){this.property.ready=!0},g.prototype.funcTagDisabled=function(){this.property.ready=!1},g.prototype.funcTreasureDataSdkEnabled=function(){this.property.isLoadedTreasureDataSdk=!0},g.prototype.isTresureDataSdk=function(){return!!(this.validateObjectType(this.getConfig(),"object")&&this.validateObjectType(this.getConfig().siteInfo,"object")&&this.validateObjectType(this.getConfig().siteInfo.sdkTresureData,"boolean"))&&!!this.getConfig().siteInfo.sdkTresureData},g.prototype.isLoadedTreasureDataSdk=function(){return 1==this.validateObjectType(this.property.isLoadedTreasureDataSdk,"boolean")&&1==this.property.isLoadedTreasureDataSdk},g.prototype.waitForReadingTreasureDataSdk=function(r){var o=0,i=setInterval((function(){try{if(++o>1200)throw new Error("not initialize core script");try{if(0==t[e].getReady())return}catch(t){return}try{if(0==t[e].validateObjectType(JuicerTreasure,"function"))return}catch(t){return}t[e].funcTreasureDataSdkEnabled(),clearInterval(i),r.call()}catch(r){t[e].errorReport(r,p),t[e].funcTagDisabled(),r=r instanceof Error?r:"not initialize core script :: "+r,t[e].logging(r),clearInterval(i)}}),50)},g.prototype.init=function(){try{if(this.logging("exec initialize"),this.setTime().setUrl().setProtocol().setHost().setPath().setReferrer().setTitle().setUserAgent().setBrowser().setPrivateMode().setStorageType(),this.setTagVersion(c),!this.validateObjectType(this.getStorageType(),"number")||0==this.getStorageType())throw new Error("Invalid storage type");this.setCookieStatus(),this.funcTagEnabled()}catch(t){this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"init :: "+t,this.logging(t)}return this},g.prototype.initConfiguration=function(r){try{this.logging("exec initConfiguration");var o=i+"&url="+encodeURIComponent(this.getUrl())+"&userAgent="+encodeURIComponent(this.getUserAgent());this.execGetRequest(o,(function(o){try{if(void 0===o.status||void 0===o.text||"200"!=o.status||""==o.text)throw new Error("exec initConfiguration : invalid response data");if(o=t[e].convertStringToObject(o.text),!t[e].validateObjectType(o.status,"boolean")||1!=o.status)throw new Error("exec initConfiguration : failed get tag conifguration");if(!t[e].validateObjectType(o.id,"object"))throw new Error("exec initConfiguration : empty $response.id");if(!t[e].validateObjectType(o.tdData,"object"))throw new Error("exec initConfiguration : empty $response.tdData");if(!t[e].validateObjectType(o.endpoint,"string"))throw new Error("exec initConfiguration : empty $response.endpoint");if(!t[e].validateObjectType(o.ip,"string"))throw new Error("exec initConfiguration : empty $response.ip");if(!t[e].validateObjectType(o.config,"object"))throw new Error("exec initConfiguration : empty $response.config");if(!t[e].validateObjectType(o.config.siteInfo,"object"))throw new Error("exec initConfiguration : empty $response.config.siteInfo");if(!t[e].validateObjectType(o.config.abtestInfo,"object"))throw new Error("exec initConfiguration : empty $response.config.abtestInfo");t[e].setId(o.id).setConfig(o.config).setTdData(o.tdData).setEndpoint(o.endpoint).setIp(o.ip),t[e].funcTagEnabled(),r()}catch(r){t[e].errorReport(r,p),t[e].funcTagDisabled(),r=r instanceof Error?r:"init :: "+r,t[e].logging(r)}}))}catch(t){this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"init :: "+t,this.logging(t)}return this},g.prototype.initTrackingId=function(){try{if(this.logging("exec initTrackingId"),0==this.getReady())throw new Error("$property.ready is false");1==this.getStorageType()&&this.setJuicerId(this.getCookie(this.constant.COOKIE_KEY_JUICER_ID)),2==this.getStorageType()&&this.setJuicerId(this.getLocalStorage(this.constant.COOKIE_KEY_JUICER_ID)),1==this.getStorageType()&&this.setUserId(this.getCookie(this.constant.COOKIE_KEY_USER_ID)),2==this.getStorageType()&&this.setUserId(this.getLocalStorage(this.constant.COOKIE_KEY_USER_ID)),this.setSessionId(this.getCookie(this.constant.COOKIE_KEY_SESSION_ID)),1==this.getStorageType()&&this.setPeachId(this.getCookie(this.constant.COOKIE_KEY_PEACH_ID)),2==this.getStorageType()&&this.setPeachId(this.getLocalStorage(this.constant.COOKIE_KEY_PEACH_ID))}catch(t){this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"initTrackingId :: "+t,this.logging(t)}return this},g.prototype.initSessionReferrer=function(){try{this.logging("exec initSessionReferrer");var t=this.getCookie(this.constant.COOKIE_KEY_SESSION_ID),e=this.getCookie(this.constant.COOKIE_KEY_SESSION_REFERRER);if(""==t)return this.setCookie(this.constant.COOKIE_KEY_SESSION_REFERRER,"",this.getHost(),"/",this.constant.COOKIE_LIFETIME_SESSION,""),this;if(""==e)return this.setCookie(this.constant.COOKIE_KEY_SESSION_REFERRER,"",this.getHost(),"/",this.constant.COOKIE_LIFETIME_SESSION,""),this;var r="/^"+t+"___/";return null!=e.match(r)?(this.setCookie(this.constant.COOKIE_KEY_SESSION_REFERRER,e,this.getHost(),"/",this.constant.COOKIE_LIFETIME_SESSION,""),this):(e=t+"___"+encodeURIComponent(this.getReferrer()),this.setCookie(this.constant.COOKIE_KEY_SESSION_REFERRER,e,this.getHost(),"/",this.constant.COOKIE_LIFETIME_SESSION,""),this)}catch(t){this.errorReport(t,p),this.funcTagDisabled(),t=t instanceof Error?t:"initSessionReferrer :: "+t,this.logging(t)}return this},g.prototype.getSessionReferrer=function(){try{this.logging("exec getSessionReferrer");var t=this.getCookie(this.constant.COOKIE_KEY_SESSION_ID),e=this.getCookie(this.constant.COOKIE_KEY_SESSION_REFERRER);if(""==t)return"";if(""==e)return e;var r=new RegExp("^("+t+"___)");return null==e.match(r)?"":(e=e.replace(t+"___",""),decodeURIComponent(e))}catch(t){t=t instanceof Error?t:"getSessionReferrer :: "+t,this.logging(t)}return""},g.prototype.setSessionReferrer=function(){try{this.logging("exec setSessionReferrer");var t=this.getCookie(this.constant.COOKIE_KEY_SESSION_ID),e=this.getCookie(this.constant.COOKIE_KEY_SESSION_REFERRER);if(""==t)throw new Error("Not set session id");var r=new RegExp("^("+t+"___)");return null!=e.match(r)||(e=t+"___"+encodeURIComponent(this.getReferrer()),this.setCookie(this.constant.COOKIE_KEY_SESSION_REFERRER,e,this.getHost(),"/",this.constant.COOKIE_LIFETIME_SESSION,"")),!0}catch(t){return t=t instanceof Error?t:"setSessionReferrer :: "+t,this.logging(t),!1}return!0},g.prototype.initTreasureDataSdk=function(){try{if(this.logging("exec initTresureDataSdk"),0==this.getReady())throw new Error("$property.ready is false");if(!this.isTresureDataSdk())throw new Error("tresuredata sdk is disabled");if(!this.validateObjectType(this.getTdData().host,"string"))throw new Error("$config.tdData is not string");if(!this.validateObjectType(this.getTdData().apikey,"string"))throw new Error("$config.tdData.apikey is not string");if(!this.validateObjectType(this.getTdData().database,"string"))throw new Error("$config.tdData.database is not string");!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=["addRecord","fetchGlobalID","set","trackEvent","trackPageview","trackClicks","ready"],o=0;o200)throw new Error("[TIMEOUT] Failed load ErrorReportingSDK Tag");try{const t=typeof JuicerStackdriverErrorReporter;if(0==("undefined"!=t&&"function"==t.toLowerCase()))return}catch(t){return}clearInterval(i),t[e].setCanUseErrorReporting(!0);for(const r of t[e].getErrorReportStocks())t[e].errorReport(r.error,r.tagName);t[e].setErrorReportStocks([]),r(!0)}catch(o){clearInterval(i),o=o instanceof Error?o:"Failed to load ErrorReportingSDK Tag :: "+o,t[e].logging(o),r(!1)}}),50)}))},async function(){try{t[e]=new g,t[e].init();const r=("https:"===document.location.protocol?"https:":"http:")+"//"+s+"/scripts/stack-driver-errors/1.0.0/stack-driver-errors.min.js",o=document.createElement("script");o.src=r,document.body.appendChild(o),t[e].waitForErrorReportingSdk(),t[e].initConfiguration((function(){if(t[e].initTrackingId().initSessionReferrer().initTreasureDataSdk().initImUidSdk(),"optout"==t[e].getPeachId())return t[e].logging("Tracking is disabled"),!0;if(t[e].getConfig().siteInfo.jadcGoogle)try{const r=t[e].getConfig().siteInfo.jadcGaMeasurementId;if(!r)throw new Error("jadcGaMeasurementId is undefined or empty");if(!t[e].validateObjectType(t.dataLayer,"object"))throw new Error("gtag is not loaded");t[e].setCanGetGaClientId(!0);const o=function(){dataLayer.push(arguments)};o("get",r,"client_id",(function(r){t[e].setGaClientId(r),t[e].logging("successfully got the GA ClientID.")}))}catch(r){t[e].logging(r)}t[e].waitForGettingImuid((function(){t[e].load(t[e].getEndpoint(),!0)}))}))}catch(r){t[e].errorReport(r,p)}}()}(window,"__kit__plOjbscKzGs=","https://kitchen.juicer.cc","plOjbscKzGs=","https://kitchen.juicer.cc/c/?color=plOjbscKzGs=","cdn.kitchen.juicer.cc","juicer-production","AIzaSyDWbL6jKeR4kURnUn8V_PJthF_-sV4HQkE");