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','maybins');
barsQ('cdid','mobile');
barsQ('host','cafe24');
barsQ('appi','com.looket.maybins|974391388|maybins');
barsQ('zigzag','');
var mode="RELEASE";console.log("ma script in "+mode);const MA_SDK_VER="3.0.4";"object"!=typeof barsJS&&(barsJS={}),function(t,e){var n=t.location.href,o=t.location.hostname;(-1!=n.indexOf("EKAMS=")||-1!=n.indexOf("NaPm="))&&(n=t.location.protocol+"//"+o);var a=e.referrer,i=navigator.userAgent,r=!1,p=i.match("Byapps")&&!i.match("StyleView"),s=i.match("Googlebot"),c="malog.byapps.co.kr";"function"!=typeof barsJS.gtCT&&(barsJS.gtCT=function(){if("undefined"!=typeof iCategoryNo)return iCategoryNo;n.includes("category")?t=/(?:\/category\/.*\/)(\d+)/g:n.includes("cate_no")&&(t=/(?:cate_no=)(\d+)/);var t,e=t.exec(n);return null!==e?e[1]:null}),"function"!=typeof barsJS.gtHT&&(barsJS.gtHT=function(t){barsQ("host",t=-1!=n.indexOf("://m.")&&"undefined"!=typeof EC_SDE_SHOP_NUM||void 0!==window.CAFE24?"cafe24":-1!=n.indexOf("/m2")?"godo":-1!=n.indexOf("/m")?"makeshop":"unknown")}),"function"!=typeof barsJS.gtCK&&(barsJS.gtCK=function(t){var n=e.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return n?decodeURIComponent(n[2]):""}),"function"!=typeof barsJS.stCK&&(barsJS.stCK=function(t,n,o,a,i){var r;o&&(r=new Date).setTime(r.getTime()+o),e.cookie=t+"="+encodeURIComponent(n)+(o?";expires="+r.toGMTString():"")+(a?";domain="+a:"")+";path="+(i||"/;")}),"function"!=typeof barsJS.ckWP&&(barsJS.ckWP=function(){return"serviceWorker"in navigator&&"PushManager"in t&&"showNotification"in ServiceWorkerRegistration.prototype&&!i.match("NAVER")}),"function"!=typeof barsJS.gtUD&&(barsJS.gtUD=function(){function t(){return Math.floor((1+Math.random())*65536).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(e){if(-1!=e.origin.indexOf("//"+c)&&e.data){var n=JSON.parse(e.data);n.macable||(n.macable=!0,n.matoken=barsJS.gtUD()),n.matoken&&(barsQ.uuid=n.matoken,barsJS.stCK("bars_uuid",barsQ.uuid,6048e5,barsJS.rtD()),barsJS.gtMA(),p||t.addEventListener("load",function(){barsJS.IJS()},!1))}});var n=e.createElement("iframe");n.setAttribute("frameborder","0"),n.style.width="0px",n.style.height="0px",e.body.appendChild(n),setTimeout(function(){n.setAttribute("src","//"+c+"/v/")},0)}),"function"!=typeof barsJS.rtQ&&(barsJS.rtQ=function(){var t="";for(var e in barsQ)"__bind__"!=e&&"couponLink"!=e&&"couponSet"!=e&&"rt_st"!=e&&-1==e.indexOf("bind")&&-1==e.indexOf("argument")&&void 0!==barsQ[e]&&(t&&(t+=","),t+='"'+e+'":"'+barsQ[e].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(o);return t?"."+t[0]:h}),"function"!=typeof barsJS.launch_action&&(barsJS.launch_action=function(t,e,n,o){var a=new Date,i=a.getYear()+"/"+(a.getMonth()+1)+"/"+a.getDate();barsJS.stCK("BYAPPS_visit_date",i,108e6,barsJS.rtD()),$("#byapps_launch_block").remove(),$("#byapps_launch_button").remove();var r="undefined"!=typeof byapps_custom_link?"?openurl="+encodeURIComponent(byapps_custom_link):"";"app"==t&&barsJS.lcAS(e,n,o,r)}),"function"!=typeof barsJS.launch_popoup&&(barsJS.launch_popoup=function(t,e,n){if(i.match(/iPhone|iPad|iPod/i)&&!arguments[2])return!1;var o=$("#byapps_install_popup_layer").html();$("#byapps_launch_block").remove(),$("#byapps_launch_button").remove(),$("
"+o+"
").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,e,n)}),$(".button_byapps_app_cancel").click(function(){barsJS.launch_action("web")})}),"function"!=typeof barsJS.launch_alert&&(barsJS.launch_alert=function(){if(i.match(/iPhone|iPad|iPod/i)&&!arguments[2])return!1;confirm("undefined"!=typeof byapps_install_alert_text?byapps_install_alert_text:"앱을 설치하시면 더욱 편리한 서비스를 받으실 수 있습니다\n설치하시겠습니까?")?barsJS.launch_action("app",arguments[0],arguments[1],arguments[2]):barsJS.launch_action("web")}),"function"!=typeof barsJS.install&&(barsJS.install=function(){if(!p&&n){var t=barsJS.gtCK("BYAPPS_visit_count"),o=barsJS.gtCK("BYAPPS_visit_date");t=t?Number(t)+1:1;var a=new Date,r=a.getYear()+"/"+(a.getMonth()+1)+"/"+a.getDate();(0==arguments[0]||t>Number(arguments[0]))&&(!o||o!=r)?(barsJS.stCK("BYAPPS_visit_count",0,108e6,barsJS.rtD()),"undefined"!=typeof byapps_update_alert_text&&""!=byapps_update_alert_text&&(-1!=e.cookie.indexOf("SMA_in_app=smartapp")||-1!=n.indexOf("looketapps")||-1!=e.cookie.indexOf("app_agent=power_app")||-1!=i.indexOf("HybridShop"))?(barsQ.act="update_popup",barsJS.sdDT("POST","/put/",barsJS.rtQ()),barsJS.launch_alert(arguments[2],arguments[3],arguments[4])):(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]))):barsJS.stCK("BYAPPS_visit_count",t,108e6,barsJS.rtD())}}),"function"!=typeof barsJS.popup_action&&(barsJS.popup_action=function(n){var o=new Date,a=o.getYear()+"/"+(o.getMonth()+1)+"/"+o.getDate(),i=void 0!==byapps_wps_popup.day?Number(byapps_wps_popup.day):3;if(barsJS.stCK("wps_check_date",a,86400*i*1e3,barsJS.rtD()),$("#byapps_popup_block").remove(),$("#byapps_popup_button").remove(),n&&void 0!==byapps_wps_popup.url){var r=barsJS.gtUI(),p=e.createElement("form"),s=e.createElement("input"),c=e.createElement("input");p.method="POST",p.action=byapps_wps_popup.url+"/",p.target="popup_wps",s.name="uid",s.value=barsQ.uuid,p.appendChild(s),r&&(c.name="uif",c.value=btoa(r),p.appendChild(c)),e.body.appendChild(p),t.open("about:blank","popup_wps","width=600, height=400, scrollbars=no")?p.submit():alert("팝업차단을 허용해 주시기 바랍니다."),e.body.removeChild(p),t.onmessage=function(t){if(t.data&&-1!=t.origin.indexOf(byapps_wps_popup.url)){var e=JSON.parse(t.data);"undefined"!==e.optin&&barsJS.stCK("bars_is_wp",e.optin,31536e7,barsJS.rtD()),"undefined"!==e.url&&e.url?self.location.href=decodeURIComponent(e.url):"undefined"!==e.optin&&1==e.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(),$("").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(){confirm(void 0!==byapps_wps_popup.text?byapps_wps_popup.text:"알림 수신동의를 하시면\n특가상품, 쿠폰, 이벤트 등 다양한 광고성 정보를 알림으로 받을 수 있습니다.")?barsJS.popup_action(!0):barsJS.popup_action(!1)}),"function"!=typeof barsJS.popup_custom&&(barsJS.popup_custom=function(){e.querySelector("#byapps_wps_popup_layer").style.display="block",e.querySelector(".button_byapps_popup_confirm").addEventListener("click",function(){barsJS.popup_action(!0)}),e.querySelector("[wpsballoon]")&&"1"!=barsQ.iswp&&(e.querySelector(".button_byapps_popup_confirm").classList.add("on"),setTimeout(function(){e.querySelector(".button_byapps_popup_confirm").classList.add("off")},"undefined"!=typeof byapps_wps_popup&&void 0!==byapps_wps_popup.sleep?1e3*byapps_wps_popup.sleep:5e3))}),"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"),e=new Date;e.getYear(),e.getMonth(),e.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 n=e.createElement("IFRAME");n.setAttribute("src","byapps://"+t),n.setAttribute("frameborder","0"),n.style.width="1px",n.style.height="1px",e.body.appendChild(n),e.body.removeChild(n),n=null}),"function"!=typeof barsJS.lcAS&&(barsJS.lcAS=function(t,e,n,o){if(t||e||!barsQ.appi||(e=barsQ.appi.split("|")[0],n=barsQ.appi.split("|")[1],t=barsQ.appi.split("|")[2]),barsQ.act="install_click",barsJS.sdDT("POST","/put/",barsJS.rtQ()),i.match(/Android/i)&&e&&t){if(i.match("Android4.4")||i.match("Android 4.4")||i.toLocaleLowerCase().search("chrome")>-1&&navigator.appVersion.match(/Chrome\/\d+.\d+/)[0].split("/")[1]>25)location.href="intent://"+t+o+"#Intent;scheme=byapps://"+t+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;package="+e+";S.browser_fallback_url=http%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3D"+e+"%26referrer%3Dutm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP;end";else{var a="market://details?id="+e+"&referrer=utm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP",r=new Date().getTime();setTimeout(function(){new Date().getTime()-r<2e3&&(location.href=a)},1500),location.href="byapps://"+t+o}}else if(i.match(/iPhone|iPad|iPod/i)&&n){var a="http://itunes.apple.com/kr/app/id"+n+"?mt=8",r=new Date().getTime();setTimeout(function(){new Date().getTime()-r<2e3&&(location.href=a)},1500),location.href="byapps"+t+"://"+o}}),"function"!=typeof barsJS.paCL&&(barsJS.paCL=function(n){var o=JSON.parse("{"+n+"}");if(o.wd||(o.wd="216px"),o.ht||(o.ht="105px"),o.tb||(o.tb="center"),o.lr||(o.lr="bottom:10"),o.ani||(o.ani="bounce"),o.bdr||(o.bdr="0"),-1!=o.wd.indexOf("%")?(o.wd=o.wd.replace("%",""),o.wd=t.innerWidth*(o.wd/100)):o.wd=o.wd.replace("px",""),-1!=o.ht.indexOf("%")?(o.ht=o.ht.replace("%",""),o.ht=t.innerHeight*(o.ht/100)):o.ht=o.ht.replace("px",""),o.img&&(o.bgc="transparent"),"center"==o.tb){var a=(t.innerHeight-o.ht)/2;o.tb="top:"+a}if("center"==o.lr){var a=(t.innerWidth-o.wd)/2;o.lr="left:"+a}var i=e.querySelectorAll("#ma_common_class").length;if(0==i){i="";var r=e.createElement("style");r.type="text/css",r.id="ma_common_class",r.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:"+o.wd+"px;height:"+o.ht+"px;"+o.tb+"px;"+o.lr+"px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_"+o.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);}",e.getElementsByTagName("head")[0].appendChild(r)}else e.querySelectorAll("#ma_common_class")[0].innerHTML+=".byapps_ma_pop_banner"+i+"{position:fixed;width:"+o.wd+"px;height:"+o.ht+"px;"+o.tb+"px;"+o.lr+"px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_"+o.ani+";z-index:9999999999999;}";var p=e.createElement("div");p.id="byapps_ma_pop_banner_body",p.className="byapps_ma_pop_banner"+i,e.body.appendChild(p);var s=e.querySelectorAll("#byapps_ma_pop_banner_body");s[s.length-1].style="display:block !important";var c=o.txt?decodeURIComponent(o.txt):'
',f="ma_"+Math.floor((1+Math.random())*65536).toString(16).substring(1);s[s.length-1].innerHTML=''+c+'',e.getElementById(f).addEventListener("click",function(){barsJS.dnCP(o.id,o.pt,o.lt)},!1);var u=e.getElementsByClassName("byapps_ma_pop_close");u[u.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 n=e.querySelectorAll("#"+t);n[n.length-1].remove()}),"function"!=typeof barsJS.ckAT&&(barsJS.ckAT=function(){var e=t.location.pathname;if("mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.get_action)return Byapps_MA_SDK_custom.get_action();if(""!=barsJS.gtDS("title")||-1!=e.indexOf("product/detail.html")||"cafe24"==barsQ.host&&"PRODUCT_DETAIL"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("/m/product.html")||-1!=e.indexOf("/goods/goods_view.php")||-1!=e.indexOf("/goods/view.php"))return"view";if("MEMBER_LOGIN"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("member/login.html")||-1!=e.indexOf("front/php/login/")||-1!=e.indexOf("/m/login.html")||-1!=e.indexOf("/member/login.php")||-1!=e.indexOf("/mem/login.php"))return"login";if("MEMBER_JOIN"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("member/join.html")||-1!=e.indexOf("member/agreement.html")||-1!=e.indexOf("/m/join.html")||-1!=e.indexOf("/m/join_contract.html")||-1!=e.indexOf("/member/join_agreement.php")||-1!=e.indexOf("/mem/join.php"))return"join";if("MEMBER_JOINRESULT"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("member/join_result.html")||-1!=e.indexOf("/m/join_complete.html"))return"joined";else if("ORDER_BASKET"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("order/basket.html")||-1!=e.indexOf("/m/basket.html")||-1!=e.indexOf("/order/cart.php")||-1!=e.indexOf("/goods/cart.php"))return"cart";else if("PRODUCT_LIST"==barsJS.gtMT('[name="path_role"]')||-1!=n.indexOf("product/list.html?cate_no")||-1!=e.indexOf("product/list_")&&-1!=n.indexOf("html?cate_no")||-1!=e.indexOf("product_list.html")||-1!=n.indexOf("/goods/list.php?category"))return"cate";else if("PRODUCT_SEARCH"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("product/search.html")||-1!=e.indexOf("/m/search.html")||-1!=e.indexOf("/goods/goods_search.php")||-1!=e.indexOf("/goods/goods_search.php")||-1!=n.indexOf("/goods/list.php?kw"))return"search";else if("ORDER_ORDERFORM"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("order/orderform.html")||-1!=e.indexOf("/m/order.html")||-1!=e.indexOf("/order/order.php")||-1!=e.indexOf("/ord/order.php"))return"order";else if("ORDER_ORDERRESULT"==barsJS.gtMT('[name="path_role"]')||-1!=e.indexOf("order/order_result.html")||-1!=e.indexOf("/m/order_complete.html"))return"ordered";else return"move"}),"function"!=typeof barsJS.gtQP&&(barsJS.gtQP=function(t,e){var n="";return t.toString().replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,o,a){o==e&&(n=a)}),n.split("#")[0]}),"function"!=typeof barsJS.stTG&&(barsJS.stTG=function(t){return t.toString().replace(/(<([^>]+)>)/ig,"")}),"function"!=typeof barsJS.stPR&&(barsJS.stPR=function(t){return t.replace(/[^0-9]/g,"")}),"function"!=typeof barsJS.stCT&&(barsJS.stCT=function(t){var e=barsJS.gtCK("bars_"+t+"_cnt");e=e?Number(e):0,e++,barsJS.stCK("bars_"+t+"_cnt",e,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!=a.indexOf("product/search.html")||-1!=a.indexOf("/m/search.html")?1:0}),"function"!=typeof barsJS.ckAR&&(barsJS.ckAR=function(t,e){if(!(t=barsJS.gtCK("bars_ma_"+t)))return!1;for(var n=t.split(";"),o=0;o=Number(e))}),"function"!=typeof barsJS.stPP&&(barsJS.stPP=function(t,e){var n=barsJS.gtCK("bars_ma_pp_"+t);n=n?Number(n):0,e=e?Number(e):24,n++,barsJS.stCK("bars_ma_pp_"+t,n,3600*e*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 n=e.createElement("a");return n.setAttribute("href",t),t=n.protocol&&("http:"==n.protocol||"https:"==n.protocol)?n.protocol:"http:",t+=n.hostname?"//"+n.hostname:"//"+o,t+=n.pathname?n.pathname:"",t+=n.search?n.search:""}),"function"!=typeof barsJS.ckRF&&(barsJS.ckRF=function(t){var n="direct";if("byapps_ma_shortcut"==t)n=t;else{var a=e.createElement("a");a.setAttribute("href",t),o!=a.hostname&&(n=a.hostname)}n=barsQ.zigzag?"zigzag":n,barsJS.stCK("bars_vfrom",n,36e6,barsJS.rtD())}),"function"!=typeof barsJS.ckVF&&(barsJS.ckVF=function(t,e){return"all"==t||t==barsQ.vfrom||"search"==t&&"all"==e||"search"==t&&-1!=barsQ.vfrom.indexOf(e)}),"function"!=typeof barsJS.ckCT&&(barsJS.ckCT=function(t){"cafe24"==barsQ.host?t=barsJS.gtCT():"makeshop"==barsQ.host?t=barsJS.gtQP(n,"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,e){let n=barsJS.gtCK(e);if(!n)return!1;let o=n.split(";");if(o.length<1)return!1;let a=0,i=o[0];for(let r=0;r0&&a%t==0}),"function"!=typeof barsJS.gtMT&&(barsJS.gtMT=function(t){try{return e.querySelector(t).getAttribute("content")}catch(n){return""}}),"function"!=typeof barsJS.gtOS&&(barsJS.gtOS=function(){if(i.match(/Android/i))return"android";if(i.match(/iPhone|iPad|iPod/i))return"ios";if(-1!=i.indexOf("Window"))return"windows";if(-1!=i.indexOf("Mac"))return"mac";if(-1!=i.indexOf("X11"))return"unix";else if(-1!=i.indexOf("Linux"))return"linux"}),"function"!=typeof barsJS.stDS&&(barsJS.stDS=function(t,n){try{e.querySelector('[data-byapps-item="'+t+'"]').innerHTML=n}catch(o){}}),"function"!=typeof barsJS.gtDS&&(barsJS.gtDS=function(t){try{return e.querySelector('[data-byapps-item="'+t+'"]').getAttribute("data-byapps-item-value")||e.querySelector('[data-byapps-item="'+t+'"]').textContent}catch(n){return""}}),"function"!=typeof barsJS.ckPC&&(barsJS.ckPC=function(t,e,n){var o,a=barsJS.gtCK("bars_basket_cnt");""==a&&(a=barsJS.gtCK("basket_cnt"));var i=barsJS.gtCK("bars_like_cnt");return a=a?Number(a):0,i=i?Number(i):0,o="0"==t&&"0"==e||("0"!=t&&"0"!=e?!!("or"==n&&(a>=Number(t)||i>=Number(e)))||!!("and"==n&&a>=Number(t)&&i>=Number(e)):("0"!=t||"0"!=e)&&(!!("0"!=t&&a>=Number(t))||!!("0"!=e&&i>=Number(e))))}),"function"!=typeof barsJS.ckMA&&(barsJS.ckMA=function(t,e){return t%=10,"10"==e||0!=t&&!!(t/e<=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(n)),barsQ("refer",encodeURIComponent(a)),barsQ("uagent",encodeURIComponent(i)),barsJS.gtCK("bars_vfrom")&&barsJS.gtCK("bars_visit")||barsQ("visit","yes"),a&&!barsJS.gtCK("bars_vfrom")&&barsJS.ckRF(a),p&&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!=n.indexOf("?byapps_ma_shortcut")&&barsJS.ckRF("byapps_ma_shortcut");var e=barsJS.ckAT();if(barsQ("act",e),"view"==e?barsJS.gtDT():"cate"==e?barsJS.ckCT():"order"==e?barsJS.gtOI():"ordered"==e&&barsJS.gtOR(),p&&"ios"==barsQ.os&&"cafe24"==barsQ.host&&"order"==e&&-1==n.indexOf("app_scheme")&&self.location.replace(n+"&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 o=barsJS.gtCK("bars_ma_rdcp"),r=barsJS.gtCK("bars_ma_cp")+o.split("|")[0]+";";barsJS.stCK("bars_ma_cp",r,31536e7,barsJS.rtD()),barsJS.stCK("bars_ma_rdcp","",-2592e7,barsJS.rtD()),p&&!barsJS.gtCK("bars_is_ap")&&barsJS.stCK("bars_is_ap","yes",31536e7,barsJS.rtD()),self.location.replace(o.split("|")[1])}var s=Math.round(new Date().getTime()/1e3);if(barsJS.gtCK("bars_visit")){var c=Number(barsJS.gtCK("bars_visit"));barsQ.stayed=s-c}else barsJS.stCK("bars_visit",s,72e5,barsJS.rtD());barsQ("vfrom",encodeURIComponent(barsJS.gtCK("bars_vfrom")))}),"function"!=typeof barsJS.gtDT&&(barsJS.gtDT=function(){var e=barsJS.gtDS("purl"),o=barsJS.gtDS("pno"),a=barsJS.gtDS("image"),i=barsJS.stTG(barsJS.gtDS("title")),r=barsJS.gtDS("cate"),p=barsJS.gtDS("cate_title"),s=barsJS.gtDS("price");s&&(s=barsJS.stPR(barsJS.stTG(s)));var c=barsJS.gtDS("sprice");if(c&&(c=barsJS.stPR(barsJS.stTG(c))),"cafe24"==barsQ.host){if(i||"undefined"==typeof product_name||(i=product_name),e||(e=barsJS.gtMT('[property="og:url"]')),o||(o="undefined"!=typeof iProductNo?iProductNo:barsJS.gtQP(n,"product_no")),o||"PRODUCT_DETAIL"!=barsJS.gtMT('[name="path_role"]')||(o=t.location.pathname.split("/")[3]),!a||a&&-1!=a.indexOf("img_product_big.gif")){var f=barsJS.gtMT('[property="og:image"]');f&&(a=f)}r||(r=barsJS.gtCT()),r||"PRODUCT_DETAIL"!=barsJS.gtMT('[name="path_role"]')||(r=t.location.pathname.split("/")[5]||""),s||("undefined"!=typeof iProductPrice?s=iProductPrice:"undefined"!=typeof productPrice&&(s=productPrice)),s&&c&&c>s&&(c=barsJS.gtMT('[property="product:sale_price:amount"]'))&&(c=barsJS.stPR(barsJS.stTG(c)))}else"makeshop"!=barsQ.host||(e||(e=barsJS.gtMT('[property="og:url"]')),o||(o=barsJS.gtQP(n,"branduid")),r||(r=barsJS.gtQP(n,"xcode")));if(o&&(o=barsJS.stTG(o)),s&&c&&c>s&&(c=s),e||(e=n),e&&-1==e.indexOf("http:")&&(e=barsJS.ckUL(e)),a&&-1==a.indexOf("http:")&&(a=barsJS.ckUL(a)),i&&(i=i.replace(/\"/gi,"")),o){var u=o+";"+barsJS.gtCK("bars_ma_sp");barsJS.stCK("bars_ma_sp",u,36e5,barsJS.rtD())}barsQ("purl",encodeURIComponent(e)),barsQ("title",encodeURIComponent(i)),barsQ("image",encodeURIComponent(a)),barsQ("price",encodeURIComponent(s)),barsQ("sprice",encodeURIComponent(c)),barsQ("itemno",encodeURIComponent(o)),barsQ("cate",encodeURIComponent(r)),barsQ("cate_name",encodeURIComponent(p)),barsQ("issearch",barsJS.ckSE())}),"function"!=typeof barsJS.gtOI&&(barsJS.gtOI=function(){if("cafe24"==barsQ.host){let t=e.querySelector("#total_price").value,n=0,o=[];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&&(n=EC_ORDER_FORM_ASSIGN_DATA.ship_fee),"undefined"!=typeof aBasketProductOrderData&&aBasketProductOrderData.length>0)for(let a=0;a0){let i=o.join("|");barsQ("itemno",encodeURIComponent(i)),barsJS.stCK("bars_items",i,108e6,barsJS.rtD())}t&&(barsQ("orderamount",encodeURIComponent(t)),barsJS.stCK("bars_tp",t,108e6,barsJS.rtD())),n&&barsQ("shipamount",encodeURIComponent(n))}else if("makeshop"==barsQ.host){let r=e.querySelector("#op_total_price")?.textContent??0;r=r.replace(/[^0-9]/,"");let p=e.querySelector("#pvd-total-delivery-0")?.textContent??0;p=p.replace(/[^0-9]/,""),r&&(barsQ("orderamount",encodeURIComponent(r)),barsJS.stCK("bars_tp",r,108e6,barsJS.rtD())),p&&barsQ("shipamount",encodeURIComponent(p))}else if("mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom){var s="function"==typeof Byapps_MA_SDK_custom.get_orderlist?Byapps_MA_SDK_custom.get_orderlist():"";s&&(barsQ("itemno",encodeURIComponent(s)),barsJS.stCK("bars_items",s,108e6,barsJS.rtD()));var c="function"==typeof Byapps_MA_SDK_custom.get_orderamount?Byapps_MA_SDK_custom.get_orderamount():"";c&&(barsQ("orderamount",encodeURIComponent(c)),barsJS.stCK("bars_tp",c,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 e=t.basket_result_action;r=!0,t.basket_result_action=function(){barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ());var t=e.apply(e,arguments);return t}}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 n=t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer;r=!0,t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer=function(){"basket"!=barsQ.act&&(barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ()));var t=n.apply(n,arguments);return t}}if("function"==typeof t.add_wishlist_result&&"function"!=typeof byapps_interrupt_like){var o=t.add_wishlist_result;r=!0,t.add_wishlist_result=function(){barsQ.act="like",barsJS.sdDT("POST","/put/",barsJS.rtQ());var t=o.apply(o,arguments);return t}}}else if("makeshop"==barsQ.host){if("function"==typeof t.send&&"function"!=typeof byapps_interrupt_basket&&!p){var e=t.send;r=!0,t.send=function(){barsQ.act="basket",barsJS.sdDT("POST","/put/",barsJS.rtQ());var t=e.apply(e,arguments);return t}}if("function"==typeof t.send_wish&&"function"!=typeof byapps_interrupt_like&&!p){var o=t.send_wish;r=!0,t.send_wish=function(){barsQ.act="like",barsJS.sdDT("POST","/put/",barsJS.rtQ());var t=o.apply(o,arguments);return t}}}else if("mall"==barsQ.host&&"object"==typeof t.Byapps_MA_SDK_custom&&"function"==typeof t.Byapps_MA_SDK_custom.do_retarget_action){var e=t.Byapps_MA_SDK_custom.do_retarget_action;r=!0,t.Byapps_MA_SDK_custom.do_retarget_action=function(){var t=arguments.length>0?arguments[0]:"like";barsQ.act=t,barsJS.sdDT("POST","/put/",barsJS.rtQ());var n=e.apply(e,arguments);return n}}}),"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 e=EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product;for(let o=0;o0&&barsQ("itemno",encodeURIComponent(t.join("|")))}}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(n,"order_id")))}),"function"!=typeof barsJS.rtMA&&(barsJS.rtMA=function(e){let o=JSON.parse(e),a=Math.round(new Date().getTime()/1e3),i=barsJS.gtCK("bars_ma_vt"),r=barsJS.gtCK("bars_ma_vc"),s=barsJS.gtCK("bars_ma_cc"),c=barsJS.gtCK("bars_cs_no");if(i=i?Number(i):a-1,r=r?Number(r):1,s=s?Number(s):1,c=c?Number(c):0,o.length)for(let f=0;fNumber(o[f].cv))&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}if("view"==o[f].at&&"view"==barsQ.act&&s%Number(o[f].cv)==0&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}if("pview"==o[f].at&&"view"==barsQ.act&&barsQ.itemno&&barsJS.inAR(o[f].cv,barsQ.itemno,",")&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("cview"==o[f].at&&"cate"==barsQ.act&&barsJS.ckCC(Number(o[f].cv),"bars_ma_ct")&&barsJS.ckCN(o[f])){let u="";if("cafe24"==barsQ.host?u=barsJS.gtCT():"makeshop"==barsQ.host?u=barsJS.gtQP(n,"xcode"):"mall"==barsQ.host&&"object"==typeof Byapps_MA_SDK_custom&&"function"==typeof Byapps_MA_SDK_custom.get_category&&(u=Byapps_MA_SDK_custom.get_category()),u&&barsJS.inAR(o[f].sf,u,",")){barsJS.mkPA(o[f]);break}}else if("cart"==o[f].at&&"cart"==barsQ.act&&r%Number(o[f].cv)==0&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("homestay"==o[f].at&&barsQ.stayed>0&&barsJS.ckCN(o[f])){let d=Number(barsQ.stayed),l=Number(o[f].cv)-d;l<0&&(l=0);let m=o[f];setTimeout(function(){barsJS.mkPA(m)},1e3*l)}else if("stay"==o[f].at&&"view"==barsQ.act&&barsJS.ckCN(o[f])){let b=o[f],g=Number(o[f].cv);t.addEventListener("touchend",function(t){barsQ.touch?barsQ.touch++:barsQ.touch=1,barsQ.touch%5==0&&setTimeout(function(){barsJS.mkPA(b)},1e3*g)},!1)}else if("sproduct"==o[f].at&&"view"==barsQ.act&&barsJS.ckCC(Number(o[f].cv),"bars_ma_sp")&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("cate"==o[f].at&&"cate"==barsQ.act&&barsJS.ckCC(Number(o[f].cv),"bars_ma_ct")&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("nologin"==o[f].at&&0==barsQ.lgin&&"1"==barsQ.ismb&&r%Number(o[f].cv)==0&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("yes"!=barsQ.visit&"move"==o[f].at&&r%Number(o[f].cv)==0&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("joined"==o[f].at&&"joined"==barsQ.act&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("wpon"==o[f].at&&"wpon"==barsQ.act&&"1"==barsQ.iswp&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}else if("order"==o[f].at&&"order"==barsQ.act){let y=barsQ.orderamount?barsJS.stPR(decodeURIComponent(barsQ.orderamount)):0;if(barsQ.shipamount&&(y-=barsJS.stPR(decodeURIComponent(barsQ.shipamount))),Number(o[f].sf)<=Number(y)&&Number(o[f].st)>=Number(y)&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}}else if("ordered"==o[f].at&&"ordered"==barsQ.act){let _=barsQ.orderamount?barsJS.stPR(decodeURIComponent(barsQ.orderamount)):0;if(Number(o[f].sf)<=Number(_)&&Number(o[f].st)>=Number(_)&&barsJS.ckCN(o[f])){barsJS.mkPA(o[f]);break}}else if("install"==o[f].at&&"yes"==barsQ.isap&&p){barsJS.ckAR(o[f].pt,o[f].id)&&!barsJS.gtCK("bars_is_ap")?barsJS.stCK("bars_is_ap","yes",31536e7,barsJS.rtD()):barsJS.mkPA(o[f]);break}else if("ismc"==o[f].at)barsJS.stCK("bars_is_mc",o[f].va,7776e6,barsJS.rtD());else if("ismt"==o[f].at)barsJS.stCK("bars_is_mt",o[f].va,36e5,barsJS.rtD());else if("iswp"==o[f].at)barsJS.stCK("bars_is_wp",o[f].va,31536e7,barsJS.rtD());else if("csno"==o[f].at)c!=Number(o[f].va)&&(c=Number(o[f].va),barsJS.stCK("bars_cs_no",c,864e5,barsJS.rtD()),barsJS.stCK("bars_cs_dt",a,864e5,barsJS.rtD()),barsQ.csno=c),void 0!==o[f].xp&&barsJS.stCK("bars_is_xp",o[f].xp,108e5,barsJS.rtD());else if("retarget"==o[f].at){let k=o[f].pt+"|"+o[f].msg;barsQ("rt_st",k),barsJS.stCK("_rt_st_",k,864e5,barsJS.rtD()),void 0!==o[f].wpr&&barsQ("rt_wpr",o[f].wpr),void 0!==o[f].wph&&barsQ("rt_wph",o[f].wph)}}barsJS.stCK("bars_ma_vt",a,2592e6,barsJS.rtD()),barsJS.subscription()}),"function"!=typeof barsJS.mkPA&&(barsJS.mkPA=function(t){if(t.ul&&-1!=t.ul.indexOf("naversearchapp://")&&(!i.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 e=Math.round(new Date().getTime()/1e3);barsJS.stCK("bars_visit",e,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://")&&p?barsQ.couponLink=t.ul:t.ul&&-1!=t.ul.indexOf("naversearchapp://")?barsQ.couponLink=t.ul:t.ul&&-1!=t.ul.indexOf("script://")?barsQ.couponLink=t.ul:t.ul?barsQ.couponLink=t.ul+"&u="+encodeURIComponent(n):barsQ.couponLink="",p&&(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){var e=Math.round(new Date().getTime()/1e3);barsJS.stCK("bars_visit",e,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,e,n){barsJS.stCK("bars_acode",t,18e6,barsJS.rtD()),"ev"==e?barsQ.couponLink&&(t=barsJS.gtCK("bars_ma_ev")+t+";",barsJS.stCK("bars_ma_ev",t,864e5,barsJS.rtD())):"cp"==e&&("1"==barsQ.lgin||p&&"byapps://shopCoupon"==barsQ.couponLink?(t=barsJS.gtCK("bars_ma_cp")+t+";",barsJS.stCK("bars_ma_cp",t,31536e7,barsJS.rtD()),"yes"==barsQ.isap&&p&&!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"!=n||p||"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 e=barsQ.couponLink.split("(");if(e.length>1){e[1]=e[1].replace(")","");var n=e[1].split(",");"function"==typeof t[e[0]]&&t[e[0]].apply(null,n)}else"function"==typeof t[e[0]]&&t[e[0]]()}else barsQ.couponLink?self.location.href=barsQ.couponLink:p||barsJS.clPA()}),"function"!=typeof barsJS.sdDT&&(barsJS.sdDT=function(e,n,o,a){n="//"+c+"/v/1.1"+n,"basket"==barsQ.act||"like"==barsQ.act?barsJS.stCT(barsQ.act):"ordered"==barsQ.act&&barsJS.stCK("bars_is_mc","1",7776e6,barsJS.rtD()),-1!=n.indexOf("/put/")?barsJS.stCK("bars_send",barsQ.act+barsQ.url,36e6):-1!=n.indexOf("/get_ma/")&&"wpon"!=barsQ.act&&barsJS.stCK("bars_send_ma",barsQ.act+barsQ.url,36e6);try{var i,r,p,s;(i=e,r=n,p=a,s=null,t.XDomainRequest?((s=new t.XDomainRequest).open(i,r,!0),s.onload=function(){"function"==typeof p&&p()}):t.XMLHttpRequest?((s=new XMLHttpRequest).open(i,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 p?p():p&&200==s.status&&s.responseText&&barsJS.rtMA(s.responseText))}):t.ActiveXObject&&((s=new ActiveXObject("Microsoft.XMLHTTP")).open(i,r),s.onload=function(){"function"==typeof p&&p()}),s).send(o)}catch(f){"function"==typeof a&&a()}}),"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||p||r||barsJS.ijSC()}),"function"!=typeof barsJS.IJC&&(barsJS.IJC=function(){if("view"==barsQ.act&&barsJS.ijSC(),-1!=n.indexOf("byapps_retarget_service")){var o="";"cafe24"==barsQ.host?o=barsJS.gtQP(n,"product_no"):"makeshop"==barsQ.host&&(o=barsJS.gtQP(n,"branduid")),!o&&barsQ.itemno&&(o=barsQ.itemno),o&&barsJS.stCK("bars_rcode",o,6048e5,barsJS.rtD())}else if(-1!=n.indexOf("byapps_wps_retarget")||a&&-1!=a.indexOf("push.center")){var o="",i=Math.round(new Date().getTime()/1e3);"cafe24"==barsQ.host?o=barsJS.gtQP(n,"product_no"):"makeshop"==barsQ.host?o=barsJS.gtQP(n,"branduid"):a&&(o=barsJS.gtQP(a,"idx")),!o&&barsQ.itemno&&(o=barsQ.itemno),o&&barsJS.stCK("bars_wcode",o+":"+i,6048e5,barsJS.rtD())}else if(-1!=n.indexOf("link_from_byapps.php")||a&&-1!=a.indexOf("link_from_byapps.php")){var o="";-1!=n.indexOf("link_from_byapps.php")?o=barsJS.gtQP(n,"idx"):a&&(o=barsJS.gtQP(a,"idx")),o&&barsJS.stCK("bars_rcode",o,6048e5,barsJS.rtD())}var r=e.getElementById("byapps_install_banner_layer");if(r&&(r.style.display=p?"none":"block"),p&&"login"==barsQ.act&&"Y"==barsQ.autoLogin){var s=-1!=n.indexOf("returnUrl")?n.split("returnUrl=")[1]:"";-1==(s=(s=-1!=s.indexOf("&toMoveLoginCheckModule")?s.split("&toMoveLoginCheckModule")[0]:s)?decodeURIComponent(s):a).indexOf("http://")&&-1==s.indexOf("https://")&&(s=t.location.protocol+"//"+t.location.hostname+s),-1!=n.indexOf("noMemberOrder")?s+=(-1!=s.indexOf("?")?"&":"?")+"byappsBtn=비회원조회&byappsLink=byapps://js_barsJS.cbLK()":"1"==barsJS.gtQP(n,"noMember")&&(s+=(-1!=s.indexOf("?")?"&":"?")+"byappsBtn=비회원주문&byappsLink=self"),barsJS.apCL("shopLogin?"+s)}}),"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"))),p&&!barsJS.gtCK("bars_is_ap")&&barsQ("isap","yes");var t=barsJS.gtCK("bars_ma_vt"),e=barsJS.gtCK("bars_ma_vc"),n=barsJS.gtCK("bars_ma_cc"),o=barsJS.gtCK("bars_cs_no");if(t||(t=0),e=e?Number(e)+1:1,n=n?Number(n):0,(o=o&&t?Number(o):0)>0){var a=new Date,i=barsJS.gtCK("bars_cs_dt"),r=new Date(1e3*i);a.toLocaleDateString()!=r.toLocaleDateString()&&(o=0,barsJS.gtCK("bars_ma_ev")&&barsJS.stCK("bars_ma_ev","",-2592e7,barsJS.rtD()))}"view"==barsQ.act&&(n++,barsJS.stCK("bars_ma_cc",n,864e5,barsJS.rtD())),barsJS.stCK("bars_ma_vc",e,864e5,barsJS.rtD()),barsQ("mcount",encodeURIComponent(e)),barsQ("vcount",encodeURIComponent(n)),barsQ("vtime",encodeURIComponent(t)),barsQ("csno",encodeURIComponent(o)),barsQ.uuid&&"1"!=barsQ.isxp&&barsJS.sdDT("POST","/get_ma/",barsJS.rtQ(),!0)}),"function"==typeof barsQ&&barsQ.length>0&&!s&&(barsJS.stBQ(),barsJS.IJC(),barsJS.gtMA(),barsJS.subscription(),"complete"==e.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){return new Promise((r,n)=>{(()=>{if(void 0===t&&(t="tag"),void 0===i&&(i=0),"text"==t&&document.querySelector("html").innerHTML.indexOf(e)>-1){r(!0);return}if("tag"==t){let n=document.querySelectorAll(e);try{if(n.length>0){r(!0);return}}catch(o){}}if("js"==t)try{if(e.indexOf(".")>0){let c=e.split(".");if((c.length=void 0!==window[c[0]][c[1]])||(c.length=void 0!==window[c[0]][c[1]][c[2]])||(c.length=void 0!==window[c[0]][c[1]][c[2]][c[3]])||(c.length=void 0!==window[c[0]][c[1]][c[2]][c[3]][c[4]])){r(!0);return}}else if(void 0!==window[e]){r(!0);return}}catch(l){}})()})},h=function(e){let t="",i={},r=0,n=0,o="",c=[];switch(e){case"godo1":null!==g('[name="order:price"]')&&(r=null!=(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="maybins";("twee"==i||"liberomall"==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