console.log('%cBYAPPS%c MA script in RELEASE', 'background-color:#ffc107; padding:2px; font-size:12px; color:#000; font-weight:600;', 'unset'); (function(b,a,r,s){ b[s]=b[s]||function(c,d){b[s][c]=d};})(window,document,'script','barsQ'); barsQ('caid','afrimo'); barsQ('cdid','mobile'); barsQ('host','cafe24'); barsQ('appi','com.afrimo.apps|1063926846|afrimo'); barsQ('zigzag',''); var mode="RELEASE";console.log("ma script in "+mode);const MA_SDK_VER="3.0.4";"object"!=typeof barsJS&&(barsJS={}),function(t,a){var r=t.location.href,e=t.location.hostname;-1==r.indexOf("EKAMS=")&&-1==r.indexOf("NaPm=")||(r=t.location.protocol+"//"+e);var s=a.referrer,o=navigator.userAgent,n=!1,b=o.match("Byapps")&&!o.match("StyleView"),p=o.match("Googlebot"),i="malog.byapps.co.kr";"function"!=typeof barsJS.gtCT&&(barsJS.gtCT=function(){if("undefined"!=typeof iCategoryNo)return iCategoryNo;var t=null;r.includes("category")?t=/(?:\/category\/.*\/)(\d+)/g:r.includes("cate_no")&&(t=/(?:cate_no=)(\d+)/);var a=t?.exec(r);return a?a[1]:null}),"function"!=typeof barsJS.gtHT&&(barsJS.gtHT=function(t){t=-1!=r.indexOf("://m.")&&"undefined"!=typeof EC_SDE_SHOP_NUM||void 0!==window.CAFE24?"cafe24":-1!=r.indexOf("/m2")?"godo":-1!=r.indexOf("/m")?"makeshop":"unknown",barsQ("host",t)}),"function"!=typeof barsJS.gtCK&&(barsJS.gtCK=function(t){var r=a.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return r?decodeURIComponent(r[2]):""}),"function"!=typeof barsJS.stCK&&(barsJS.stCK=function(t,r,e,s,o){var n;e&&(n=new Date).setTime(n.getTime()+e),a.cookie=t+"="+encodeURIComponent(r)+(e?";expires="+n.toGMTString():"")+(s?";domain="+s:"")+";path="+(o||"/;")}),"function"!=typeof barsJS.ckWP&&(barsJS.ckWP=function(){return"serviceWorker"in navigator&&"PushManager"in t&&"showNotification"in ServiceWorkerRegistration.prototype&&!o.match("NAVER")}),"function"!=typeof barsJS.gtUD&&(barsJS.gtUD=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}),"function"!=typeof barsJS.gtUI&&(barsJS.gtUI=function(){var t=barsJS.gtDS("mid")+"|"+barsJS.gtDS("mpn");return"|"==t&&(t=""),t}),"function"!=typeof barsJS.clUD&&(barsJS.clUD=function(){t.addEventListener("message",(function(a){if(-1!=a.origin.indexOf("//"+i)&&a.data){var r=JSON.parse(a.data);r.macable||(r.macable=!0,r.matoken=barsJS.gtUD()),r.matoken&&(barsQ.uuid=r.matoken,barsJS.stCK("bars_uuid",barsQ.uuid,6048e5,barsJS.rtD()),barsJS.gtMA(),b||t.addEventListener("load",(function(){barsJS.IJS()}),!1))}}));var r=a.createElement("iframe");r.setAttribute("frameborder","0"),r.style.width="0px",r.style.height="0px",a.body.appendChild(r),setTimeout((function(){r.setAttribute("src","//"+i+"/v/")}),0)}),"function"!=typeof barsJS.rtQ&&(barsJS.rtQ=function(){var t="";for(var a in barsQ)"__bind__"!=a&&"couponLink"!=a&&"couponSet"!=a&&"rt_st"!=a&&-1==a.indexOf("bind")&&-1==a.indexOf("argument")&&void 0!==barsQ[a]&&(t&&(t+=","),t+='"'+a+'":"'+barsQ[a].toString().replace(/[\r|\n]/g," ").replace(/\"/gi,"")+'"');return"q={"+t+"}"}),"function"!=typeof barsJS.rtD&&(barsJS.rtD=function(){var t=/[a-z-0-9]+\.([a-z]|(co|pe|or|ne|re)\.([a-z])|([a-z]\.kr))+$/gi.exec(e);return t?"."+t[0]:h}),"function"!=typeof barsJS.launch_action&&(barsJS.launch_action=function(t,a,r,e){var s=new Date,o=s.getYear()+"/"+(s.getMonth()+1)+"/"+s.getDate();barsJS.stCK("BYAPPS_visit_date",o,108e6,barsJS.rtD()),$("#byapps_launch_block").remove(),$("#byapps_launch_button").remove();var n="undefined"!=typeof byapps_custom_link?"?openurl="+encodeURIComponent(byapps_custom_link):"";"app"==t&&barsJS.lcAS(a,r,e,n)}),"function"!=typeof barsJS.launch_popoup&&(barsJS.launch_popoup=function(t,a,r){if(o.match(/iPhone|iPad|iPod/i)&&!arguments[2])return!1;var e=$("#byapps_install_popup_layer").html();$("#byapps_launch_block").remove(),$("#byapps_launch_button").remove(),$("
"+e+"
").css({top:0,left:0,zIndex:20002}).appendTo("body").stop(!0,!0).fadeIn(300),$(".button_byapps_app_install").click((function(){barsJS.launch_action("app",t,a,r)})),$(".button_byapps_app_cancel").click((function(){barsJS.launch_action("web")}))}),"function"!=typeof barsJS.launch_alert&&(barsJS.launch_alert=function(){if(o.match(/iPhone|iPad|iPod/i)&&!arguments[2])return!1;var t="undefined"!=typeof byapps_install_alert_text?byapps_install_alert_text:"앱을 설치하시면 더욱 편리한 서비스를 받으실 수 있습니다\n설치하시겠습니까?";confirm(t)?barsJS.launch_action("app",arguments[0],arguments[1],arguments[2]):barsJS.launch_action("web")}),"function"!=typeof barsJS.install&&(barsJS.install=function(){if(!b&&r){var t=barsJS.gtCK("BYAPPS_visit_count"),e=barsJS.gtCK("BYAPPS_visit_date");t=t?Number(t)+1:1;var s=new Date,n=s.getYear()+"/"+(s.getMonth()+1)+"/"+s.getDate();!(0==arguments[0]||t>Number(arguments[0]))||e&&e==n?barsJS.stCK("BYAPPS_visit_count",t,108e6,barsJS.rtD()):(barsJS.stCK("BYAPPS_visit_count",0,108e6,barsJS.rtD()),"undefined"==typeof byapps_update_alert_text||""==byapps_update_alert_text||-1==a.cookie.indexOf("SMA_in_app=smartapp")&&-1==r.indexOf("looketapps")&&-1==a.cookie.indexOf("app_agent=power_app")&&-1==o.indexOf("HybridShop")?(barsQ.act="install_popup",barsJS.sdDT("POST","/put/",barsJS.rtQ()),"img"==arguments[1]?barsJS.launch_popoup(arguments[2],arguments[3],arguments[4]):"txt"==arguments[1]&&barsJS.launch_alert(arguments[2],arguments[3],arguments[4])):(barsQ.act="update_popup",barsJS.sdDT("POST","/put/",barsJS.rtQ()),barsJS.launch_alert(arguments[2],arguments[3],arguments[4])))}}),"function"!=typeof barsJS.popup_action&&(barsJS.popup_action=function(r){var e=new Date,s=e.getYear()+"/"+(e.getMonth()+1)+"/"+e.getDate(),o=void 0!==byapps_wps_popup.day?Number(byapps_wps_popup.day):3;if(barsJS.stCK("wps_check_date",s,86400*o*1e3,barsJS.rtD()),$("#byapps_popup_block").remove(),$("#byapps_popup_button").remove(),r&&void 0!==byapps_wps_popup.url){var n=barsJS.gtUI(),b=a.createElement("form"),p=a.createElement("input"),i=a.createElement("input");b.method="POST",b.action=byapps_wps_popup.url+"/",b.target="popup_wps",p.name="uid",p.value=barsQ.uuid,b.appendChild(p),n&&(i.name="uif",i.value=btoa(n),b.appendChild(i)),a.body.appendChild(b),t.open("about:blank","popup_wps","width=600, height=400, scrollbars=no")?b.submit():alert("팝업차단을 허용해 주시기 바랍니다."),a.body.removeChild(b),t.onmessage=function(t){if(t.data&&-1!=t.origin.indexOf(byapps_wps_popup.url)){var a=JSON.parse(t.data);"undefined"!==a.optin&&barsJS.stCK("bars_is_wp",a.optin,31536e7,barsJS.rtD()),"undefined"!==a.url&&a.url?self.location.href=decodeURIComponent(a.url):"undefined"!==a.optin&&1==a.optin&&(barsQ.act="wpon",barsQ.iswp="1",barsJS.sdDT("POST","/get_ma/",barsJS.rtQ(),!0))}}}}),"function"!=typeof barsJS.popup_layer&&(barsJS.popup_layer=function(){var t=$("#byapps_wps_popup_layer").html();$("#byapps_popup_block").remove(),$("#byapps_popup_button").remove(),$("
"+t+"
").css({top:0,left:0,zIndex:20002}).appendTo("body").stop(!0,!0).fadeIn(300),$(".button_byapps_popup_confirm").click((function(){barsJS.popup_action(!0)})),$(".button_byapps_popup_cancel").click((function(){barsJS.popup_action(!1)}))}),"function"!=typeof barsJS.popup_alert&&(barsJS.popup_alert=function(){var t=void 0!==byapps_wps_popup.text?byapps_wps_popup.text:"알림 수신동의를 하시면\n특가상품, 쿠폰, 이벤트 등 다양한 광고성 정보를 알림으로 받을 수 있습니다.";confirm(t)?barsJS.popup_action(!0):barsJS.popup_action(!1)}),"function"!=typeof barsJS.popup_custom&&(barsJS.popup_custom=function(){if(a.querySelector("#byapps_wps_popup_layer").style.display="block",a.querySelector(".button_byapps_popup_confirm").addEventListener("click",(function(){barsJS.popup_action(!0)})),a.querySelector("[wpsballoon]")&&"1"!=barsQ.iswp){a.querySelector(".button_byapps_popup_confirm").classList.add("on");var t="undefined"!=typeof byapps_wps_popup&&void 0!==byapps_wps_popup.sleep?1e3*byapps_wps_popup.sleep:5e3;setTimeout((function(){a.querySelector(".button_byapps_popup_confirm").classList.add("off")}),t)}}),"function"!=typeof barsJS.subscription&&(barsJS.subscription=function(){if(barsJS.ckWP()&&"undefined"!=typeof byapps_wps_popup&&void 0!==byapps_wps_popup.url)if("custom"==byapps_wps_popup.type)barsJS.popup_custom();else if("1"!=barsQ.iswp){var t=barsJS.gtCK("wps_check_date"),a=new Date;a.getYear(),a.getMonth(),a.getDate();t||(barsQ.act="wps_popup",barsJS.sdDT("POST","/put/",barsJS.rtQ()),"img"==byapps_wps_popup.type?barsJS.popup_layer():"txt"==byapps_wps_popup.type&&barsJS.popup_alert())}}),"function"!=typeof barsJS.apCL&&(barsJS.apCL=function(t){var r=a.createElement("IFRAME");r.setAttribute("src","byapps://"+t),r.setAttribute("frameborder","0"),r.style.width="1px",r.style.height="1px",a.body.appendChild(r),a.body.removeChild(r),r=null}),"function"!=typeof barsJS.lcAS&&(barsJS.lcAS=function(t,a,r,e){if(t||a||!barsQ.appi||(a=barsQ.appi.split("|")[0],r=barsQ.appi.split("|")[1],t=barsQ.appi.split("|")[2]),barsQ.act="install_click",barsJS.sdDT("POST","/put/",barsJS.rtQ()),o.match(/Android/i)&&a&&t)if(o.match("Android4.4")||o.match("Android 4.4")||o.toLocaleLowerCase().search("chrome")>-1&&navigator.appVersion.match(/Chrome\/\d+.\d+/)[0].split("/")[1]>25)location.href="intent://"+t+e+"#Intent;scheme=byapps://"+t+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;package="+a+";S.browser_fallback_url=http%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3D"+a+"%26referrer%3Dutm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP;end";else{var s="market://details?id="+a+"&referrer=utm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP",n=(new Date).getTime();setTimeout((function(){(new Date).getTime()-n<2e3&&(location.href=s)}),1500),location.href="byapps://"+t+e}else if(o.match(/iPhone|iPad|iPod/i)&&r){s="http://itunes.apple.com/kr/app/id"+r+"?mt=8",n=(new Date).getTime();setTimeout((function(){(new Date).getTime()-n<2e3&&(location.href=s)}),1500),location.href="byapps"+t+"://"+e}}),"function"!=typeof barsJS.paCL&&(barsJS.paCL=function(r){var e=JSON.parse("{"+r+"}");if(e.wd||(e.wd="216px"),e.ht||(e.ht="105px"),e.tb||(e.tb="center"),e.lr||(e.lr="bottom:10"),e.ani||(e.ani="bounce"),e.bdr||(e.bdr="0"),-1!=e.wd.indexOf("%")?(e.wd=e.wd.replace("%",""),e.wd=t.innerWidth*(e.wd/100)):e.wd=e.wd.replace("px",""),-1!=e.ht.indexOf("%")?(e.ht=e.ht.replace("%",""),e.ht=t.innerHeight*(e.ht/100)):e.ht=e.ht.replace("px",""),e.img&&(e.bgc="transparent"),"center"==e.tb){var s=(t.innerHeight-e.ht)/2;e.tb="top:"+s}if("center"==e.lr){s=(t.innerWidth-e.wd)/2;e.lr="left:"+s}var o=a.querySelectorAll("#ma_common_class").length;if(0==o){o="";var n=a.createElement("style");n.type="text/css",n.id="ma_common_class",n.innerHTML="@keyframes byapps_ma_ani_bounce {0%{-webkit-transform:translateY(200px);}50%,80%,100%{-webkit-transform:translateY(0);}10%{-webkit-transform:translateY(-100px);}20%,40%{-webkit-transform:translateY(50px);}30%{-webkit-transform:translateY(-50px);}}@keyframes byapps_ma_ani_zoomin {0%{-webkit-transform:scale(0);opacity:0;}50%,80%,100%{-webkit-transform:scale(1.0);opacity:1;}10%{-webkit-transform:scale(1.5);opacity:1;}20%,40%{-webkit-transform:scale(0.5);opacity:0.5;}30%{-webkit-transform:scale(1.2);opacity:1;}}@keyframes byapps_ma_ani_rollingout {0%{-webkit-transform:rotate(-180deg);opacity:0;}50%,80%,100%{-webkit-transform:rotate(0deg);opacity:1;}10%{-webkit-transform:rotate(45deg);opacity:1;}20%,40%{-webkit-transform:rotate(-90deg);opacity:0.5;}30%{-webkit-transform:rotate(45deg);opacity:1;}}@keyframes byapps_ma_ani_slideleft {0%{-webkit-transform:translateX(200%);opacity:0;}100%{-webkit-transform:translateX(0);opacity:1;}}@keyframes byapps_ma_ani_slideright {0%{-webkit-transform:translateX(-100%);opacity:0;}100%{-webkit-transform:translateX(0);opacity:1;}}@keyframes byapps_ma_ani_maskin {0%{-webkit-mask-image:-webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);-webkit-mask-size: 10px;}100%{-webkit-mask-size: 400px;}}@keyframes byapps_ma_ani_fadein {0%{opacity:0;}100%{opacity:1;}}.byapps_ma_pop_banner{position:fixed;width:"+e.wd+"px;height:"+e.ht+"px;"+e.tb+"px;"+e.lr+"px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_"+e.ani+";z-index:9999999999999;}.byapps_ma_pop_banner h1{letter-spacing:-3px;line-height:130% !important;}.byapps_ma_pop_close{position:absolute;display:inline-block;width:20px;height:20px;top:0;right:0;background:#fff;border-radius:10px;overflow:hidden;}.byapps_ma_pop_close:before,.byapps_ma_pop_close:after{content:'';position:absolute;height:2px;width:14px;top:9px;left:3px;background:#000;}.byapps_ma_pop_close:before{-webkit-transform:rotate(45deg);}.byapps_ma_pop_close:after{-webkit-transform:rotate(-45deg);}",a.getElementsByTagName("head")[0].appendChild(n)}else a.querySelectorAll("#ma_common_class")[0].innerHTML+=".byapps_ma_pop_banner"+o+"{position:fixed;width:"+e.wd+"px;height:"+e.ht+"px;"+e.tb+"px;"+e.lr+"px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_"+e.ani+";z-index:9999999999999;}";var b=a.createElement("div");b.id="byapps_ma_pop_banner_body",b.className="byapps_ma_pop_banner"+o,a.body.appendChild(b);var p=a.querySelectorAll("#byapps_ma_pop_banner_body");p[p.length-1].style="display:block !important";var i=e.txt?decodeURIComponent(e.txt):'',c="ma_"+Math.floor(65536*(1+Math.random())).toString(16).substring(1);p[p.length-1].innerHTML=''+i+'',a.getElementById(c).addEventListener("click",(function(){barsJS.dnCP(e.id,e.pt,e.lt)}),!1);var _=a.getElementsByClassName("byapps_ma_pop_close");_[_.length-1].addEventListener("click",(function(){barsJS.clPA("byapps_ma_pop_banner_body")}),!1)}),"function"!=typeof barsJS.clPA&&(barsJS.clPA=function(t){t||(t="byapps_ma_pop_banner_body");var r=a.querySelectorAll("#"+t);r[r.length-1].remove()}),"function"!=typeof barsJS.ckAT&&(barsJS.ckAT=function(){var a=t.location.pathname;return"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.get_action?Byapps_MA_SDK_custom.get_action():""!=barsJS.gtDS("title")||-1!=a.indexOf("product/detail.html")||"cafe24"==barsQ.host&&"PRODUCT_DETAIL"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("/m/product.html")||-1!=a.indexOf("/goods/goods_view.php")||-1!=a.indexOf("/goods/view.php")?"view":"MEMBER_LOGIN"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("member/login.html")||-1!=a.indexOf("front/php/login/")||-1!=a.indexOf("/m/login.html")||-1!=a.indexOf("/member/login.php")||-1!=a.indexOf("/mem/login.php")?"login":"MEMBER_JOIN"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("member/join.html")||-1!=a.indexOf("member/agreement.html")||-1!=a.indexOf("/m/join.html")||-1!=a.indexOf("/m/join_contract.html")||-1!=a.indexOf("/member/join_agreement.php")||-1!=a.indexOf("/mem/join.php")?"join":"MEMBER_JOINRESULT"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("member/join_result.html")||-1!=a.indexOf("/m/join_complete.html")?"joined":"ORDER_BASKET"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("order/basket.html")||-1!=a.indexOf("/m/basket.html")||-1!=a.indexOf("/order/cart.php")||-1!=a.indexOf("/goods/cart.php")?"cart":"PRODUCT_LIST"==barsJS.gtMT('[name="path_role"]')||-1!=r.indexOf("product/list.html?cate_no")||-1!=a.indexOf("product/list_")&&-1!=r.indexOf("html?cate_no")||-1!=a.indexOf("product_list.html")||-1!=r.indexOf("/goods/list.php?category")?"cate":"PRODUCT_SEARCH"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("product/search.html")||-1!=a.indexOf("/m/search.html")||-1!=a.indexOf("/goods/goods_search.php")||-1!=a.indexOf("/goods/goods_search.php")||-1!=r.indexOf("/goods/list.php?kw")?"search":"ORDER_ORDERFORM"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("order/orderform.html")||-1!=a.indexOf("/m/order.html")||-1!=a.indexOf("/order/order.php")||-1!=a.indexOf("/ord/order.php")?"order":"ORDER_ORDERRESULT"==barsJS.gtMT('[name="path_role"]')||-1!=a.indexOf("order/order_result.html")||-1!=a.indexOf("/m/order_complete.html")?"ordered":"move"}),"function"!=typeof barsJS.gtQP&&(barsJS.gtQP=function(t,a){var r="";return t.toString().replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(t,e,s){e==a&&(r=s)})),r.split("#")[0]}),"function"!=typeof barsJS.stTG&&(barsJS.stTG=function(t){return t.toString().replace(/(<([^>]+)>)/gi,"")}),"function"!=typeof barsJS.stPR&&(barsJS.stPR=function(t){return t.replace(/[^0-9]/g,"")}),"function"!=typeof barsJS.stCT&&(barsJS.stCT=function(t){var a=barsJS.gtCK("bars_"+t+"_cnt");a=a?Number(a):0,a++,barsJS.stCK("bars_"+t+"_cnt",a,864e5,barsJS.rtD())}),"function"!=typeof barsJS.ckSE&&(barsJS.ckSE=function(){return"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.is_search?Byapps_MA_SDK_custom.is_search():-1!=s.indexOf("product/search.html")||-1!=s.indexOf("/m/search.html")?1:0}),"function"!=typeof barsJS.ckAR&&(barsJS.ckAR=function(t,a){if(!(t=barsJS.gtCK("bars_ma_"+t)))return!1;for(var r=t.split(";"),e=0;e=Number(a))}),"function"!=typeof barsJS.stPP&&(barsJS.stPP=function(t,a){var r=barsJS.gtCK("bars_ma_pp_"+t);r=r?Number(r):0,a=a?Number(a):24,r++,barsJS.stCK("bars_ma_pp_"+t,r,3600*a*1e3,barsJS.rtD())}),"function"!=typeof barsJS.ckLG&&(barsJS.ckLG=function(){return"cafe24"==barsQ.host&&barsJS.gtCK("ec_mem_level")||"makeshop"==barsQ.host&&barsJS.gtCK("login_id")?1:"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.is_login?Byapps_MA_SDK_custom.is_login():0}),"function"!=typeof barsJS.ckUL&&(barsJS.ckUL=function(t){var r=a.createElement("a");return r.setAttribute("href",t),t=!r.protocol||"http:"!=r.protocol&&"https:"!=r.protocol?"http:":r.protocol,t+=r.hostname?"//"+r.hostname:"//"+e,t+=r.pathname?r.pathname:"",t+=r.search?r.search:""}),"function"!=typeof barsJS.ckRF&&(barsJS.ckRF=function(t){var r="direct";if("byapps_ma_shortcut"==t)r=t;else{var s=a.createElement("a");s.setAttribute("href",t),e!=s.hostname&&(r=s.hostname)}r=barsQ.zigzag?"zigzag":r,barsJS.stCK("bars_vfrom",r,36e6,barsJS.rtD())}),"function"!=typeof barsJS.ckVF&&(barsJS.ckVF=function(t,a){return"all"==t||t==barsQ.vfrom||"search"==t&&"all"==a||"search"==t&&-1!=barsQ.vfrom.indexOf(a)}),"function"!=typeof barsJS.ckCT&&(barsJS.ckCT=function(t){"cafe24"==barsQ.host?t=barsJS.gtCT():"makeshop"==barsQ.host?t=barsJS.gtQP(r,"xcode"):"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.get_category&&(t=Byapps_MA_SDK_custom.get_category()),t&&(t=t+";"+barsJS.gtCK("bars_ma_ct"),barsJS.stCK("bars_ma_ct",t,72e5,barsJS.rtD()))}),"function"!=typeof barsJS.ckCC&&(barsJS.ckCC=function(t,a){let r=barsJS.gtCK(a);if(!r)return!1;let e=r.split(";");if(e.length<1)return!1;let s=0,o=e[0];for(let t=0;t0&&s%t==0}),"function"!=typeof barsJS.gtMT&&(barsJS.gtMT=function(t){try{return a.querySelector(t).getAttribute("content")}catch(t){return""}}),"function"!=typeof barsJS.gtOS&&(barsJS.gtOS=function(){return o.match(/Android/i)?"android":o.match(/iPhone|iPad|iPod/i)?"ios":-1!=o.indexOf("Window")?"windows":-1!=o.indexOf("Mac")?"mac":-1!=o.indexOf("X11")?"unix":-1!=o.indexOf("Linux")?"linux":void 0}),"function"!=typeof barsJS.stDS&&(barsJS.stDS=function(t,r){try{a.querySelector('[data-byapps-item="'+t+'"]').innerHTML=r}catch(t){}}),"function"!=typeof barsJS.gtDS&&(barsJS.gtDS=function(t){try{return a.querySelector('[data-byapps-item="'+t+'"]').getAttribute("data-byapps-item-value")||a.querySelector('[data-byapps-item="'+t+'"]').textContent}catch(t){return""}}),"function"!=typeof barsJS.ckPC&&(barsJS.ckPC=function(t,a,r){var e=barsJS.gtCK("bars_basket_cnt");""==e&&(e=barsJS.gtCK("basket_cnt")),""==e&&(e=barsJS.gtCK("basketcount_1"));var s=barsJS.gtCK("bars_like_cnt");return e=e?Number(e):0,s=s?Number(s):0,"0"==t&&"0"==a||("0"!=t&&"0"!=a?"or"==r&&(e>=Number(t)||s>=Number(a))||"and"==r&&e>=Number(t)&&s>=Number(a):("0"!=t||"0"!=a)&&("0"!=t&&e>=Number(t)||"0"!=a&&s>=Number(a)))}),"function"!=typeof barsJS.ckMA&&(barsJS.ckMA=function(t,a){return t%=10,"10"==a||0!=t&&t/a<=1}),"function"!=typeof barsJS.ckCN&&(barsJS.ckCN=function(t){return!(!barsJS.ckVF(t.vf,t.vs)||!barsJS.ckPC(t.ac,t.al,t.ao)||barsJS.ckAR(t.pt,t.id)||"0"!=t.sn&&!barsJS.ckPR(t.id,Number(t.sn)))}),"function"!=typeof barsJS.acMA&&(barsJS.acMA=function(t){barsQ[t]&&barsJS.paCL(barsQ[t])}),"function"!=typeof barsJS.stBQ&&(barsJS.stBQ=function(){if(!barsQ.uuid){var t=barsJS.gtCK("bars_uuid");t?barsQ("uuid",t):barsJS.clUD()}barsQ.uuid&&barsJS.stCK("bars_uuid",barsQ.uuid,6048e5,barsJS.rtD()),barsQ("url",encodeURIComponent(r)),barsQ("refer",encodeURIComponent(s)),barsQ("uagent",encodeURIComponent(o)),barsJS.gtCK("bars_vfrom")&&barsJS.gtCK("bars_visit")||barsQ("visit","yes"),s&&!barsJS.gtCK("bars_vfrom")&&barsJS.ckRF(s),b&&barsQ("cdid","app"),barsQ.os||(barsQ("os",barsJS.gtOS()),barsQ.os.match(/ios|android/i)||barsQ("cdid","pc")),barsQ.host||barsJS.gtHT(),barsQ("lgin",barsJS.ckLG()),"1"==barsQ.lgin&&barsJS.stCK("bars_is_mb",barsQ.lgin,31536e6,barsJS.rtD()),-1!=r.indexOf("?byapps_ma_shortcut")&&barsJS.ckRF("byapps_ma_shortcut");var a=barsJS.ckAT();if(barsQ("act",a),"view"==a?barsJS.gtDT():"cate"==a?barsJS.ckCT():"order"==a?barsJS.gtOI():"ordered"==a&&barsJS.gtOR(),b&&"ios"==barsQ.os&&"cafe24"==barsQ.host&&"order"==a&&-1==r.indexOf("app_scheme")&&self.location.replace(r+"&app_scheme=byapps"+barsQ.caid+"://"),"1"==barsQ.lgin&&barsJS.gtCK("bars_ma_rdcp")&&confirm(decodeURIComponent("%EB%B0%9C%EA%B8%89%EA%B0%80%EB%8A%A5%ED%95%9C%20%EC%BF%A0%ED%8F%B0%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%EB%B0%9C%EA%B8%89%EB%B0%9B%EC%9C%BC%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C%3F"))){var e=barsJS.gtCK("bars_ma_rdcp"),n=barsJS.gtCK("bars_ma_cp")+e.split("|")[0]+";";barsJS.stCK("bars_ma_cp",n,31536e7,barsJS.rtD()),barsJS.stCK("bars_ma_rdcp","",-2592e7,barsJS.rtD()),b&&!barsJS.gtCK("bars_is_ap")&&barsJS.stCK("bars_is_ap","yes",31536e7,barsJS.rtD()),self.location.replace(e.split("|")[1])}var p=Math.round((new Date).getTime()/1e3);if(barsJS.gtCK("bars_visit")){var i=Number(barsJS.gtCK("bars_visit"));barsQ.stayed=p-i}else barsJS.stCK("bars_visit",p,72e5,barsJS.rtD());barsQ("vfrom",encodeURIComponent(barsJS.gtCK("bars_vfrom")))}),"function"!=typeof barsJS.gtDT&&(barsJS.gtDT=function(){var a=barsJS.gtDS("purl"),e=barsJS.gtDS("pno"),s=barsJS.gtDS("image"),o=barsJS.stTG(barsJS.gtDS("title")),n=barsJS.gtDS("cate"),b=barsJS.gtDS("cate_title"),p=barsJS.gtDS("price");p&&(p=barsJS.stPR(barsJS.stTG(p)));var i=barsJS.gtDS("sprice");if(i&&(i=barsJS.stPR(barsJS.stTG(i))),"cafe24"==barsQ.host){if(o||"undefined"==typeof product_name||(o=product_name),a||(a=barsJS.gtMT('[property="og:url"]')),e||(e="undefined"!=typeof iProductNo?iProductNo:barsJS.gtQP(r,"product_no")),e||"PRODUCT_DETAIL"!=barsJS.gtMT('[name="path_role"]')||(e=t.location.pathname.split("/")[3]),!s||s&&-1!=s.indexOf("img_product_big.gif")){var c=barsJS.gtMT('[property="og:image"]');c&&(s=c)}n||(n=barsJS.gtCT()),n||"PRODUCT_DETAIL"!=barsJS.gtMT('[name="path_role"]')||(n=t.location.pathname.split("/")[5]||""),p||("undefined"!=typeof iProductPrice?p=iProductPrice:"undefined"!=typeof productPrice&&(p=productPrice)),p&&i&&i>p&&(i=barsJS.gtMT('[property="product:sale_price:amount"]'))&&(i=barsJS.stPR(barsJS.stTG(i)))}else"makeshop"==barsQ.host&&(a||(a=barsJS.gtMT('[property="og:url"]')),e||(e=barsJS.gtQP(r,"branduid")),n||(n=barsJS.gtQP(r,"xcode")));if(e&&(e=barsJS.stTG(e)),p&&i&&i>p&&(i=p),a||(a=r),a&&-1==a.indexOf("http:")&&(a=barsJS.ckUL(a)),s&&-1==s.indexOf("http:")&&(s=barsJS.ckUL(s)),o&&(o=o.replace(/\"/gi,"")),e){var _=e+";"+barsJS.gtCK("bars_ma_sp");barsJS.stCK("bars_ma_sp",_,36e5,barsJS.rtD())}barsQ("purl",encodeURIComponent(a)),barsQ("title",encodeURIComponent(o)),barsQ("image",encodeURIComponent(s)),barsQ("price",encodeURIComponent(p)),barsQ("sprice",encodeURIComponent(i)),barsQ("itemno",encodeURIComponent(e)),barsQ("cate",encodeURIComponent(n)),barsQ("cate_name",encodeURIComponent(b)),barsQ("issearch",barsJS.ckSE())}),"function"!=typeof barsJS.gtOI&&(barsJS.gtOI=function(){if("cafe24"==barsQ.host){let t=a.querySelector("#total_price").value,r=0,e=[];if(t||"object"!=typeof EC_ORDER_FORM_ASSIGN_DATA||void 0===EC_ORDER_FORM_ASSIGN_DATA.r_total_price||(t=EC_ORDER_FORM_ASSIGN_DATA.r_total_price),"object"==typeof EC_ORDER_FORM_ASSIGN_DATA&&void 0!==EC_ORDER_FORM_ASSIGN_DATA.ship_fee&&(r=EC_ORDER_FORM_ASSIGN_DATA.ship_fee),"undefined"!=typeof aBasketProductOrderData&&aBasketProductOrderData.length>0)for(let t=0;t0){let t=e.join("|");barsQ("itemno",encodeURIComponent(t)),barsJS.stCK("bars_items",t,108e6,barsJS.rtD())}t&&(barsQ("orderamount",encodeURIComponent(t)),barsJS.stCK("bars_tp",t,108e6,barsJS.rtD())),r&&barsQ("shipamount",encodeURIComponent(r))}else if("makeshop"==barsQ.host){let t=a.querySelector("#op_total_price")?.textContent??0;t=t.replace(/[^0-9]/,"");let r=a.querySelector("#pvd-total-delivery-0")?.textContent??0;r=r.replace(/[^0-9]/,""),t&&(barsQ("orderamount",encodeURIComponent(t)),barsJS.stCK("bars_tp",t,108e6,barsJS.rtD())),r&&barsQ("shipamount",encodeURIComponent(r))}else if("mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom){var t="function"==typeof Byapps_MA_SDK_custom.get_orderlist?Byapps_MA_SDK_custom.get_orderlist():"";t&&(barsQ("itemno",encodeURIComponent(t)),barsJS.stCK("bars_items",t,108e6,barsJS.rtD()));var r="function"==typeof Byapps_MA_SDK_custom.get_orderamount?Byapps_MA_SDK_custom.get_orderamount():"";r&&(barsQ("orderamount",encodeURIComponent(r)),barsJS.stCK("bars_tp",r,108e6,barsJS.rtD()))}}),"function"!=typeof barsJS.ijSC&&(barsJS.ijSC=function(){if("cafe24"==barsQ.host){if("function"==typeof t.basket_result_action&&"function"!=typeof byapps_interrupt_basket){var a=t.basket_result_action;n=!0,t.basket_result_action=function(){return barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ()),a.apply(a,arguments)}}if("object"==typeof t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER&&"function"==typeof t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer&&"function"!=typeof byapps_interrupt_basket_ly){var r=t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer;n=!0,t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer=function(){return"basket"!=barsQ.act&&(barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ())),r.apply(r,arguments)}}if("function"==typeof t.add_wishlist_result&&"function"!=typeof byapps_interrupt_like){var e=t.add_wishlist_result;n=!0,t.add_wishlist_result=function(){return barsQ.act="like",barsJS.sdDT("POST","/put/",barsJS.rtQ()),e.apply(e,arguments)}}}else if("makeshop"==barsQ.host){if("function"==typeof t.send&&"function"!=typeof byapps_interrupt_basket&&!b){a=t.send;n=!0,t.send=function(){return barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ()),a.apply(a,arguments)}}if("function"==typeof t.send_wish&&"function"!=typeof byapps_interrupt_like&&!b){e=t.send_wish;n=!0,t.send_wish=function(){return barsQ.act="like",barsJS.sdDT("POST","/put/",barsJS.rtQ()),e.apply(e,arguments)}}}else if("mall"==barsQ.host&&"object"==typeof t.Byapps_MA_SDK_custom&&"function"==typeof t.Byapps_MA_SDK_custom.do_retarget_action){a=t.Byapps_MA_SDK_custom.do_retarget_action;n=!0,t.Byapps_MA_SDK_custom.do_retarget_action=function(){var t=arguments.length>0?arguments[0]:"like";return barsQ.act=t,barsJS.sdDT("POST","/put/",barsJS.rtQ()),a.apply(a,arguments)}}}),"function"!=typeof barsJS.gtOR&&(barsJS.gtOR=function(){let t=[];if("object"==typeof EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA&&void 0!==EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.payed_amount){if(barsQ("orderamount",encodeURIComponent(EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.payed_amount)),barsQ("orderno",encodeURIComponent(EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_id)),EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product.length>0){let a=EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product;for(let r=0;r0){let a=t.join("|");barsQ("itemno",encodeURIComponent(a))}}}else barsJS.gtCK("bars_items")&&barsQ("itemno",encodeURIComponent(barsJS.gtCK("bars_items"))),barsJS.gtCK("bars_tp")&&barsQ("orderamount",encodeURIComponent(barsJS.gtCK("bars_tp"))),"undefined"!=typeof byapps_order_info&&("string"==typeof byapps_order_info&&(byapps_order_info=JSON.parse(byapps_order_info)),byapps_order_info.order_id&&barsQ("orderno",encodeURIComponent(byapps_order_info.order_id)),byapps_order_info.amount&&barsQ("orderamount",encodeURIComponent(byapps_order_info.amount))),"cafe24"!=barsQ.host||barsQ.orderno||barsQ("orderno",encodeURIComponent(barsJS.gtQP(r,"order_id")))}),"function"!=typeof barsJS.rtMA&&(barsJS.rtMA=function(a){let e=JSON.parse(a),s=Math.round((new Date).getTime()/1e3),o=barsJS.gtCK("bars_ma_vt"),n=barsJS.gtCK("bars_ma_vc"),p=barsJS.gtCK("bars_ma_cc"),i=barsJS.gtCK("bars_cs_no");if(o=o?Number(o):s-1,n=n?Number(n):1,p=p?Number(p):1,i=i?Number(i):0,e.length)for(let a=0;aNumber(e[a].cv))&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("view"==e[a].at&&"view"==barsQ.act&&p%Number(e[a].cv)==0&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("pview"==e[a].at&&"view"==barsQ.act&&barsQ.itemno&&barsJS.inAR(e[a].cv,barsQ.itemno,",")&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("cview"==e[a].at&&"cate"==barsQ.act&&barsJS.ckCC(Number(e[a].cv),"bars_ma_ct")&&barsJS.ckCN(e[a])){let t="";if("cafe24"==barsQ.host?t=barsJS.gtCT():"makeshop"==barsQ.host?t=barsJS.gtQP(r,"xcode"):"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.get_category&&(t=Byapps_MA_SDK_custom.get_category()),t&&barsJS.inAR(e[a].sf,t,",")){barsJS.mkPA(e[a]);break}}else{if("cart"==e[a].at&&"cart"==barsQ.act&&n%Number(e[a].cv)==0&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("homestay"==e[a].at&&barsQ.stayed>0&&barsJS.ckCN(e[a])){let t=Number(barsQ.stayed),r=Number(e[a].cv)-t;r<0&&(r=0);let s=e[a];setTimeout((function(){barsJS.mkPA(s)}),1e3*r)}else if("stay"==e[a].at&&"view"==barsQ.act&&barsJS.ckCN(e[a])){let r=e[a],s=Number(e[a].cv);t.addEventListener("touchend",(function(t){barsQ.touch?barsQ.touch++:barsQ.touch=1,barsQ.touch%5==0&&setTimeout((function(){barsJS.mkPA(r)}),1e3*s)}),!1)}else{if("sproduct"==e[a].at&&"view"==barsQ.act&&barsJS.ckCC(Number(e[a].cv),"bars_ma_sp")&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("cate"==e[a].at&&"cate"==barsQ.act&&barsJS.ckCC(Number(e[a].cv),"bars_ma_ct")&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("nologin"==e[a].at&&0==barsQ.lgin&&"1"==barsQ.ismb&&n%Number(e[a].cv)==0&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("yes"!=barsQ.visit&"move"==e[a].at&&n%Number(e[a].cv)==0&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("joined"==e[a].at&&"joined"==barsQ.act&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("wpon"==e[a].at&&"wpon"==barsQ.act&&"1"==barsQ.iswp&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}if("order"==e[a].at&&"order"==barsQ.act){let t=barsQ.orderamount?barsJS.stPR(decodeURIComponent(barsQ.orderamount)):0;if(barsQ.shipamount&&(t-=barsJS.stPR(decodeURIComponent(barsQ.shipamount))),Number(e[a].sf)<=Number(t)&&Number(e[a].st)>=Number(t)&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}}else if("ordered"==e[a].at&&"ordered"==barsQ.act){let t=barsQ.orderamount?barsJS.stPR(decodeURIComponent(barsQ.orderamount)):0;if(Number(e[a].sf)<=Number(t)&&Number(e[a].st)>=Number(t)&&barsJS.ckCN(e[a])){barsJS.mkPA(e[a]);break}}else{if("install"==e[a].at&&"yes"==barsQ.isap&&b){barsJS.ckAR(e[a].pt,e[a].id)&&!barsJS.gtCK("bars_is_ap")?barsJS.stCK("bars_is_ap","yes",31536e7,barsJS.rtD()):barsJS.mkPA(e[a]);break}if("ismc"==e[a].at)barsJS.stCK("bars_is_mc",e[a].va,7776e6,barsJS.rtD());else if("ismt"==e[a].at)barsJS.stCK("bars_is_mt",e[a].va,36e5,barsJS.rtD());else if("iswp"==e[a].at)barsJS.stCK("bars_is_wp",e[a].va,31536e7,barsJS.rtD());else if("csno"==e[a].at)i!=Number(e[a].va)&&(i=Number(e[a].va),barsJS.stCK("bars_cs_no",i,864e5,barsJS.rtD()),barsJS.stCK("bars_cs_dt",s,864e5,barsJS.rtD()),barsQ.csno=i),void 0!==e[a].xp&&barsJS.stCK("bars_is_xp",e[a].xp,108e5,barsJS.rtD());else if("retarget"==e[a].at){let t=e[a].pt+"|"+e[a].msg;barsQ("rt_st",t),barsJS.stCK("_rt_st_",t,864e5,barsJS.rtD()),void 0!==e[a].wpr&&barsQ("rt_wpr",e[a].wpr),void 0!==e[a].wph&&barsQ("rt_wph",e[a].wph)}}}}}barsJS.stCK("bars_ma_vt",s,2592e6,barsJS.rtD()),barsJS.subscription()}),"function"!=typeof barsJS.mkPA&&(barsJS.mkPA=function(t){if(t.ul&&-1!=t.ul.indexOf("naversearchapp://")&&(!o.match("NAVER")||"android"!=barsQ.os||barsJS.gtCK("bars_bacon_set")))return!1;if(barsJS.ckVF(t.vf,t.vs)&&barsJS.ckPC(t.ac,t.al,t.ao)&&!barsJS.ckAR(t.pt,t.id)&&("0"==t.sn||barsJS.ckPR(t.id,Number(t.sn))))if(barsJS.ckMA(barsQ.csno,t.sp)){if("homestay"==t.at){var a=Math.round((new Date).getTime()/1e3);barsJS.stCK("bars_visit",a,72e5,barsJS.rtD())}t.wd||(t.wd="216px"),t.ht||(t.ht="105px"),t.tb||(t.tb="center"),t.lr||(t.lr="bottom:10"),t.ani||(t.ani="bounce"),t.bdr||(t.bdr="0"),barsJS.stPP(t.id,Number(t.sa)),barsJS.stCK("bars_pcode",t.id,18e6,barsJS.rtD()),barsQ("act_ma",encodeURIComponent(t.at)),barsQ("act_ma_id",encodeURIComponent(t.id)),barsJS.sdDT("POST","/put_ma/",barsJS.rtQ()),barsQ.couponSet='"typ":"banner","ico":"coupon","bgc":"'+t.bc+'","txc":"'+t.tc+'"',barsQ.couponSet+=',"wd":"'+t.wd+'","ht":"'+t.ht+'","tb":"'+t.tb+'","lr":"'+t.lr+'","ani":"'+t.ani+'","bdr":"'+t.bdr+'"',t.ul&&-1!=t.ul.indexOf("byapps://")&&b||t.ul&&-1!=t.ul.indexOf("naversearchapp://")||t.ul&&-1!=t.ul.indexOf("script://")?barsQ.couponLink=t.ul:t.ul?barsQ.couponLink=t.ul+"&u="+encodeURIComponent(r):barsQ.couponLink="",b&&(t.ul="byapps://js_barsJS.dnCP("+t.id+",'"+t.pt+"','"+t.lt+"')"),barsQ.couponSet+=',"id":"'+t.id+'","pt":"'+t.pt+'","lt":"'+t.lt+'"',"text"==t.ct?barsQ.couponSet+=',"txt":"'+encodeURIComponent(t.cp)+'","url":"'+t.ul+'"':"image"==t.ct&&(barsQ.couponSet+=',"img":"'+t.cp+'","url":"'+t.ul+'"'),barsJS.acMA("couponSet")}else if("0"!=barsQ.csno){if("homestay"==t.at){a=Math.round((new Date).getTime()/1e3);barsJS.stCK("bars_visit",a,72e5,barsJS.rtD())}barsJS.stPP(t.id,Number(t.sa)),barsJS.stCK("bars_scode",t.id+";"+t.sp,18e6,barsJS.rtD()),barsQ("ma_sp",encodeURIComponent(t.sp)),barsQ("act_ma",encodeURIComponent(t.at)),barsQ("act_ma_id",encodeURIComponent(t.id)),barsJS.sdDT("POST","/put_ma/",barsJS.rtQ())}}),"function"!=typeof barsJS.dnCP&&(barsJS.dnCP=function(t,a,r){barsJS.stCK("bars_acode",t,18e6,barsJS.rtD()),"ev"==a?barsQ.couponLink&&(t=barsJS.gtCK("bars_ma_ev")+t+";",barsJS.stCK("bars_ma_ev",t,864e5,barsJS.rtD())):"cp"==a&&("1"==barsQ.lgin||b&&"byapps://shopCoupon"==barsQ.couponLink?(t=barsJS.gtCK("bars_ma_cp")+t+";",barsJS.stCK("bars_ma_cp",t,31536e7,barsJS.rtD()),"yes"==barsQ.isap&&b&&!barsJS.gtCK("bars_is_ap")&&barsJS.stCK("bars_is_ap","yes",31536e7,barsJS.rtD())):barsQ.couponLink&&barsJS.stCK("bars_ma_rdcp",t+"|"+barsQ.couponLink,18e5,barsJS.rtD())),"app"!=r||b||"mobile"!=barsQ.cdid?(barsQ("ma_click","Y"),barsQ.couponLink&&-1!=barsQ.couponLink.indexOf("naversearchapp://")&&barsQ("bcon","Y"),barsJS.sdDT("POST","/put_ma/",barsJS.rtQ(),barsJS.mvLK)):(barsJS.lcAS(),barsJS.clPA())}),"function"!=typeof barsJS.mvLK&&(barsJS.mvLK=function(){if(barsQ.couponLink&&-1!=barsQ.couponLink.indexOf("naversearchapp://")&&(barsJS.stCK("bars_bacon_set","yes",31536e7,barsJS.rtD()),barsJS.clPA()),barsQ.couponLink&&-1!=barsQ.couponLink.indexOf("script://")){barsQ.couponLink=barsQ.couponLink.replace("script://","");var a=barsQ.couponLink.split("(");if(a.length>1){a[1]=a[1].replace(")","");var r=a[1].split(",");"function"==typeof t[a[0]]&&t[a[0]].apply(null,r)}else"function"==typeof t[a[0]]&&t[a[0]]()}else barsQ.couponLink?self.location.href=barsQ.couponLink:b||barsJS.clPA()}),"function"!=typeof barsJS.sdDT&&(barsJS.sdDT=function(a,r,e,s){r="//"+i+"/v/1.1"+r,"basket"==barsQ.act||"like"==barsQ.act?barsJS.stCT(barsQ.act):"ordered"==barsQ.act&&barsJS.stCK("bars_is_mc","1",7776e6,barsJS.rtD()),-1!=r.indexOf("/put/")?barsJS.stCK("bars_send",barsQ.act+barsQ.url,36e6):-1!=r.indexOf("/get_ma/")&&"wpon"!=barsQ.act&&barsJS.stCK("bars_send_ma",barsQ.act+barsQ.url,36e6);try{var o=function(a,r,e){var s=null;return t.XDomainRequest?((s=new t.XDomainRequest).open(a,r,!0),s.onload=function(){"function"==typeof e&&e()}):t.XMLHttpRequest?((s=new XMLHttpRequest).open(a,r,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onreadystatechange=function(){4===s.readyState&&s.status>=200&&s.status<400&&("function"==typeof e?e():e&&200==s.status&&s.responseText&&barsJS.rtMA(s.responseText))}):t.ActiveXObject&&((s=new ActiveXObject("Microsoft.XMLHTTP")).open(a,r),s.onload=function(){"function"==typeof e&&e()}),s}(a,r,s);o.send(e)}catch(o){"function"==typeof s&&s()}}),"function"!=typeof barsJS.cbLK&&(barsJS.cbLK=function(){"function"==typeof byapps_call_back_custom?byapps_call_back_custom():"cafe24"==barsQ.host&&($("#member_login_module_id").hide(),$("#order_history_nologin_id").show())}),"function"!=typeof barsJS.IJS&&(barsJS.IJS=function(){barsJS.gtCK("bars_vcode")&&barsQ("vcode",encodeURIComponent(barsJS.gtCK("bars_vcode"))),barsJS.gtCK("bars_rcode")&&barsQ("rcode",encodeURIComponent(barsJS.gtCK("bars_rcode"))),barsJS.gtCK("bars_acode")&&barsQ("acode",encodeURIComponent(barsJS.gtCK("bars_acode"))),barsJS.gtCK("bars_pcode")&&barsQ("pcode",encodeURIComponent(barsJS.gtCK("bars_pcode"))),barsJS.gtCK("bars_scode")&&barsQ("scode",encodeURIComponent(barsJS.gtCK("bars_scode"))),barsJS.gtCK("bars_wcode")&&barsQ("wcode",encodeURIComponent(barsJS.gtCK("bars_wcode"))),barsJS.gtCK("bars_ma_sp")&&barsQ("sprd",encodeURIComponent(barsJS.gtCK("bars_ma_sp"))),barsJS.gtCK("bars_ma_ct")&&barsQ("bcate",encodeURIComponent(barsJS.gtCK("bars_ma_ct"))),barsQ.uuid&&barsJS.sdDT("POST","/put/",barsJS.rtQ()),"view"!=barsQ.act||b||n||barsJS.ijSC()}),"function"!=typeof barsJS.IJC&&(barsJS.IJC=function(){if("view"==barsQ.act&&barsJS.ijSC(),-1!=r.indexOf("byapps_retarget_service")){var e="";"cafe24"==barsQ.host?e=barsJS.gtQP(r,"product_no"):"makeshop"==barsQ.host&&(e=barsJS.gtQP(r,"branduid")),!e&&barsQ.itemno&&(e=barsQ.itemno),e&&barsJS.stCK("bars_rcode",e,6048e5,barsJS.rtD())}else if(-1!=r.indexOf("byapps_wps_retarget")||s&&-1!=s.indexOf("push.center")){e="";var o=Math.round((new Date).getTime()/1e3);"cafe24"==barsQ.host?e=barsJS.gtQP(r,"product_no"):"makeshop"==barsQ.host?e=barsJS.gtQP(r,"branduid"):s&&(e=barsJS.gtQP(s,"idx")),!e&&barsQ.itemno&&(e=barsQ.itemno),e&&barsJS.stCK("bars_wcode",e+":"+o,6048e5,barsJS.rtD())}else if(-1!=r.indexOf("link_from_byapps.php")||s&&-1!=s.indexOf("link_from_byapps.php")){e="";-1!=r.indexOf("link_from_byapps.php")?e=barsJS.gtQP(r,"idx"):s&&(e=barsJS.gtQP(s,"idx")),e&&barsJS.stCK("bars_rcode",e,6048e5,barsJS.rtD())}var n=a.getElementById("byapps_install_banner_layer");if(n&&(n.style.display=b?"none":"block"),b&&"login"==barsQ.act&&"Y"==barsQ.autoLogin){var p=-1!=r.indexOf("returnUrl")?r.split("returnUrl=")[1]:"";-1==(p=(p=-1!=p.indexOf("&toMoveLoginCheckModule")?p.split("&toMoveLoginCheckModule")[0]:p)?decodeURIComponent(p):s).indexOf("http://")&&-1==p.indexOf("https://")&&(p=t.location.protocol+"//"+t.location.hostname+p),-1!=r.indexOf("noMemberOrder")?p+=(-1!=p.indexOf("?")?"&":"?")+"byappsBtn=비회원조회&byappsLink=byapps://js_barsJS.cbLK()":"1"==barsJS.gtQP(r,"noMember")&&(p+=(-1!=p.indexOf("?")?"&":"?")+"byappsBtn=비회원주문&byappsLink=self"),barsJS.apCL("shopLogin?"+p)}}),"function"!=typeof barsJS.gtMA&&(barsJS.gtMA=function(){barsJS.gtCK("bars_is_mc")&&barsQ("ismc",encodeURIComponent(barsJS.gtCK("bars_is_mc"))),barsJS.gtCK("bars_is_mb")&&barsQ("ismb",encodeURIComponent(barsJS.gtCK("bars_is_mb"))),barsJS.gtCK("bars_is_mt")&&barsQ("ismt",encodeURIComponent(barsJS.gtCK("bars_is_mt"))),barsJS.gtCK("bars_is_xp")&&barsQ("isxp",encodeURIComponent(barsJS.gtCK("bars_is_xp"))),barsJS.ckWP()&&barsJS.gtCK("bars_is_wp")&&barsQ("iswp",encodeURIComponent(barsJS.gtCK("bars_is_wp"))),b&&!barsJS.gtCK("bars_is_ap")&&barsQ("isap","yes");var t=barsJS.gtCK("bars_ma_vt"),a=barsJS.gtCK("bars_ma_vc"),r=barsJS.gtCK("bars_ma_cc"),e=barsJS.gtCK("bars_cs_no");if(t||(t=0),a=a?Number(a)+1:1,r=r?Number(r):0,(e=e&&t?Number(e):0)>0){var s=new Date,o=barsJS.gtCK("bars_cs_dt"),n=new Date(1e3*o);s.toLocaleDateString()!=n.toLocaleDateString()&&(e=0,barsJS.gtCK("bars_ma_ev")&&barsJS.stCK("bars_ma_ev","",-2592e7,barsJS.rtD()))}"view"==barsQ.act&&(r++,barsJS.stCK("bars_ma_cc",r,864e5,barsJS.rtD())),barsJS.stCK("bars_ma_vc",a,864e5,barsJS.rtD()),barsQ("mcount",encodeURIComponent(a)),barsQ("vcount",encodeURIComponent(r)),barsQ("vtime",encodeURIComponent(t)),barsQ("csno",encodeURIComponent(e)),barsQ.uuid&&"1"!=barsQ.isxp&&barsJS.sdDT("POST","/get_ma/",barsJS.rtQ(),!0)}),"function"==typeof barsQ&&barsQ.length>0&&!p&&(barsJS.stBQ(),barsJS.IJC(),barsJS.gtMA(),barsJS.subscription(),"complete"==a.readyState?barsJS.IJS():t.addEventListener("load",(function(){barsJS.IJS()}),!1),console.log("Byapps MA v3.0.4"))}(window,document);function gtagscript(e,t,i,r,n){"use strict";let o=e.location.href;e.location.host,t.referrer;let c=t.querySelector('script[src*="id='+i+'"]'),l={},d="",a=!1;var p=!0;try{localStorage.setItem("WACK_test","yes"),localStorage.removeItem("WACK_test")}catch(s){p=!1}let u=function(e,i,r,n){let o;r&&(o=new Date).setTime(o.getTime()+1e3*r),t.cookie=e+"="+encodeURIComponent(i)+(r?";expires="+o.toUTCString():"")+";path="+(n||"/;")},f=function(e,i){let r=t.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return r?decodeURIComponent(r[2]):""},g=function(e){try{return t.querySelector(e).getAttribute("content")}catch(i){return""}},$=function(e,t){var i="";return e.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(e,r,n){r==t&&(i=n)}),i.split("#")[0]},y=function(e,t){let i=t?"":{};return e.toString().replace(/[?&]+([^=&]+)=([^&]*)/gi,(e,r,n)=>{t?t==r&&(i=n.split("#")[0]):i[r]=n.split("#")[0]}),i||""},m=function(e,t,i){if(void 0===t&&(t="tag"),void 0===i&&(i=0),"text"==t)return document.querySelector("html").innerHTML.indexOf(e)>-1;if("tag"==t)try{return document.querySelectorAll(e).length>0}catch(r){return!1}if("js"==t)try{if(e.indexOf(".")>0){let n=e.split(".");if((n.length=void 0!==window[n[0]][n[1]])||(n.length=void 0!==window[n[0]][n[1]][n[2]])||(n.length=void 0!==window[n[0]][n[1]][n[2]][n[3]])||(n.length=void 0!==window[n[0]][n[1]][n[2]][n[3]][n[4]]))return!0}else if(void 0!==window[e])return!0}catch(o){}return!1},h=function(e){let t="",i={},r=0,n=0,o="",c=[];switch(e){case"godo1":""!==g('[name="order:price"]')&&(r=""!=(r=g('[name="order:price"]'))?r.replace(/[^0-9]/g,""):0),o=y(window.location.href).orderNo,n=r,""!=o&&n>0&&(i={total_price:n,order_id:o,shipping:0,items:c});break;case"godo2":m(t=".order_end_box .prc")&&(r=0!=(r=null!=(r=document.querySelector(t))?r.innerText:0)?r.replace(/[^0-9]/g,""):0),o=y(window.location.href).orderNo,n=r,""!=o&&n>0&&(i={total_price:n,order_id:o,shipping:0,items:c});break;case"makeshop":m(t="#order-complete .complete-price em")&&(null==(r=document.querySelector(t))&&(r=document.querySelector("#order-complete .pay_info #mk_totalprice")),r=0!=(r=null==r?0:r.innerText)?r.replace(/[^0-9]/g,""):0),n=r,o=f("order_flag");let l=document.querySelectorAll(".product_info table .title a");null!==l&&l.forEach(e=>{c.push(e.href.replace(/\D/g,""))}),""!=o&&n>0&&(i={total_price:n,order_id:o,shipping:0,items:c});break;case"prosell":void 0!==SHOP.ORDER_OPTIONS&&"{}"!==JSON.stringify(SHOP.ORDER_OPTIONS)&&(o=SHOP.ORDER_OPTIONS.ono,n=SHOP.ORDER_OPTIONS.order_amount_price,c=SHOP.ORDER_OPTIONS.getItems),""!=o&&n>0&&(i={total_price:n,order_id:o,shipping:0,items:c})}return i},v=function(e,r,o){let c=t.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://www.googletagmanager.com/gtag/js?id="+i,c.onload=function(){window.dataLayer=window.dataLayer||[],window.byapps_gtag=function(){dataLayer.push(arguments)},byapps_gtag("js",new Date),byapps_gtag("config",i),e&&r&&byapps_gtag(e,r,o),n&&r&&console.log(r,o)},t.body.appendChild(c)},O=function(e,t,i){c&&"function"==typeof gtag?(e&&t&>ag(e,t,i),n&&t&&console.log(t,i)):"function"==typeof byapps_gtag?(e&&t&&byapps_gtag(e,t,i),n&&t&&console.log(t,i)):v(e,t,i)},R=function(){let e="",t="",i="",r="",n="";if(e||(e="undefined"!=typeof iProductNo?iProductNo:e?g('[name="order:no"]'):barsJS.gtDS("pno")),t||(t="undefined"!=typeof product_name?product_name:g('[property="og:title"]'))||(t=barsJS.gtDS("title")),i||(i="undefined"!=typeof iCategoryNo?iCategoryNo:barsJS.gtDS("cate")),!r){if("undefined"!=typeof iProductPrice)r=iProductPrice;else if("undefined"!=typeof productPrice)r=productPrice;else{(r=g('[property="product:price:amount"]'))||(r=g('[name="order:price"]')),r||(r=barsJS.gtDS("price"));let o=g('[property="product:sale_price:amount"]');o||(o=barsJS.gtDS("sprice")),r&&o&&r>o&&(r=o)}}if(n||(n=g('[property="product:price:currency"]')),"undefined"!=typeof EC_SDE_SHOP_NUM&&void 0!==window.sessionStorage&&(!e||!t||!i)){let c=window.sessionStorage.getItem("localRecentProduct"+EC_SDE_SHOP_NUM);if(null!==c){let l=JSON.parse(c);!e&&l[0].iProductNo&&(e=l[0].iProductNo),!t&&l[0].sProductName&&(t=l[0].sProductName),!i&&l[0].sParam&&(i=$(l[0].sParam,"cate_no"))}}return{items:[{id:e,name:t,list_name:"",brand:"",category:i,price:r,currency:n}]}},S=function(){let e=t.querySelector("#NPAY_BUY_LINK");e&&e.addEventListener("click",function(e){l.NPAY_BUY()})},b=function(e,t,i,r){var n=location.protocol+"//openapi2.byapps.co.kr/stat/"+e+"/",o={};o.app_id=t,o.uuid=i,o.type=navigator.userAgent.match("Byapps")?"A":"W",o.order_data=r,fetch(n,{method:"POST",mode:"no-cors",headers:{"Content-Type":"multipart/form-data; charset=UTF-8"},body:JSON.stringify(o)}).then(e=>console.log(e)).catch(e=>console.log(e))},D=function(e){let t=f("bars_uuid"),i="afrimo";("twee"==i||"liberomall"==i||"hyzin"==i||"pippin"==i)&&b("sales",i,t,e)};l.PRODUCT_DETAIL=function(){if("function"==typeof e.basket_result_action){let t=e.basket_result_action;e.basket_result_action=function(){return l.ADD_TO_CART(),t.apply(t,arguments)}}if("function"==typeof e.add_wishlist_result){let i=e.add_wishlist_result;e.add_wishlist_result=function(){return l.ADD_TO_WISHLIST(),i.apply(i,arguments)}}d||(d=R()),-1==o.indexOf("layer_option.html")&&O("event","view_item",d),S()},l.view=function(){d||(d=R()),O("event","view_item",d)},l.ORDER_BASKET=function(){var e="savedItem";let t=p?decodeURIComponent(localStorage.getItem(e)||""):f(e,void 0);if(t){let i=JSON.parse(t),r=[];if("undefined"!=typeof aBasketProductData&&aBasketProductData.length>0&&i.length>aBasketProductData.length)for(let n=0;n0){var c,l="savedItem";c=JSON.stringify(r),p?localStorage.setItem(l,encodeURIComponent(c)):u(l,c,void 0,void 0)}}},l.ADD_TO_CART=function(){d||(d=R()),"undefined"!=typeof iEventQuantity&&d.items&&(d.items[0].quantity=iEventQuantity),a||O("event","add_to_cart",d)},l.ADD_TO_WISHLIST=function(){d||(d=R()),O("event","add_to_wishlist",d)},l.ORDER_ORDERFORM=function(){let e=t.querySelector("#total_price").value,i=0,r=[];if(e||"object"!=typeof EC_ORDER_FORM_ASSIGN_DATA||void 0===EC_ORDER_FORM_ASSIGN_DATA.r_total_price||(e=EC_ORDER_FORM_ASSIGN_DATA.r_total_price),"object"==typeof EC_ORDER_FORM_ASSIGN_DATA&&void 0!==EC_ORDER_FORM_ASSIGN_DATA.ship_fee&&(i=EC_ORDER_FORM_ASSIGN_DATA.ship_fee),"undefined"!=typeof aBasketProductOrderData&&aBasketProductOrderData.length>0)for(let n=0;n0)){let n=EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product;for(let c=0;c0&&(e=n.total_price,t=n.order_id,i=n.shipping,r=n.items),t||(t=$(o,"order_id")),O("event","purchase",{value:e,currency:"KRW",transaction_id:t,shipping:i,items:r});D({amount:e,order_id:t,shipping:i,items:r})},l.ordered=function(){let e=0,t="",i=[];if(barsJS.gtCK("bars_items")){let r=barsJS.gtCK("bars_items");if(r){let n=r.split("|");for(let c=0;c