(function(){/*VERSION:221018*/function checkWebviewCustomUA(a){for(var b=["daum","naver","google","facebook","twitter"],c=!1,d=0,e=b.length;d-1){c=!0;break}return c}window.daum=window.daum||{},function(a){function b(a){var b={};return a.replace(/[?&]+([^=&]+)=*([^&]*)/gi,function(a,c,d){b[c]=d}),b}function c(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}a.postcode={_validParam_:!0};for(var d=document.getElementsByTagName("script"),e=0,f=d.length;e=1)for(var d=0,e=c.length;d=k||l>=k)&&(g=!0,d&&"function"==typeof d&&d(a))}),this.on(a,"touchend",function(a){h.stopPropagation(a),f&&!g?(f=!1,e&&"function"==typeof e&&e(a)):(f=!1,g=!1)}))}},postcodeUtils.userAgent=function(a){function b(a){var b={},d=/(dolfin)[ \/]([\w.]+)/.exec(a)||/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)(?:.*version)?[ \/]([\w.]*)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?.*firefox/.exec(a)||/(rv):([\w.]+)/.exec(a)||["","unknown"];return"webkit"===d[1]?d=/(iphone|ipad|ipod)[\S\s]*os ([\w._\-]+) like/.exec(a)||/(android)[ \/]([\w._\-]+);/.exec(a)||[d[0],"safari",d[2]]:"mozilla"===d[1]?d[1]="firefox":/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(a)?d[1]="polaris":"rv"===d[1]&&(d[1]="msie"),b[d[1]]=!0,b.name=d[1],b.version=c(d[2]),b}function c(a){var b={},c=a?a.split(/\.|-|_/):["0","0","0"];return b.info=c.join("."),b.major=c[0]||"0",b.minor=c[1]||"0",b.patch=c[2]||"0",b}function d(a){var b={},c=!!/android/.test(a)&&"android"||!!/like mac os x./.test(a)&&"ios"||!!/(mac os)/.test(a)&&"mac"||!!/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(a)&&"polaris"||!!/(windows)/.test(a)&&"windows"||!!/(linux)/.test(a)&&"linux"||!!/webos/.test(a)&&"webos"||!!/bada/.test(a)&&"bada"||!!/(rim|blackberry)/.test(a)&&"blackberry"||"unknown";return b[c]=!0,b.name=c,b}var e=a.navigator.userAgent.toString().toLowerCase();return{ua_string:e,browser:b(e),os:d(e)}}(window),postcodeUtils.hasErrorInDefaultBrowser=function(a){for(var b=["lg-f5","lg-f4","lg-f3","d6503"],c=!1,d=0,e=b.length;d-1){c=!0;break}return c},postcodeUtils.isAndroidWebview=function(a){for(var b=["version/","samsungbrowser","daum","naver","google","facebook","twitter"],c=!1,d=0,e=b.length;d-1){c=!0;break}return c},postcodeUtils.isAndroidNaverWebview=function(a){for(var b=["naver"],c=!1,d=0,e=b.length;d-1){c=!0;break}return c},postcodeUtils.isIOSWebview=function(a){for(var b=["version/7","version/8","version/9","version/10","version/11","version/12","version/13","version/14","version/15"],c=0,d=0,e=b.length;d-1&&c++;return c===b.length},postcodeUtils.isMobileChrome=function(a){for(var b=["crios","chrome"],c=0,d=0,e=b.length;d-1&&c++;return c>0},postcodeUtils.encodeData=function(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+"="+encodeURIComponent(a[c])+"|");return b=b.slice(0,b.length-1)},postcodeUtils.decodeData=function(a){if(a&&"string"==typeof a){for(var b={},c=a.split("|"),d=0;de?(f=a+b,d=f.length>e?a:f):d=f,d}function m(a,b){n(a,b)||(q.POPUP_MAP[a]||(q.POPUP_MAP[a]=[]),q.POPUP_MAP[a].push({ref:b,data:{closeCallbackTimer:-1}}))}function n(a,b){if(q.POPUP_MAP[a])for(var c=q.POPUP_MAP[a],d=0,e=c.length;d=13?{position:"relative",width:a.isFlexibleWidth?a.width:a.width+"px",height:a.isFlexibleHeight?a.height:a.height+"px","background-color":"#fff","z-index":"0",overflow:"hidden","min-width":"300px",margin:"0",padding:"0"}:{position:"relative",width:a.isFlexibleWidth?a.width:a.width+"px",height:a.isFlexibleHeight?a.height:a.height+"px","background-color":"#fff","z-index":"0","overflow-x":"hidden","overflow-y":"auto","min-width":"300px",margin:"0",padding:"0"}:{position:"relative",width:a.isFlexibleWidth?a.width:a.width+"px",height:a.isFlexibleHeight?a.height:a.height+"px","background-color":"#fff","z-index":"0",overflow:"hidden","min-width":"300px",margin:"0",padding:"0"},b.style.cssText=f.getStringByOptions(c,":",";"),b}function b(){var a=d.createElement("iframe"),b={position:"absolute",left:"0",top:"0",width:"100%",height:"100%",border:"0 none",margin:"0",padding:"0",overflow:"hidden","min-width":"300px"};return f.userAgent.os.ios&&f.isIOSWebview(f.userAgent.ua_string)&&(b={width:"100%",height:"100%",border:"0 none",margin:"0",padding:"0",overflow:"hidden","min-width":"300px"}),a.setAttribute("frameborder","0"),a.setAttribute("title","우편번호서비스 레이어 프레임"),a.style.cssText=f.getStringByOptions(b,":",";"),a}function e(c,d){if(null===p)return alert("POPUP URL을 셋팅해 주세요.");var e=a(c),g=b();return e.id=j.setId("layer",c.viewerNo),g.src="about:blank",e.appendChild(g),h.append(d,e),f.userAgent.os.android&&f.isAndroidWebview(f.userAgent.ua_string)?setTimeout(function(){k(g,e,c,d)},300):setTimeout(function(){k(g,e,c,d)},0),e}function k(a,b,c,d){var e=a.contentWindow;e.document.write(s(c)),h.setFrameStyle(e.document.getElementsByTagName("html")[0],e.document.getElementsByTagName("body")[0]),e.document.close(),j.setReady(e,function(f,i){if("reload"===f){if(a.focus(),e&&e.document){var k=e.document.getElementById(j.getId("viewerFrame",c.viewerNo));k&&k.focus()}}else"search"===f?c.onSearch!==g.EMPTY_FUNCTION&&c.onSearch(i):"resize"===f?c.onResize!==g.EMPTY_FUNCTION&&(c.onResize(i),h.adjustLowIE(e,a,b,j.getId("viewerFrame",c.viewerNo),i.width,i.height)):"done"===f&&c.onComplete!==g.EMPTY_FUNCTION&&setTimeout(function(){c.onComplete(i),c.autoClose&&(h.IE11CompatibleBugFix(e),h.remove(d,b),c.onClose!==g.EMPTY_FUNCTION&&c.onClose(g.POPUP_CLOSE_STATE.COMPLETE))},0)},c)}function l(a){if(null===p)return alert("POPUP URL을 셋팅해 주세요.");var b={toolbar:"no",scrollbars:"no",menubar:"no",titlebar:"no",resizable:"no",location:"no",status:"no",top:isNaN(a.top)?200:a.top,left:isNaN(a.left)?500:a.left,width:a.isFlexibleWidth?g.DEFAULT_WIDTH:a.width,height:a.isFlexibleHeight?g.DEFAULT_HEIGHT:a.height},d=a.popupKey||"_blank",e=c.open("",d,f.getStringByOptions(b,"=",","));if(null==e)return alert("팝업을 열 수 없습니다.\n브라우저의 팝업 차단 기능이 활성화 되어 있는지 확인해주세요.");j.setId("popup",a.viewerNo),h.setPopupMap(j.getId("popup",a.viewerNo),e);try{e.focus()}catch(i){}if(a.popupKey&&n(e),f.userAgent.os.android&&f.isAndroidWebview(f.userAgent.ua_string)){var k=f.isAndroidNaverWebview(f.userAgent.ua_string)?500:300;setTimeout(function(){m(e,a),o(e,a)},k)}else setTimeout(function(){m(e,a),o(e,a)},0);return e}function m(a,b){var c=a.window;c.document.write(s(b)),h.setFrameStyle(c.document.getElementsByTagName("html")[0],c.document.getElementsByTagName("body")[0]),c.document.close();try{var d=c.document.head||c.document.getElementsByTagName("head")[0];if(d){var e=b.popupTitle||"Daum Postcode Service",f=null,i=null,k=c.document.getElementsByTagName("title")[0];k?(d.removeChild(k),f=c.document.createElement("title"),f.innerHTML=e,d.appendChild(f)):(f=c.document.createElement("title"),f.innerHTML=e,i=c.document.createElement("meta"),i.name="viewport",i.content="user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,width=device-width",d.appendChild(f),d.appendChild(i))}}catch(l){}j.setReady(c,function(c,d){"done"===c?b.onComplete!==g.EMPTY_FUNCTION&&setTimeout(function(){if(b.onComplete(d),b.autoClose)if(b.onClose!==g.EMPTY_FUNCTION){var c=h.getPopupMap(a);c&&clearInterval(c.data.closeCallbackTimer),a.close(),b.onClose(g.POPUP_CLOSE_STATE.COMPLETE)}else a.close()},0):"search"===c&&b.onSearch!==g.EMPTY_FUNCTION&&b.onSearch(d)},b)}function n(a){var b=a.window,c=b.document,d=c.body||c.documentElement||null;if(d)for(var e=c.getElementsByTagName("iframe"),f=0,g=e.length;f-1?"on":"off"};a.userQuery&&(c.userQuery=a.userQuery,c.cq=a.cq),a.region_name&&(c.region_name=a.region_name,c.cq=a.cq,c.intsh=a.intsh),a.theme&&""!==a.theme.themeStr&&(c.theme=a.theme.themeStr,c.bit=a.theme.bit,c.sit=a.theme.sit,c.sgit=a.theme.sgit,c.sbit=a.theme.sbit,c.pit=a.theme.pit,c.mit=a.theme.mit,c.lcit=a.theme.lcit),a.allAddr?c.zn="N":c.zn="Y";var d=p+"&"+f.getStringByOptions(c,"=","&"),e="&"+f.getStringByOptions({fullpath:q},"=","&"),g="&"+f.getStringByOptions({fullpath:q+r},"=","&"),i='';return i};return{init:function(a,b,c){p=a,q=b||"",r=c||""},popup:{create:function(a){l(a)}},layer:{create:function(a,b){var c=null;b&&"string"==typeof b?c=d.getElementById(b):b&&"object"==typeof b&&b.appendChild&&(c=b);var f=a.viewerNo-1;if(f>=1){var g=d.getElementById(j.getId("layer",f));g&&h.remove(c,g)}var k=j.getId("layer",a.viewerNo);(!k||k&&!i.TARGET_MAP[k])&&e(a,c)}}}}()}(v2,postcodeUtils,window,document,location);var v2=v2||{};!function(a,b,c,d,e){var f=b,g="msie"===f.userAgent.browser.name&&parseInt(f.userAgent.browser.version.major,10)<=6;a.themePreprocessor=function(){function a(a){for(var b=!1,c=u,d=0,e=c.length;d=g.l?(g.l-=e-Math.abs(f.l-g.l),g.l=g.l<0?g.l+1:g.l):f.l1?g.l-1:g.l));var h=p(g.h,g.s,g.l);return m(h.r,h.g,h.b)}function e(a,b){var c=n(a),d=o(c.r,c.g,c.b),e=b>=.5?.5:Math.abs(b),f=d.l-e<0?d.l+e:d.l-e;return{h:d.h,s:d.s,l:f}}function h(a){var b=.05,c=e(a,b),d=p(c.h,c.s,c.l);return m(d.r,d.g,d.b)}function i(a,b){var c=.48,d=e(a,c),f=n(b),g=o(f.r,f.g,f.b),h=p(g.h,g.s,d.l);return m(h.r,h.g,h.b)}function j(a){var b=a[s.BG],c=k(b),b=a[s.SEARCH_BG],d=k(b);b=a[s.CONTENT_BG];var e=k(b);b=a[s.CONTENT_BG];var f=k(b);b=a[s.PAGE_BG];var g=k(b);b=a[s.CONTENT_BG];var h=k(b);b=a[s.CONTENT_BG];var i=k(b);return{background:c,search:d,suggest:e,selectbox:f,page:g,more:h,layerClose:i}}function k(a){var b=1,c=0;if(a&&f.isHex(a)){var d=n(a),e=o(d.r,d.g,d.b);return e.l<.5?b:c}return c}function l(a){a=Math.round(a);var b=a.toString(16);return 1==b.length?"0"+b:b}function m(a,b,c){return"#"+l(a)+l(b)+l(c)}function n(a){var b=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(b,function(a,b,c,d){return b+b+c+c+d+d});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null}function o(a,b,c){a/=255,b/=255,c/=255;var d,e,f=Math.max(a,b,c),g=Math.min(a,b,c),h=(f+g)/2;if(f===g)d=e=0;else{var i=f-g;switch(e=h>.5?i/(2-f-g):i/(f+g),f){case a:d=(b-c)/i+(b1&&(c-=1),c<1/6?a+6*(b-a)*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function r(a){var b={},c=!1;try{if(!g&&"object"===(typeof a).toLowerCase()){for(var d in s)if(s[d]){var e=s[d];a[e]&&f.isHex(a[e])&&(b[e]=a[e])}for(var h in b)b.hasOwnProperty(h)&&(c=!0)}}catch(i){c=!1,b={}}return{isValid:c,userData:b}}var s={BG:"bgColor",SEARCH_BG:"searchBgColor",CONTENT_BG:"contentBgColor",PAGE_BG:"pageBgColor",TEXT:"textColor",QUERY_TEXT:"queryTextColor",POSTCODE_TEXT:"postcodeTextColor",EMPH_TEXT:"emphTextColor",OUTLINE:"outlineColor"},t={},u=[{key:s.BG,match:["BODY.bg"]},{key:s.SEARCH_BG,match:["SEARCH.bg"]},{key:s.CONTENT_BG,match:["SEARCH_GUIDE.bg","FILTER_ADDRESS.bg","RESULT_ADDRESS.bg","INFO.bg","INFO.iOSTouchGuideBoxBg","LAYER.bg","SUGGEST.bg"]},{key:s.PAGE_BG,match:["PAGING.bg"]},{key:s.TEXT,match:["SEARCH_GUIDE.text","FILTER_ADDRESS.text","RESULT_ADDRESS.addrText","RESULT_ADDRESS.engMapBtnText","RESULT_ADDRESS.autoMappingDontknowText","RESULT_ADDRESS.moreRelAddrLabelText","PAGING.curPageNumText","INFO.text","INFO.iOSTouchGuideBoxText","LAYER.text","SUGGEST.text"]},{key:s.QUERY_TEXT,match:["SEARCH.query"]},{key:s.POSTCODE_TEXT,match:["RESULT_ADDRESS.postcode"]},{key:s.EMPH_TEXT,match:["INFO.moveDaumMapText","SEARCH_GUIDE.emphText","RESULT_ADDRESS.hangJungDongText","RESULT_ADDRESS.autoMappingGuideText","RESULT_ADDRESS.buildingDetailText","RESULT_ADDRESS.addrTypeLabelText","SUGGEST.emphText"]},{key:s.OUTLINE,match:["SEARCH_GUIDE.topInfoBottomLine","RESULT_ADDRESS.outline","RESULT_ADDRESS.dividingLine","RESULT_ADDRESS.relAddrDividingLine","INFO.bottomLine","INFO.iOSTouchGuideBoxOutline","LAYER.outline","SUGGEST.bottomLine","SUGGEST.dividingLine"]}],v=[{keys:[s.SEARCH_BG],match:[["SEARCH.placeHolder","#bbb"]],modifier:d},{keys:[s.SEARCH_BG],match:[["SEARCH.bottomLine","#363636"]],modifier:i},{keys:[s.CONTENT_BG],match:[["RESULT_ADDRESS.addrTypeLabelOutline","#d4e2ef"],["RESULT_ADDRESS.moreRelAddrBtnBg","#959595"],["RESULT_ADDRESS.engMapBtnDividingLine","#cfcfcf"]],modifier:d},{keys:[s.CONTENT_BG],match:[["SUGGEST.itemOver","#f4f4f4"],["FILTER_ADDRESS.focusBg","#efefef"]],modifier:h},{keys:[s.PAGE_BG],match:[["PAGING.totalPageNumText","#959595"]],modifier:d},{keys:[s.BG],match:[["LOGO.text","#888"],["LOGO.logoTextDividingLine","#dcdcdc"]],modifier:d},{keys:[s.TEXT],match:[["INFO.exampleText","#008bd3"],["SEARCH_GUIDE.exampleText","#008bd3"]],modifier:d}];return{getPreprocessResult:function(c){var d=r(c);if(d.isValid){var e=d.userData;t={};var g=a(e),h=b(e),i=j(e),k=g&&h;if(k)return{themeStr:f.themeStringify(t),bit:i.background,sit:i.search,sgit:i.suggest,sbit:i.selectbox,pit:i.page,mit:i.more,lcit:i.layerClose}}return null}}}()}(v2,postcodeUtils,window,document,location);var v2=v2||{};!function(a,b,c,d,e){function f(a,b){for(var c=0;c20&&(c.pleaseReadGuide=20)),isNaN(c.pleaseReadGuideTimer)||"number"!=typeof c.pleaseReadGuideTimer?c.pleaseReadGuideTimer=1.5:(c.pleaseReadGuideTimer=parseFloat(c.pleaseReadGuideTimer),c.pleaseReadGuideTimer<=0&&(c.pleaseReadGuideTimer=1.5),c.pleaseReadGuideTimer>60&&(c.pleaseReadGuideTimer=1.5)),isNaN(c.maxSuggestItems)||"number"!=typeof c.maxSuggestItems?c.maxSuggestItems=10:(c.maxSuggestItems=parseInt(c.maxSuggestItems,10),(c.maxSuggestItems<1||c.maxSuggestItems>10)&&(c.maxSuggestItems=10)),c.windowHeightAvailableForSuggest=45*c.maxSuggestItems+50,c.theme){var f=t.getPreprocessResult(c.theme);null===f?c.theme=null:c.theme=f}"boolean"!=typeof c.allAddr&&(c.allAddr=!1),"boolean"!=typeof c.zonecodeOnly&&(c.zonecodeOnly=!1),"boolean"!=typeof c.useBannerLink&&(c.useBannerLink=!0),this._opt_=c}var m=c.daum.postcode;if(!m)return void alert("[우편번호 서비스] API 로딩 오류가 발생하였습니다. 확인 바랍니다. 지속적인 오류 발생시 ( https://github.com/daumPostcode/QnA/issues ) 이슈 등록 부탁드립니다.");var n=function(a){var b=a._validParam_,c=-1;return function(a,d){return!b&&(f(d,3),a&&(c=setInterval(function(){f(d,3)},6e5)),!0)}}(m);n(!0,"[우편번호 서비스 로딩 오류] API 로딩시 허용되지 않는 파라미터가 감지되었습니다. 사이트 관리자(개발자)분께서는 가이드페이지( https://postcode.map.daum.net/guide )의 기본 사용법을 참고하시어 수정 부탁드립니다.");var o=b,p=a.CONT,q=a.MODEL,r=a.viewUtils,s=a.frame,t=a.themePreprocessor,u="http:"!==a.CONT.PROTOCOL,v=(u?"https:":"http:")+"//postcode.map.daum.net/search",w=encodeURIComponent(p.PROTOCOL+"//"+e.host),x=encodeURIComponent(e.pathname),y="",z=v+"?origin="+w;s.init(z,x,y),l.prototype={open:function(a){if(!n(!1,"[우편번호 서비스] API 로딩시 허용되지 않은 파라미터가 감지되어 API 작동이 중지되었습니다. 사이트 관리자분께서는 가이드페이지( https://postcode.map.daum.net/guide )의 기본 사용법을 참고하시어 수정 부탁드립니다.")){ var b=o.extend({},this._opt_);b=g(b,a),b=h(b,a),b=i(b,a),b=j(b,a),b=k(b,a),b=o.extend(b,{viewType:"popup"}),s.popup.create(b)}},embed:function(a,b){if(!n(!1,"[우편번호 서비스] API 로딩시 허용되지 않은 파라미터가 감지되어 API 작동이 중지되었습니다. 사이트 관리자분께서는 가이드페이지( https://postcode.map.daum.net/guide )의 기본 사용법을 참고하시어 수정 부탁드립니다.")){var c=o.extend({},this._opt_);c=g(c,b),c=j(c,b),c=o.extend(c,{viewType:"layer"}),s.layer.create(c,a)}}},c.daum.Postcode=l}(v2,postcodeUtils,window,document,location);})();