/*! For license information please see core.m.min.js.LICENSE.txt */
(()=>{var t={3812:(e,t,n)=>{var i=n(8563);app.add((function(){i("body").hasClass("mobile")&&(i(".ad_go_wrapper .ad_wrapper").length>0&&i(".ad_go_wrapper .ad_wrapper").append('<div class="ad_close" style="width:15px;height:15px;left:auto;right:0;"></div>'),i(".ad_close").click((function(){i(".fixed_ad_wrapper").remove()}))),function(){if(!i("body").hasClass("mobile"))return!1;if(0!==i(".mo_ad_main_ti_wrapper").length){var e=util_getUrl("url_api_ssl")+"/floating_ad",t={},n="mcfa";t.cookie_name=n;try{i.ajax({url:e,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},data:t,success:function(e){e.is_floating_ad?a(e.cfa):i(".mo_ad_main_ti_wrapper").remove()},error:function(e,t,n){a("1")}})}catch(e){a("1")}}function a(e){var t=i("#mo_ad_main_ti");app.set_cookie(n,e,e+"min"),t.append('<div id="ad_main_ti_close" onclick="app.close_floating();"><i class="icon-remove"></i></div>'),i(".mo_ad_main_ti_wrapper").removeClass("screen_out"),app.close_floating=function(){i(".mo_ad_main_ti_wrapper").remove()}}}(),window.IwmRewardedGranted=function(e){if(null===e.target)return;const t=e.target,n=document.querySelector(`#${t.addr_id}`);if(null===n)return;app.set_cookie(`adrr_reward_${t.addr_id}`,"1","480min"),localStorage.setItem(`adrr_reward_${t.addr_id}`,Date.now());let i=n.closest(".fixed_ad_wrapper");n.remove(),t.remove(),i&&document.querySelector(".fixed_ad_wrapper").remove(),window.IwmRewardedGranted_go=!0},window.IwmRewardClosed=function(e){if(void 0!==window.IwmRewardedGranted_go)window.IwmRewardedGranted_go&&void 0!==window.IwmRewardedGranted_callback&&window.IwmRewardedGranted_callback();else{var t=app.popup("reward");t.title("광고시청이 완료되지 않았습니다."),t.submit("확인"),t.show()}},window.IwmRewardEmpty=function(e){};function e(e){var t=app.popup("reward");t.title("광고를 시청하면8시간 동안<br>해당 배너가 보이지 않습니다."),t.submit("확인"),t.action((function(){googletag=window.googletag||{cmd:[]},googletag.cmd.push((()=>{const t=googletag.defineOutOfPageSlot("/83673359,108321246/RS_ruliweb_reward_300_250",googletag.enums.OutOfPageFormat.REWARDED).addService(googletag.pubads());let n="https://bbs.ruliweb.com/";document.querySelector("body.mobile")&&(n="https://m.ruliweb.com/"),googletag.pubads().set("page_url",n),googletag.enableServices(),googletag.pubads().addEventListener("rewardedSlotReady",(function(e){e.makeRewardedVisible()})),googletag.pubads().addEventListener("rewardedSlotGranted",(function(n){window.IwmRewardedGranted&&(window.IwmRewardedGranted(e),window.IwmRewardedGranted_callback=function(){googletag.destroySlots([t])})})),googletag.pubads().addEventListener("rewardedSlotClosed",(function(n){googletag.destroySlots([t]),window.IwmRewardClosed&&window.IwmRewardClosed(e)})),googletag.pubads().addEventListener("slotRenderEnded",(function(t){String(t.slot.getSlotElementId()).includes("RS_ruliweb_reward_300_250")&&t.isEmpty&&window.IwmRewardEmpty&&window.IwmRewardEmpty(e)})),googletag.display(t)})),t.close()})),t.is_cancel(!0,(function(){t.close()})),t.show()}document.querySelectorAll(".aaddr_m_reward").forEach((t=>{let n=!1;if("aaddr_m_reward_target_01"===t.id)n=!0;if(!n)return;const a=document.createElement("div");a.className="adrr_reward",a.id="adrr_reward_"+t.id,a.innerHTML="광고<br>삭제",i(t).prepend(a),a.addr_id=t.id,a.addEventListener("click",e)}))}))},7774:(e,t,n)=>{var i=n(8563);app.add((function(){0!==i(".admin_container").length&&(i(".btn_article_recover").click((function(){if(confirm("해당 글을 복원하시겠습니까?")){var e={};e.article_id=i(this).attr("article-id"),e.board_id=i("#board_id").val(),i.ajax({url:api_url+"articleRecover",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?location.reload():alert(e.message)},error:function(e,t,n){}})}})),i(".btn_proc_report").click((function(){if(confirm("해당 신고를 처리완료로 표시하시겠습니까?")){var e={};e.board_id=i("#board_id").val(),e.report_id=i(this).attr("report-id"),e.status=i(this).attr("status"),i.ajax({url:api_url+"procReport",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?location.reload():alert(e.message)},error:function(e,t,n){}})}})),i(".btn_delete_log").click((function(){var e=prompt("삭제 사유를 입력해주세요.");if(null!=e){var t={};t.board_id=i("#board_id").val(),t.log_id=i(this).attr("log_id"),t.member_srl=i(this).attr("member_srl"),t.reason=e,i.ajax({url:api_url+"procDeleteBoardMemberLog",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})}})),i(".btn_delete_ip").click((function(){var e=prompt("삭제 사유를 입력해주세요.");if(null!=e){var t={};t.board_id=i("#board_id").val(),t.srl=i(this).attr("srl"),t.reason=e,i.ajax({url:api_url+"procDeleteBoardBlockIP",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})}})),i(".btn_delete_group").click((function(){if(confirm("삭제하시겠습니까?")){var e={};e.board_id=i("#board_id").val(),e.srl=i(this).attr("srl"),i.ajax({url:api_url+"procDeleteBoardGroup",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})}})),i("body").on("click",".ip_hide",(function(){i(".ip_hide").remove(),i(".ip_show").css("display","initial")})),api_url=util_getUrl("url_api_ssl")+"/")})),app.add((function(){if(0!==i(".admin_container").length){app.add_category=function(){i("#category_empty").length>0&&i("#category_empty").remove(),i("#category_list").append('<li class="cate new row box_line_with_shadow padding_5 border_box"><div class="col mcol_12"><input type="number" class="form-control cate_id" value="" onchange="app.set_category();" required><input type="text" class="form-control cate_name" value="" onchange="app.set_category();" required></div><div class="col col_6 mcol_12"><select name="cate_permission" class="form-control cate_permission" onchange="app.set_category();" required><option value="5">일반회원</option><option value="6">매니저/부매니저</option><option value="7">매니저</option></select><a class="btn btn-default" onclick="app.change_category_order(-1, this);" style="font-size: 18px;"><i class="icon-chevron-sign-up"></i></a> <a class="btn btn-default" onclick="app.change_category_order(1, this);" style="font-size: 18px;"><i class="icon-chevron-sign-down"></i></a> <a class="btn btn-danger" onclick="app.remove_category(this);" style="color:#DC1A40; font-size: 18px;"><i class="icon-minus-sign"></i></a></td></li>')},app.set_category=function(){var e=i("#category_list").find(".cate"),t=[];e.each((function(e,n){var a=app.change_category(i(n));a&&(t[e]=a)}));var n=i("#categories"),a="{"+t.toString()+"}";n.val(a)},app.change_category_order=function(e,t){var n=i(t).parent().parent(),a=i("#category_list li").index(n),r=i("#category_list").find(".cate"),o=!1;r.each((function(t,s){if(t===a&&!o)if(e>0){if(t!==r.length-1){var l=i(r[t+1]);n.detach(),n.insertAfter(l),o=!0}}else if(e<0&&0!==t){var c=i(r[t-1]);n.detach(),n.insertBefore(c),o=!0}})),app.set_category()},app.remove_category=function(e){var t=i(e).parent().parent();t.hasClass("new")&&0,t.remove(),app.set_category(),0===i("#category_list").find(".cate").length&&i("#category_list").append('<div id="category_empty">empty</div>')},app.change_category=function(e){var t=e.find("input.cate_id"),n=e.find("input.cate_name"),i=e.find("select.cate_permission option:selected");return void 0!==t.val()&&null!==t.val()&&""!==t.val()&&(void 0!==n.val()&&null!==n.val()&&""!==n.val()&&(void 0!==i.val()&&null!==i.val()&&""!==i.val()&&'"'+t.val()+'":{"name":"'+n.val()+'","permission":"'+i.val()+'"}'))},app.set_category()}}))},6068:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#board_list"),t=util_getUrl("url_api_ssl")+"/";if(0!==e.length){var n=!0;app.add_bookmark=function(){var e=app.popup();e.title("즐겨찾기"),e.submit("확인"),e.action((function(){e.close()}));var a={};a.board_id=i("input[name=board_id]").val(),a.board_url=i("input[name=board_url]").val(),n&&i.ajax({url:t+"procAddFavorite",type:"POST",dataType:"json",data:a,xhrFields:{withCredentials:!0},success:function(t){n=!1;let a=JSON.parse(localStorage.getItem("favorite_list"));a.needUpdate=!0,localStorage.setItem("favorite_list",JSON.stringify(a)),i("body").hasClass("mobile")?(e.content(t.message),e.show()):alert(t.message)},error:function(e,t,i){n=!1}})},e.find("select.category_select").length>0&&e.find("select.category_select").change((function(){i(this).val()&&(location.href=i(this).val())})),e.find("#article_select_all").change((function(){var t=document.getElementById("article_select_all").checked;e.find("input[name='article_delete_admin']").prop("checked",t)})),e.find(".btn_article_multiple_delete").click((function(){if(confirm("선택한 게시글을 삭제하시겠습니까?")){var e={};e.board_id=i("input[name=board_id]").val(),e.article_list=[],i("input[name='article_delete_admin']:checked").each((function(){e.article_list.push(i(this).attr("value"))})),i.ajax({url:t+"procArticleMultipleDelete",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?location.reload():alert(e.message)},error:function(e,t,n){}})}}));var a=[0,0,0,0];if(void 0!==app.get_cookie("boardinfo")&&""!==app.get_cookie("boardinfo")&&(a=JSON.parse(decodeURIComponent(app.get_cookie("boardinfo")))),i("body").hasClass("mobile")?i(".board_notice_collapse").click((function(){i(".board_notice_collapse").hasClass("active")?(i(".table_body.notice.inside").removeClass("screen_out"),i(".board_notice_collapse").html('공지 <i class="icon-resize-small"></i>'),a[1]=0,r(a)):(i(".table_body.notice.inside").addClass("screen_out"),i(".board_notice_collapse").html('공지 <i class="icon-resize-full"></i>'),a[1]=1,r(a)),i(".board_notice_collapse").toggleClass("active")})):(i(".theme_default").hasClass("theme_white")&&(a[3]=1),i(".board_notice_collapse").click((function(){i(".board_notice_collapse").hasClass("active")?(i(".table_body.notice.inside").removeClass("screen_out"),i(".board_notice_collapse").html('공지 <i class="icon-resize-full"></i>'),a[2]=0,r(a)):(i(".table_body.notice.inside").addClass("screen_out"),i(".board_notice_collapse").html('공지 <i class="icon-resize-small"></i>'),a[2]=1,r(a)),i(".board_notice_collapse").toggleClass("active")})),i(".board_skin_switch").click((function(){i(".board_skin_switch").toggleClass("active"),i(".board_skin_switch").hasClass("active")?(i(".theme_default").addClass("theme_white"),a[3]=1,r(a)):(i(".theme_default").removeClass("theme_white"),a[3]=0,r(a))}))),app.relative_bbs_list=function(e,t,n){var a=[],r="";void 0===n&&(n={custom_tr_class:"",custom_all_cate_name:"",custom_all_cate_link:""});var o=e;if(e.indexOf("?cate=")>-1){var s=e.split("?cate=");o=s[0]+"/rss?cate="+s[1]}else o+="/rss";i.ajax({url:o,type:"GET",xhrFields:{withCredentials:!0},dataType:"xml"}).done((function(e){i.each(i("item",e),(function(e,o){if(e<t){r="";var s=new Date(i(o).find("pubDate").text()),l=function(e){return e<10&&(e="0"+e),""+e};if(app.log("pubDate",s),s=s.getFullYear()+"."+l(s.getMonth()+1)+"."+l(s.getDate())+" "+l(s.getHours())+":"+l(s.getMinutes())+":"+l(s.getSeconds()),i("body").hasClass("mobile")){var c="table_body",u=i(o).find("category").text(),d=i(o).find("link").text().split("/read/")[0];null!==n&&(void 0!==n.custom_tr_class&&(c+=" "+n.custom_tr_class),void 0!==n.custom_all_cate_name&&(u=n.custom_all_cate_name),void 0!==n.custom_all_cate_link&&(d=n.custom_all_cate_link)),r+='<tr class="'+c+' relative_bbs">',r+='<td class="subject" colspan="2">',r+='<div class="title row">',r+='<a href="'+d+'"><span class="cate_label">',r+="<strong>["+u+"]</strong>",r+="</span></a>&nbsp;",r+='<a class="subject_link deco" href="'+i(o).find("link").text()+'">',r+="<strong>"+i(o).find("title").text()+"</strong>",r+="</a>",r+="</div>",r+='<div class="info row">',r+='<span class="writer text_over">'+i(o).find("author").text()+"</span>",r+='<span class="time"> | 날짜 '+s+"</span>",r+="</div>",r+="</td>",r+="</tr>"}else r+='<tr class="table_body relative_bbs">',r+='<td class="id"></td>',r+='<td class="divsn"><strong>'+i(o).find("category").text()+"</strong></td>",r+='<td class="subject">',r+='<a class="deco" href="'+i(o).find("link").text()+'" tabindex="-1">',r+="<strong>"+i(o).find("title").text()+"</strong>",r+="</a>",r+="</td>",r+='<td class="writer text_over">'+i(o).find("author").text()+"</td>",r+='<td class="recomd"></td>',r+='<td class="hit"></td>',r+='<td class="time">'+s+"</td>",r+="</tr>";a.push(r),r=""}})),i(".table_body.notice").last().after(a.join(""))}))},app.board_search_init=function(){var e=document.getElementById("search_v"),t=document.getElementsByName("search_type")[0];e&&e.addEventListener("change",(function(){if("1"===e.value)t.removeChild(document.getElementById("comment_type"));else if(!document.getElementById("comment_type")){var n=document.createElement("option");n.id="comment_type",n.value="comment",n.innerText="댓글",t.appendChild(n)}}))},app.board_search_init(),app.board_search=function(){var e=i("input[name=search_key]").val();if(""===e)return!1;var t=i("input[name=board_url]").val();if(""===t)return!1;if(""===i("input[name=board_id]").val())return!1;var n=t+"?search_type="+i("select[name=search_type]").val()+"&search_key="+e;"1"===i("select[name=search_v]").val()&&(n+="&search_v=1"),"1"===i("input[name=view_cert]").val()&&(n+="&view_cert=1"),"1"===i("input[name=view_best]").val()&&(n+="&view_best=1"),i("input[name=cate]").val()&&(n+="&cate="+i("input[name=cate]").val()),location.href=n},i("input[name=search_key]").keydown((function(e){13===e.keyCode&&app.board_search()})),app.board_google_search=function(){var e=i(".board_google_search_input").val();if(""===e)return!1;var t=i("input[name=board_url]").val();if(""===t)return!1;var n=i("input[name=board_id]").val();if(""===n)return!1;var a="site:"+t+" "+e;app.log(util_getUrl()+"/search?bbs="+n+"&q="+a),window.open(util_getUrl()+"/search?bbs="+n+"&q="+a)},i(".board_google_search_input").keydown((function(e){13===e.keyCode&&app.board_google_search()})),app.member_activity=function(e,t){var n=i("#board_id").val();if(""===n)return!1;var a=app.popup(),r=i("#popup");a.submit("닫기"),a.action((function(){a.close()}));var o={};o.board_id=n,o.member_srl=e,o.key=t,i.ajax({url:util_getUrl("url_api_ssl")+"/dispMemberActivity?",type:"POST",dataType:"json",data:o,xhrFields:{withCredentials:!0},success:function(e){e.success?(r.addClass("member_activity"),r.find(".title").html(e.title),r.find(".popup_wrapper").width(e.width),"m"===e.client_mode&&r.find(".popup_wrapper").css({"max-width":"100%","max-height":"100%",height:"100%"}),a.content(e.html)):(r.addClass("error"),a.title("ERROR"),a.content(e.message+"<br>"),a.submit("확인"))},error:function(e,t,n){a.close()}}),a.show()},e.find("#article_select_all").change((function(){var t=document.getElementById("article_select_all").checked;e.find("input[name='article_delete_admin']").prop("checked",t)})),e.find(".subject .deco").each((function(e,t){if(!(i(t).closest(".table_body").hasClass("notice")||i(t).closest(".table_body").hasClass("is_tag")||i(t).closest(".table_body").hasClass("best")||i(t).closest(".table_body").hasClass("other"))){var n=i(this).html().trim(),a=[{open:"(",close:")"},{open:"[",close:"]"}],r=null,o=null,s="",l="";for(let e=0;e<a.length;e++)if(r=a[e],s=""+(o=n.split(r.close))[0],!(o.length<2||o[0].indexOf(" ")>-1)){for(let e=0;e<a.length;e++)if(s=""+(s=""+s.replaceAll(a[e].open,"")).replaceAll(a[e].close,""),r.close!==a[e].close){if(o[0].indexOf(a[e].open)>-1)continue;if(o[0].indexOf(a[e].close)>-1)continue}o[0].indexOf(r.open)>-1&&!o[0].startsWith(r.open)||(-1===(l=location.pathname.split("/read")[0]+"?search_type=subject&search_key="+s).search("/board")&&-1===l.search("/best")&&-1===l.search("/community")&&-1===l.search("/game")&&(void 0===location.host?location_host=location.hostname:location_host=location.host,l="https://"+location_host+"/hashtag/"+s),o[0]='<a style="color:#4376f3; font-weight:bold;" href="'+l+'" target="_self">'+o[0]+r.close+"</a>",n=(n=o.join(r.close)).replace("</a>"+r.close,"</a>"))}i(this).html(n)}})),i("body").hasClass("mobile")){document.querySelector(".marquee")&&document.querySelectorAll(".marquee").forEach((e=>{!function(e,t){const n=e,i=n.innerHTML,a=n.children[0];let r=0;n.insertAdjacentHTML("beforeend",i),n.insertAdjacentHTML("beforeend",i),setInterval((function(){a.style.marginLeft=`-${r}px`,r>a.clientWidth&&(r=0),r+=t}),0)}(e,.1)}))}return"board_list"}function r(e){e=encodeURIComponent(JSON.stringify(e)),app.set_cookie("boardinfo",e,9999,".ruliweb.com")}}))},6586:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#board_list");if(0!==e.length){i("#btn_m_board_chat").length>0&&(app.chat_open=function(e){if(void 0===e||""===e){var t=app.popup();return t.title(title),t.submit("확인"),t.action((function(){location.reload()})),t.content("잘못된 요청입니다."),t.show(),t=null,!1}var n=util_getUrl("url_api_ssl")+"/chat/"+e,i="width=100%, height=100%, resizable=no";window.open(n,"",i),n=null,i=null});var t=e.find(".board_head_btn");e.find(".subject").on("click",(function(e){var t=i(this).find("a.subject_link");if(t.length>0){var n=t.attr("href");location.href=n}})),i("#header").find(".board_head_btn").append(t.children()),t.remove(),i(".category_selected").click((function(){i(".category").toggleClass("screen_out"),i(".category").hasClass("screen_out")?(i(".category_selected > i").removeClass("icon-caret-up"),i(".category_selected > i").addClass("icon-caret-down")):(i(".category_selected > i").removeClass("icon-caret-down"),i(".category_selected > i").addClass("icon-caret-up"))})),app.bestList=function(e){var t=sessionStorage.getItem("top_best_list"),n=e=>{document.querySelector("#board_top .swiper-slide-active").classList.add("top_best_list"),document.querySelector(".top_best_list").insertAdjacentHTML("afterbegin",e)},a=()=>{document.querySelectorAll("#board_top .top_best_list .top_best_list_item").forEach((e=>e.remove())),document.querySelector("#board_top .swiper-slide-active").classList.remove("top_best_list"),document.querySelector("#board_top .top_best_list")&&document.querySelector("#board_top .top_best_list").classList.remove("top_best_list")};if(a(),"reset"!==e){if(i("#board_top").on("slide_change_start_custom_event",(function(e,t){a()})),t)return t=JSON.parse(t),void n(t[e]);fetch(`${util_getUrl("url_api_ssl")}/top_best_list`,{method:"GET",credentials:"include"}).then((e=>e.json())).then((t=>{if(t){if(!t.success)return;var i="",a={};t.data.map((e=>{i="",e.best.map((e=>{i+=`\n\t\t\t\t\t\t<li class="bottom_list_item item top_best_list_item">\n\t\t\t\t\t\t\t<a class="subject deco text_over blocktarget" href="${e.link}" data-user="${e.member_srl}">\n\t\t\t\t\t\t\t\t${e.subject}<input class="member_srl" type="hidden" value="${e.member_srl}">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>`})),a[e.key_name]=i})),n(a[e]),sessionStorage.setItem("top_best_list",JSON.stringify(a))}})).catch((e=>{}))}}}}))},6742:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#board_read");0!==e.length&&e.find(".view_content article *").each((function(e,t){if(void 0!==i(t).css("font-size")){var n=i(t).css("font-size");-1!==n.search("px")&&(n=parseInt(n))<16&&i(t).css("font-size","1em")}}))}))},2621:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#board_write").length){var e=i("#board_write"),t=a(e.find("#fm_post").text()),n=util_getUrl("url_api_ssl")+"/";!function(){"cheditor"===i("#editor_type").val()&&(app.myeditor=new cheditor,app.myeditor.config.editorHeight="500px",app.myeditor.config.editorWidth="100%",app.myeditor.config.makeThumbnail=!1,app.myeditor.config.allowedScript=!1,app.myeditor.config.useUndo=!1,app.myeditor.config.useRedo=!1,app.myeditor.inputForm="fm_post",app.myeditor.config.imgJpegQuality=.8,app.myeditor.config.imgUploadNumber=20,app.myeditor.config.imgDefaultAlign="center",app.myeditor.config.editorFontSize="17px",app.myeditor.config.lineHeight=2.3,app.myeditor.config.usePrint=!1,app.myeditor.config.useNewDocument=!1,app.myeditor.config.useUndo=!1,app.myeditor.config.useRedo=!1,app.myeditor.config.useCopy=!1,app.myeditor.config.useCut=!1,app.myeditor.config.usePaste=!1,app.myeditor.config.usePasteFromWord=!1,app.myeditor.config.useSelectAll=!1,app.myeditor.config.useStrikethrough=!1,app.myeditor.config.useUnderline=!1,app.myeditor.config.useItalic=!1,app.myeditor.config.useSuperscript=!1,app.myeditor.config.useSubscript=!1,app.myeditor.config.useJustifyLeft=!1,app.myeditor.config.useJustifyCenter=!1,app.myeditor.config.useJustifyRight=!1,app.myeditor.config.useJustifyFull=!1,app.myeditor.config.useBold=!1,app.myeditor.config.useOrderedList=!1,app.myeditor.config.useUnOrderedList=!1,app.myeditor.config.useOutdent=!1,app.myeditor.config.useIndent=!1,app.myeditor.config.useBackColor=!1,app.myeditor.config.useForeColor=!1,app.myeditor.config.useRemoveFormat=!1,app.myeditor.config.useClearTag=!1,app.myeditor.config.useSymbol=!1,app.myeditor.config.useHR=!1,app.myeditor.config.useTable=!1,app.myeditor.config.useModifyTable=!1,app.myeditor.config.useTextBlock=!0,app.myeditor.config.useFullScreen=!1,app.myeditor.config.allowedScript=!1,app.myeditor.config.usePreview=!1,app.myeditor.config.useSource=!1,app.myeditor.config.exceptedElements.iframe=!1,app.myeditor.config.exceptedElements.form=!0,app.myeditor.config.exceptedElements.input=!0,app.myeditor.config.exceptedElements.style=!0,app.myeditor.config.apiPath=n,app.myeditor.config.api_upload_path=n+"editor/upload",app.myeditor.config.version=1*i("#editor_ver").val(),app.myeditor.run(),app.editor_insertContents=function(e){app.myeditor.insertContents(e)});"trumbowyg"===i("#editor_type").val()&&i("#fm_post").trumbowyg({lang:"ko",btns:[["upload"],["noembed"]],plugins:{upload:{serverPath:util_getUrl("url_api_ssl")+"/editor/upload"}}});i(".fixed_ad_wrapper").hide(),i(".fixed_layer1").hide();var o=!0;if(window.initOnBeforeunload=function(){i(window).on("beforeunload",(function(){if(o)return"이 페이지를 벗어나면 작성된 내용은 저장되지 않습니다."}))},window.initOffBeforeunload=function(){i(window).off("beforeunload")},window.initOnBeforeunload(),i("#is_logged").length<1){var s=window.localStorage.getItem("anonymous_nick");null!==s&&i("#nick").val(s);var l=window.localStorage.getItem("anonymous_pw");null!==l&&i("#password").val(l)}e.find(".radio").on("click",(function(e){i(this).find("input").prop("checked",!0)})),e.find(".radio").on("click",".outer",(function(e){i(this).parents(".radio").find("input").prop("checked",!0)})),e.find(".radio").on("click",".inner",(function(e){i(this).parents(".radio").find("input").prop("checked",!0)}));var c=!1;function u(n){if(c)return c=!1,!1;o=!1,n.altKey&&n.preventDefault(),n.ctrlKey&&n.preventDefault(),n.shiftKey&&n.preventDefault(),void 0!==app.write_submit_before&&app.write_submit_before(),void 0!==app.write_submit_before2&&app.write_submit_before2();var r=i("#subject").val(),s=1*e.find(".subject_limit").val();if(r.length<1||""===r||null==r||" "===r)return alert("제목을 입력하여 주십시오."),c=!1,!1;if(r.length>s)return alert("제목의 길이 제한은 "+s+"자 이하입니다."),c=!1,!1;var l="";if("cheditor"===i("#editor_type").val()&&(l=app.myeditor.outputBodyHTML()),"trumbowyg"===i("#editor_type").val()&&(l=i("#fm_post").trumbowyg("html")),"ext"===i("#editor_type").val()&&(l=window.ext_content,i("#board_write .content").val(l)),"<p>&nbsp;</p>"===l||""===l||null==l)return alert("내용을 입력하여 주십시오."),c=!1,!1;if(0===i("#only_admin_test").length&&getByteLength(l)>1048576)return alert("내용을 1MB 이하로 입력하여 주십시오."),c=!1,!1;if(0===i("input[name=category]:checked").length)return alert("구분을 선택하여 주십시오."),c=!1,!1;if(t>a(l)&&!confirm("지워진 이미지는 삭제됩니다. 계속 진행하시겠습니까?"))return c=!1,!1;if(i("#is_logged").length<1&&(window.localStorage.setItem("anonymous_nick",i("#nick").val()),window.localStorage.setItem("anonymous_pw",i("#password").val())),i("#market_input").length>0){if(""===i("select[name=market_type]").val()||void 0===i("select[name=market_type]").val()||null===i("select[name=market_type]").val())return alert("거래를 선택하여 주십시오."),c=!1,!1;if(""===i("select[name=region]").val()||void 0===i("select[name=region]").val()||null===i("select[name=region]").val())return alert("지역을 선택하여 주십시오."),c=!1,!1;if(""===i("input[name=price]").val()||void 0===i("input[name=price]").val()||null===i("input[name=price]").val())return alert("가격을 입력하여 주십시오."),c=!1,!1;if(i("input[name=price]").val().length>20)return alert("가격은 20자 이하로 작성해 주십시오."),c=!1,!1;if(""===i("input[name=phone]").val()||void 0===i("input[name=phone]").val()||null===i("input[name=phone]").val())return alert("전화번호를 입력하여 주십시오."),c=!1,!1;if(i("input[name=phone]").val().length>20)return alert("전화번호는 20자 이하로 작성해 주십시오."),c=!1,!1}var u=null;u=null===(u=l.match(/<img[^>]*>/g))?0:u.length,i("#hasimage").val(u),i("#write_form").submit()}e.find("#write_submit").on("click",u),e.find(".write_submit").on("click",u),e.find("input[name=board_select]:radio").click((function(){var e={};e.board_id=i(this).val(),e.type="radio",i("input[name=board_id]").val(e.board_id),i.ajax({url:n+"getBoardCategoryList",type:"POST",dataType:"html",data:e,xhrFields:{withCredentials:!0},success:function(e){i(".category_wrapper").html(e),r()},error:function(e,t,n){}})}))}(),document.querySelectorAll('.board_select_wrapper .item input[type="radio"]').forEach((e=>{e.addEventListener("change",(e=>{var t=e.target;document.querySelector(".board_select_wrapper .item.active")&&document.querySelector(".board_select_wrapper .item.active").classList.remove("active"),t.parentElement.classList.add("active")}))})),r()}function a(e){var t,n=/(?:<img)(?:[^>]*)(?:src=")(?:[^.]*)(?:\.ruliweb\.com)\/(img|ori|mo)\/([^"]*)(?:")(?:[^>]*)(?:>)/g,i=0;do{if(null===(t=n.exec(e)))break;i++}while(null!==t);return i}function r(){document.querySelectorAll('.category_wrapper .item input[type="radio"]').forEach((e=>{e.addEventListener("change",(e=>{var t=e.target;document.querySelector(".category_wrapper .item.active")&&document.querySelector(".category_wrapper .item.active").classList.remove("active"),t.parentElement.classList.add("active")}))}))}}))},2097:(e,t,n)=>{var i=n(8563);app.add_callback("comment",(function(){var e=i(".rating_comment").find(".comment_container");0!==e.length&&(!function(){var t=function(e){return e.data("comment_info")}(e);i("#game").length>0&&(t.article_id=i("#game_id").val());!function(e,t){e.data("comment_info",t)}(e,t)}(),app.on_rating())}))},6649:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i(".apply_common").length){var e=null,t=!1;i("#apply_submit").click((function(){return!0!==t&&(document.querySelector("#apply_agree")&&!document.querySelector("#apply_agree").checked?(alert("약관에 동의해 주세요."),!1):""===(e={apply_title:(""+i("#apply_title").val()).trim(),apply_link:(""+i("#apply_link").val()).trim(),apply_info:(""+i("#apply_info").val()).trim(),apply_content:(""+i("#apply_content").val()).trim(),apply_admin:i("#apply_admin").prop("checked")}).apply_title||null===e.apply_title||void 0===e.apply_title||" "===e.apply_title?(alert("게시판 이름을 입력해 주세요."),!1):(e.type="common",i("#game_bbs_apply").length>0&&(e.type="game",""===e.apply_link||null===e.apply_link||void 0===e.apply_link||" "===e.apply_link)?(alert("공식 홈페이지를 입력해 주세요."),!1):""===e.apply_info||null===e.apply_info||void 0===e.apply_info||" "===e.apply_info?(alert("게시판 설명을 입력해 주세요."),!1):(i("#user_bbs_apply").length>0&&(e.type="user_board"),t=!0,void i.ajax({url:util_getUrl("url_api_ssl")+"/apply_bbs",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(n){n.success?(alert(n.message),location.reload(!0)):alert(n.message),e=null,t=!1},error:function(e,t,n){}}))))}))}}))},2953:(t,n,i)=>{var a=i(8563);app.add((function(){0===a("#game").length&&0===a("#games_attack").length||(app.game_attack_more=t=>{const n=document.querySelector("#game_attack_page"),i=document.querySelector(".game_close_btn");var a=document.querySelector("#games_attack ul");a&&(i.style.display="block","nowrap"!==a.style.flexWrap?fetch(util_getUrl("url_api_ssl")+"/subtop_gameattack_more?platform="+t+"&page="+n.value).then((e=>e.json())).then((t=>{const i=t.game_attack.data;var r="";const o=window.innerWidth/4;for(e of i)r+=`\n<li class="box_line" style="flex: 1; flex-grow: 0; width: ${Math.min(t.game_attack.img_width,o)}px; height: ${t.game_attack.img_height}px; margin: 4px calc((25% - ${Math.min(t.game_attack.img_width,o)}px)/2); box-sizing: border-box;">\n\t<a class="link" href="${util_getUrl("url")+"/"+t.game_attack.platform+"/game/"+e.game_id}">\n\t\t<img class="border_box box_line" src="${e.image_url}" width="${Math.min(t.game_attack.img_width,o)}px" height="${t.game_attack.img_height}px">\n\t</a>\n</li>\n`;1==n.value?a.innerHTML=r:a.innerHTML+=r,n.value=1*n.value+1,a.style.flexWrap="wrap"})).catch((e=>{})):a.style.flexWrap="wrap")},app.game_attack_close=()=>{const e=document.querySelector("#games_attack ul");if(!e)return;e.style.flexWrap="nowrap";document.querySelector(".game_close_btn").style.display="none"})}))},928:(e,t,n)=>{var i=n(8563);app.add((function(){0!==i("#game_rating").length&&(app.game_rating_init=()=>{document.querySelector(".schedule_more").onclick=e=>{const t=document.querySelector(".item_value .item_more"),n=document.querySelector(".schedule_more i");t.classList.contains("screen_out")?(t.classList.remove("screen_out"),n.classList.remove("icon-chevron-down"),n.classList.add("icon-chevron-up")):(t.classList.add("screen_out"),n.classList.remove("icon-chevron-up"),n.classList.add("icon-chevron-down"))}},app.game_rating_init())}))},881:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i(".market_table_wrapper");util_getUrl("url_api_ssl");0!==e.length&&(app.ip_check=function(e){if(0!==e.length&&"string"==typeof e){var t=util_getUrl("url_api_ssl")+"/ip_check?ip="+e;window.open(t,"","width=500,height=400")}},app.phone_check=function(e,t){if(0!==e.length&&0!==t.length&&"string"==typeof e&&"string"==typeof t){var n=util_getUrl("url_api_ssl")+"/phone_check?article_id="+e+"&board_id="+t;window.open(n,"","width=500,height=400")}},app.toggle_precaution_view=function(){var e=document.getElementById("precaution_view");e.style.display="none"===e.style.display?"block":"none"},app.trade_complete=function(e,t){if(!0!==confirm("거래완료 상태로 변경하시겠습니까?"))return!1;var n={};n.article_id=e,n.board_id=t,i.ajax({url:util_getUrl("url_api_ssl")+"/trade_complete_proc",type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:function(e){alert(e.message),location.reload()},error:function(e,t,n){alert("ajax error")}})})}))},9424:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#achievement").length){var e,t,n,a,r,o=util_getUrl("url_api_ssl")+"/";e=i("#achievement"),i("#new_achievement").on("click",".close_push",(function(){i("#new_achievement").hide()})),e.find(".achievement_element").click((function(e){var t=i(e).parent(),n=t.find(".item_body");t.hasClass("active")?(t.removeClass("active now"),n.removeClass("active")):(i("#msg_view").find(".list_item").removeClass("now"),t.toggleClass("active now"),n.toggleClass("active"))})),e.find("input.set_profile").click((function(e){var t,n,a,r=i(this).attr("data-type"),o=this.value;switch(r){case"title":if(i(".member_title").find(".member_title_element").length>3&&this.checked)return alert("타이틀은 최대 4개까지 장착 가능합니다."),!1;n=".member_title",t="title_"+o;var s=i("#title_element_"+o).find(".title_name").html();a=i("<span id='"+t+"'  class='member_title_element' data-srl='"+o+"'>"+s+"&nbsp;</span>");break;case"icon":if(i(".member_icon").find(".member_icon_element").length>4&&this.checked)return alert("아이콘은 최대 5개까지 장착 가능합니다."),!1;n=".member_icon",t="icon_"+o;var l=i("#icon_element_"+o),c=l.find(".achievement_icon").prop("src"),u=l.find(".icon_name").html();a=i("<img id='"+t+"' class='member_icon_element' title='"+u+"' data-srl='"+o+"'>").prop("src",c);break;default:return!0}this.checked?i(n).append(a):i("#"+t).remove()})),e.find(".update_profile").click((function(){var t={},n=[];e.find("input.set_profile:checked").each((function(e,t){n.push(i(t).val())})),t.achievement_list=JSON.stringify(n),t.type="achievement",i.ajax({url:o+"procUpdateAchievementProfile",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload(!0):alert(e.message)},error:function(e,t,n){}})})),e.find(".update_icon").click((function(){var e={},t=[];i(".member_icon").find(".member_icon_element").each((function(e,n){t[e]=i(n).attr("data-srl")})),e.icon_list=JSON.stringify(t),e.type="icon",i.ajax({url:o+"procUpdateAchievementProfile",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload(!0):alert(e.message)},error:function(e,t,n){}})})),e.find(".update_title").click((function(e){var t={},n=[];i(".member_title").find(".member_title_element").each((function(e,t){n[e]=i(t).attr("data-srl")})),t.title_list=JSON.stringify(n),t.type="title",i.ajax({url:o+"procUpdateAchievementProfile",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload(!0):alert(e.message)},error:function(e,t,n){}})})),e.find(".remove_title").click((function(e){var t={title_srl:0,type:"title"};i.ajax({url:o+"procUpdateAchievementProfile",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload(!0):alert(e.message)},error:function(e,t,n){}})})),t=i(".member_icon").find(".member_icon_element"),n=i(".member_title").find(".member_title_element"),a=[],r=[],t.each((function(e,t){a[e]=i(t).attr("data-srl")})),n.each((function(e,t){r[e]=i(t).attr("data-srl")}))}}))},2119:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#block");e.length>0&&(!function(){var t=util_getUrl("url_api_ssl")+"/";e.find("#total_del").change((function(){var t=document.getElementById("total_del").checked;e.find(".checkbox").prop("checked",t)})),e.find(".checkbox").change((function(){document.getElementById(i(this).attr("id")+"").checked||(document.getElementById("total_del").checked=!1)})),e.find(".btn_insert").click((function(){if(!confirm("추가하시겠습니까?"))return!1;var e={};e.member_srl=1*i("#insert_block").val(),e.block_reason=i("#block_reason").val(),i.ajax({url:t+"procBlockMember",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),window.location.reload()):alert(e.message)},error:function(e,t,n){}})})),e.find(".btn_del").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var n={},a=[];e.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.del_list=a,i.ajax({url:t+"procBlockRemove",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),window.location.reload()):alert(e.message)},error:function(e,t,n){}})}))}(),app.get_block_list_ajax())}))},1723:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#comment_icon_setting");if(0!==e.length){var t=!1,n=null,a=null;e.on("click",".icon_img_wrapper",(function(){i(this).find("img").length>0&&window.open(i(this).find("img").attr("src"))})),app.icon_remove=function(a){var r=null;i(a).closest(".icon_item_inner").find(".icon_img_wrapper").find("img").length<=0||(t?alert("업로드 중 입니다."):confirm("변경하시겠습니까?")&&(n=1*i(a).data("index")+8*(1*e.find(".comment_icon_setting_page").val()-1),(r={}).index=n,i.ajax({url:util_getUrl("url_api_ssl")+"/icon_delete",type:"POST",dataType:"json",data:r,xhrFields:{withCredentials:!0},success:function(e){alert(e.message),e.success&&i(a).closest(".icon_item_inner").find(".icon_img_wrapper").html("")},error:function(e,t,n){}})))},app.comment_img=function(r){t?alert("업로드 중 입니다."):(a=r,e.find(".input_file").val(""),n=1*i(r).data("index")+8*(1*e.find(".comment_icon_setting_page").val()-1),e.find(".input_file").click())},e.find(".input_file").change((function(e){if(t)alert("업로드 중 입니다.");else{t=!0;var r=e.target||window.event.srcElement,o=r.files;if(0!==o.length)if(FileReader&&o&&o.length){var s=o[0]||[],l=s.name,c=s.type,u=s.size;if("image/gif"===c||"image/gif"===c){if(u>5242881)return alert("GIF는 5MB 이하 사진 파일만 전송할 수 있습니다."),r=null,o=null,s=null,l=null,u=null,c=null,void(t=!1)}else if(u>10485760)return alert("10MB 이하 사진 파일만 전송할 수 있습니다."),r=null,o=null,s=null,l=null,u=null,c=null,void(t=!1);var d=new Image,p=new FileReader;p.onload=function(){d.src=p.result},p.readAsDataURL(s);var f=new XMLHttpRequest,h=new FormData;h.append("index",n),h.append("origname",l),d.onload=function(){i(a).closest(".icon_item_inner").find(".icon_img_wrapper").addClass("lazy_image_view");var e,n,m=null,g=null,v=null,_=null,b=!1,w=0,y=i.Deferred(),x=2e3,C=2e3;if((null==w||isNaN(w)||w!==parseInt(w,10))&&(w=x),(w>x||w<=0)&&(w=x),d.width>w){if((_=(v=w)/d.width*d.height)>C){var k=_;v*=(_=C)/k}b=!0}if(d.height>C&&!1===b){if((v=(_=C)/d.height*d.width)>w){var A=v;_*=(v=w)/A}else w=v;b=!0}(u>1048576&&(b=!0),"image/gif"!==c&&"image/gif"!==c||(b=!1),b)?((m=document.createElement("canvas")).width=v,m.height=_,(e=document.createElement("canvas")).width=d.width,e.height=d.height,(n=e.getContext("2d")).fillStyle="#fff",n.fillRect(0,0,e.width,e.height),n.drawImage(d,0,0),canvasResize(e,m,(function(){g=m.toDataURL("image/jpeg",.8),h.append("filehtml5",g.replace(/^(.*)base64,/,"")),y.resolve(),e=null,n=null}))):(h.append("file",s),y.resolve());y.promise().then((function(){f.open("POST",util_getUrl("url_api_ssl")+"/icon_upload",!0),f.withCredentials=!0,f.addEventListener("error",(function(e){alert("이미지 파일 전송 중 오류: ",+e.target.error.code),i(a).closest(".icon_item_inner").find(".icon_img_wrapper").removeClass("lazy_image_view")}),!1),f.addEventListener("loadend",(function(e){if(i(a).closest(".icon_item_inner").find(".icon_img_wrapper").removeClass("lazy_image_view"),e.target.readyState===e.target.DONE){var n=e.target.responseText;if(null==n||""===n)alert("이미지 업로드에 실패했습니다."),n=null;else{var b=JSON.parse(n);b.success?(alert(b.message),i(a).closest(".icon_item_inner").find(".icon_img_wrapper").html('<img src="'+b.fileUrl+'">'),{},i.extend({},b),n=null,b=null):(void 0!==b.message?alert(b.message):alert("이미지 업로드에 실패했습니다."),n=null,b=null)}t=!1,r=null,o=null,s=null,l=null,c=null,u=null,d=null,p=null,h=null,f=null,m=null,g=null,v=null,_=null}}),!1),f.send(h)}))}}else t=!1,alert("지원하지 않는 브라우저입니다.");else t=!1}}))}}))},9909:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#member_convert");if(0!==e.length){var t,n,a=util_getUrl("url_api_ssl")+"/",r=e.find("#user_password"),o=e.find("#user_password_check"),s=e.find("#user_email"),l=e.find("#user_id"),c={val:"",is_check:!1},u={val:"",is_check:!1},d={is_check:!1},p=/\s/g,f=/^[a-zA-Z0-9_-]{6,20}$/,h=/^[.0-9a-zA-Z_\-]+@[.0-9a-zA-Z_\-]+$/i,m=/\S{8,50}$/;n=e.find(".id_check_btn"),l.on("keyup",(function(){c.is_check=!1})),n.click((function(e){if(void 0===l.val()||null===l.val()||""===l.val()||p.test(l.val())||!f.test(l.val()))return alert("아이디는 6~20자에 영어 대소문자, 숫자, 하이픈(-), 언더바(_)만 들어갈 수 있습니다."),c.is_check=!1,event.preventDefault(),!1;var t={};t.id=l.val(),i.ajax({url:a+"checkId",type:"POST",data:t,dataType:"json",success:function(e){e.success?(alert(e.message),c.val=t.id,c.is_check=!0):alert(e.message)},error:function(e,t,n){c.is_check=!1}})})),t=e.find(".email_check_btn"),s.on("keyup",(function(){u.is_check=!1})),t.click((function(e){if(void 0===s.val()||null===s.val()||""===s.val()||p.test(s.val())||!h.test(s.val()))return alert("이메일을 올바르게 입력하여 주십시오."),u.is_check=!1,event.preventDefault(),!1;var t={};t.email=s.val(),i.ajax({url:a+"checkEmail",type:"POST",data:t,dataType:"json",success:function(e){e.success?(alert(e.message),u.val=t.email,u.is_check=!0):(alert(e.message),u.is_check=!1)},error:function(e,t,n){u.is_check=!1}})})),o.on("keyup",(function(){d.is_check=!1,r.val()==o.val()&&(d.is_check=!0)})),e.find("#user_submit").on("click",(function(e){return e.altKey&&e.preventDefault(),e.ctrlKey&&e.preventDefault(),e.shiftKey&&e.preventDefault(),l.val(l.val().trim()),s.val(s.val().trim()),r.val(r.val().trim()),o.val(o.val().trim()),void 0===l.val()||null===l.val()||""===l.val()||p.test(l.val())||!f.test(l.val())?(alert("아이디를 올바르게 입력하여 주십시오."),c.is_check=!1,e.preventDefault(),!1):c.is_check&&l.val()===c.val?void 0===r.val()||null===r.val()||""===r.val()||p.test(r.val())||!m.test(r.val())?(alert("비밀번호를 올바르게 입력하여 주십시오. (8~50자)"),d.is_check=!1,e.preventDefault(),!1):d.is_check?void 0===s.val()||null===s.val()||""===s.val()||p.test(s.val())||!h.test(s.val())?(alert("이메일을 올바르게 입력하여 주십시오."),u.is_check=!1,e.preventDefault(),!1):u.is_check&&s.val()===u.val?i("#agree_privacy").prop("checked")&&i("#agree_use").prop("checked")?void i("#register_form").submit():(alert("회원가입 약관에 모두 동의하셔야 합니다."),e.preventDefault(),!1):(alert("이메일 중복체크를 진행해 주십시오."),u.is_check=!1,e.preventDefault(),!1):(alert("비밀번호가 일치하지 않습니다."),d.is_check=!1,e.preventDefault(),!1):(alert("아이디 중복 체크를 진행해 주십시오."),c.is_check=!1,e.preventDefault(),!1)}))}}))},9817:(e,t,n)=>{var i=n(8563);app.add((function(){i("#favorite").length>0&&function(){var t=i("#favorite");t.find("#total_del").change((function(){var e=document.getElementById("total_del").checked;t.find(".checkbox").prop("checked",e)})),t.find(".checkbox").change((function(){document.getElementById(i(this).attr("id")+"").checked||(document.getElementById("total_del").checked=!1)})),t.find(".btn_del").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var n={},a=[];t.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.del_list=a,i.ajax({url:e+"procDeleteFavorite",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){if(e.success){let t=JSON.parse(localStorage.getItem("favorite_list"));t.needUpdate=!0,localStorage.setItem("favorite_list",JSON.stringify(t)),alert(e.message),window.location.reload()}else alert(e.message)},error:function(e,t,n){}})}))}();var e=util_getUrl("url_api_ssl")+"/";var t;t=document.querySelector("body.mobile")?"mo":"pc",i("#favorite").on("click",".item a",(function(){gtag("event","favorites",{event_category:t,event_label:"favorites"})})),i("#favorite").on("click",".f_item",(function(){gtag("event","favorites",{event_category:t,event_label:"favorites"})}))}))},3324:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i(".g-recaptcha");app.login=function(){if("undefined"!=typeof grecaptcha&&e.length>0&&!grecaptcha.getResponse())return alert('"로봇이 아닙니다" 체크를 눌러주세요'),i(".g-recaptcha").addClass("btn_red"),!1;i("#user_id").val(i.trim(i("#user_id").val())),i("#user_pw").val(i.trim(i("#user_pw").val())),i("#login_form").submit()},i("#user_pw").on("keydown",(function(e){13==e.keyCode&&app.login()}))}))},1989:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#message").length){var e=util_getUrl("url_api_ssl")+"/";i("#msg_view").length>0&&function(){var t=i("#msg_view");app.msg_view=function(e){var t=i(e).parent().parent(),n=t.find(".item_body");t.hasClass("active")?(t.removeClass("active now"),n.removeClass("active")):(i("#msg_view").find(".list_item").removeClass("now"),t.toggleClass("active now"),n.toggleClass("active"))},t.find("#total_del").change((function(){var e=document.getElementById("total_del").checked;t.find(".checkbox").prop("checked",e)})),t.find(".checkbox").change((function(){document.getElementById(i(this).attr("id")+"").checked||(document.getElementById("total_del").checked=!1)})),t.find(".btn_del").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var n={},a=[];t.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.del_list=a,n.del_type=i("#del_type").val(),i.ajax({url:e+"procDeleteMessage",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload(!0):alert(e.message)},error:function(e,t,n){}})}));var n=t.find(".list_item");n.on("click",".btn_save",(function(t){var n=i(t.delegateTarget).find(".item_message").val();if(!confirm("보관함에 추가 하시겠습니까?"))return!1;var a={};a.message_id=n,i.ajax({url:e+"procArchiveMessage",type:"POST",data:a,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.href=util_getUrl("url")+"/member/mypage/message/save":alert(e.message)},error:function(e,t,n){}})})),n.on("click",".btn_block",(function(e){var t=i(e.delegateTarget).find(".item_send").val();app.add_user_block(t)})),n.on("click",".btn_report",(function(t){var n=i(t.delegateTarget).find(".item_message").val(),a=i(t.delegateTarget).find(".item_send").val(),r=app.popup("report");r.action((function(){var t={};t.send_id=a,t.message_id=n,t.report_type=i(".report_body").find("input[name=report_type]:radio:checked").val(),t.illegal_type="",i(".report_body").find("input[name=illegal_type]:checkbox:checked").each((function(){t.illegal_type+=i(this).val()})),t.reason_etc=i(".report_body").find("#report_value").val(),"V"!==t.report_type||void 0!==t.illegal_type?(i.ajax({url:e+"procReportMessage",type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(e){e.success||alert(e.message)},error:function(e,t,n){}}),r.close()):alert("불법촬영물 분류를 하나 이상 선택해주세요.")})),r.show()}))}()}}))},4944:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#modify_info").length&&0!==i("#user_info_edit_form").length){var e=util_getUrl("url_api_ssl")+"/",t=i("#user_info_edit_form"),n=i("#user_password_curr"),a=i("#user_password_new"),r=i("#user_password_new_confirm"),o=i("#user_email"),s=i('input[name="user_info_period"]:checked').clone(),l=o.val(),c=!0,u=!1,d=/^[.0-9a-zA-Z_\-]+@[.0-9a-zA-Z_\-]+$/i,p=/\S{8,50}$/;t.find(".email_check_btn").click((function(t){if(!d.test(o.val()))return alert("이메일 형식이 맞지 않습니다."),t.preventDefault(),!1;if(l===o.val())return alert("수정되지 않았습니다."),t.preventDefault(),!1;var n={};n.email=o.val(),i.ajax({url:e+"checkEmail",type:"POST",data:n,dataType:"json",success:function(e){e.success?(alert(e.message),u=!0,c=!0):(alert(e.message),u=!1,c=!1)},error:function(e,t,n){}})})),o.on("keyup",(function(){u=!1})),t.on("keyup keypress",(function(e){if(13===(e.keyCode||e.which))return e.preventDefault(),!1})),t.on("submit",(function(t){t.preventDefault();var d=document.getElementById("user_info_edit_form"),f=new FormData(d),h=function(){var e={success:!0,message:"성공"};if(l!==o.val()&&!1===u)return e.success=!1,e.message="이메일 변경시 중복확인이 필요합니다.",e;if(null!==n.val()&&""!==n.val()&&void 0!==n.val()){if(null!==a.val()&&""!==a.val()&&void 0!==a.val()){if(!p.test(a.val()))return e.success=!1,e.message="패스워드는 8자 이상 50자 이하로 설정해주세요.",e;if(n.val()===a.val())return e.success=!1,e.message="새 비밀번호를 현재 비밀번호와 다르게 수정해 주십시오.",e;if(a.val()!==r.val())return e.success=!1,e.message="새 비밀번호가 일치하지 않습니다.",e}}else n.val(""),a.val(""),r.val("");return l!==o.val()||null!==n.val()&&""!==n.val()&&void 0!==n.val()||null!==a.val()&&""!==a.val()&&void 0!==a.val()||null!==r.val()&&""!==r.val()&&void 0!==r.val()||s.val()!==i('input[name="user_info_period"]:checked').val()?(c||(e.success=!1,e.message="잘못된 값이 입력되었습니다. 수정한 정보를 다시 확인해 주세요."),e):(e.success=!1,e.message="수정된 정보가 없습니다.",e)}();if(!h.success)return alert(h.message),!1;f.forEach((function(e,t){"user_email"===t&&l===e&&f.set(t,"")})),i.ajax({url:e+"procModifyInfo",type:"POST",data:f,contentType:!1,processData:!1,xhrFields:{withCredentials:!0},success:function(e){return e.success?(alert(e.message),location.href=util_getUrl("url_web")+"/member/mypage",!0):(alert(e.message),!1)},error:function(e,t,n){return alert("정보 수정에 실패했습니다. 다시 시도하여 주십시오."),!1}})}))}}))},3224:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#modify_password").length){var e=util_getUrl("url_api_ssl")+"/",t=i("#user_info_edit_form"),n=i("#user_password_new"),a=i("#user_password_new_confirm"),r=/\S{8,50}$/;t.on("keyup keypress",(function(e){if(13===(e.keyCode||e.which))return e.preventDefault(),!1})),t.on("submit",(function(t){t.preventDefault();var o=document.getElementById("user_info_edit_form"),s=new FormData(o),l=function(){var e={success:!0,message:"성공"};if(null!==n.val()&&""!==n.val()&&void 0!==n.val()){if(!r.test(n.val()))return e.success=!1,e.message="패스워드는 8자 이상 50자 이하로 설정해주세요.",e;if(n.val()!==a.val())return e.success=!1,e.message="새 비밀번호가 일치하지 않습니다.",e}return null!==n.val()&&""!==n.val()&&void 0!==n.val()||null!==a.val()&&""!==a.val()&&void 0!==a.val()||(e.success=!1,e.message="입력된 정보가 없습니다."),e}();if(!l.success)return alert(l.message),!1;i.ajax({url:e+"procModifyPassword",type:"POST",data:s,contentType:!1,processData:!1,xhrFields:{withCredentials:!0},success:function(e){return e.success?(alert(e.message),location.href=util_getUrl("url_web")+"/member/login",!0):(alert(e.message),!1)},error:function(e,t,n){return alert("정보 수정에 실패했습니다. 다시 시도하여 주십시오."),!1}})}))}}))},3730:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#modify_profile").length&&0!==i("#user_info_edit_form").length){var e,t,n=util_getUrl("url_api_ssl")+"/",a=i("#modify_profile"),r=i("#user_info_edit_form"),o=r.find("input[name=viewType]:checked"),s=i("#user_nick"),l=o.val(),c=s.val(),u=!0,d=!1;e=a.find(".tab_title").find(".tab_item"),t=a.find(".tab_content").find(".tab_item"),e.each((function(n,a){i(a).click((function(){e.removeClass("active"),i(this).addClass("active"),t.removeClass("active"),i(t[n]).addClass("active")}))})),function(){var e=r.find(".nick_check_btn");r.find(".email_check_btn");e.click((function(e){if(void 0===s.val()||null===s.val()||""===s.val())return e.preventDefault(),!1;var t=new RegExp("[฀-๿]","g");if(s.val(s.val().replace(t,"")),s.val().length>16){alert("닉네임은 16자를 넘길수 없습니다.");var a=s.val().substr(0,16);return s.val(a),e.preventDefault(),!1}if(c===s.val())return alert("수정되지 않았습니다."),e.preventDefault(),!1;var r={};r.nick=s.val(),i.ajax({url:n+"checkNickname",type:"POST",data:r,dataType:"json",success:function(e){e.success?(alert(e.message),d=!0,u=!0):(alert(e.message),d=!1,u=!1)},error:function(e,t,n){}})})),s.on("keyup",(function(){d=!1}))}(),a.hasClass("modify_profile")&&function(){function e(){var e=!1,t={filesize_max:2097152,filesize_max_text:"2MB",input_file:i("#profile_img_input_file"),wh:"150",target_name:"profile_img"},a=function(n){var a=n.target||window.event.srcElement,r=a.files;if(0===r.length)return a=null,void(r=null);if(FileReader&&r&&r.length){var o=r[0]||[],s=o.name,l=(o.type,o.size);if(l>t.filesize_max)return alert(t.filesize_max_text+" 이하 사진 파일만 전송할 수 있습니다."),t.parents.find(".input_name").text(""),a=null,r=null,o=null,s=null,null,void(l=null);t.parents.find(".input_name").text("이미지 업로드중...");var c=new Image,u=new FileReader;u.onload=function(){c.src=u.result},u.readAsDataURL(o);var d=new XMLHttpRequest,p=new FormData;p.append("origname",s),c.onload=function(){p.append("file",o),d.open("POST",t.img_upload_url,!0),d.withCredentials=!0,d.addEventListener("error",(function(t){alert("이미지 파일 전송 중 오류: ",+t.target.error.code),a=null,r=null,o=null,s=null,null,l=null,c=null,u=null,p=null,d=null,e=!1}),!1),d.addEventListener("loadend",(function(n){if(n.target.readyState===n.target.DONE){var f=n.target.responseText;if(null==f||""===f)alert("이미지 업로드에 실패했습니다."),t.parents.find(".input_name").text("이미지 전송 실패"),f=null;else{var h=JSON.parse(f);h.success?(alert("업로드 성공"),t.parents.find(".input_name").text(o.name+" 업로드 완료"),i("#"+t.target_name+"_wrapper").html('<img id="'+t.target_name+'" class="input_view '+t.target_name+'" width="'+t.wh+'" height="'+t.wh+'" alt="'+o.name+'" src="'+h.file_url+"?t="+Date.now()+'">'),"profile_img"===t.target_name&&i("#mypage").find(".profile").find(".profile_img").prop("src",h.file_url),f=null,h=null):(void 0!==h.message?alert(h.message):alert("이미지 업로드에 실패했습니다."),t.parents.find(".input_name").text("이미지 전송 실패"),e=!1,f=null,h=null)}a=null,r=null,o=null,s=null,null,l=null,c=null,u=null,p=null,d=null}e=!1}),!1),e=!0,d.send(p)}}else alert("지원하지 않는 브라우저입니다."),t.parents.find(".input_name").text("지원하지 않는 브라우저입니다."),e=!1};app.profile_img=function(a){e||(t.parents=i(a).parents(".tab_item"),"profile_img_m_file_upload"===i(a).attr("id")?(t.wh="75",t.filesize_max=204800,t.filesize_max_text="200KB",t.input_file=i("#profile_img_m_input_file"),t.target_name="profile_img_m"):(t.wh="150",t.filesize_max=2097152,t.filesize_max_text="2MB",t.input_file=i("#profile_img_input_file"),t.target_name="profile_img"),t.img_upload_url=n+t.target_name+"_upload",t.input_file.val(null),t.input_file.click())},i("#profile_img_input_file").change(a),i("#profile_img_m_input_file").change(a)}function t(){var e=!1;app.profile_img_del=function(t){var a=!1,r=n+"profile_img_delete";e||("profile_img_m_file_delete"===i(t).attr("id")&&(a=!0),a&&(r=n+"profile_img_m_delete"),i.ajax({url:r,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?location.reload():alert(e.message)},error:function(e,t,n){}}))}}function a(){var e=i("#gamer_card_src"),t=(i("#gamer_card_btn"),i("#gamer_card_wrapper"));i("#gamer_card_value_upload").click((function(){var a=e.val(),r=/^[a-zA-Z0-9]([a-zA-Z0-9\s]{0,13}[a-zA-Z0-9])?$/,o="";if(void 0===a||""===a||null===a)return alert("내용이 비었습니다."),!1;if(!r.test(a))return alert("조건에 맞는 문자를 넣어주세요."),!1;var s={};s.value=a,i.ajax({url:n+"profile_gamecard",type:"POST",data:s,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(o='<iframe class="profile_gamecard input_view" src="//gamercard.xbox.com/'+a+'.card" width="200" height="135" title="게이머 카드" frameborder="0" scrolling="no"></iframe>',t.html(o),alert("업로드 성공"),location.reload()):alert(e.message)},error:function(e,t,n){}})}))}e(),t(),a()}(),r.on("keyup keypress",(function(e){if(13===(e.keyCode||e.which))return e.preventDefault(),!1})),r.on("submit",(function(e){e.preventDefault();var t=document.getElementById("user_info_edit_form"),a=new FormData(t),p=function(){var e={success:!0,message:"성공"};if(c!==s.val()&&!1===d){e.success=!1,e.message="닉네임 변경시 중복확인이 필요합니다.";var t=new RegExp("[฀-๿]","g");return s.val(s.val().replace(t,"")),e}return o=r.find("input[name=viewType]:checked"),l===o.val()&&c===s.val()?(e.success=!1,e.message="수정된 정보가 없습니다.",t=new RegExp("[฀-๿]","g"),s.val(s.val().replace(t,"")),e):(u||(e.success=!1,e.message="잘못된 값이 입력되었습니다. 수정한 정보를 다시 확인해 주세요.",t=new RegExp("[฀-๿]","g"),s.val(s.val().replace(t,""))),e)}();if(!p.success)return alert(p.message),!1;a.forEach((function(e,t){"user_nick"===t&&c===e&&a.set(t,""),"viewType"===t&&l===e&&a.set(t,"")})),i.ajax({url:n+"procModifyProfile",type:"POST",data:a,contentType:!1,processData:!1,xhrFields:{withCredentials:!0},success:function(e){return e.success?(alert(e.message),location.reload(),!0):(alert(e.message),!1)},error:function(e,t,n){return alert("정보 수정에 실패했습니다. 다시 시도하여 주십시오."),!1}})})),i(".collapse").click((function(){i(".mark_policy_collapse").toggleClass("active")}))}}))},2686:(e,t,n)=>{var i=n(8563);app.add((function(){var e,t;i("#myarticle").length>0&&((e=i("#myarticle")).find("#select_all").change((function(){var e=i("#select_all").prop("checked");i(".select_list").prop("checked",e)})),e.find(".d_myarticle").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var t={},a=[];e.find("input.select_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),t.select_list=a,i.ajax({url:n+"procDeleteMyArticle",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?document.location.reload():alert(e.message)},error:function(e,t,n){}})}))),i("#mycomment").length>0&&((t=i("#mycomment")).find("#select_all").change((function(){var e=i("#select_all").prop("checked");i(".select_list").prop("checked",e)})),t.find(".d_mycomment").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var e={},a=[];t.find("input.select_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),e.select_list=a,i.ajax({url:n+"procDeleteMyComment",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?document.location.reload():alert(e.message)},error:function(e,t,n){}})})));var n=util_getUrl("url_api_ssl")+"/"}))},8706:(e,t,n)=>{var i=n(8563);app.add((function(){i("#notifylist").length>0&&function(){var t=i("#notifylist");t.find("#total_del").change((function(){var e=document.getElementById("total_del").checked;t.find(".checkbox").prop("checked",e)})),t.find(".checkbox").change((function(){document.getElementById(i(this).attr("id")+"").checked||(document.getElementById("total_del").checked=!1)})),t.find(".btn_delete").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var n={},a=[];t.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.del_list=a,i.ajax({url:e+"procDeleteNotify",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload():alert(e.message)},error:function(e,t,n){}})})),t.find(".btn_set_read").click((function(){var n={},a=[];t.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.read_list=a,i.ajax({url:e+"procReadNotify",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload():alert(e.message)},error:function(e,t,n){}})})),t.find(".btn_set_read_all").click((function(){var t={read_list:"all"};i.ajax({url:e+"procReadNotify",type:"POST",data:t,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload():alert(e.message)},error:function(e,t,n){}})}))}();var e=util_getUrl("url_api_ssl")+"/"}))},2850:(e,t,n)=>{var i=n(8563);app.add((function(){if(!(i("#notifyconfig").length<1)){var e=i("#notifyconfig"),t=app.popup();t.title("알람 설정"),t.content("저장 성공"),t.submit("확인"),t.action((function(){t.close()})),app.change_notify=function(t){var n=util_getUrl("url_api_ssl")+"/procNotifyConfig",a={};a.set_alarm=e.find("#set_alarm").data("status"),a.set_push=e.find("#set_push").data("status"),app.log("self",t),app.log("_data",a),"alarm"===t&&("true"===a.set_alarm||!0===a.set_alarm?a.set_alarm="false":"false"!==a.set_alarm&&!1!==a.set_alarm||(a.set_alarm="true")),"push"===t&&("true"===a.set_push||!0===a.set_push?a.set_push="false":"false"!==a.set_push&&!1!==a.set_push||(a.set_push="true")),app.log("_data 2",a),i.ajax({url:n,data:a,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(e){alert(e.message),location.reload()},error:function(e,t,n){alert("저장 실패")}})}}}))},8710:(e,t,n)=>{var i=n(8563);app.add((function(){0!==i("#real_message_popup").length&&(i("#real_message_popup").hasClass("api_ver")||i("#submit").click((function(){var e=i("#content").val().trim(),t=i("#target").val().trim(),n={target:t,content:e};0!==e.length&&""!==e&&e&&void 0!==e?0!==t.length&&""!==t&&t&&void 0!==t?app.message_async_send(n,(function(e){window.close()}),(function(e,t,n){alert("데이터 전송중 에러. 관리자에게 문의 주세요.")})):alert("잘못된 형식의 회원번호입니다."):alert("내용을 바르게 입력해 주세요!")})))}))},8236:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#register");if(0!==e.length)if(i("#junior_wrapper").length>0)i("#junior_btn").click((function(){i("#junior_wrapper").show()}));else{var t,n,a,r=util_getUrl("url_api_ssl")+"/",o=e.find("#user_nick"),s=e.find("#user_password"),l=e.find("#user_password_check"),c=e.find("#user_email"),u=e.find("#user_id"),d={val:"",is_check:!1},p={val:"",is_check:!1},f={val:"",is_check:!1},h={is_check:!1},m=/\s/g,g=/[\w\Wㄱ-ㅎㅏ-ㅣ가-힣]{2,16}$/,v=/^[a-zA-Z0-9_-]{6,20}$/,_=/^[.0-9a-zA-Z_\-]+@[.0-9a-zA-Z_\-]+$/i,b=/\S{8,50}$/;a=e.find(".id_check_btn"),u.on("keyup",(function(){d.is_check=!1})),a.click((function(e){if(void 0===u.val()||null===u.val()||""===u.val()||m.test(u.val())||!v.test(u.val()))return alert("아이디는 6~20자에 영어 대소문자, 숫자, 하이픈(-), 언더바(_)만 들어갈 수 있습니다."),d.is_check=!1,event.preventDefault(),!1;var t={};t.id=u.val(),i.ajax({url:r+"checkId",type:"POST",data:t,dataType:"json",success:function(e){e.success?(alert(e.message),d.val=t.id,d.is_check=!0):alert(e.message)},error:function(e,t,n){d.is_check=!1}})})),n=e.find(".nick_check_btn"),o.on("keyup",(function(){p.is_check=!1})),n.click((function(e){if(o.val(o.val().trim()),void 0===o.val()||null===o.val()||""===o.val()||!g.test(o.val()))return alert("닉네임에는 공백 1개만 들어갈 수 있으며, 길이는 16자까지 들어갈 수 있습니다."),p.is_check=!1,event.preventDefault(),!1;var t={};t.nick=o.val(),i.ajax({url:r+"checkNickname",type:"POST",data:t,dataType:"json",success:function(e){e.success?(alert(e.message),p.val=t.nick,p.is_check=!0):(alert(e.message),p.is_check=!1)},error:function(e,t,n){}})})),t=e.find(".email_check_btn"),c.on("keyup",(function(){f.is_check=!1})),t.click((function(e){if(void 0===c.val()||null===c.val()||""===c.val()||m.test(c.val())||!_.test(c.val()))return alert("이메일을 올바르게 입력하여 주십시오."),f.is_check=!1,event.preventDefault(),!1;var t={};t.email=c.val(),i.ajax({url:r+"checkEmail",type:"POST",data:t,dataType:"json",success:function(e){e.success?(alert(e.message),f.val=t.email,f.is_check=!0):(alert(e.message),f.is_check=!1)},error:function(e,t,n){f.is_check=!1}})})),l.on("keyup",(function(){h.is_check=!1,s.val()==l.val()&&(h.is_check=!0)})),e.find("#user_submit").on("click",(function(e){return e.altKey&&e.preventDefault(),e.ctrlKey&&e.preventDefault(),e.shiftKey&&e.preventDefault(),u.val(u.val().trim()),o.val(o.val().trim()),c.val(c.val().trim()),s.val(s.val().trim()),l.val(l.val().trim()),void 0===u.val()||null===u.val()||""===u.val()||m.test(u.val())||!v.test(u.val())?(alert("아이디를 올바르게 입력하여 주십시오."),d.is_check=!1,e.preventDefault(),!1):d.is_check&&u.val()===d.val?void 0===o.val()||null===o.val()||""===o.val()||m.test(o.val())||o.val().length>20||o.val().length<1?(alert("닉네임을 올바르게 입력하여 주십시오."),p.is_check=!1,e.preventDefault(),!1):p.is_check&&o.val()===p.val?void 0===s.val()||null===s.val()||""===s.val()||m.test(s.val())||!b.test(s.val())?(alert("비밀번호를 올바르게 입력하여 주십시오. (8~50자)"),h.is_check=!1,e.preventDefault(),!1):h.is_check?void 0===c.val()||null===c.val()||""===c.val()||m.test(c.val())||!_.test(c.val())?(alert("이메일을 올바르게 입력하여 주십시오."),f.is_check=!1,e.preventDefault(),!1):f.is_check&&c.val()===f.val?i("#agree_privacy").prop("checked")&&i("#agree_use").prop("checked")?void i("#register_form").submit():(alert("회원가입 약관에 모두 동의하셔야 합니다."),e.preventDefault(),!1):(alert("이메일 중복체크를 진행해 주십시오."),f.is_check=!1,e.preventDefault(),!1):(alert("비밀번호가 일치하지 않습니다."),h.is_check=!1,e.preventDefault(),!1):(alert("닉네임 중복체크를 진행해 주십시오."),p.is_check=!1,e.preventDefault(),!1):(alert("아이디 중복 체크를 진행해 주십시오."),d.is_check=!1,e.preventDefault(),!1)})),e.find("#agree_submit").on("click",(function(e){if(e.altKey&&e.preventDefault(),e.ctrlKey&&e.preventDefault(),e.shiftKey&&e.preventDefault(),!i("#agree_privacy").prop("checked")||!i("#agree_use").prop("checked"))return alert("회원가입 약관에 모두 동의하셔야 합니다."),e.preventDefault(),!1;i(this).attr("disabled",!0),i(this).prop("disabled",!0),i(this).html('처리중...<br/><img alt="" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHdpZHRoPSI0MHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCA0MCA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEuNDE0MjE7IiB4PSIwcHgiIHk9IjBweCI+CiAgICA8ZGVmcz4KICAgICAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwhW0NEQVRBWwogICAgICAgICAgICBALXdlYmtpdC1rZXlmcmFtZXMgc3BpbiB7CiAgICAgICAgICAgICAgZnJvbSB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoLTM1OWRlZykKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAgICAgICBmcm9tIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKC0zNTlkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHN2ZyB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IDUwJSA1MCU7CiAgICAgICAgICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogc3BpbiAxLjVzIGxpbmVhciBpbmZpbml0ZTsKICAgICAgICAgICAgICAgIC13ZWJraXQtYmFja2ZhY2UtdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICAgICAgICAgICAgYW5pbWF0aW9uOiBzcGluIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgICAgICB9CiAgICAgICAgXV0+PC9zdHlsZT4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJvdXRlciI+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwwQzIyLjIwNTgsMCAyMy45OTM5LDEuNzg4MTMgMjMuOTkzOSwzLjk5MzlDMjMuOTkzOSw2LjE5OTY4IDIyLjIwNTgsNy45ODc4MSAyMCw3Ljk4NzgxQzE3Ljc5NDIsNy45ODc4MSAxNi4wMDYxLDYuMTk5NjggMTYuMDA2MSwzLjk5MzlDMTYuMDA2MSwxLjc4ODEzIDE3Ljc5NDIsMCAyMCwwWiIgc3R5bGU9ImZpbGw6YmxhY2s7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNNS44NTc4Niw1Ljg1Nzg2QzcuNDE3NTgsNC4yOTgxNSA5Ljk0NjM4LDQuMjk4MTUgMTEuNTA2MSw1Ljg1Nzg2QzEzLjA2NTgsNy40MTc1OCAxMy4wNjU4LDkuOTQ2MzggMTEuNTA2MSwxMS41MDYxQzkuOTQ2MzgsMTMuMDY1OCA3LjQxNzU4LDEzLjA2NTggNS44NTc4NiwxMS41MDYxQzQuMjk4MTUsOS45NDYzOCA0LjI5ODE1LDcuNDE3NTggNS44NTc4Niw1Ljg1Nzg2WiIgc3R5bGU9ImZpbGw6cmdiKDIxMCwyMTAsMjEwKTsiLz4KICAgICAgICA8L2c+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwzMi4wMTIyQzIyLjIwNTgsMzIuMDEyMiAyMy45OTM5LDMzLjgwMDMgMjMuOTkzOSwzNi4wMDYxQzIzLjk5MzksMzguMjExOSAyMi4yMDU4LDQwIDIwLDQwQzE3Ljc5NDIsNDAgMTYuMDA2MSwzOC4yMTE5IDE2LjAwNjEsMzYuMDA2MUMxNi4wMDYxLDMzLjgwMDMgMTcuNzk0MiwzMi4wMTIyIDIwLDMyLjAxMjJaIiBzdHlsZT0iZmlsbDpyZ2IoMTMwLDEzMCwxMzApOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksMjguNDkzOUMzMC4wNTM2LDI2LjkzNDIgMzIuNTgyNCwyNi45MzQyIDM0LjE0MjEsMjguNDkzOUMzNS43MDE5LDMwLjA1MzYgMzUuNzAxOSwzMi41ODI0IDM0LjE0MjEsMzQuMTQyMUMzMi41ODI0LDM1LjcwMTkgMzAuMDUzNiwzNS43MDE5IDI4LjQ5MzksMzQuMTQyMUMyNi45MzQyLDMyLjU4MjQgMjYuOTM0MiwzMC4wNTM2IDI4LjQ5MzksMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxMDEsMTAxLDEwMSk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMy45OTM5LDE2LjAwNjFDNi4xOTk2OCwxNi4wMDYxIDcuOTg3ODEsMTcuNzk0MiA3Ljk4NzgxLDIwQzcuOTg3ODEsMjIuMjA1OCA2LjE5OTY4LDIzLjk5MzkgMy45OTM5LDIzLjk5MzlDMS43ODgxMywyMy45OTM5IDAsMjIuMjA1OCAwLDIwQzAsMTcuNzk0MiAxLjc4ODEzLDE2LjAwNjEgMy45OTM5LDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoMTg3LDE4NywxODcpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTUuODU3ODYsMjguNDkzOUM3LjQxNzU4LDI2LjkzNDIgOS45NDYzOCwyNi45MzQyIDExLjUwNjEsMjguNDkzOUMxMy4wNjU4LDMwLjA1MzYgMTMuMDY1OCwzMi41ODI0IDExLjUwNjEsMzQuMTQyMUM5Ljk0NjM4LDM1LjcwMTkgNy40MTc1OCwzNS43MDE5IDUuODU3ODYsMzQuMTQyMUM0LjI5ODE1LDMyLjU4MjQgNC4yOTgxNSwzMC4wNTM2IDUuODU3ODYsMjguNDkzOVoiIHN0eWxlPSJmaWxsOnJnYigxNjQsMTY0LDE2NCk7Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxnPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYuMDA2MSwxNi4wMDYxQzM4LjIxMTksMTYuMDA2MSA0MCwxNy43OTQyIDQwLDIwQzQwLDIyLjIwNTggMzguMjExOSwyMy45OTM5IDM2LjAwNjEsMjMuOTkzOUMzMy44MDAzLDIzLjk5MzkgMzIuMDEyMiwyMi4yMDU4IDMyLjAxMjIsMjBDMzIuMDEyMiwxNy43OTQyIDMzLjgwMDMsMTYuMDA2MSAzNi4wMDYxLDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoNzQsNzQsNzQpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksNS44NTc4NkMzMC4wNTM2LDQuMjk4MTUgMzIuNTgyNCw0LjI5ODE1IDM0LjE0MjEsNS44NTc4NkMzNS43MDE5LDcuNDE3NTggMzUuNzAxOSw5Ljk0NjM4IDM0LjE0MjEsMTEuNTA2MUMzMi41ODI0LDEzLjA2NTggMzAuMDUzNiwxMy4wNjU4IDI4LjQ5MzksMTEuNTA2MUMyNi45MzQyLDkuOTQ2MzggMjYuOTM0Miw3LjQxNzU4IDI4LjQ5MzksNS44NTc4NloiIHN0eWxlPSJmaWxsOnJnYig1MCw1MCw1MCk7Ii8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K" />'),i("#social_login_register_form").submit()}))}}))},6409:(e,t,n)=>{var i=n(8563);app.add((function(){i("#scrap").length>0&&function(){var t=i("#scrap");t.find("#total_del").change((function(){var e=document.getElementById("total_del").checked;t.find(".checkbox").prop("checked",e)})),t.find(".checkbox").change((function(){document.getElementById(i(this).attr("id")+"").checked||(document.getElementById("total_del").checked=!1)})),t.find(".btn_del").click((function(){if(!confirm("삭제하시겠습니까?"))return!1;var n={},a=[];t.find("input.del_list:checked").each((function(e,t){a.push(i(t).val())})),a=JSON.stringify(a),n.del_list=a,i.ajax({url:e+"procDeleteMypiScrap",type:"POST",data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?window.location.reload():alert(e.message)},error:function(e,t,n){}})}))}();var e=util_getUrl("url_api_ssl")+"/"}))},8499:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#session").length){var e=util_getUrl("url_api_ssl")+"/";i("#session").find(".btn_reset_session").click((function(){if(!confirm("세션을 초기화하시겠습니까?"))return!1;i.ajax({url:e+"procResetMemberSession",type:"POST",data:{},dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}})}))}}))},737:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i(".reservation");if(0!==e.length){var t=/^[0-9_-]{10,11}$/,n=/^[.0-9a-zA-Z_\-]+@[.0-9a-zA-Z_\-]+$/i,a=(app.popup(),e.data("flag")),r=e.data("type"),o=e.data("url");switch(""+r){case"phone":e.find(".reservation_submit").click((function(){var n={};n.reservation_id=a,n.input_data=e.find(".reservation_input").val(),n.input_type="phone",n.is_agree=!0,e.find(".reservation_agree").each((function(e,t){!0!==i(t).prop("checked")&&(n.is_agree=!1)})),!0===n.is_agree?t.test(n.input_data)?i.ajax({url:util_getUrl("url_api_ssl")+"/reservation_apply",type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}}):alert("정확한 핸드폰 번호를 입력해주세요！"):alert("모든 항목에 동의하셔야만 사전예약을 진행 하실 수 있습니다.")}));break;case"psn":case"email":e.find(".reservation_submit").click((function(){var t={};t.reservation_id=a,t.input_data=e.find(".reservation_input").val(),t.input_type="none",t.is_agree=!0,e.find(".reservation_agree").each((function(e,n){!0!==i(n).prop("checked")&&(t.is_agree=!1)})),!0===t.is_agree?n.test(t.input_data)?i.ajax({url:util_getUrl("url_api_ssl")+"/reservation_apply",type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}}):alert("정확한 이메일 주소를 입력해주세요！"):alert("모든 항목에 동의하셔야만 사전예약을 진행 하실 수 있습니다.")}));break;case"name_phone":e.find(".reservation_submit").click((function(){var n={};n.reservation_id=a,n.phone_number=e.find("#reservation_phone_number").val(),n.name=e.find("#reservation_name").val(),n.input_type="none",n.is_agree=!0,e.find(".reservation_agree").each((function(e,t){!0!==i(t).prop("checked")&&(n.is_agree=!1)})),""!==n.name?t.test(n.phone_number)?!0===n.is_agree?i.ajax({url:util_getUrl("url_api_ssl")+"/reservation_apply",type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}}):alert("모든 항목에 동의하셔야만 진행하실 수 있습니다."):alert("정확한 핸드폰 번호를 입력해주세요！"):alert("이름을 입력해주세요.")}));break;case"name_phone_link":e.find(".reservation_submit").click((function(){var n={};n.reservation_id=a,n.phone_number=e.find("#reservation_phone_number").val(),n.name=e.find("#reservation_name").val(),n.link=e.find("#reservation_link").val(),n.input_type="none",n.is_agree=!0,e.find(".reservation_agree").each((function(e,t){!0!==i(t).prop("checked")&&(n.is_agree=!1)})),!0===n.is_agree?""!==n.name?t.test(n.phone_number)?""!==n.link?i.ajax({url:util_getUrl("url_api_ssl")+"/reservation_apply",type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}}):alert("게시글 링크를 입력해주세요."):alert("정확한 핸드폰 번호를 입력해주세요!"):alert("이름을 입력해주세요."):alert("모든 항목에 동의하셔야만 진행하실 수 있습니다.")}));break;case"click":e.find(".reservation_submit").click((function(){var e={};e.reservation_id=a,e.input_type=r,e.is_agree=!0,i.ajax({url:util_getUrl("url_api_ssl")+"/reservation_apply",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){window.open("https://"+o,"_blank")},error:function(e,t,n){}})}))}}}))},7395:(e,t,n)=>{var i=n(8563);app.add((function(){0!==i("#search_main").length&&(app.searchMode=function(e){var t=document.getElementById("tab_wrapper");switch(t&&t.getElementsByClassName("active").length>0&&t.getElementsByClassName("active")[0].classList.remove("active"),e){case"mypi_search":t.querySelector("#tab_mypi").classList.add("active");break;case"board_search":t.querySelector("#tab_board").classList.add("active");break;case"comment_search":t.querySelector("#tab_comment").classList.add("active");break;case"gsc_search":t.querySelector("#tab_gsc").classList.add("active");break;case"news_search":t.querySelector("#tab_news").classList.add("active");break;case"tag_search":t.querySelector("#tab_tag").classList.add("active");break;case"live_search":t.querySelector("#tab_live").classList.add("active");break;default:t.querySelector("#tab_total").classList.add("active")}for(var n=document.querySelectorAll(".result"),i=0;i<n.length;i++)"total_search"===e?(n[i].style.display="block",document.querySelector("body.mobile")&&(document.querySelector("#bbs_game_result").style.display="block")):n[i].querySelector("#"+e)?n[i].style.display="block":(n[i].style.display="none",document.querySelector("body.mobile")&&(document.querySelector("#bbs_game_result").style.display="none"))},app.clickInfo=function(){document.getElementById("search_bar").focus()})}))},6561:(e,t,n)=>{var i=n(8563);app.add((function(){0!==i(".hashtagtop").length&&(app.hashtag_title_keyevent=e=>{void 0!==e&&13==e.keyCode&&(e.preventDefault(),document.querySelector("#hashtag_go").click())},app.hashtag_title_go=()=>{text=document.querySelector("#board_name").textContent,text=text.replace(" ",""),location.href="/hashtag/"+text},app.hashtag_title_remove=()=>{text=document.querySelector("#board_name").textContent,text=text.replace(" ","");var e=app.hashtag_userdic();e=e.filter((e=>{if(e!==text)return!0})),window.localStorage.setItem("hashtag_add_list",JSON.stringify(e)),app.hashtag_userdic_set(e)},app.hashtag_title_add=()=>{text=document.querySelector("#board_name").textContent,text=text.replace(" ","");var e=app.hashtag_userdic();e.unshift(text),window.localStorage.setItem("hashtag_add_list",JSON.stringify(e)),app.hashtag_userdic_set(e)},app.hashtag_userdic=()=>{var e=window.localStorage.getItem("hashtag_add_list");return null!==e?null==(e=JSON.parse(e))&&(e=[]):e=[],e},app.hashtag_userdic_set=e=>{var t="";e.forEach((e=>{t+=`<a class="color_ruliblue inline_block" style="margin-right: 5px; font-family: sans-serif;" href="/hashtag/${e}">#${e}</a>`})),document.querySelector(".add_hot_list")&&document.querySelector(".add_hot_list").remove(),document.querySelector(".hot_list").insertAdjacentHTML("afterBegin",'<span class="add_hot_list">'+t+"</span>")},app.hashtag_title_keyevent(),app.hashtag_userdic_set(app.hashtag_userdic()))}))},6943:(e,t,n)=>{var i=n(8563);app.add((function(){if(0!==i("#main_top").length){i("#header").find(".title").removeClass("respone");i("#m_game_bbs_and_game_hot_ranking").on("click","a",(function(){gtag("event","main_mid",{event_category:"mo",event_label:"main_mid_hitgame"})})),i("#m_mobile_game_hot_ranking").on("click","a",(function(){gtag("event","main_mid",{event_category:"mo",event_label:"main_mid_mgame"})}))}}))},2403:(e,t,n)=>{var i=n(8563);app.add((function(){i("#subtop_main").length}))},1076:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#support_request");if(0!==e.length){if(i("#file_input").length>0){var t="support";i("#file_upload_type").length>0&&(t=i("#file_upload_type").val()),app.file_upload_init({extFilter:["zip","rar","7z","egg","png","jpg","jpeg","pdf","txt","doc","docx","xls","xlsx"],type:t})}var n=!1;e.find("#request_submit").on("click",(function(){if(!0!==n){n=!0;var t=!0,a="",r={},o=[];if(e.find(".data").each((function(e,n){var o=i(n).val();null==o||""===o?(t=!1,a="제출실패. 미 입력한 값이 있습니다."):r[i(n).attr("name")]=o})),!1===t)return alert(a),void(n=!1);if(i("input:checkbox").length>0&&i("input:checkbox").each((function(e,n){!0===i(n).is(":checked")?r[i(n).attr("name")]=!0:(t=!1,a="제출실패. 체크박스에 모두 동의하셔야 제출 가능합니다.")})),!1===t)return alert(a),void(n=!1);if(0===i("#file_status_list").find(".media .text-success").length?(t=!1,a="제출실패. 업로드된 자료가 없습니다."):(i("#file_status_list").find(".media").each((function(e,t){for(var n=0;n<o.length;n++)if(o[n]===i(t).data("srl"))return;o.push(i(t).data("srl"))})),o=JSON.stringify(o),o=encodeURIComponent(o),r.files=o),!1===t)return alert(a),void(n=!1);i.ajax({url:util_getUrl("url_api_ssl")+"/support",type:"POST",data:r,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert("제출 성공!"),i("#submit_callback_url").length>0?location.href=i("#submit_callback_url").val():location.href=util_getUrl("url")):alert(e.message),n=!1},error:function(e,t,i){n=!1}})}}))}}))},2415:(e,t,n)=>{var i=n(8563);app.add((function(){var e=i("#timeline_write"),t=util_getUrl("url_api_ssl");0!==e.length&&(i("#subject").change((function(){var e=i(this).val(),t=e.split(")"),n=e.split("]"),a=e.split(" "),r=null;t.length>1&&t[0].length<=40&&(r=t[0].replace("(","")),n.length>1&&n[0].length<=40&&(r=n[0].replace("[","")),a.length>1&&a[0].length<=40&&"#"===a[0].charAt(0)&&(r=a[0].replace("#","")),null!==r&&(i("#write_board_search").val(r),app.write_board_search())})),app.write_board_search=function(e,n){var a=t+"/search_board?q="+i("#write_board_search").val();void 0!==e&&(a=a+"&board_id="+e),i.ajax({url:a,dataType:"json",xhrFields:{withCredentials:!0},success:function(t){t.success&&(i("#write_board_search_autocomplete").html("없음"),i("#write_board_search_autocomplete").show(),t.list.length>0&&i("#write_board_search_autocomplete").html(""),t.list.forEach((function(t,a){var r=i('<div class="cateitem pointer" onclick="app.getBoardInfo(this)" data-board="'+t.board_id+'">'+t.board_name+"</div>").appendTo("#write_board_search_autocomplete");void 0!==e&&""+e==""+t.board_id&&(void 0!==n?app.getBoardInfo(r,n):app.getBoardInfo(r))})))},error:function(e,t,n){alert("ajax error")}})},i("#write_board_search").change(app.write_board_search),app.getBoardInfo=function(e,n){i("#write_board_search_autocomplete").hide();var a={};a.board_id=i(e).data("board"),a.type="radio",i.ajax({url:t+"/getBoardInfo",type:"POST",dataType:"json",data:a,xhrFields:{withCredentials:!0},success:function(t){i("#board_id").val(a.board_id),i(".write_board_search_res").text(i(e).text()+" ("+a.board_id+")"),i("#write_board_search").attr("placeholder",i(e).text()),i("#write_board_search").val(i(e).text()),void 0!==t.cate_html&&i(".category_wrapper").html(t.cate_html),void 0!==t.notice_write_top&&(""!==t.notice_write_top?i(".notice_write_wrapper").html('<div class="notice_write">'+t.notice_write_top+"</div><br>"):i(".notice_write_wrapper").html("")),void 0!==n&&i(".category_wrapper").find("#category_"+n).trigger("click"),document.querySelectorAll(".category_wrapper .category_item").forEach((e=>{e.textContent.indexOf("잡담")>-1&&e.click()}))},error:function(e,t,n){}})},e.find("#write_submit").on("click",(function(t){checkUnload=!1,t.altKey&&t.preventDefault(),t.ctrlKey&&t.preventDefault(),t.shiftKey&&t.preventDefault();var n=i("#subject").val(),a=1*e.find(".subject_limit").text();if(n.length<1||""===n||null==n||" "===n)return alert("제목을 입력하여 주십시오."),!1;if(n.length>a)return alert("제목의 길이 제한은 "+a+"자 이하입니다."),!1;void 0!==app.write_submit_before&&app.write_submit_before(),void 0!==app.write_submit_before2&&app.write_submit_before2();var r="";if("ext"===i("#editor_type").val()&&(r=window.ext_content,e.find(".content").val(r)),"<p>&nbsp;</p>"===r||""===r||null==r)return alert("내용을 입력하여 주십시오."),!1;if(0===i("#only_admin_test").length&&getByteLength(r)>1048576)return alert("내용을 1MB 이하로 입력하여 주십시오."),!1;if(0===i("input[name=category]:checked").length)return alert("구분을 선택하여 주십시오."),!1;function o(e){var t,n=/(?:<img)(?:[^>]*)(?:src=")(?:[^.]*)(?:\.ruliweb\.com)\/(img|ori|mo)\/([^"]*)(?:")(?:[^>]*)(?:>)/g,i=0;do{if(null===(t=n.exec(e)))break;i++}while(null!==t);return i}if(o(e.find("#fm_post").text())>o(r)&&!confirm("지워진 이미지는 삭제됩니다. 계속 진행하시겠습니까?"))return!1;var s=null;s=null===(s=r.match(/<img[^>]*>/g))?0:s.length,i("#hasimage").val(s),i("#write_form").submit()})),app.write_board_search(i("#board_id").val(),i("#cate").val()))}))},6103:(e,t,n)=>{var i,a,r;!function(o){"use strict";a=[n(8563)],i=function(e){var t="dmUploader",n={PENDING:0,UPLOADING:1,COMPLETED:2,FAILED:3,CANCELLED:4},i={auto:!0,queue:!0,dnd:!0,hookDocument:!0,multiple:!0,url:document.URL,method:"POST",extraData:{},headers:{},dataType:null,fieldName:"file",maxFileSize:0,allowedTypes:"*",extFilter:null,onInit:function(){},onComplete:function(){},onFallbackMode:function(){},onNewFile:function(){},onBeforeUpload:function(){},onUploadProgress:function(){},onUploadSuccess:function(){},onUploadCanceled:function(){},onUploadError:function(){},onUploadComplete:function(){},onFileTypeError:function(){},onFileSizeError:function(){},onFileExtError:function(){},onDragEnter:function(){},onDragLeave:function(){},onDocumentDragEnter:function(){},onDocumentDragLeave:function(){}},a=function(e,t){this.data=e,this.widget=t,this.jqXHR=null,this.status=n.PENDING,this.id=Math.random().toString(36).substr(2)};a.prototype.upload=function(){var t=this;if(!t.canUpload())return t.widget.queueRunning&&t.status!==n.UPLOADING&&t.widget.processQueue(),!1;var i=new FormData;i.append(t.widget.settings.fieldName,t.data);var a=t.widget.settings.extraData;return"function"==typeof a&&(a=a.call(t.widget.element,t.id)),e.each(a,(function(e,t){i.append(e,t)})),t.status=n.UPLOADING,t.widget.activeFiles++,t.widget.settings.onBeforeUpload.call(t.widget.element,t.id),t.jqXHR=new XMLHttpRequest,t.jqXHR.open("POST",t.widget.settings.url,!0),t.jqXHR.withCredentials=!0,t.jqXHR.addEventListener("error",(function(e,n,i){t.onError(e,n,i)})),t.jqXHR.onload=function(e){t.onSuccess(e)},t.jqXHR.addEventListener("loadend",(function(e){e.target.readyState===e.target.DONE&&t.onComplete(e.target.responseText)})),t.jqXHR.addEventListener("load",(function(){t.onComplete()})),t.jqXHR.send(i),!0},a.prototype.onSuccess=function(e){this.status=n.COMPLETED,this.widget.settings.onUploadSuccess.call(this.widget.element,this.id,e)},a.prototype.onError=function(e,t,i){this.status!==n.CANCELLED&&(this.status=n.FAILED,this.widget.settings.onUploadError.call(this.widget.element,this.id,e,t,i))},a.prototype.onComplete=function(){this.widget.activeFiles--,this.status!==n.CANCELLED&&this.widget.settings.onUploadComplete.call(this.widget.element,this.id),this.widget.queueRunning?this.widget.processQueue():this.widget.settings.queue&&0===this.widget.activeFiles&&this.widget.settings.onComplete.call(this.element)},a.prototype.getXhr=function(){var t=this,n=e.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",(function(e){var n=0,i=e.loaded||e.position,a=e.total||e.totalSize;e.lengthComputable&&(n=Math.ceil(i/a*100)),t.widget.settings.onUploadProgress.call(t.widget.element,t.id,n)}),!1),n},a.prototype.cancel=function(e){e=void 0!==e&&e;var t=this.status;return!!(t===n.UPLOADING||e&&t===n.PENDING)&&(this.status=n.CANCELLED,this.widget.settings.onUploadCanceled.call(this.widget.element,this.id),t===n.UPLOADING&&this.jqXHR.abort(),!0)},a.prototype.canUpload=function(){return this.status===n.PENDING||this.status===n.FAILED};var r=function(t,n){return this.element=e(t),this.settings=e.extend({},i,n),this.checkSupport()?(this.init(),this):(e.error("Browser not supported by jQuery.dmUploader"),this.settings.onFallbackMode.call(this.element),!1)};r.prototype.checkSupport=function(){return void 0!==window.FormData&&(!new RegExp("/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1.0|2.0|2.5|3.0))/").test(window.navigator.userAgent)&&!e('<input type="file" />').prop("disabled"))},r.prototype.init=function(){var n=this;this.queue=[],this.queuePos=-1,this.queueRunning=!1,this.activeFiles=0,this.draggingOver=0,this.draggingOverDoc=0;var i=n.element.is("input[type=file]")?n.element:n.element.find("input[type=file]");return i.length>0&&(i.prop("multiple",this.settings.multiple),i.on("change."+t,(function(t){var i=t.target&&t.target.files;i&&i.length&&(n.addFiles(i),e(this).val(""))}))),this.settings.dnd&&this.initDnD(),0!==i.length||this.settings.dnd?(this.settings.onInit.call(this.element),this):(e.error("Markup error found by jQuery.dmUploader"),null)},r.prototype.initDnD=function(){var n=this;n.element.on("drop."+t,(function(e){e.preventDefault(),n.draggingOver>0&&(n.draggingOver=0,n.settings.onDragLeave.call(n.element));var t=e.originalEvent&&e.originalEvent.dataTransfer;if(t&&t.files&&t.files.length){var i=[];n.settings.multiple?i=t.files:i.push(t.files[0]),n.addFiles(i)}})),n.element.on("dragenter."+t,(function(e){e.preventDefault(),0===n.draggingOver&&n.settings.onDragEnter.call(n.element),n.draggingOver++})),n.element.on("dragleave."+t,(function(e){e.preventDefault(),n.draggingOver--,0===n.draggingOver&&n.settings.onDragLeave.call(n.element)})),n.settings.hookDocument&&(e(document).off("drop."+t).on("drop."+t,(function(e){e.preventDefault(),n.draggingOverDoc>0&&(n.draggingOverDoc=0,n.settings.onDocumentDragLeave.call(n.element))})),e(document).off("dragenter."+t).on("dragenter."+t,(function(e){e.preventDefault(),0===n.draggingOverDoc&&n.settings.onDocumentDragEnter.call(n.element),n.draggingOverDoc++})),e(document).off("dragleave."+t).on("dragleave."+t,(function(e){e.preventDefault(),n.draggingOverDoc--,0===n.draggingOverDoc&&n.settings.onDocumentDragLeave.call(n.element)})),e(document).off("dragover."+t).on("dragover."+t,(function(e){e.preventDefault()})))},r.prototype.releaseEvents=function(){this.element.off("."+t),this.element.find("input[type=file]").off("."+t),this.settings.hookDocument&&e(document).off("."+t)},r.prototype.validateFile=function(t){if(this.settings.maxFileSize>0&&t.size>this.settings.maxFileSize)return this.settings.onFileSizeError.call(this.element,t),!1;if("*"!==this.settings.allowedTypes&&!t.type.match(this.settings.allowedTypes))return this.settings.onFileTypeError.call(this.element,t),!1;if(null!==this.settings.extFilter){var n=t.name.toLowerCase().split(".").pop();if(e.inArray(n,this.settings.extFilter)<0)return this.settings.onFileExtError.call(this.element,t),!1}return new a(t,this)},r.prototype.addFiles=function(e){for(var t=0,n=0;n<e.length;n++){var i=this.validateFile(e[n]);if(i)!1!==this.settings.onNewFile.call(this.element,i.id,i.data)&&(this.settings.auto&&!this.settings.queue&&i.upload(),this.queue.push(i),t++)}return 0===t||this.settings.auto&&this.settings.queue&&!this.queueRunning&&this.processQueue(),this},r.prototype.processQueue=function(){return this.queuePos++,this.queuePos>=this.queue.length?(0===this.activeFiles&&this.settings.onComplete.call(this.element),this.queuePos=this.queue.length-1,this.queueRunning=!1,!1):(this.queueRunning=!0,this.queue[this.queuePos].upload())},r.prototype.restartQueue=function(){this.queuePos=-1,this.queueRunning=!1,this.processQueue()},r.prototype.findById=function(e){for(var t=!1,n=0;n<this.queue.length;n++)if(this.queue[n].id===e){t=this.queue[n];break}return t},r.prototype.cancelAll=function(){var e=this.queueRunning;this.queueRunning=!1;for(var t=0;t<this.queue.length;t++)this.queue[t].cancel();e&&this.settings.onComplete.call(this.element)},r.prototype.startAll=function(){if(this.settings.queue)this.restartQueue();else for(var e=0;e<this.queue.length;e++)this.queue[e].upload()},r.prototype.methods={start:function(t){if(this.queueRunning)return!1;var i=!1;return void 0===t||(i=this.findById(t))?i?(i.status===n.CANCELLED&&(i.status=n.PENDING),i.upload()):(this.startAll(),!0):(e.error("File not found in jQuery.dmUploader"),!1)},cancel:function(t){var n=!1;return void 0===t||(n=this.findById(t))?n?n.cancel(!0):(this.cancelAll(),!0):(e.error("File not found in jQuery.dmUploader"),!1)},reset:function(){return this.cancelAll(),this.queue=[],this.queuePos=-1,this.activeFiles=0,!0},destroy:function(){this.cancelAll(),this.releaseEvents(),this.element.removeData(t)}},e.fn.dmUploader=function(n){var i=arguments;if("string"!=typeof n)return this.each((function(){e.data(this,t)||e.data(this,t,new r(this,n))}));this.each((function(){var a=e.data(this,t);a instanceof r?"function"==typeof a.methods[n]?a.methods[n].apply(a,Array.prototype.slice.call(i,1)):e.error("Method "+n+" does not exist in jQuery.dmUploader"):e.error("Unknown plugin data found by jQuery.dmUploader")}))}},void 0===(r="function"==typeof i?i.apply(t,a):i)||(e.exports=r)}()},3150:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return x}});var i=n(279),a=n.n(i),r=n(370),o=n.n(r),s=n(817),l=n.n(s);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var i=l()(n);return c("copy"),n.remove(),i},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=l()(e),c("copy")),n};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,i=e.container,a=e.target,r=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==a){if(!a||"object"!==f(a)||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?p(r,{container:i}):a?"cut"===n?u(a):p(a,{container:i}):void 0};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i,a,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i=this,!(a=n)||"object"!==m(a)&&"function"!=typeof a?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i):a}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(r,e);var t,n,i,a=_(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=a.call(this)).resolveOptions(t),n.listenClick(e),n}return t=r,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",i=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(i?"success":"error",{action:n,text:i,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&g(t.prototype,n),i&&g(t,i),r}(a()),x=y},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function a(e,t,n,i,a){var o=r.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function r(e,t,n,a){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&a.call(e,n)}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,i,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),a=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(i.string(e))return function(e,t,n){return a(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),a=document.createRange();a.selectNodeContents(e),i.removeAllRanges(),i.addRange(a),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function a(){i.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=n.length;i<a;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],a=[];if(i&&t)for(var r=0,o=i.length;r<o;r++)i[r].fn!==t&&i[r].fn._!==t&&a.push(i[r]);return a.length?n[e]=a:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},7705:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},5660:e=>{var t=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function a(e,t,n){if(0===t.length)return e=n;var i=t.shift(),r=i.match(/^\[(.+?)\]$/);if("[]"===i)return e=e||[],Array.isArray(e)?e.push(a(null,t,n)):(e._values=e._values||[],e._values.push(a(null,t,n))),e;if(r){var o=r[1],s=+o;isNaN(s)?(e=e||{})[o]=a(e[o],t,n):(e=e||[])[s]=a(e[s],t,n)}else e[i]=a(e[i],t,n);return e}function r(e,t,n){if(t.match(i)){a(e,function(e){var t=[],n=new RegExp(i),a=/^([^\[\]]*)/.exec(e);for(a[1]&&t.push(a[1]);null!==(a=n.exec(e));)t.push(a[1]);return t}(t),n)}else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function o(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,i){"object"!=typeof i?i={hash:!!i}:void 0===i.hash&&(i.hash=!0);for(var a=i.hash?{}:"",s=i.serializer||(i.hash?r:o),l=e&&e.elements?e.elements:[],c=Object.create(null),u=0;u<l.length;++u){var d=l[u];if((i.disabled||!d.disabled)&&d.name&&(n.test(d.nodeName)&&!t.test(d.type))){var p=d.name,f=d.value;if("checkbox"!==d.type&&"radio"!==d.type||d.checked||(f=void 0),i.empty){if("checkbox"!==d.type||d.checked||(f=""),"radio"===d.type&&(c[d.name]||d.checked?d.checked&&(c[d.name]=!0):c[d.name]=!1),null==f&&"radio"==d.type)continue}else if(!f)continue;if("select-multiple"!==d.type)a=s(a,p,f);else{f=[];for(var h=d.options,m=!1,g=0;g<h.length;++g){var v=h[g],_=i.empty&&!v.value,b=v.value||_;v.selected&&b&&(m=!0,a=i.hash&&"[]"!==p.slice(p.length-2)?s(a,p+"[]",v.value):s(a,p,v.value))}!m&&i.empty&&(a=s(a,p,""))}}}if(i.empty)for(var p in c)c[p]||(a=s(a,p,""));return a}},8563:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,a){"use strict";var r=[],o=Object.getPrototypeOf,s=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,d={},p=d.toString,f=d.hasOwnProperty,h=f.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,a,r=(n=n||b).createElement("script");if(r.text=e,t)for(i in w)(a=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var C="3.6.4",k=function(e,t){return new k.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},k.extend=k.fn.extend=function(){var e,t,n,i,a,r,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(k.isPlainObject(i)||(a=Array.isArray(i)))?(n=o[t],r=a&&!Array.isArray(n)?[]:a||k.isPlainObject(n)?n:{},a=!1,o[t]=k.extend(c,r,i)):void 0!==i&&(o[t]=i));return o},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(A(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,o=!n;a<r;a++)!t(e[a],a)!==o&&i.push(e[a]);return i},map:function(e,t,n){var i,a,r=0,o=[];if(A(e))for(i=e.length;r<i;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&o.push(a);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=r[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,i,a,r,o,s,l,c,u,d,p,f,h,m,g,v,_,b,w="sizzle"+1*new Date,y=e.document,x=0,C=0,k=le(),A=le(),T=le(),S=le(),E=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,M=[],I=M.pop,j=M.push,F=M.push,O=M.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",P="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+N+"*("+P+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+N+"*\\]",q=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",R=new RegExp(N+"+","g"),U=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),H=new RegExp("^"+N+"*,"+N+"*"),$=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),G=new RegExp(N+"|>"),W=new RegExp(q),Y=new RegExp("^"+P+"$"),Q={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,V=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},oe=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{F.apply(M=O.call(y.childNodes),y.childNodes),M[y.childNodes.length].nodeType}catch(e){F={apply:M.length?function(e,t){j.apply(e,O.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,a){var r,s,c,u,d,h,v,_=t&&t.ownerDocument,y=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return i;if(!a&&(p(t),t=t||f,m)){if(11!==y&&(d=K.exec(e)))if(r=d[1]){if(9===y){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(_&&(c=_.getElementById(r))&&b(t,c)&&c.id===r)return i.push(c),i}else{if(d[2])return F.apply(i,t.getElementsByTagName(e)),i;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return F.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!S[e+" "]&&(!g||!g.test(e))&&(1!==y||"object"!==t.nodeName.toLowerCase())){if(v=e,_=t,1===y&&(G.test(e)||$.test(e))){for((_=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,ae):t.setAttribute("id",u=w)),s=(h=o(e)).length;s--;)h[s]=(u?"#"+u:":scope")+" "+be(h[s]);v=h.join(",")}try{return F.apply(i,_.querySelectorAll(v)),i}catch(t){S(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,i,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[w]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)i.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,i){for(var a,r=e([],n.length,t),o=r.length;o--;)n[a=r[o]]&&(n[a]=!(i[a]=n[a]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},r=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:y;return o!=f&&9===o.nodeType&&o.documentElement?(h=(f=o).documentElement,m=!r(f),y!=f&&(a=f.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",re,!1):a.attachEvent&&a.attachEvent("onunload",re)),n.scope=ue((function(e){return h.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssHas=ue((function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue((function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,a,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(a=t.getElementsByName(e),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[a++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ue((function(e){var t;h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(_=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),v.push("!=",q)})),n.cssHas||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==y&&b(y,e)?-1:t==f||t.ownerDocument==y&&b(y,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,o=[e],s=[t];if(!a||!r)return e==f?-1:t==f?1:a?-1:r?1:u?L(u,e)-L(u,t):0;if(a===r)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?pe(o[i],s[i]):o[i]==y?-1:s[i]==y?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!S[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=_.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){S(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var a=i.attrHandle[t.toLowerCase()],r=a&&D.call(i.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ie,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],a=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[r++];)t===e[r]&&(a=i.push(r));for(;a--;)e.splice(i[a],1)}return u=null,e},a=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=a(t);return n},i=se.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var a=se.attr(i,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,h,m=r!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!l&&!s,b=!1;if(g){if(r){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&_){for(b=(f=(c=(u=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[x,f,b];break}}else if(_&&(b=f=(c=(u=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++f&&p&&p[m]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(_&&((u=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=a)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,a=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[w]?a(t):a.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var i,r=a(e,t),o=r.length;o--;)e[i=L(e,r[o])]=!(n[i]=r[o])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],i=s(e.replace(U,"$1"));return i[w]?ce((function(e,t,n,a){for(var r,o=i(e,null,a,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))})):function(e,a,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=he(t);function _e(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,a=t.next,r=a||i,o=n&&"parentNode"===r,s=C++;return t.first?function(t,n,a){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var c,u,d,p=[x,s];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[r])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(u[r]=p,p[2]=e(t,n,l))return!0}return!1}}function ye(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function xe(e,t,n,i,a){for(var r,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,i,a)||(o.push(r),c&&t.push(s)));return o}function Ce(e,t,n,i,a,r){return i&&!i[w]&&(i=Ce(i)),a&&!a[w]&&(a=Ce(a,r)),ce((function(r,o,s,l){var c,u,d,p=[],f=[],h=o.length,m=r||function(e,t,n){for(var i=0,a=t.length;i<a;i++)se(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!r&&t?m:xe(m,p,e,s,l),v=n?a||(r?e:h||i)?[]:o:g;if(n&&n(g,v,s,l),i)for(c=xe(v,f),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(g[f[u]]=d));if(r){if(a||e){if(a){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);a(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=a?L(r,d):p[u])>-1&&(r[c]=!(o[c]=d))}}else v=xe(v===o?v.splice(h,v.length):v),a?a(null,o,v,l):F.apply(o,v)}))}function ke(e){for(var t,n,a,r=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],l=o?1:0,u=we((function(e){return e===t}),s,!0),d=we((function(e){return L(t,e)>-1}),s,!0),p=[function(e,n,i){var a=!o&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,a}];l<r;l++)if(n=i.relative[e[l].type])p=[we(ye(p),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(a=++l;a<r&&!i.relative[e[a].type];a++);return Ce(l>1&&ye(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l<a&&ke(e.slice(l,a)),a<r&&ke(e=e.slice(a)),a<r&&be(e))}p.push(n)}return ye(p)}return _e.prototype=i.filters=i.pseudos,i.setFilters=new _e,o=se.tokenize=function(e,t){var n,a,r,o,s,l,c,u=A[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(o in n&&!(a=H.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(r=[])),n=!1,(a=$.exec(s))&&(n=a.shift(),r.push({value:n,type:a[0].replace(U," ")}),s=s.slice(n.length)),i.filter)!(a=Q[o].exec(s))||c[o]&&!(a=c[o](a))||(n=a.shift(),r.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):A(e,l).slice(0)},s=se.compile=function(e,t){var n,a=[],r=[],s=T[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=ke(t[n]))[w]?a.push(s):r.push(s);s=T(e,function(e,t){var n=t.length>0,a=e.length>0,r=function(r,o,s,l,u){var d,h,g,v=0,_="0",b=r&&[],w=[],y=c,C=r||a&&i.find.TAG("*",u),k=x+=null==y?1:Math.random()||.1,A=C.length;for(u&&(c=o==f||o||u);_!==A&&null!=(d=C[_]);_++){if(a&&d){for(h=0,o||d.ownerDocument==f||(p(d),s=!m);g=e[h++];)if(g(d,o||f,s)){l.push(d);break}u&&(x=k)}n&&((d=!g&&d)&&v--,r&&b.push(d))}if(v+=_,n&&_!==v){for(h=0;g=t[h++];)g(b,w,o,s);if(r){if(v>0)for(;_--;)b[_]||w[_]||(w[_]=I.call(l));w=xe(w)}F.apply(l,w),u&&!r&&w.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=k,c=y),b};return n?ce(r):r}(r,a)),s.selector=e}return s},l=se.select=function(e,t,n,a){var r,l,c,u,d,p="function"==typeof e&&e,f=!a&&o(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Q.needsContext.test(e)?0:l.length;r--&&(c=l[r],!i.relative[u=c.type]);)if((d=i.find[u])&&(a=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=a.length&&be(l)))return F.apply(n,a),n;break}}return(p||s(e,f))(a,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(E).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(B,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),se}(i);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var S=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&k(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=k.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return v(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,a=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,a[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?k(e):e||[],!1).length}});var F,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||F,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),I.test(i[1])&&k.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=b.getElementById(i[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,F=k(b);var L=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,a=this.length,r=[],o="string"!=typeof e&&k(e);if(!D.test(e))for(;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var a=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=k.filter(i,a)),this.length>1&&(B[e]||k.uniqueSort(a),L.test(e)&&a.reverse()),this.pushStack(a)}}));var P=/[^\x20\t\r\n\f]+/g;function z(e){return e}function q(e){throw e}function R(e,t,n,i){var a;try{e&&v(a=e.promise)?a.call(e).done(t).fail(n):e&&v(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,a,r=[],o=[],s=-1,l=function(){for(a=a||e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,a&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(s=r.length-1,o.push(n)),function t(n){k.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==x(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=o=[],r=n="",this},disabled:function(){return!r},lock:function(){return a=o=[],n||t||(r=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var a=v(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,a){var r=0;function o(e,t,n,a){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<r)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?a?c.call(i,o(r,t,z,a),o(r,t,q,a)):(r++,c.call(i,o(r,t,z,a),o(r,t,q,a),o(r,t,z,t.notifyWith))):(n!==z&&(s=void 0,l=[i]),(a||t.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(i){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(i,u.stackTrace),e+1>=r&&(n!==q&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),i.setTimeout(u))}}return k.Deferred((function(i){t[0][3].add(o(0,i,v(a)?a:z,i.notifyWith)),t[1][3].add(o(0,i,v(e)?e:z)),t[2][3].add(o(0,i,v(n)?n:q))})).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},r={};return k.each(t,(function(e,i){var o=i[2],s=i[5];a[i[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=o.fireWith})),a.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),a=s.call(arguments),r=k.Deferred(),o=function(e){return function(n){i[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||r.resolveWith(i,a)}};if(t<=1&&(R(e,r.done(o(n)).resolve,r.reject,!t),"pending"===r.state()||v(a[n]&&a[n].then)))return r.then();for(;n--;)R(a[n],o(n),r.reject);return r.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&U.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){i.setTimeout((function(){throw e}))};var H=k.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),k.ready()}k.fn.ready=function(e){return H.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||H.resolveWith(b,[k]))}}),k.ready.then=H.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var G=function(e,t,n,i,a,r,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in a=!0,n)G(e,t,s,n[s],!0,r,o);else if(void 0!==i&&(a=!0,v(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):r},W=/^-ms-/,Y=/-([a-z])/g;function Q(e,t){return t.toUpperCase()}function Z(e){return e.replace(W,"ms-").replace(Y,Q)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=k.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[Z(t)]=n;else for(i in t)a[Z(i)]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Z):(t=Z(t))in i?[t]:t.match(P)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var J=new X,K=new X,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return K.hasData(e)||J.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,a,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(a=K.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=Z(i.slice(5)),ne(r,i,a[i]));J.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){K.set(this,e)})):G(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=K.get(r,e))||void 0!==(n=ne(r,e))?n:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,a=n.shift(),r=k._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,(function(){k.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:k.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=k.Deferred(),r=this,o=this.length,s=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=J.get(r[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],oe=b.documentElement,se=function(e){return k.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===k.css(e,"display")};function ue(e,t,n,i){var a,r,o=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&ae.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)k.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(o=0),u/=r;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=a)),a}var de={};function pe(e){var t,n=e.ownerDocument,i=e.nodeName,a=de[i];return a||(t=n.body.appendChild(n.createElement(i)),a=k.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),de[i]=a,a)}function fe(e,t){for(var n,i,a=[],r=0,o=e.length;r<o;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(a[r]=J.get(i,"display")||null,a[r]||(i.style.display="")),""===i.style.display&&ce(i)&&(a[r]=pe(i))):"none"!==n&&(a[r]="none",J.set(i,"display",n)));for(r=0;r<o;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?k(this).show():k(this).hide()}))}});var he,me,ge=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;he=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),he.appendChild(me),g.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",g.option=!!he.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,g.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function Ce(e,t,n,i,a){for(var r,o,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((r=e[f])||0===r)if("object"===x(r))k.merge(p,r.nodeType?[r]:r);else if(xe.test(r)){for(o=o||d.appendChild(t.createElement("div")),s=(ve.exec(r)||["",""])[1].toLowerCase(),l=be[s]||be._default,o.innerHTML=l[1]+k.htmlPrefilter(r)+l[2],u=l[0];u--;)o=o.lastChild;k.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(r));for(d.textContent="",f=0;r=p[f++];)if(i&&k.inArray(r,i)>-1)a&&a.push(r);else if(c=se(r),o=we(d.appendChild(r),"script"),c&&ye(o),n)for(u=0;r=o[u++];)_e.test(r.type||"")&&n.push(r);return d}var ke=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Te(){return!1}function Se(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,i,a,r){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ee(e,s,n,i,t[s],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=Te;else if(!a)return e;return 1===r&&(o=a,a=function(e){return k().off(e),o.apply(this,arguments)},a.guid=o.guid||(o.guid=k.guid++)),e.each((function(){k.event.add(this,t,a,i,n)}))}function De(e,t,n){n?(J.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,a,r=J.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),J.set(this,t,r),i=n(this,t),this[t](),r!==(a=J.get(this,t))||i?J.set(this,t,!1):a={},r!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else r.length&&(J.set(this,t,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&k.event.add(e,t,Ae)}k.event={global:{},add:function(e,t,n,i,a){var r,o,s,l,c,u,d,p,f,h,m,g=J.get(e);if(V(e))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&k.find.matchesSelector(oe,a),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(P)||[""]).length;c--;)f=m=(s=ke.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(a?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},u=k.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&k.expr.match.needsContext.test(a),namespace:h.join(".")},r),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),k.event.global[f]=!0)},remove:function(e,t,n,i,a){var r,o,s,l,c,u,d,p,f,h,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(f=m=(s=ke.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=p.length;r--;)u=p[r],!a&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,i,!0);k.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,a,r,o,s=new Array(arguments.length),l=k.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=k.event.handlers.call(this,l,c),t=0;(a=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((k.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,a,r,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[a=(i=t[n]).selector+" "]&&(o[a]=i.needsContext?k(a,this).index(c)>-1:k.find(a,this,null,[c]).length),o[a]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&M(t,"input")&&De(t,"click",Ae),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&M(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&M(t,"input")&&J.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return De(this,e,Se),!1},trigger:function(){return De(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,a=e.handleObj;return i&&(i===this||k.contains(this,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return Ee(this,e,t,n,i)},one:function(e,t,n,i){return Ee(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each((function(){k.event.remove(this,e,n,t)}))}});var Me=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,i,a,r,o,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(a in J.remove(t,"handle events"),s)for(n=0,i=s[a].length;n<i;n++)k.event.add(t,a,s[a][n]);K.hasData(e)&&(r=K.access(e),o=k.extend({},r),K.set(t,o))}}function Ne(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Pe(e,t,n,i){t=l(t);var a,r,o,s,c,u,d=0,p=e.length,f=p-1,h=t[0],m=v(h);if(m||p>1&&"string"==typeof h&&!g.checkClone&&Ie.test(h))return e.each((function(a){var r=e.eq(a);m&&(t[0]=h.call(this,a,r.html())),Pe(r,t,n,i)}));if(p&&(r=(a=Ce(t,e[0].ownerDocument,!1,e,i)).firstChild,1===a.childNodes.length&&(a=r),r||i)){for(s=(o=k.map(we(a,"script"),Oe)).length;d<p;d++)c=a,d!==f&&(c=k.clone(c,!0,!0),s&&k.merge(o,we(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,k.map(o,Le),d=0;d<s;d++)c=o[d],_e.test(c.type||"")&&!J.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(je,""),c,u))}return e}function ze(e,t,n){for(var i,a=t?k.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||k.cleanData(we(i)),i.parentNode&&(n&&se(i)&&ye(we(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,a,r,o,s=e.cloneNode(!0),l=se(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(o=we(s),i=0,a=(r=we(e)).length;i<a;i++)Ne(r[i],o[i]);if(t)if(n)for(r=r||we(e),o=o||we(s),i=0,a=r.length;i<a;i++)Be(r[i],o[i]);else Be(e,s);return(o=we(s,"script")).length>0&&ye(o,!l&&we(e,"script")),s},cleanData:function(e){for(var t,n,i,a=k.event.special,r=0;void 0!==(n=e[r]);r++)if(V(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)a[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),k.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return G(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Pe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Pe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Pe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Pe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Pe(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],a=k(e),r=a.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),k(a[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),Re=/^--/,Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},He=function(e,t,n){var i,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in i=n.call(e),t)e.style[a]=r[a];return i},$e=new RegExp(re.join("|"),"i"),Ge="[\\x20\\t\\r\\n\\f]",We=new RegExp("^"+Ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ge+"+$","g");function Ye(e,t,n){var i,a,r,o,s=Re.test(t),l=e.style;return(n=n||Ue(e))&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(We,"$1")||void 0),""!==o||se(e)||(o=k.style(e,t)),!g.pixelBoxStyles()&&qe.test(o)&&$e.test(t)&&(i=l.width,a=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=a,l.maxWidth=r)),void 0!==o?o+"":o}function Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),a=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),oe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,a,r,o,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,a;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",oe.appendChild(e).appendChild(t).appendChild(n),a=i.getComputedStyle(t),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var Ze=["Webkit","Moz","ms"],Ve=b.createElement("div").style,Xe={};function Je(e){var t=k.cssProps[e]||Xe[e];return t||(e in Ve?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in Ve)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var i=ae.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function it(e,t,n,i,a,r){var o="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=k.css(e,n+re[o],!0,a)),i?("content"===n&&(l-=k.css(e,"padding"+re[o],!0,a)),"margin"!==n&&(l-=k.css(e,"border"+re[o]+"Width",!0,a))):(l+=k.css(e,"padding"+re[o],!0,a),"padding"!==n?l+=k.css(e,"border"+re[o]+"Width",!0,a):s+=k.css(e,"border"+re[o]+"Width",!0,a));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l}function at(e,t,n){var i=Ue(e),a=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),r=a,o=Ye(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&a||!g.reliableTrDimensions()&&M(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===k.css(e,"boxSizing",!1,i),(r=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+it(e,t,n||(a?"border":"content"),r,i,o)+"px"}function rt(e,t,n,i,a){return new rt.prototype.init(e,t,n,i,a)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,o,s=Z(t),l=Re.test(t),c=e.style;if(l||(t=Je(s)),o=k.cssHooks[t]||k.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,i))?a:c[t];"string"===(r=typeof n)&&(a=ae.exec(n))&&a[1]&&(n=ue(e,t,a),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=a&&a[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var a,r,o,s=Z(t);return Re.test(t)||(t=Je(s)),(o=k.cssHooks[t]||k.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Ye(e,t,i)),"normal"===a&&t in tt&&(a=tt[t]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,i):He(e,et,(function(){return at(e,t,i)}))},set:function(e,n,i){var a,r=Ue(e),o=!g.scrollboxSize()&&"absolute"===r.position,s=(o||i)&&"border-box"===k.css(e,"boxSizing",!1,r),l=i?it(e,t,i,s,r):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-it(e,t,"border",!1,r)-.5)),l&&(a=ae.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),nt(0,n,l)}}})),k.cssHooks.marginLeft=Qe(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];i<4;i++)a[e+re[i]+t]=r[i]||r[i-2]||r[0];return a}},"margin"!==e&&(k.cssHooks[e+t].set=nt)})),k.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var i,a,r={},o=0;if(Array.isArray(t)){for(i=Ue(e),a=t.length;o<a;o++)r[t[o]]=k.css(e,t[o],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=rt.prototype.init,k.fx.step={};var ot,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ut):i.setTimeout(ut,k.fx.interval),k.fx.tick())}function dt(){return i.setTimeout((function(){ot=void 0})),ot=Date.now()}function pt(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=re[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function ft(e,t,n){for(var i,a=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),r=0,o=a.length;r<o;r++)if(i=a[r].call(n,t,e))return i}function ht(e,t,n){var i,a,r=0,o=ht.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=ot||dt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,o=c.tweens.length;r<o;r++)c.tweens[r].run(i);return s.notifyWith(e,[c,i,n]),i<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(a)return this;for(a=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,a,r,o;for(n in e)if(a=t[i=Z(n)],r=e[n],Array.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=k.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=a);else t[i]=a}(u,c.opts.specialEasing);r<o;r++)if(i=ht.prefilters[r].call(c,e,u,c.opts))return v(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,ft,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ae.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(P);for(var n,i=0,a=e.length;i<a;i++)n=e[i],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,a,r,o,s,l,c,u,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&ce(e),g=J.get(e,"fxshow");for(i in n.queue||(null==(o=k._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,k.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[i],lt.test(a)){if(delete t[i],r=r||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=J.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=k.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(p.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&fe([e],!0),p.done((function(){for(i in m||fe([e]),J.remove(e,"fxshow"),f)k.style(e,i,f[i])}))),l=ft(m?g[i]:0,i,p),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=k.isEmptyObject(e),r=k.speed(t,n,i),o=function(){var t=ht(this,k.extend({},e),r);(a||J.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",r=k.timers,o=J.get(this);if(a)o[a]&&o[a].stop&&i(o[a]);else for(a in o)o[a]&&o[a].stop&&ct.test(a)&&i(o[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=k.timers,o=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,i,a)}})),k.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),ot=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){st||(st=!0,ut())},k.fx.stop=function(){st=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var a=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(a)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var mt,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return G(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(a=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,a=t&&t.match(P);if(a&&1===e.nodeType)for(;n=a[i++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||k.find.attr;gt[t]=function(e,t,i){var a,r,o=t.toLowerCase();return i||(r=gt[o],gt[o]=a,a=null!=n(e,t,i)?o:null,gt[o]=r),a}}));var vt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;function bt(e){return(e.match(P)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}k.fn.extend({prop:function(e,t){return G(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,a=k.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,a,r,o;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,wt(this)))})):(t=yt(e)).length?this.each((function(){if(i=wt(this),n=1===this.nodeType&&" "+bt(i)+" "){for(r=0;r<t.length;r++)a=t[r],n.indexOf(" "+a+" ")<0&&(n+=a+" ");o=bt(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,i,a,r,o;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,wt(this)))})):arguments.length?(t=yt(e)).length?this.each((function(){if(i=wt(this),n=1===this.nodeType&&" "+bt(i)+" "){for(r=0;r<t.length;r++)for(a=t[r];n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");o=bt(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,a,r,o=typeof e,s="string"===o||Array.isArray(e);return v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,wt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=yt(e),this.each((function(){if(s)for(r=k(this),a=0;a<n.length;a++)i=n[a],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==e&&"boolean"!==o||((i=wt(this))&&J.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":J.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;k.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=v(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=i?e.call(this,n,k(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=k.map(a,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=k.valHooks[a.type]||k.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(xt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:bt(k.text(e))}},select:{get:function(e){var t,n,i,a=e.options,r=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?r+1:a.length;for(i=r<0?l:o?r:0;i<l;i++)if(((n=a[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=k(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,a=e.options,r=k.makeArray(t),o=a.length;o--;)((i=a[o]).selected=k.inArray(k.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in i;var Ct=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,a){var r,o,s,l,c,u,d,p,h=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(o=p=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},a||!d.trigger||!1!==d.trigger.apply(n,t))){if(!a&&!d.noBubble&&!_(n)){for(l=d.delegateType||m,Ct.test(l+m)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||i)}for(r=0;(o=h[r++])&&!e.isPropagationStopped();)p=o,e.type=r>1?l:d.bindType||m,(u=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&V(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,a||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!V(n)||c&&v(n[m])&&!_(n)&&((s=n[c])&&(n[c]=null),k.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,kt),n[m](),e.isPropagationStopped()&&p.removeEventListener(m,kt),k.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,a=J.access(i,t);a||i.addEventListener(e,n,!0),J.access(i,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,a=J.access(i,t)-1;a?J.access(i,t,a):(i.removeEventListener(e,n,!0),J.remove(i,t))}}}));var At=i.location,Tt={guid:Date.now()},St=/\?/;k.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Et=/\[\]$/,Dt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,i){var a;if(Array.isArray(t))k.each(t,(function(t,a){n||Et.test(e)?i(e,a):jt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,i)}));else if(n||"object"!==x(t))i(e,t);else for(a in t)jt(e+"["+a+"]",t[a],n,i)}k.param=function(e,t){var n,i=[],a=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){a(this.name,this.value)}));else for(n in e)jt(n,e[n],t,a);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&It.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}})):{name:t.name,value:n.replace(Dt,"\r\n")}})).get()}});var Ft=/%20/g,Ot=/#.*$/,Lt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Pt=/^\/\//,zt={},qt={},Rt="*/".concat("*"),Ut=b.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(P)||[];if(v(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function $t(e,t,n,i){var a={},r=e===qt;function o(s){var l;return a[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Gt(e,t){var n,i,a=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Ut.href=At.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,k.ajaxSettings),t):Gt(k.ajaxSettings,e)},ajaxPrefilter:Ht(zt),ajaxTransport:Ht(qt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,a,r,o,s,l,c,u,d,p,f=k.ajaxSetup({},t),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?k(h):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),_=f.statusCode||{},w={},y={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Bt.exec(r);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=y[e.toLowerCase()]=y[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),A(0,t),this}};if(g.promise(C),f.url=((e||f.url||At.href)+"").replace(Pt,At.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(P)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),$t(zt,f,t,C),c)return C;for(d in(u=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Nt.test(f.type),a=f.url.replace(Ot,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ft,"+")):(p=f.url.slice(a.length),f.data&&(f.processData||"string"==typeof f.data)&&(a+=(St.test(a)?"&":"?")+f.data,delete f.data),!1===f.cache&&(a=a.replace(Lt,"$1"),p=(St.test(a)?"&":"?")+"_="+Tt.guid+++p),f.url=a+p),f.ifModified&&(k.lastModified[a]&&C.setRequestHeader("If-Modified-Since",k.lastModified[a]),k.etag[a]&&C.setRequestHeader("If-None-Match",k.etag[a])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Rt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,C,f)||c))return C.abort();if(x="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),n=$t(qt,f,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(s=i.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,n.send(w,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,o,l){var d,p,b,w,y,x=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,r=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var i,a,r,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}o||(o=a)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,C,o)),!d&&k.inArray("script",f.dataTypes)>-1&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,i){var a,r,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(a in c)if((s=a.split(" "))[1]===r&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(r=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,w,C,d),d?(f.ifModified&&((y=C.getResponseHeader("Last-Modified"))&&(k.lastModified[a]=y),(y=C.getResponseHeader("etag"))&&(k.etag[a]=y)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=w.state,p=w.data,d=!(b=w.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",d?g.resolveWith(h,[p,x,C]):g.rejectWith(h,[C,x,b]),C.statusCode(_),_=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?p:b]),v.fireWith(h,[C,x]),u&&(m.trigger("ajaxComplete",[C,f]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,a){return v(n)&&(a=a||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:a,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Yt=k.ajaxSettings.xhr();g.cors=!!Yt&&"withCredentials"in Yt,g.ajax=Yt=!!Yt,k.ajaxTransport((function(e){var t,n;if(g.cors||Yt&&!e.crossDomain)return{send:function(a,r){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,a){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Qt,Zt=[],Vt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||k.expando+"_"+Tt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,n){var a,r,o,s=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Vt,"$1"+a):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||k.error(a+" was not called"),o[0]},e.dataTypes[0]="json",r=i[a],i[a]=function(){o=arguments},n.always((function(){void 0===r?k(i).removeProp(a):i[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Zt.push(a)),o&&v(r)&&r(o[0]),o=r=void 0})),"script"})),g.createHTMLDocument=((Qt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),r=!n&&[],(a=I.exec(e))?[t.createElement(a[1])]:(a=Ce([e],t,r),r&&r.length&&k(r).remove(),k.merge([],a.childNodes)));var i,a,r},k.fn.load=function(e,t,n){var i,a,r,o=this,s=e.indexOf(" ");return s>-1&&(i=bt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&k.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){r=arguments,o.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,a,r,o,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(o=(i=u.position()).top,a=i.left):(o=parseFloat(r)||0,a=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],a={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((a=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),a.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-k.css(i,"marginTop",!0),left:t.left-a.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||oe}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return G(this,(function(e,i,a){var r;if(_(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:a,n?a:r.pageYOffset):e[i]=a}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=Qe(g.pixelPosition,(function(e,n){if(n)return n=Ye(e,t),qe.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(a,r){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===r?"margin":"border");return G(this,(function(t,n,a){var r;return _(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?k.css(t,n,s):k.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,a;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),a=function(){return e.apply(t||this,i.concat(s.call(arguments)))},a.guid=e.guid=e.guid||k.guid++,a},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=M,k.isFunction=v,k.isWindow=_,k.camelCase=Z,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Xt,"$1")},void 0===(n=function(){return k}.apply(t,[]))||(e.exports=n);var Jt=i.jQuery,Kt=i.$;return k.noConflict=function(e){return i.$===k&&(i.$=Kt),e&&i.jQuery===k&&(i.jQuery=Jt),k},void 0===a&&(i.jQuery=i.$=k),k}))},8257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(7705),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,".swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}",""]);const r=a},5147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(7705),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,"/**\n * Swiper 8.4.7\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2023 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: January 30, 2023\n */\n\n@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}",""]);const r=a},3379:(e,t,n)=>{"use strict";var i,a=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],a=0;a<e.length;a++){var r=e[a],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(o[d].references++,o[d].updater(p)):o.push({identifier:u,updater:g(p,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=r(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,i){var a=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var r=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(r,o[t]):e.appendChild(r)}}function f(e,t,n){var i=n.css,a=n.media,r=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,m=0;function g(e,t){var n,i,a;if(t.singleton){var r=m++;n=h||(h=c(t)),i=p.bind(null,n,r,!1),a=p.bind(null,n,r,!0)}else n=c(t),i=f.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var a=s(n[i]);o[a].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=r}}}}},n={};function i(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={id:e,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.exports}i.amdO={},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nc=void 0,(()=>{"use strict";var e=i(3379),t=i.n(e),n=i(5147),a={insert:"head",singleton:!1};t()(n.Z,a);n.Z.locals;var r=i(8257),o={insert:"head",singleton:!1};t()(r.Z,o);r.Z.locals;var s,l,c,u=i(3150),d=i.n(u),p=(i(6103),i(8563));window.NodeList&&!NodeList.prototype.forEach&&(window.NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),window.fakeLocalStorage=function(){var e,t={};window.Storage&&window.localStorage?e=window.Storage.prototype:(window.localStorage={},e=window.localStorage),window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var n=function(t,n){var i=null===t?null:e.getItem(t),a=location.href.substr(location.origin.length),r=document.createEvent("StorageEvent");r.initStorageEvent("storage",!1,!1,t,i,n,a,null),window.dispatchEvent(r)};e.key=function(e){var n=Object.keys(t)[e];return"string"==typeof n?n:null},e.getItem=function(e){return"string"==typeof t[e]?t[e]:null},e.setItem=function(e,i){n(e,i),t[e]=String(i)},e.removeItem=function(e){n(e,null),delete t[e]},e.clear=function(){n(null,null),t={}}},window.fakeSessionStorage=function(){var e,t={};window.Storage&&window.sessionStorage?e=window.Storage.prototype:(window.sessionStorage={},e=window.sessionStorage),window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var n=function(t,n){var i=null===t?null:e.getItem(t),a=location.href.substr(location.origin.length),r=document.createEvent("StorageEvent");r.initStorageEvent("storage",!1,!1,t,i,n,a,null),window.dispatchEvent(r)};e.key=function(e){var n=Object.keys(t)[e];return"string"==typeof n?n:null},e.getItem=function(e){return"string"==typeof t[e]?t[e]:null},e.setItem=function(e,i){n(e,i),t[e]=String(i)},e.removeItem=function(e){n(e,null),delete t[e]},e.clear=function(){n(null,null),t={}}},window.b64EncodeUnicode=function(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))},window.b64DecodeUnicode=function(e){return decodeURIComponent(window.atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},window.util_getUrl=function(e){var t=location.protocol;void 0===location.protocol&&(t="https:"),null!=e&&""!==e||(e="url");var n=null;switch(p("#site_mod").length>0&&-1!==p("#site_mod").val().search("dev")&&(n=p("#site_mod").val()),e){case"url_m":return null===n?t+"//m.ruliweb.com":t+"//m"+n+".ruliweb.com";case"url_mypi":return t+"//mypi.ruliweb.com";case"url_www":return t+"//www.ruliweb.com";case"url_web":return null===n?t+"//bbs.ruliweb.com":t+"//"+n+".ruliweb.com";case"url_web_ssl":return null===n?"https://user.ruliweb.com":"https://userdev.ruliweb.com";case"url_api":case"url_api_ssl":return null===n?"https://api.ruliweb.com":"https://apidev.ruliweb.com";default:return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}},window.util_go_change=function(e){var t=util_getUrl("url_m"),n=util_getUrl("url_web"),i=location.href,a=location.protocol;void 0===location.protocol&&(a="https:"),"m"===e?(window.app.set_cookie("mgo","2","43200min"),location.href=i.replace(n,t)):"m_mypi"===e?-1!==i.search("mypi.ruliweb.com")?location.replace(i.replace("mypi.ruliweb.com/","mypi.ruliweb.com/m/")):location.replace(a+"//mypi.ruliweb.com/m"):(window.app.set_cookie("mgo","1","43200min"),location.href=i.replace(t,n))},window.util_shuffle=function(e){for(var t,n,i=e.length;i;t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n);return e},window.util_shuffle_dom=function(e,t){var n=e.find("."+t),i=n.parent(),a=util_shuffle(n);a.each((function(e,t){p(t).removeClass("active");var n=p(t).clone();0===e&&n.addClass("active"),i.append(n),p(t).remove(),n=null})),n=null,i=null,a=null},window.getByteLength=function(e,t,n,i){for(t=n=0;i=e.charCodeAt(n++);t+=i>>11?3:i>>7?2:1);return t},window.app=(s=[],l={},c=[],{add:function(e){s.push(e)},ready_before_add:function(e){c.push(e)},add_callback:function(e,t){Array.isArray(l[""+e])||(l[""+e]=[]),l[""+e].push(t)},get_callback:function(e){return l[""+e]},popup:function(e){var t=p("#popup"),n=t.find(".dimmed"),i=t.find(".close"),a=t.find(".title"),r=t.find(".content"),o=t.find(".submit"),s=null;function l(){t.hide(),c()}function c(){a.html(a.html()),r.html(r.html()),o.html(o.html()),t.removeClass(),t.find(".popup_wrapper").prop("style",""),t.off("click",".submit"),t.on("click",".submit",l),t.find(".submit_wrapper").prop("style",""),t.find(".submit").prop("style",""),t.off("click",".cancel"),t.find(".cancel").prop("style",""),t.find(".cancel").hide()}if(n.click(l),i.click(l),void 0!==e)switch(c(),t.addClass(e),e){case"report":a.html("신고"),r.html('<div class="report_body row"><div class="reason_wrapper row"><label class="radio col col_6"><input type="radio" name="report_type" id="reason_A" value="A"><span class="outer"><span class="inner"></span></span><span class="label_text">영리목적/홍보성</span></label><label class="radio col"><input type="radio" name="report_type" id="reason_U" value="U"><span class="outer"><span class="inner"></span></span><span class="label_text">불법정보</span></label><label class="radio col col_6"><input type="radio" name="report_type" id="reason_V" value="V"><span class="outer"><span class="inner"></span></span><span class="label_text">불법촬영물</span></label><label class="radio col col_6"><input type="radio" name="report_type" id="reason_O" value="O"><span class="outer"><span class="inner"></span></span><span class="label_text">음란/선정성</span></label><br><label class="radio col col_6"><input type="radio" name="report_type" id="reason_C" value="C"><span class="outer"><span class="inner"></span></span><span class="label_text">욕설/인신공격</span></label><label class="radio col col_6"><input type="radio" name="report_type" id="reason_P" value="P"><span class="outer"><span class="inner"></span></span><span class="label_text">개인정보노출</span></label><br><label class="radio col col_6"><input type="radio" name="report_type" id="reason_E" value="E"><span class="outer"><span class="inner"></span></span><span class="label_text">같은 내용의 반복 게시(도배)</span></label><br><label class="radio col col_6"><input type="radio" name="report_type" id="reason_G" value="G"><span class="outer"><span class="inner"></span></span><span class="label_text">기타</span></label></div><div class="reason_wrapper illegal_type_wrapper row" style="display: none"><span class="title_text">불법촬영물 분류</span><br><label class="col col_4"><input type="checkbox" class="checkbox" title="" name="illegal_type" value="1" data-type="trigger"><span class="outer"><span class="inner"></span></span><span class="label_text"> 불법촬영물</span></label><label class="col col_4"><input type="checkbox" class="checkbox" title="" name="illegal_type" value="2" data-type="trigger"><span class="outer"><span class="inner"></span></span><span class="label_text"> 허위영상물</span></label><label class="col col_4"><input type="checkbox" class="checkbox" title="" name="illegal_type" value="3" data-type="trigger"><span class="outer"><span class="inner"></span></span><span class="label_text"> 아동성착취물</span></label></div><div class="clear"><br></div><textarea rows="10" id="report_value" class="col col_12" placeholder="신고 사유를 간단히 입력해주세요.(최대 500자)"></textarea></div>'),o.html("신고"),t.on("click",".radio",(function(){"reason_V"===p(this).find("input[name=report_type]").attr("id")?p(".illegal_type_wrapper").show():p(".illegal_type_wrapper").hide()}));break;case"message":c(),o.html("쪽지보내기"),p.ajax({url:util_getUrl("url_api_ssl")+"/dispMessagePopup?is_ie="+window.app.is_ie(),type:"GET",dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success?(t.addClass("message"),a.html("쪽지보내기"),r.html(e.html),r.find("#target").val(s),t.off("click",".submit"),t.on("click",".submit",(function(){var e=r.find("form"),n={is_nick:e.find("#is_nick").val(),target:e.find("#target").val(),content:e.find("#content").val()};window.app.message_async_send(n,(function(e){c(),e.success?(t.addClass("message"),a.html("쪽지보내기"),r.html(e.message),o.html("확인")):(t.addClass("error"),a.html("ERROR"),r.html(e.message+"<br>"),o.html("확인"))}),(function(e,n,i){t.hide(),c(),alert("ajax error")}))}))):(t.addClass("error"),a.html("ERROR"),r.html(e.message+"<br>"),o.html("확인"))},error:function(e,n,i){t.hide(),c(),alert("ajax error")}})}return{show:function(e){void 0!==e&&(s=e),setTimeout((function(){t.show()}),500)},close_callback:null,close:function(e){l(),void 0!==e&&e(),void 0!==t.close_callback&&null!==t.close_callback&&t.close_callback()},title:function(e){a.html(e)},content:function(e){r.html(e)},width:function(e){t.find(".popup_wrapper").css("width",e)},submit:function(e,t){o.html(e),void 0!==t&&t&&l()},is_submit:function(e){!1===e&&(o.hide(),o.parents(".submit_wrapper").hide())},is_cancel:function(e,n){!0===e&&(t.find(".cancel").show(),t.on("click",".cancel",(function(){void 0!==n&&n()})))},action:function(e){t.off("click",".submit"),t.on("click",".submit",(function(){e()}))}}},open_message:function(e){var t=util_getUrl("url_api_ssl")+"/messagepopup";void 0!==e&&e&&0!==e.length&&""!==e&&(t=t+"?id="+e),window.open(t,"","width=300, height=365, status=no;")},message_send:function(){var e=p("#real_message_popup").find("#content").val().trim(),t=p("#real_message_popup").find("#target").val().trim(),n={content:e,target:t};0!==e.length&&""!==e&&e&&void 0!==e?0!==t.length&&""!==t&&t&&void 0!==t?window.app.message_async_send(n,(function(e){e.success?alert("쪽지 보내기 성공."):alert(e.message),window.close()}),(function(e,t,n){alert("데이터 전송중 에러. 관리자에게 문의 주세요.")})):alert("잘못된 형식의 회원번호입니다."):alert("내용을 바르게 입력해 주세요!")},message_async_send:function(e,t,n){p.ajax({url:util_getUrl("url_api_ssl")+"/procSendMessage",type:"POST",data:e,dataType:"json",xhrFields:{withCredentials:!0},success:t,error:n})},set_cookie:function(e,t,n,i){i||(i=".ruliweb.com");var a=new Date,r="";(""+n).match("min")?(n=1*n.replace("min",""),a.setMinutes(a.getMinutes()+n)):a.setDate(a.getDate()+n),r=e+"="+escape(t)+"; path=/ ",void 0!==n&&(r+=";expires="+a.toGMTString()+";"),r+="domain="+i+";",document.cookie=r+"sameSite:Strict;Secure;"},get_cookie:function(e){e+="=";var t=document.cookie,n=t.indexOf(e),i="";if(-1!=n){n+=e.length;var a=t.indexOf(";",n);-1==a&&(a=t.length),i=t.substring(n,a)}return unescape(i)},is_ie:function(){return!1!==window.app.getInternetExplorerVersion()},getInternetExplorerVersion:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)},member_activity:function(e,t){var n=p("#board_id").val();if(""===n)return!1;var i=app.popup(),a=p("#popup");i.submit("닫기"),i.action((function(){i.close()}));var r={};r.board_id=n,r.member_srl=e,r.key=t,p.ajax({url:util_getUrl("url_api_ssl")+"/dispMemberActivity?",type:"POST",dataType:"json",data:r,xhrFields:{withCredentials:!0},success:function(e){e.success?(a.addClass("member_activity"),a.find(".title").html(e.title),a.find(".popup_wrapper").width(e.width),"m"===e.client_mode&&a.find(".popup_wrapper").css({"max-width":"100%","max-height":"100%",height:"100%"}),i.content(e.html)):(a.addClass("error"),i.title("ERROR"),i.content(e.message+"<br>"),i.submit("확인"))},error:function(e,t,n){i.close(),alert("ajax error")}}),i.show()},getMemberContextMenu:function(e,t,n,i,a){var r=p("#context_menu").clone();window.app.log("aaa",r),p(e).parent().append(r),r.addClass("active"),r.find(".writed_article").parent().hide(),r.find(".member_activity").parent().hide(),r.find(".message").parent().hide(),r.find(".block").parent().hide(),r.find(".mypi").parent().hide(),r.find(".timeline").parent().hide(),null!==t&&(r.find(".writed_article").parent().show(),r.find(".writed_article").addClass("active").attr("href",t)),null!==n&&(r.find(".message").parent().show(),r.find(".message").addClass("active"),r.find(".message").one("click",(function(){window.app.popup("message").show(n)})),r.find(".block").parent().show(),r.find(".block").addClass("active"),r.find(".block").one("click",(function(){window.app.add_user_block(n)})),r.find(".timeline").parent().show(),r.find(".timeline").addClass("active").attr("href","/timeline?user="+n)),null!==i&&(r.find(".mypi").parent().show(),r.find(".mypi").addClass("active").attr("href",i)),null!=a&&(r.find(".member_activity").parent().show(),r.find(".member_activity").addClass("active"),r.find(".member_activity").one("click",(function(){window.app.member_activity(n,a)}))),p("body").hasClass("mobile")||r.one("mouseleave",(function(){r.removeClass("active"),r.find(".writed_article").removeClass("active"),r.find(".message").removeClass("active"),r.find(".mypi").removeClass("active")})),r.find(".close").one("click",(function(){r.removeClass("active"),r.find(".writed_article").removeClass("active"),r.find(".message").removeClass("active"),r.find(".mypi").removeClass("active")}))},image_view_interval:null,image_view_d:function(e,t){var n=p(e).find("img").attr("src");1===t&&(n=(n=n.replace("/img/","/ori/")).replace("/mo/","/ori/"));var i=new URL(n).searchParams,a=!1;void 0!==i&&null!==i.get("icon")&&(window.open(util_getUrl()+"/community/board/98/read/"+i.get("icon")+"?view=thumbnail2","_blank"),a=!0),a||window.open(n,"_blank")},image_view_m:function(e,t){this.image_view_d(e,t)},image_view_close:function(){var e=p("#image_layer"),t=p("#image_wrapper"),n=t.find(".image_inner");t.fadeOut(500,(function(){e.hide(),n.html(""),t.width(100),t.height(100),n.width(100),n.height(100),clearInterval(window.app.image_view_interval)}))},image_view_plugin_init:function(){var e,t,n=p("#image_layer"),a=n.find(".dimmed"),r=n.find(".close");a.on("click",(function(){window.app.image_view_close()})),r.click((function(){window.app.image_view_close()})),e=this,t=function(e){var t=window,n=document,i="mousemove",a="mouseup",r="mousedown",o="EventListener",s="add"+o,l="remove"+o,c=[],u=function(e,o){for(e=0;e<c.length;)(o=(o=c[e++]).container||o)[l](r,o.md,0),t[l](a,o.mu,0),t[l](i,o.mm,0);for(c=[].slice.call(n.getElementsByClassName("dragscroll")),e=0;e<c.length;)!function(e,o,l,c,u,d){(d=e.container||e)[s](r,d.md=function(t){e.hasAttribute("nochilddrag")&&n.elementFromPoint(t.pageX,t.pageY)!=d||(c=1,o=t.clientX,l=t.clientY,t.preventDefault())},0),t[s](a,d.mu=function(){c=0},0),t[s](i,d.mm=function(t){c&&((u=e.scroller||e).scrollLeft-=-o+(o=t.clientX),u.scrollTop-=-l+(l=t.clientY))},0)}(c[e++])};"complete"==n.readyState?u():t[s]("load",u,0),e.reset=u},"function"==typeof define&&i.amdO?define(["exports"],t):"undefined"!=typeof exports?t(exports):t(e.dragscroll={})},category_icon:function(){p(".icon_cate").each((function(e,t){switch(p(this).attr("class").toString().split(" ")[1]){case"icon_9":case"icon_psp":p(this).html("PSP");break;case"icon_5":case"icon_ps2":p(this).html("PS2");break;case"icon_3":case"icon_ps3":p(this).html("PS3");break;case"icon_20":case"icon_24":case"icon_26":case"icon_apple":p(this).html("Apple");break;case"icon_1":case"icon_2":case"icon_on":p(this).html("PC/ON");break;case"icon_av":p(this).html("A/V");break;case"icon_6":case"icon_7":case"icon_xbox360":p(this).html("X360");break;case"icon_11":case"icon_3ds":p(this).html("3DS");break;case"icon_8":case"icon_wii":p(this).html("Wii");break;case"icon_hobby":p(this).html("Hobby");break;case"icon_multi":p(this).html("Multi");break;case"icon_42":case"icon_vita":p(this).html("VITA");break;case"icon_41":case"icon_wiiu":p(this).html("Wii U");break;case"icon_10":case"icon_nds":p(this).html("NDS");break;case"icon_19":case"icon_moblie":p(this).html("Mobile");break;case"icon_44":case"icon_ps4":p(this).html("PS4");break;case"icon_45":case"icon_xboxone":p(this).html("XONE");break;case"icon_esport":p(this).html("E·SPORT");break;case"icon_43":case"icon_psn":p(this).html("PSN");break;case"icon_48":case"icon_switch":p(this).html("switch");break;default:p(this).html("ETC")}}))},device_check:{Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iPhone:function(){return navigator.userAgent.match(/iPhone|iPod/i)},iPad:function(){return navigator.userAgent.match(/iPad/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return window.app.device_check.Android()||window.app.device_check.BlackBerry()||window.app.device_check.iPhone()||window.app.device_check.iPad()||window.app.device_check.Opera()||window.app.device_check.Windows()}},mobile_keyboard_trigger:function(){function e(){p(".fixed_ad_wrapper").hide(),p(".fixed_layer1").hide()}function t(){p(".fixed_ad_wrapper").show(),p(".fixed_layer1").show()}p("#board_write").length>0||(p("input[type=text]").bind("focus",e),p("input[type=text]").bind("blur",t),p("input[type=password]").bind("focus",e),p("input[type=password]").bind("blur",t),p("input[type=email]").bind("focus",e),p("input[type=email]").bind("blur",t),p("input[type=number]").bind("focus",e),p("input[type=number]").bind("blur",t),p("textarea").bind("focus",e),p("textarea").bind("blur",t))},browserStorageCheck:function(){try{localStorage.test=1}catch(e){fakeSessionStorage(),fakeLocalStorage()}},go_login:function(e,t){var n=window.app.popup();n.title(e),n.submit("로그인으로 가기"),n.action((function(){location.href=util_getUrl("url_web_ssl")+"/member/login"})),n.content("먼저 로그인 하셔야 합니다.<br>로그인 페이지로 이동 하시겠습니까?"),void 0!==t&&(n.close_callback=function(){t.preventDefault()}),n.show()},go_logout:function(e,t){var n=window.app.popup();void 0===e&&(e="<center>로그아웃</center>"),n.title(e),n.submit("확인"),n.action((function(){location.href=util_getUrl("url")+"/member/logout"})),n.content("정말 로그아웃 하시겠습니까?"),void 0!==t&&(n.close_callback=function(){t.preventDefault()}),n.show()},invalid_popup:function(){var e=window.app.popup();e.title("잘못된 요청"),e.content("권한이 없습니다."),e.show()},nbp_ad_callback_v2:function(e,t,n){var i=0,a=e.ads.length;void 0!==t&&(a=t),void 0!==n&&(i=n),p(".nbp_container").each((function(t,n){window.app.log("data",e),window.app.log("_startIndex",i),window.app.log("_pageSizeLimit",a);var r=p(n);if(void 0!==e.ads&&e.ads.length>0){var o=0,s="https://saedu.naver.com/adbiz/searchad/intro.nhn",l=null,c="",u="",d="",f="",h="",m="",g=location.search.split("?"),v="";if(g.length>1&&(g=g[1].split("&")).length>0)for(o=0;o<g.length;o++)"search_key"===g[o].split("=")[0]&&(l=decodeURIComponent(g[o].split("=")[1])),"q"===g[o].split("=")[0]&&(v=decodeURIComponent(g[o].split("=")[1])),g[o].split("=")[0];for(g=null,p("body").hasClass("mobile")&&(s="https://m.searchad.naver.com/"),r.append('<div class="nbp_header"><div class="nbp_icon"></div><div class="nbp_apply"><a href="'+s+'" target="_blank">등록하기</a></div></div>'),r.append('<ul class="nbp_list row"></ul>'),o=0;o<a&&void 0!==e.ads[o+i];o++)null!=l&&""!==l&&(e.ads[o+i].description=e.ads[o+i].description.replace(l,"<strong>"+l+"</strong>")),null!=v&&""!==v&&(e.ads[o+i].headline=e.ads[o+i].headline.replace(v,"<strong>"+v+"</strong>"),e.ads[o+i].description=e.ads[o+i].description.replace(v,"<strong>"+v+"</strong>")),e.ads[o+i].isTalkTalkIconEnabled&&(m='<i class="talktalk" style="margin-left: 5px;">TalkTalk</i>'),e.ads[o+i].isNaverLoginIconEnabled&&(m='<i class="naverlogin" style="margin-left: 5px;">NaverLogin</i>'),1===e.ads[o+i].naverPayIconType&&(m='<i class="npay" style="margin-left: 5px;">NPay</i>'),2===e.ads[o+i].naverPayIconType&&(m='<i class="npayplus" style="margin-left: 5px;">NPay Plus</i>'),p("body").hasClass("mobile")||(c='<div class="nbp_list_item_num">'+(o+1)+"</div>",d='<a class="nbp_list_item_domain"  target="_blank" href="'+e.ads[o+i].clickUrl+'">'+e.ads[o+i].displayUrl+"</a>"+m),u='<a class="nbp_list_item_title" target="_blank" href="'+e.ads[o+i].clickUrl+'">'+e.ads[o+i].headline+"</a>",p("body").hasClass("mobile")&&(u+=m),f='<br><a class="nbp_list_item_desc" target="_blank" href="'+e.ads[o+i].clickUrl+'">'+e.ads[o+i].description+"</a>",h="",void 0!==e.ads[o+i].imageExtension&&(h='<a class="nbp_list_item_thumb border_box" target="_blank" href="'+e.ads[o+i].imageExtension.clickUrl+'"><div style="background: url('+e.ads[o+i].imageExtension.imageUrl+') 0 0 no-repeat;background-size: cover;"></div></a>'),p("body").hasClass("mobile")?r.find(".nbp_list").append('<li class="nbp_list_item border_box col '+(p("#board").length>0?"col_6":"col_12")+" mcol_12"+(""!==h?" nbp_is_thumb":"")+'"><div class="nbp_list_item_link_wrapper">'+h+u+f+"</li>"):r.find(".nbp_list").append('<li class="nbp_list_item border_box col '+(p("#board").length>0?"col_6":"col_12")+" mcol_12"+(""!==h?" nbp_is_thumb":"")+'"><div class="nbp_list_item_link_wrapper"><div class="col col_8 border_box" style="padding-left: 25px; padding-right: 5px;">'+c+h+u+f+'</div><div class="col col_4">'+d+"</div></div></li>");i+=a,r.removeClass("default"),r.removeClass("screen_out")}else r.remove()}))},nbp_ad_callback_v4:function(e){var t=document.querySelector(".nbp_container_4");if(t&&void 0!==e.ads&&0!=e.ads.length){var n=e.ads[e.ads.length-1],i=null,a="",r="",o="",s=location.search.split("?"),l="",c="";if(s.length>1&&(s=s[1].split("&")).length>0)for(var u=0;u<s.length;u++)"search_key"===s[u].split("=")[0]&&(i=decodeURIComponent(s[u].split("=")[1])),"q"===s[u].split("=")[0]&&(l=decodeURIComponent(s[u].split("=")[1])),s[u].split("=")[0];s=null;var d=2;p("body").hasClass("mobile")&&(d=1);for(let t=0;t<d;t++)n=e.ads[t],c+='<div class="nbp_list row">',null!=i&&""!==i&&(n.description=n.description.replace(i,"<strong>"+i+"</strong>")),null!=l&&""!==l&&(n.headline=n.headline.replace(l,"<strong>"+l+"</strong>"),n.description=n.description.replace(l,"<strong>"+l+"</strong>")),n.isTalkTalkIconEnabled&&(o='<i class="talktalk">TalkTalk</i>'),n.isNaverLoginIconEnabled&&(o='<i class="naverlogin">NaverLogin</i>'),1===n.naverPayIconType&&(o='<i class="npay">NPay</i>'),2===n.naverPayIconType&&(o='<i class="npayplus">NPay Plus</i>'),a='<a class="nbp_list_item_title" target="_blank" href="'+n.clickUrl+'">'+n.headline+"</a>",p("body").hasClass("mobile")?(a='<div class="nbp_icon"></div>'+a,c=(a+=o)+r+'<a class="nbp_list_item_desc" target="_blank" href="'+n.clickUrl+'">'+n.description+"</a>"):(c+='<div class="nbp_list_item flex"><div>'+a+(r='<a class="nbp_list_item_domain"  target="_blank" href="'+n.clickUrl+'">'+n.displayUrl+"</a>"+o)+'</div><div class="flex_item_2 text_over"><a class="nbp_list_item_desc" target="_blank" href="'+n.clickUrl+'">'+n.description+"</a></div></div>",c+="</div>");p("body").hasClass("mobile")||(c+='<div class="nbp_icon"></div><div class="nbp_apply"><a href="https://saedu.naver.com/adbiz/searchad/intro.nhn" target="_blank">등록하기</a></div>'),t.innerHTML=c}},url_copy:function(){if(0!==p(".url_copy").length){var e=null,t=null;!1===d().isSupported()?p(".url_copy").click((function(){prompt("URL을 복사해주세요.",location.href)})):(e=new(d())(".url_copy"),t=window.app.popup(),e.on("success",(function(e){t.title("URL 복사"),t.content("URL이 복사되었습니다."),t.submit("확인"),t.show(),t.action((function(){t.close()}))})))}},iframe_click_tracking:function(e,t,n){p(e).bind("mouseover",(function(){var e=this;p(window).unload((function(){t(e)})),p(this).mouseout((function(){n(e),p(window).unbind("unload")})),setTimeout((function(){p(window).unbind("unload")}),2e3)}))},on_rating:function(){p("body").on("click",".rating .hover_area",(function(e){var t=p(".rating"),n=t.find(".hover_area"),i=t.find(".rating_star_wrapper.active"),a=n.width(),r=p("#rating_value"),o=e.offsetX/a*100;o<8?o=0:o>100&&(o=100);var s=Math.ceil(o/10);r.val(s),i.width(a*s/10+"px")}))},off_rating:function(){p("body").off("click",".rating .hover_area")},file_upload_init:function(e){var t=util_getUrl("url_api_ssl")+"/",n={extFilter:["zip","rar","7z","egg"],file_max_count:10,type:"board"},i=window.app.popup();i.title("파일업로드"),i.content("완료"),i.submit("확인"),i.action((function(){i.close()})),void 0!==e&&p.extend(n,e);for(var a=1;a<20;a++)a<10?(n.extFilter.push("z0"+a),n.extFilter.push("00"+a)):(n.extFilter.push("z"+a),n.extFilter.push("0"+a));function r(e,t,n){p("#uploaderFile"+e).find("span").html(n).prop("class","status text-"+t)}function o(e,i){var a={};a.file=e,a.type=n.type,"board"===n.type&&(p("input[name=board_id]").length>0&&(a.board_id=p("input[name=board_id]").val()),p("input[name=article_id]").length>0&&(a.article_id=p("input[name=article_id]").val())),a.ar=p.ajax({url:t+"file_delete",type:"POST",dataType:"json",data:a,xhrFields:{withCredentials:!0},success:function(e){e.success?i():alert(e.message)},error:function(e,t,n){}})}p("#file_input").dmUploader({url:t+"file_upload",maxFileSize:10485760,auto:!1,queue:!0,extFilter:n.extFilter,extraData:function(e){var t={file_desc:p("#uploaderFile"+e).find(".input_ruli").val(),type:n.type};return"board"===n.type&&(p("input[name=board_id]").length>0&&(t.board_id=p("input[name=board_id]").val()),p("input[name=article_id]").length>0&&(t.article_id=p("input[name=article_id]").val())),t},onDragEnter:function(){this.addClass("active")},onDragLeave:function(){this.removeClass("active")},onNewFile:function(e,t){if(p("#file_status_list").find("li.media").length+p(".file_list").length>=n.file_max_count)return i.title("파일 업로드 오류"),i.content("업로드 개수 초과 (최대 "+n.file_max_count+"개)"),i.show(),!1;!function(e,t){var n=p("#files-template").text();n=n.replace("%%filename%%",t.name),(n=p(n)).prop("id","uploaderFile"+e),n.data("file-id",e),p("#file_status_list").find("li.empty").hide(),p("#file_status_list").prepend(n)}(e,t)},onBeforeUpload:function(e){r(e,"uploading","업로드 중...")},onUploadCanceled:function(e){p("#uploaderFile"+e).remove(),0===p("#file_status_list .media").length&&p("#file_status_list").find("li.empty").fadeIn()},onUploadSuccess:function(e,t){try{if(4===t.target.readyState&&200===t.target.status){var n=JSON.parse(t.target.responseText);return n.success?(p("#uploaderFile"+e).data("srl",n.srl),i.title("파일 업로드"),i.content("완료"),i.show(),void r(e,"success","업로드 완료")):(alert(n.message),r(e,"error","업로드 실패"),p("#uploaderFile"+e).remove(),void(0===p("#file_status_list .media").length&&p("#file_status_list").find("li.empty").fadeIn()))}alert("에러1: 업로드 실패"),r(e,"error","업로드 실패"),p("#uploaderFile"+e).remove(),0===p("#file_status_list .media").length&&p("#file_status_list").find("li.empty").fadeIn()}catch(t){alert("에러2: 업로드 실패"),r(e,"error","업로드 실패"),p("#uploaderFile"+e).remove(),0===p("#file_status_list .media").length&&p("#file_status_list").find("li.empty").fadeIn()}},onUploadError:function(e,t,n,i){r(e,"danger",i)},onFileSizeError:function(e){i.title("파일 업로드 오류"),i.content(e.name+" 용량초과"),i.show()}}),p("#file_btn_upload").click((function(){p("#file_status_list .media").length>0?p("#file_input").dmUploader("start"):(i.title("파일업로드"),i.content("파일없음"),i.show())})),p("#file_status_list").on("click",".cancel",(function(){if(confirm("제거하시겠습니까?")){var e=p(this).closest(".media").attr("id").replace("uploaderFile","");p("#file_input").dmUploader("cancel",e),p(this).closest(".media").find("span").hasClass("text-success")?o(p(this).closest(".media").data("srl"),(function(){p("#uploaderFile"+e).remove()})):p("#uploaderFile"+e).remove(),0===p("#file_status_list .media").length&&p("#file_status_list").find("li.empty").fadeIn()}})),window.app.board_modify_file_delete=function(e){confirm("제거하시겠습니까?")&&(o(p(e).data("srl"),(function(){p(e).closest(".row").remove()})),0===p(".file_container").find(".file_list").length&&p(".file_container").remove())}},sns_share:function(e,t){var n="";if(n=p(".news_title").length>0?encodeURI(p("#news").find(".news_title").text()):p("#event").length>0?encodeURI(p("#event").find(".event_title").text()):0==p("#board_read .subject .subject_text.text_large").text().length?p("#board_read .subject .subject_text").text():p("#board_read .subject .subject_text.text_large").text(),"mypi"===e){var i=window.app.popup();return i.title("게시글 스크랩"),i.content("제목: "+n),i.submit("보내기"),i.action((function(){var e={};e.board_id=window.extradata.sns_share.board_id,e.article_id=window.extradata.sns_share.article_id,e.article_url=p(".article_url").val(),e.subject=n,p.ajax({url:window.extradata.sns_share.api_url+"procAddMypiScrap",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(t){t.success?(i.content("스크랩 성공"),i.submit("확인")):(i.content(t.message),i.submit("확인")),i.action((function(){i.close()})),e=null},error:function(t,n,a){i.close(),e=null}})})),void i.show()}if("kakao"!==e){if("kakaostory"===e)t="https://story.kakao.com/share?url="+t;else if("twitter"===e)t="https://twitter.com/intent/tweet?url="+(t=encodeURIComponent(t))+"&text="+n;else if("facebook"===e)t="https://www.facebook.com/share.php?u="+(t=encodeURIComponent(t))+"&title="+n;else if("naver"===e)t="https://share.naver.com/web/shareView.nhn?url="+(t=encodeURIComponent(t))+"&title="+n;else if("pinterest"===e){var a=document.getElementsByClassName("board_main_view")[0]||document.getElementsByClassName("news_content_wrapper")[0];a=a.getElementsByTagName("img");var r=window.app.popup();r.title("핀터레스트 공유"),r.submit("닫기"),r.action((function(){r.close()}));for(var o='<div style="display: flex; flex-flow: row wrap; justify-content: space-around;">',s=0;s<a.length;s++)o+='<a target="_blank" class="margin_4" href="',o+="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(t)+"&media="+encodeURIComponent(a[s].src)+"&description="+n,o+='"><img width="100" src="'+a[s].src+'" alt="'+a[s].alt+'"></a>';o+="</div>",r.content(o),document.getElementById("popup").getElementsByClassName("popup_wrapper")[0].style.width="80%",document.getElementById("popup").getElementsByClassName("popup_wrapper")[0].style.maxWidth="680px",document.getElementById("popup").getElementsByClassName("popup_wrapper")[0].style.maxHeight="480px",r.show()}"pinterest"!==e&&window.open(t,"popUpWindow","height=300,width=480,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes"),e=null}else p.getScript("https://developers.kakao.com/sdk/js/kakao.min.js").done((function(){Kakao.init("8496679d80f0c5d13041c128a8343eda"),Kakao.Link.sendDefault({objectType:"feed",content:{title:n,imageUrl:p("meta[name=thumbnail]").attr("content"),link:{mobileWebUrl:t.replace("bbs.ruliweb.com","m.ruliweb.com"),webUrl:t}},success:function(e){},fail:function(e){}})}))},init_gifct:function(e,t=!1){var n=p(".gifct video");void 0!==e&&(n=e.find(".gifct video"));var i=function(e){if(void 0===this.is_loadedsetting){var n=this.src;-1!==n.indexOf("?gif")&&(n=n.replace(".mp4",".gif").replace("?gif","")),-1!==n.indexOf("?webp")&&(n=n.replace(".mp4",".webp").replace("?webp","")),1==t&&p(this).click((function(){window.open(n,"_blank")})),this.is_loadedsetting=!0}},a=function(e){var t='<a class="img_load" href="#">';p("body").hasClass("mobile")&&(t='<a class="img_load_m" href="#">');var n=e.src;-1!==n.indexOf("?gif")&&(n=n.replace(".mp4",".gif").replace("?gif","")),-1!==n.indexOf("?webp")&&(n=n.replace(".mp4",".webp").replace("?webp","")),t+='<img class="comment_img" alt="comment img" src="'+n+'"></a>',p(e).closest(".gifct").after(t),p(e).closest(".gifct").remove(),p(e).remove()};n.length>0&&n.each((function(e,t){p(t).on("loadeddata",i).on("play",i).on("playing",i),t.addEventListener("error",(function(){null!==a&&a(t)})),t.onerror=function(){null!==a&&a(t)},void 0!==t.error&&null!==t.error&&void 0!==t.error.code&&null!==t.error.code&&null!==a&&a(t)}))},go_comment:function(){p(".comment_write").length>0&&(p(window).scrollTop(p(".comment_write").offset().top-40),p(".comment_input").focus())},webpush:function(e){switch(window.app.log("[webpush]",e),e){case"alarm_on":case"alarm_off":case"etc_on":case"etc_off":case"favorite_on":case"favorite_off":case"alarm":case"etc":case"all":case"none":window.app.is_change_webpush=!0;var t=window.app.get_cookie("webpush");null!==sessionStorage.getItem("webpush")&&(t=sessionStorage.getItem("webpush")),"alarm_on"===e&&(e="alarm"===t?"alarm":"favorite"===t?"alm_favor":"etc"===t?"etc_alarm":"etc_favor"===t?"all":"etc_alarm"===t?"etc_alarm":"alm_favor"===t?"alm_favor":"all"===t?"all":"alarm"),"alarm_off"===e&&(e="alarm"===t?"none":"favorite"===t?"favorite":"etc"===t?"etc":"etc_favor"===t?"etc_favor":"etc_alarm"===t?"etc":"alm_favor"===t?"favorite":"all"===t?"etc_favor":"none"),"etc_on"===e&&(e="alarm"===t?"etc_alarm":"favorite"===t?"etc_favor":"etc"===t?"etc":"etc_favor"===t?"etc_favor":"etc_alarm"===t?"etc_alarm":"alm_favor"===t||"all"===t?"all":"etc"),"etc_off"===e&&(e="alarm"===t?"alarm":"favorite"===t?"favorite":"etc"===t?"none":"etc_favor"===t?"favorite":"etc_alarm"===t?"alarm":"alm_favor"===t||"all"===t?"alm_favor":"none"),"favorite_on"===e&&(e="alarm"===t?"alm_favor":"favorite"===t?"favorite":"etc"===t||"etc_favor"===t?"etc_favor":"etc_alarm"===t?"all":"alm_favor"===t?"alm_favor":"all"===t?"all":"favorite"),"favorite_off"===e&&(e="alarm"===t?"alarm":"favorite"===t?"none":"etc"===t||"etc_favor"===t?"etc":"etc_alarm"===t?"etc_alarm":"alm_favor"===t?"alarm":"all"===t?"etc_alarm":"none"),window.app.log("[old_webpush]",t),window.app.log("[webpush]",e),window.app.set_cookie("webpush",e,9999),sessionStorage.setItem("webpush",e),window.app.set_fcm_token(window.app.get_cookie("fcm_token")),void 0===window.firebase&&window.app.init_fcm_webpush();var n=window.app.popup();n.title("알람 설정"),n.submit("확인"),n.action((function(){n.close()})),n.content("설정 적용 완료."),"undefined"!=typeof event&&n.content(event.target.textContent+" 설정 적용 완료."),n.show()}},set_fcm_token:function(e){window.app.log("set_fcm_token"),window.app.log("fcm_token",e);var t=window.app.get_cookie("fcm_token"),n=!1;""===t&&(n=!0),0===t.length&&(n=!0),t!==e&&(n=!0),void 0!==window.app.is_change_webpush&&!0===window.app.is_change_webpush&&(n=!0),window.app.log("webpush",window.app.get_cookie("webpush")),window.app.log("webpush",window.app.get_cookie("webpush_domain")),window.app.set_cookie("fcm_token",e,"28800min"),n&&(window.app.log("is_send"),p.ajax({url:util_getUrl("url_api_ssl")+"/set_webpush",xhrFields:{withCredentials:!0}}))},init_fcm_webpush:function(e){window.app.log("init_fcm_webpush"),p.getScript("https://www.gstatic.com/firebasejs/10.4.0/firebase-app-compat.js").done((function(){p.getScript("https://www.gstatic.com/firebasejs/10.4.0/firebase-messaging-compat.js").done((function(){firebase.initializeApp({apiKey:"AIzaSyDRk0saiiLKQEoNsq7ruFPmbqARg5i0p3A",authDomain:"ruliweb-ca51b.firebaseapp.com",databaseURL:"https://ruliweb-ca51b.firebaseio.com",projectId:"ruliweb-ca51b",storageBucket:"ruliweb-ca51b.appspot.com",messagingSenderId:"190371203397",appId:"1:190371203397:web:6564637eb9c981c6b2562c"}),"serviceWorker"in navigator&&navigator.serviceWorker.register("/firebase-messaging-sw.js").then((function(t){if("undefined"!=typeof firebase&&"https:"===location.protocol){var n=firebase.messaging();Notification.requestPermission().then((function(){n.getToken({vapidKey:"BKFxNJPMqWd3qoJq0MyJ4p9vP8E3ziDDTDb-pBLksTGqVNBTrL1THDjQs7kYWSD6CkgF_jjFAoNvEmab2JicFlA"}).then((function(t){t&&(window.app.log("currentToken",t),window.app.set_cookie("webpush_domain",location.hostname,9999),window.app.set_fcm_token(t),void 0!==e&&e())})).catch((function(e){window.app.log("An error occurred while retrieving token. ",e)})),n.onTokenRefresh((function(){n.getToken().then((function(t){window.app.log("refreshedToken",t),window.app.set_cookie("webpush_domain",location.hostname,9999),window.app.set_fcm_token(t),void 0!==e&&e()})).catch((function(e){window.app.log("Unable to retrieve refreshed token ",e)}))}))})).catch((function(e){window.app.log("Unable to get permission to notify.",e)}))}}))})).fail((function(){window.app.log("firebase load failed.")}))}))},log:function(e,t){p("#admin_office_test").length},init_quickmenu2_visit:function(){let e=window.app.load_visited_board();if(e.length>0){let n=document.querySelector("#templ_quickmenu2_row"),i=document.querySelector("#templ_quickmenu2_column"),a=document.importNode(n.content,!0);a.querySelector("strong").textContent="최근 방문 게시판";for(var t=0;t<e.length&&t<12;t++){let n=document.importNode(i.content,!0),r=e[t].name;e[t].url.includes("best")&&(r="베스트"),r=r.replace("<i class=ir>_</i>","").replace('<i class="ir">_</i>',"").replace("<i class='ir'>_</i>",""),n.querySelector(".quickmenu2_a").href=e[t].url,n.querySelector(".quickmenu2_a").title=r,n.querySelector(".quickmenu2_caption").textContent=r;let o="";void 0!==e[t].img&&null!==e[t].img&&""!==e[t].img&&(o=e[t].img),n.querySelector("img")&&(""==o?n.querySelector("img").remove():(n.querySelector("img").src=o,n.querySelector("img").alt=e[t].name)),a.querySelector(".quickmenu2_container").appendChild(n)}document.querySelector("#quickmenu2").prepend(a)}},toggle_quickmenu2:function(){var e=document.querySelector("#is_logged");if(e&&!document.querySelector(".favorite")){var t=JSON.parse(localStorage.getItem("favorite_list"));if(t&&t.srl==e&&!t.needUpdate){var n=t.list;let e=document.querySelector("#templ_quickmenu2_row"),a=document.querySelector("#templ_quickmenu2_column"),r=document.importNode(e.content,!0);for(var i of(r.querySelector("strong").textContent="즐겨찾기 게시판",r.classList.add("favorite"),n)){let e=document.importNode(a.content,!0),t=i.name;t=t.replace("<i class=ir>_</i>","").replace('<i class="ir">_</i>',"").replace("<i class='ir'>_</i>",""),e.querySelector(".quickmenu2_a").href=i.link,e.querySelector(".quickmenu2_a").title=t,e.querySelector(".quickmenu2_caption").textContent=t,e.querySelector("img")&&e.querySelector("img").remove(),r.querySelector(".quickmenu2_container").appendChild(e)}document.querySelector("#quickmenu2").append(r)}else{var a=util_getUrl("url_api_ssl")+"/favorite_list";p.ajax({url:a,type:"get",dataType:"json",xhrFields:{withCredentials:!0},success:function(t){if(t.success){if((n=JSON.parse(t.message)).length>13)var n=n.slice(0,12);localStorage.setItem("favorite_list",JSON.stringify({needUpdate:!1,srl:e.value,list:n}));let a=document.querySelector("#templ_quickmenu2_row"),r=document.querySelector("#templ_quickmenu2_column"),o=document.importNode(a.content,!0);for(var i of(o.querySelector("strong").textContent="즐겨찾기 게시판",o.querySelector(".quickmenu2_row").classList.add("favorite"),n)){let e=document.importNode(r.content,!0),t=i.name;t=t.replace("<i class=ir>_</i>","").replace('<i class="ir">_</i>',"").replace("<i class='ir'>_</i>",""),e.querySelector(".quickmenu2_a").href=i.link,e.querySelector(".quickmenu2_a").title=t,e.querySelector(".quickmenu2_caption").textContent=t,e.querySelector("img")&&e.querySelector("img").remove(),o.querySelector(".quickmenu2_container").appendChild(e)}document.querySelector("#quickmenu2").append(o)}},error:function(e,t,n){window.app.comment_alert}})}}document.querySelector(".more_wrapper").classList.toggle("screen_out")},write_submit_before:function(){},init_comment_icon:function(e=!1){window.app.g_comment_icon_data={share_page:{},share_id_data:{},more:0,init:!1,is_editor:e,editor_insert_callback:null},window.app.comment_icon_toggle=function(e,t="share"){let n=e.parentElement.querySelector(".comment_icon");null==n.is_show&&(n.is_show=!1),n.is_show?(n.is_show=!1,n.style.display="none"):(n.is_show=!0,n.style.display="block"),null==n.init&&(n.is_show=!0,n.init=!0,app.comment_icon(n,null,t))},window.app.comment_icon=function(e,t,n="share"){document.querySelector(".common_write_wrapper")&&(document.querySelector(".common_write_wrapper").classList.remove("floating_active"),document.querySelector(".common_write_wrapper").classList.remove("floating_disable")),e.position=t,e.type=n;var i=util_getUrl("url_api_ssl")+"/comment_icon?",a=null;i=i+"&more="+window.app.g_comment_icon_data.more,void 0!==n&&(i=i+"&type="+n),"share"===n&&void 0!==window.app.g_comment_icon_data.share_page[window.app.g_comment_icon_data.more]&&null!==window.app.g_comment_icon_data.share_page[window.app.g_comment_icon_data.more]&&(a=window.app.g_comment_icon_data.share_page[window.app.g_comment_icon_data.more]),null!==a?null===t?e.innerHTML=a:e.insertAdjacentHTML(t,a):p.ajax({url:i,type:"get",dataType:"json",xhrFields:{withCredentials:!0},success:function(i){i.success&&(null===t?e.innerHTML=i.html:e.insertAdjacentHTML(t,i.html),"share"===n&&(window.app.g_comment_icon_data.share_page[window.app.g_comment_icon_data.more]=i.html,document.querySelector("#editor_common_write_wrapper")||0==window.app.g_comment_icon_data.more&&document.querySelectorAll(".icon_data_show_target")&&document.querySelectorAll(".icon_data_show_target")[0].click()))},error:function(e,t,n){window.app.comment_alert}})},window.app.icon_share_more=function(e,t){window.app.g_comment_icon_data.more!==t&&(window.app.g_comment_icon_data.more=t,window.app.comment_icon(e.closest(".comment_icon"),null,"share"))},window.app.icon_data_show=function(e,t){if(null==window.app.icon_data_show_clicked&&(window.app.icon_data_show_clicked={}),null==window.app.icon_data_show_clicked[""+t]){for(let e in window.app.icon_data_show_clicked)window.app.icon_data_show_clicked[e]=!1;window.app.icon_data_show_clicked[""+t]=!0}else{if(window.app.icon_data_show_clicked[""+t]){window.app.icon_data_show_clicked[""+t]=!1,e.closest(".comment_icon").querySelector(".icon_share_data").style.display="none";for(let e in window.app.icon_data_show_clicked)window.app.icon_data_show_clicked[e]=!1;return}for(let e in window.app.icon_data_show_clicked)window.app.icon_data_show_clicked[e]=!1;window.app.icon_data_show_clicked[""+t]=!0}var n=util_getUrl("url_api_ssl")+"/comment_icon?id="+t,i=null,a=e.closest(".comment_icon").querySelector(".icon_share_data");void 0!==window.app.g_comment_icon_data.share_id_data[t]&&null!==window.app.g_comment_icon_data.share_id_data[t]&&(i=window.app.g_comment_icon_data.share_id_data[t]),null!==i?(a.innerHTML=i,a.style.display="block"):p.ajax({url:n,type:"get",dataType:"json",xhrFields:{withCredentials:!0},success:function(e){e.success&&(a.innerHTML=e.html,a.style.display="block",window.app.g_comment_icon_data.share_id_data[t]=e.html)},error:function(e,t,n){window.app.comment_alert}})},window.app.comment_icon_page=function(e){p(".comment_icon .btn_num").removeClass("active"),p(e).addClass("active"),p(".comment_icon .icon_page_wrapper").each((function(t,n){p(n).data("page")===p(e).data("page")?p(n).removeClass("hide"):p(n).addClass("hide")}))},window.app.select_icon=function(e){var t=e.src,n=p(e).closest(".common_write_wrapper"),i=n.find(".preview"),a=n.find(".icon_preview");window.app.g_comment_icon_data.is_editor?window.app.g_comment_icon_data.editor_insert_callback(t):(i.remove(),a.remove(),t.indexOf(".mp4")>-1?n.find(".common_input_wrapper").before('<video class="comment-input-video-preview icon_preview block" autoplay="" loop="" muted="" style="max-width:100%;" src="'+t+'"></video>'):n.find(".common_input_wrapper").before('<img class="comment-input-image-preview icon_preview block" style="max-width:100%;" src="'+t+'">'),a=n.find(".icon_preview"),n=n[0],a.on("click",(function(){a.remove(),n.uploadFile=null,n.preview=null,n.icon_preview=null})))},window.app.comment_icon_share=function(){alert("공사중")},window.app.comment_icon_pick_add=function(e,t,n){if(confirm("["+t+"]을 댓글 아이콘 즐겨찾기에 추가하시겠습니까?")){var i={};i.num=n,p.ajax({url:util_getUrl("url_api_ssl")+"/comment_icon_pick_add",type:"post",dataType:"json",data:i,xhrFields:{withCredentials:!0},success:function(t){t.success?(alert("추가 성공"),e.closest(".comment_icon")&&window.app.comment_icon(e.closest(".comment_icon"),null,"pick")):alert("추가 실패: "+t.message)},error:function(e,t,n){}})}},window.app.comment_icon_pick_remove=function(e,t,n){if(confirm("["+t+"]을 댓글 아이콘 즐겨찾기에서 제거하시겠습니까?")){var i={};i.num=n,p.ajax({url:util_getUrl("url_api_ssl")+"/comment_icon_pick_remove",type:"post",dataType:"json",data:i,xhrFields:{withCredentials:!0},success:function(t){t.success?(alert("제거 성공"),window.app.comment_icon(e.closest(".comment_icon"),null,"pick")):alert("제거 실패: "+t.message)},error:function(e,t,n){}})}}},user_block_init:function(){if(!document.querySelector("#is_logged"))return!1;var e=app.get_block_list();e&&e.updateTime&&Date.now()-e.updateTime<36e5?app.user_block(e):app.get_block_list_ajax()},user_block:function(e){e&&e.block_list&&document.querySelectorAll(".blocktarget").forEach((function(t){for(var n=0;n<e.block_list.length;n++)t.querySelector("input.member_srl")&&e.block_list.includes(1*t.querySelector("input.member_srl").value)&&(p(t).addClass("blocked"),p(t).addClass("screen_out"))}))},get_block_list:function(){var e={};(e=localStorage.getItem("block_data"))||((e={}).block_list=[]);var t=document.querySelector("input#is_logged");return!!t&&!!e&&(t=t.value,"string"==typeof e&&(e=JSON.parse(e)),(!e.member_srl||t==e.member_srl)&&e)},toggle_block:function(){var e,t;p(".blocktarget.blocked").toggleClass("screen_out"),p(".blocktarget.blocked").hasClass("screen_out")?(e="icon-eye-close",t=" 차단 ON"):(e="icon-eye-open",t=" 차단 OFF"),p("body").hasClass("mobile")?p(".toggle_block_btn").html('<i class="'+e+'" ></i>'):p(".toggle_block_btn").html('<i class="'+e+'" ></i>'+t)},get_block_list_ajax:function(e=!1){var t=document.querySelector("input#is_logged"),n=window.app.get_cookie("s_token"),i=localStorage.getItem("block_data"),a={s_token:0,local_srl:0};if(t){a.member_srl=t.value,n&&(a.s_token=n),i&&("string"==typeof i&&(i=JSON.parse(i)),a.local_srl=i.member_srl);var r=util_getUrl("url_api_ssl")+"/";p.ajax({url:r+"procGetMemberBlockList",type:"GET",dataType:"json",data:a,xhrFields:{withCredentials:!0},success:function(t){if(t.success){var n=t.block_data;n.updateTime=Date.now(),window.localStorage.setItem("block_data",JSON.stringify(n)),window.app.user_block(n),e&&alert("차단목록 갱신 완료.")}},error:function(e,t,n){}})}},add_user_block:function(e,t="add"){if(p("#is_logged").length>0){var n=app.popup(),i="",a=!1;"add"==t?(i="/procBlockMember",n.title("사용자 차단")):(i="/procBlockModify",a=!0,n.title("사용자 차단 수정")),n.width("400px"),n.content('<div class="row text_left">사용자를 차단합니다.<br>사용자 차단시 해당 사용자의 게시글 및 댓글이 보이지 않으며, 해당 사용자가 보내는 쪽지 및 마이피 댓글/방명록 작성을 차단합니다.<br>차단 메모는 50자까지 입력 가능합니다.</div><div class="row"><br><div class="col col_4">차단 대상</div><div class="col col_8"><input type="text" id="block_member_srl" class="input_ruli col_9" value="'+e+'" disabled></div><br><br><div class="col col_4">차단 메모</div><div class="col col_8"><input type="text" id="block_reason_popup" class="input_ruli col_9"></div><br><br></div>'),n.submit("확인"),n.show(),n.action((function(){var t={};t.member_srl=e,t.block_reason=p("#block_reason_popup").val(),p.ajax({url:util_getUrl("url_api_ssl")+i,type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),app.get_block_list_ajax(),a&&location.reload()):alert(e.message)},error:function(e,t,n){}}),n.close()})),n.show()}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")},get_notify_list:function(){if(p("#is_logged").length>0){var e={client_mode:"d"};p("body").hasClass("mobile")&&(e.client_mode="m"),p(".inbox_wrapper").hasClass("screen_out")?p.ajax({url:util_getUrl("url_api_ssl")+"/dispNotifyListAsync",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(p(".notification_inbox").html(e.notify_list),p(".inbox_wrapper").removeClass("screen_out"),e.notify_count>0?p(".notify_count").html(e.notify_count):p(".notify_count").html("")):alert(e.message)},error:function(e,t,n){}}):p(".inbox_wrapper").addClass("screen_out")}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")},click_notify:function(e,t){if(p("#is_logged").length>0){var n={};n.notify_id=e,p.ajax({url:util_getUrl("url_api_ssl")+"/clickNotify",type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:function(e){if(e.success)return!0},error:function(e,t,n){}})}},font_change:{init:function(){var e=window.app.get_cookie("ruli_board_font");if(null!==e&&"font_0"!==e&&(window.app.set_cookie("ruli_board_font",e,"28800min"),p("body").hasClass("mobile")?p("#board").addClass(e):(p("body").addClass(e),p("#board .content_wrapper").addClass(e))),p("body").hasClass("mobile")?p(".font_0").css("font-family",'"Malgun Gothic", "맑은 고딕", sans-serif'):p(".font_0").css("font-family",'"돋움",dotum,sans-serif'),null!==localStorage.getItem("ruli_board_font_size2")){var t=1*localStorage.getItem("ruli_board_font_size2"),n="%";p("body").hasClass("mobile")&&(t>100&&(t=1),n="em"),100!==t&&(p(".comment_container .text").css("font-size",t+n),p(".view_content").css("font-size",t+n))}},toggle:function(){var e=window.app.popup();e.title(""),e.submit(""),e.action((function(){})),e.content('<div id="font_change_list" class="text_left clickable" style="font-size: 17px;"><div class="padding_h_2 font_0" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(0)">기본</div><div class="padding_h_2 font_12" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(12)">Noto Sans KR</div><div class="padding_h_2 font_2" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(2)">맑은고딕</div><div class="padding_h_2 font_13" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(13)">돋움</div><div class="padding_h_2 font_14" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(14)">굴림</div><div class="padding_h_2 font_16" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(16)">나눔고딕</div><div class="padding_h_2 font_3" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(3)">나눔명조</div><div class="padding_h_2 font_4" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(4)">나눔고딕코딩</div><div class="padding_h_2 font_7" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(7)">빙그레체</div><div class="padding_h_2 font_8" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(8)">빙그레 메로나체</div><div class="padding_h_2 font_1" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(1)">EBS훈민정음</div><div class="padding_h_2 font_5" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(5)">삼겹살체 300g</div><div class="padding_h_2 font_6" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(6)">호국체</div><div class="padding_h_2 font_9" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(9)">서울한강체M</div><div class="padding_h_2 font_10" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(10)">나눔손글씨 힘내라는 말보단</div><div class="padding_h_2 font_11" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(11)">나눔손글씨 행복한 도비</div><div class="padding_h_2 font_15" style="border-bottom: 1px solid #eee;" onclick="window.app.font_change.set(15)">마비옛체</div></div>'),void 0!==event&&(e.close_callback=function(){event.preventDefault()}),e.is_submit(!1),e.show()},plus:function(){var e=110,t="%",n=10;p("body").hasClass("mobile")&&(e=1,t="em",n=.1),null!==localStorage.getItem("ruli_board_font_size2")&&(e=1*localStorage.getItem("ruli_board_font_size2")),e+=n,p(".comment_container .text").css("font-size",e+t),localStorage.setItem("ruli_board_font_size2",e),p(".view_content").css("font-size",e+t)},minus:function(){var e=100,t="%",n=10;p("body").hasClass("mobile")&&(e=1,t="em",n=.1),null!==localStorage.getItem("ruli_board_font_size2")&&(e=1*localStorage.getItem("ruli_board_font_size2")),(e-=n)<0&&(e=0),localStorage.setItem("ruli_board_font_size2",e),p(".comment_container .text").css("font-size",e+t),p(".view_content").css("font-size",e+t)},default:function(){localStorage.removeItem("ruli_board_font_size2"),localStorage.removeItem("ruli_board_font_size"),p(".comment_container .text").css("font-size",""),p(".view_content").css("font-size","")},set:function(e){window.app.set_cookie("ruli_board_font","font_"+e,"28800min"),localStorage.setItem("ruli_board_font","font_"+e);for(var t=1;t<30;t++)p("body").removeClass("font_"+t),p("#board .content_wrapper").removeClass("font_"+t),p("#board").removeClass("font_"+t);0===e?(localStorage.removeItem("ruli_board_font"),window.app.set_cookie("ruli_board_font","font_0",0)):p("body").hasClass("mobile")?p("#board").addClass("font_"+e):(p("body").addClass("font_"+e),p("#board .content_wrapper").addClass("font_"+e))}},api_send:function(e,t,n,i,a){null==n&&(n=function(e){alert(e.message)}),null==i&&(i=function(e,t,n){}),void 0===a&&(a="POST"),p.ajax({url:util_getUrl("url_api_ssl")+"/"+e,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},data:t,success:n,error:i})},api_send_by_full_url:function(e,t,n,i,a){null==n&&(n=function(e){alert(e.message)}),null==i&&(i=function(e,t,n){}),null==t&&(t=[]),void 0===a&&(a="POST"),p.ajax({url:e,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},data:t,success:n,error:i})},ai_image_make_request_form:function(e="",t="",n=""){var i=`\n        <blockquote style="background-image: linear-gradient(60deg, #96deda 0%, #50c9c3 100%); box-shadow: #50c9c3 0px 1px 3px; margin: 2px; padding: 5px; box-sizing: border-box; color:#000;">\n        [start]<table class="table table-bordered ai_image_make_request">\n        <tbody>\n        <tr>\n        <td><p style="color:#000; width: 110px;"><label style="color:#000;">[prompt]</label><br></p>\n        </td>\n        <td><p style="color:#000;"><label style="color:#000;" class="prompt">${t}</label><br></p>\n        </td>\n        </tr>\n        <tr>\n        <td><p style="color:#000;"><label style="color:#000;">[negative_prompt]</label><br></p>\n        </td>\n        <td><p style="color:#000;"><label style="color:#000;" class="negative_prompt">${n}</label><br></p>\n        </td>\n        </tr>\n        <tr>\n        <td><p style="color:#000;"><label style="color:#000;">[seed]</label><br></p>\n        </td>\n        <td><p style="color:#000;"><label style="color:#000;">-1</label><br></p>\n        </td>\n        </tr>\n        </tbody>\n        </table>\n        [end]</blockquote>\n        <p><br></p>\n        ${e}\n        <p><br></p>\n      `;app.editor_insertContents(i)},ai_image_make_response:function(){document.querySelector("#is_logged")&&""+document.querySelector(".user_info #member_srl").value===document.querySelector("#is_logged").value&&(document.querySelector(".ai_image_done")||app.api_send("ai_image_preview?bbs="+document.querySelector("#board_id").value+"&id="+document.querySelector(".article_id").value,[],(function(e){if(e.success){app.ai_image_upload=function(){confirm("본문에 업로드시 발생하는 민, 형사상 문제는 작성자에게 있습니다. 업로드 하시는데 동의하십니까?")&&app.api_send("ai_image_upload?bbs="+document.querySelector("#board_id").value+"&id="+document.querySelector(".article_id").value,[],(function(e){location.reload()}))};var t="<p></p>";document.querySelector(".ai_image_make_response_notice")&&(t=document.querySelector(".ai_image_make_response_notice").innerHTML),document.querySelector(".view_content").insertAdjacentHTML("beforeend",'<div class="ai_image_make_response_preview"><p>업로드 전에는 작성자에게만 노출됩니다.</p><br><a href="'+e.img+'" target="_blank"><img src="'+e.img+'" /></a><button class="inlin_block col_12 border_box btn_ruli_dark font_11" style="font-size:30px;background-color: #1a70dc !important;max-width: 900px;" onclick="app.ai_image_upload();">게시글에 업로드</button>'+t+"</div>")}})))},init_visited_board:function(){this.save_visited_board()},reset_visited_board:function(){localStorage.removeItem("visited_board_v4"),this.init_visited_board()},load_visited_board:function(){let e=localStorage.getItem("visited_board_v4");if(null==e||""===e||"[]"===e||"undefined"===e)return[];try{e=JSON.parse(e)}catch(e){return[]}return Array.isArray(e)&&e.length>0?e:[]},save_visited_board:function(){let e=this.load_visited_board(),t=!1,n=!1,i=!1,a=location.href,r=!1,o={board_id:0,name:"",type:"",url:"",img:"",info:{}},s=a.match(/\/board\/(\d+)/);if(s&&(t=!0),s=a.match(/\/game\/(\d+)/),s&&(t=!0),t){if(a.search("/board/")&&(n=!0),document.querySelector("#board_id")&&document.querySelector("#game_id")&&(i=!0,n=!1),n){const e=a.match(/\/board\/(\d+)/);let t=0;e?t=e[1]:document.querySelector("#board_id")&&(t=document.querySelector("#board_id").value),o.board_id=t;let n=a.split("/board/");o.url=`${n[0]}/board/${t}`,document.querySelector("#board_name")&&(o.name=document.querySelector("#board_name").value),document.querySelector("#bbs_name")&&(o.name=document.querySelector("#bbs_name").value),document.querySelector("#bbs_type")&&(o.type=document.querySelector("#bbs_type").value),r=!0}if(i&&(document.querySelector('link[rel="canonical"]')&&(a=document.querySelector('link[rel="canonical"]').href,o.url=a),o.type="game",document.querySelector("#board_name")&&(o.name=document.querySelector("#board_name").value),document.querySelector("#bbs_name")&&(o.name=document.querySelector("#bbs_name").value),document.querySelector("#game_id")&&(o.info.game_id=document.querySelector("#game_id").value),document.querySelector("#game_img")&&(o.img=document.querySelector("#game_img").value,o.info.game_image=document.querySelector("#game_img").value),o.url=`${util_getUrl()}/game/${o.info.game_id}`,r=!0),r){e.unshift(o);const t=[],n=new Set;for(const i of e)null===i.name||void 0===i.name||""===i.name||n.has(i.name)||(n.add(i.name),t.push(i));let i=JSON.stringify(t);localStorage.setItem("visited_board_v4",i)}}},rgoat_vote:function(){p("body").on("click",".rgoat_vote_submit",(function(){if(void 0!==p("input[name=rgoat_vote]:radio:checked").val()){var e={};e.vote=p("input[name=rgoat_vote]:radio:checked").val(),p.ajax({url:util_getUrl("url_api_ssl")+"/rgoat_vote",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}})}else alert("항목을 선택해주세요.")}))},before_init:function(){return window.app.browserStorageCheck(),"https://www.ruliweb.com"!==util_getUrl()&&window.app.font_change.init(),window.app.device_check.any()&&(p("body").hasClass("mobile")||(p("#mAside").remove(),p("#left_side").remove(),p("body").addClass("mobiledevice"),p("#gnb_menu_list").append('<li id="right_best_gnb" class="menu_item"><h3><a href="//bbs.ruliweb.com/best/hit_history">오른쪽베스트</a></h3></li>'))),p("body").on("click",".scroll_top",(function(){p("body").scrollTop(0)})),null},after_init_callback:function(){},after_init:function(){if(this.init_visited_board(),this.category_icon(),this.url_copy(),window.app.device_check.any()&&window.app.mobile_keyboard_trigger(),p("body").on("click",".auto_collapse",(function(){var e=p(this).data("collapse-target");p(this).hasClass("collapse_open_only")&&p(this).parents(".collapse_parent").find(".auto_collapse").each((function(t,n){var i=p(n).data("collapse-target");e!==i&&p(i).hide()})),p(e).toggle()})),void 0!==location.protocol&&location.protocol.search("https")>-1)switch(location.hostname){case"www.ruliweb.com":case"user.ruliweb.com":"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then((function(e){for(var t=0;t<e.length;t++)window.app.log("registration",e[t]),e[t].unregister()}));break;default:if(window.app.get_cookie("webpush_domain")===location.hostname){var e=window.app.get_cookie("webpush");""!==e&&e.length>0?"none"!==e&&("reset"===e?(window.app.set_cookie("webpush","",0),window.app.set_cookie("webpush_domain","",0),window.app.set_cookie("webpush_uq","",0),window.app.set_cookie("fcm_token","",0),window.app.init_fcm_webpush()):""===window.app.get_cookie("fcm_token")||window.app.get_cookie("fcm_token").length<1?window.app.init_fcm_webpush():window.app.log("init_fcm_webpush NO (fcm_token cached)")):window.app.device_check.any()?null===window.app.device_check.iPhone()&&null===window.app.device_check.iPad()&&(p("#is_logged").length>0?window.app.set_cookie("webpush","all",9999):window.app.set_cookie("webpush","etc",9999),window.app.init_fcm_webpush()):p("#is_logged").length>0&&(window.app.set_cookie("webpush","all",9999),window.app.init_fcm_webpush()),p(".webpush_btn").click((function(){window.app.webpush(p(this).data("set"))}))}}return p("body").on("click",".ip_hide",(function(){p(".ip_hide").remove(),p(".ip_show").css("display","initial")})),window.app.user_block_init(),window.app.after_init_callback(),null},ready_before_excute:function(){for(var e=0;e<c.length;e++)c[e](),c[e]=null},start:function(){return document.addEventListener("DOMContentLoaded",(function(){var e;window.app.before_init();for(var t=0;t<s.length;t++)if(e=s[t](),s[t]=null,void 0!==e&&void 0!==l[""+e]){for(var n=0;n<l[""+e].length;n++)l[""+e][n]();l[""+e]=null}window.app.after_init()})),null},enableAutoplayInViewport:function(e){const t=new IntersectionObserver((function(e,t){e.forEach((e=>{const t=e.target,n=t.parentElement;let i=n.querySelector(".unmute_btn");if(void 0===t.playeddd&&e.intersectionRatio>=.7)if(t.paused)t.playeddd=!0,t.play(),document.querySelector("#timeline")&&t.muted&&(i||(i=document.createElement("button"),i.className="unmute_btn",i.innerHTML='<i class="rv-video-button icon-volume-up icon-large" style="font-size: 1em;"></i>',n.appendChild(i),i.addEventListener("click",(()=>{t.muted=!1,i.style.display="none"}))),i.style.display="block");else{let e=t.parentNode.querySelector(".video_play_icon");e&&e.parentNode.removeChild(e)}e.intersectionRatio<.3&&document.querySelector("#timeline")&&t.pause()}))}),{threshold:[.3,.7]});"object"==typeof e&&e instanceof NodeList?e.forEach((e=>{t.observe(e)})):t.observe(e)},video_load_check:function(e){e.forEach((function(e){e.addEventListener("loadeddata",(()=>{var t=!1;e.readyState>=2||(t=!0),t&&(p(e).parent().append('<span class="video_play_icon"><i class="icon__ icon-repeat"></i></span>'),p(e).parent().on("click",".video_play_icon",(function(t){e.src=e.src,e.load(),p(t.target).remove(),app.enableAutoplayInViewport(e)})))}))}))}}),window.app.start();i(7774),i(6068);function f(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function h(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function m(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var g=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),i=this.whitespaceRegex,a=n?n.split(i):[],r=e.split(i);t=r.shift();)-1===f(a,t)&&a.push(t);return this.getAttrs().class=a.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),i=this.whitespaceRegex,a=n?n.split(i):[],r=e.split(i);a.length&&(t=r.shift());){var o=f(a,t);-1!==o&&a.splice(o,1)}return this.getAttrs().class=a.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var v=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new g({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],i=e.getCssClassSuffixes(),a=0,r=i.length;a<r;a++)n.push(t+"-"+i[a]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,i=t.location;return"smart"===i?function(e,t,n){var i,a;null==n?(n="&hellip;",a=3,i=8):(a=n.length,i=n.length);var r=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},o=function(e,t){var i=t/2,a=Math.ceil(i),r=-1*Math.floor(i),o="";return r<0&&(o=e.substr(r)),e.substr(0,a)+n+o};if(e.length<=t)return e;var s=t-a,l=function(e){var t={},n=e,i=n.match(/^([a-z]+):\/\//i);return i&&(t.scheme=i[1],n=n.substr(i[0].length)),(i=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=i[1],n=n.substr(i[0].length)),(i=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=i[1],n=n.substr(i[0].length)),(i=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=i[1],n=n.substr(i[0].length)),(i=n.match(/^#(.*?)$/i))&&(t.fragment=i[1]),t}(e);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),e=r(l))}if(e.length<=t)return e;if(l.host&&(l.host=l.host.replace(/^www\./,""),e=r(l)),e.length<=t)return e;var u="";if(l.host&&(u+=l.host),u.length>=s)return l.host.length==t?(l.host.substr(0,t-a)+n).substr(0,s+i):o(u,s).substr(0,s+i);var d="";if(l.path&&(d+="/"+l.path),l.query&&(d+="?"+l.query),d){if((u+d).length>=s)return(u+d).length==t?(u+d).substr(0,t):(u+o(d,s-u.length)).substr(0,s+i);u+=d}if(l.fragment){var p="#"+l.fragment;if((u+p).length>=s)return(u+p).length==t?(u+p).substr(0,t):(u+o(p,s-u.length)).substr(0,s+i);u+=p}if(l.scheme&&l.host){var f=l.scheme+"://";if((u+f).length<s)return(f+u).substr(0,t)}if(u.length<=t)return u;var h="";return s>0&&(h=u.substr(-1*Math.floor(s/2))),(u.substr(0,Math.ceil(s/2))+n+h).substr(0,s+i)}(e,n):"middle"===i?function(e,t,n){if(e.length<=t)return e;var i,a;null==n?(n="&hellip;",i=8,a=3):(i=n.length,a=n.length);var r=t-a,o="";return r>0&&(o=e.substr(-1*Math.floor(r/2))),(e.substr(0,Math.ceil(r/2))+n+o).substr(0,r+i)}(e,n):function(e,t,n){return function(e,t,n){var i;return e.length>t&&(null==n?(n="&hellip;",i=3):i=n.length,e=e.substring(0,t-i)+n),e}(e,t,n)}(e,n)},e}(),_=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)};function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var y=function(){return y=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},y.apply(this,arguments)};Object.create;Object.create;var x,C=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return w(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(_),k=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return w(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(_),A=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return w(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(_),T=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return w(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(_),S=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return w(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}},t}(_),E=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},D=/[A-Za-z]/,M=/[\d]/,I=/[\D]/,j=/\s/,F=/['"]/,O=/[\x00-\x1F\x7F]/,L=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,B=L+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,N=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,P=B+N,z=B+N,q=new RegExp("[".concat(z,"]")),R="(?:["+N+"]{1,3}\\.){3}["+N+"]{1,3}",U="["+z+"](?:["+z+"\\-_]{0,61}["+z+"])?",H=function(e){return"(?=("+U+"))\\"+e},$=function(e){return"(?:"+H(e)+"(?:\\."+H(e+1)+"){0,126}|"+R+")"},G=(new RegExp("["+z+".\\-]*["+z+"\\-]"),q),W=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,Y=new RegExp("[".concat(z,"!#$%&'*+/=?^_`{|}~-]")),Q=new RegExp("^".concat(W.source,"$")),Z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=Y,t.strictTldRegex=Q,t}return w(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,i=this.strictTldRegex,a=[],r=e.length,o=new V,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},l=0,c=0,u=o;l<r;){var d=e.charAt(l);switch(c){case 0:p(d);break;case 1:f(e.charAt(l-1),d);break;case 2:h(d);break;case 3:g(d);break;case 4:v(d);break;case 5:_(d);break;case 6:b(d);break;case 7:w(d);break;default:m(c)}l++}return A(),a;function p(e){"m"===e?x(1):n.test(e)&&x()}function f(e,t){":"===e?n.test(t)?(c=2,u=new V(y(y({},u),{hasMailtoPrefix:!0}))):k():s[e]===t||(n.test(t)?c=2:"."===t?c=3:"@"===t?c=4:k())}function h(e){"."===e?c=3:"@"===e?c=4:n.test(e)||k()}function g(e){"."===e||"@"===e?k():n.test(e)?c=2:k()}function v(e){G.test(e)?c=5:k()}function _(e){"."===e?c=7:"-"===e?c=6:G.test(e)||A()}function b(e){"-"===e||"."===e?A():G.test(e)?c=5:A()}function w(e){"."===e||"-"===e?A():G.test(e)?(c=5,u=new V(y(y({},u),{hasDomainDot:!0}))):A()}function x(e){void 0===e&&(e=2),c=e,u=new V({idx:l})}function k(){c=0,u=o}function A(){if(u.hasDomainDot){var n=e.slice(u.idx,l);/[-.]$/.test(n)&&(n=n.slice(0,-1));var r=u.hasMailtoPrefix?n.slice(7):n;(function(e){var t=e.split(".").pop()||"",n=t.toLowerCase();return i.test(n)})(r)&&a.push(new C({tagBuilder:t,matchedText:n,offset:u.idx,email:r}))}k()}},t}(E),V=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},X=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&(!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+L+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),J=(x=new RegExp("[/?#](?:["+z+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+z+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,$(2),")","|","(","(//)?",/(?:www\.)/.source,$(6),")","|","(","(//)?",$(10)+"\\.",W.source,"(?![-"+P+"])",")",")","(?::[0-9]+)?","(?:"+x.source+")?"].join(""),"gi")),K=new RegExp("["+z+"]"),ee=function(e){function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=J,n.wordCharRegExp=K,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return w(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,i=this.stripPrefix,a=this.stripTrailingSlash,r=this.decodePercentEncoding,o=this.tagBuilder,s=[],l=function(){var n=t[0],l=t[1],u=t[4],d=t[5],p=t[9],f=t.index,h=d||p,m=e.charAt(f-1);if(!X.isValid(n,l))return"continue";if(f>0&&"@"===m)return"continue";if(f>0&&h&&c.wordCharRegExp.test(m))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var g=c.matchHasInvalidCharAfterTld(n,l);g>-1&&(n=n.substr(0,g))}var v=["http://","https://"].find((function(e){return!!l&&-1!==l.indexOf(e)}));if(v){var _=n.indexOf(v);n=n.substr(_),l=l.substr(_),f+=_}var b=l?"scheme":u?"www":"tld",w=!!l;s.push(new S({tagBuilder:o,matchedText:n,offset:f,urlMatchType:b,url:n,protocolUrlMatch:w,protocolRelativeMatch:!!h,stripPrefix:i,stripTrailingSlash:a,decodePercentEncoding:r}))},c=this;null!==(t=n.exec(e));)l();return s},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else if("]"===n)t="[";else{if("}"!==n)return!1;t="{"}for(var i=0,a=0,r=e.length-1;a<r;a++){var o=e.charAt(a);o===t?i++:o===n&&(i=Math.max(i-1,0))}return 0===i},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var i=new RegExp("^((.?//)?[-."+z+"]*[-"+z+"]\\.[-"+z+"]+)").exec(e);return null===i?-1:(n+=i[1].length,e=e.slice(i[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(E),te=new RegExp("[_".concat(z,"]")),ne=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.serviceName=t.serviceName,n}return w(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.serviceName,i=[],a=e.length,r=0,o=-1,s=0;r<a;){var l=e.charAt(r);switch(s){case 0:c(l);break;case 1:u(l);break;case 2:d(l);break;case 3:p(l);break;default:m(s)}r++}return f(),i;function c(e){"#"===e?(s=2,o=r):q.test(e)&&(s=1)}function u(e){q.test(e)||(s=0)}function d(e){s=te.test(e)?3:q.test(e)?1:0}function p(e){te.test(e)||(f(),o=-1,s=q.test(e)?1:0)}function f(){if(o>-1&&r-o<=140){var a=e.slice(o,r),s=new k({tagBuilder:t,matchedText:a,offset:o,serviceName:n,hashtag:a.slice(1)});i.push(s)}}},t}(E),ie=["twitter","facebook","instagram","tiktok"],ae=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=ae,t}return w(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var r=t[0],o=r.replace(/[^0-9,;#]/g,""),s=!(!t[1]&&!t[2]),l=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+r.length,1),u=!l.match(/\d/)&&!c.match(/\d/);this.testMatch(t[3])&&this.testMatch(r)&&u&&a.push(new T({tagBuilder:i,matchedText:r,offset:t.index,number:o,plusSign:s}))}return a},t.prototype.testMatch=function(e){return I.test(e)},t}(E),oe=new RegExp("@[_".concat(z,"]{1,50}(?![_").concat(z,"])"),"g"),se=new RegExp("@[_.".concat(z,"]{1,30}(?![_").concat(z,"])"),"g"),le=new RegExp("@[-_.".concat(z,"]{1,50}(?![-_").concat(z,"])"),"g"),ce=new RegExp("@[_.".concat(z,"]{1,23}[_").concat(z,"](?![_").concat(z,"])"),"g"),ue=new RegExp("[^"+z+"]"),de=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:oe,instagram:se,soundcloud:le,tiktok:ce},n.nonWordCharRegex=ue,n.serviceName=t.serviceName,n}return w(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,i=this.matcherRegexes[this.serviceName],a=this.nonWordCharRegex,r=this.tagBuilder,o=[];if(!i)return o;for(;null!==(t=i.exec(e));){var s=t.index,l=e.charAt(s-1);if(0===s||a.test(l)){var c=t[0].replace(/\.+$/g,""),u=c.slice(1);o.push(new A({tagBuilder:r,matchedText:c,offset:s,serviceName:n,mention:u}))}}return o},t}(E);function pe(e,t){for(var n=t.onOpenTag,i=t.onCloseTag,a=t.onText,r=t.onComment,o=t.onDoctype,s=new fe,l=0,c=e.length,u=0,d=0,p=s;l<c;){var f=e.charAt(l);switch(u){case 0:h(f);break;case 1:g(f);break;case 2:_(f);break;case 3:v(f);break;case 4:b(f);break;case 5:w(f);break;case 6:x(f);break;case 7:C(f);break;case 8:k(f);break;case 9:A(f);break;case 10:T(f);break;case 11:S(f);break;case 12:E(f);break;case 13:I(f);break;case 14:L(f);break;case 15:B(f);break;case 16:N(f);break;case 17:P(f);break;case 18:z(f);break;case 19:q(f);break;case 20:R(f);break;default:m(u)}l++}function h(e){"<"===e&&H()}function g(e){"!"===e?u=13:"/"===e?(u=2,p=new fe(y(y({},p),{isClosing:!0}))):"<"===e?H():D.test(e)?(u=3,p=new fe(y(y({},p),{isOpening:!0}))):(u=0,p=s)}function v(e){j.test(e)?(p=new fe(y(y({},p),{name:G()})),u=4):"<"===e?H():"/"===e?(p=new fe(y(y({},p),{name:G()})),u=12):">"===e?(p=new fe(y(y({},p),{name:G()})),$()):D.test(e)||M.test(e)||":"===e||U()}function _(e){">"===e?U():D.test(e)?u=3:U()}function b(e){j.test(e)||("/"===e?u=12:">"===e?$():"<"===e?H():"="===e||F.test(e)||O.test(e)?U():u=5)}function w(e){j.test(e)?u=6:"/"===e?u=12:"="===e?u=7:">"===e?$():"<"===e?H():F.test(e)&&U()}function x(e){j.test(e)||("/"===e?u=12:"="===e?u=7:">"===e?$():"<"===e?H():F.test(e)?U():u=5)}function C(e){j.test(e)||('"'===e?u=8:"'"===e?u=9:/[>=`]/.test(e)?U():"<"===e?H():u=10)}function k(e){'"'===e&&(u=11)}function A(e){"'"===e&&(u=11)}function T(e){j.test(e)?u=4:">"===e?$():"<"===e&&H()}function S(e){j.test(e)?u=4:"/"===e?u=12:">"===e?$():"<"===e?H():(u=4,l--)}function E(e){">"===e?(p=new fe(y(y({},p),{isClosing:!0})),$()):u=4}function I(t){"--"===e.substr(l,2)?(l+=2,p=new fe(y(y({},p),{type:"comment"})),u=14):"DOCTYPE"===e.substr(l,7).toUpperCase()?(l+=7,p=new fe(y(y({},p),{type:"doctype"})),u=20):U()}function L(e){"-"===e?u=15:">"===e?U():u=16}function B(e){"-"===e?u=18:">"===e?U():u=16}function N(e){"-"===e&&(u=17)}function P(e){u="-"===e?18:16}function z(e){">"===e?$():"!"===e?u=19:"-"===e||(u=16)}function q(e){"-"===e?u=17:">"===e?$():u=16}function R(e){">"===e?$():"<"===e&&H()}function U(){u=0,p=s}function H(){u=1,p=new fe({idx:l})}function $(){var t=e.slice(d,p.idx);t&&a(t,d),"comment"===p.type?r(p.idx):"doctype"===p.type?o(p.idx):(p.isOpening&&n(p.name,p.idx),p.isClosing&&i(p.name,p.idx)),U(),d=l+1}function G(){var t=p.idx+(p.isClosing?2:1);return e.slice(t,l).toLowerCase()}d<l&&function(){var t=e.slice(d,l);a(t,d),d=l+1}()}var fe=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},he=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(!1!==n&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(n))throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var i=this.hashtag;if(!1!==i&&-1===ie.indexOf(i))throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],i=0,a=[];return pe(e,{onOpenTag:function(e){n.indexOf(e)>=0&&i++},onText:function(e,n){if(0===i){var r=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,i=[],a=0;n=t.exec(e);)i.push(e.substring(a,n.index)),i.push(n[0]),a=n.index+n[0].length;return i.push(e.substring(a)),i}(e,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),o=n;r.forEach((function(e,n){if(n%2==0){var i=t.parseText(e,o);a.push.apply(a,i)}o+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(i=Math.max(i-1,0))},onComment:function(e){},onDoctype:function(e){}}),a=this.compactMatches(a),a=this.removeUnwantedMatches(a)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var n=e[t],i=n.getOffset(),a=n.getMatchedText().length,r=i+a;if(t+1<e.length){if(e[t+1].getOffset()===i){var o=e[t+1].getMatchedText().length>a?t:t+1;e.splice(o,1);continue}if(e[t+1].getOffset()<r){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||h(e,(function(e){return"hashtag"===e.getType()})),this.email||h(e,(function(e){return"email"===e.getType()})),this.phone||h(e,(function(e){return"phone"===e.getType()})),this.mention||h(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||h(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||h(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||h(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),i=[],a=0,r=n.length;a<r;a++){for(var o=n[a].parseMatches(e),s=0,l=o.length;s<l;s++)o[s].setOffset(t+o[s].getOffset());i.push.apply(i,o)}return i},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),n=[],i=0,a=0,r=t.length;a<r;a++){var o=t[a];n.push(e.substring(i,o.getOffset())),n.push(this.createMatchReturnVal(o)),i=o.getOffset()+o.getMatchedText().length}return n.push(e.substring(i)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof g?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new ne({tagBuilder:e,serviceName:this.hashtag}),new Z({tagBuilder:e}),new re({tagBuilder:e}),new de({tagBuilder:e,serviceName:this.mention}),new ee({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new v({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.16.2",e.AnchorTagBuilder=v,e.HtmlTag=g,e.matcher={Email:Z,Hashtag:ne,Matcher:E,Mention:de,Phone:re,Url:ee},e.match={Email:C,Hashtag:k,Match:_,Mention:A,Phone:T,Url:S},e}();const me=he;var ge=i(8563);app.add((function(){var e=ge("#board_read");if(0!==e.length){var t,n={api_url:util_getUrl("url_api_ssl")+"/",board_id:ge("#board_id").val(),article_id:e.find("input.article_id").val(),bbs_url:e.find("input.bbs_url").val(),author_srl:e.find(".user_info").find("#member_srl").val()};window.extradata={},window.extradata.sns_share=n,app.add_video_pannel=function(e){e.forEach((function(e){if(e.src.includes(".ruliweb.com")||e.src.includes(".ruliweb.net")||!e.src.includes("?gif")){var t=document.createElement("div");t.className="rv-video-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e);var n=document.createElement("i");n.className=e.paused?"rv-video-button rv-video-playPauseButton icon-play icon-large":"rv-video-button rv-video-playPauseButton icon-pause icon-large",e.addEventListener("play",(function(){let t=e.parentNode.querySelector(".rv-video-playPauseButton");t&&(t.classList.remove("icon-play"),t.classList.add("icon-pause"))})),e.addEventListener("pause",(function(){let t=e.parentNode.querySelector(".rv-video-playPauseButton");t&&(t.classList.remove("icon-pause"),t.classList.add("icon-play"))})),e.addEventListener("ended",(function(){let t=e.parentNode.querySelector(".rv-video-playPauseButton");t&&(t.classList.remove("icon-pause"),t.classList.add("icon-play"))})),n.addEventListener("click",(function(t){t.preventDefault(),e.paused?e.play():e.pause()}));var i=document.createElement("i");i.className=e.muted?"rv-video-button icon-volume-off icon-large":"rv-video-button icon-volume-up icon-large",i.addEventListener("click",(function(t){t.preventDefault(),e.muted=!e.muted,i.className=e.muted?"rv-video-button icon-volume-off icon-large":"rv-video-button icon-volume-up icon-large"}));var a=document.createElement("button");a.textContent="공유",a.className="rv-video-button rv-share-button",a.addEventListener("click",(function(t){t.preventDefault();const n=e.src,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.width="100%",i.style.height="100%",i.style.backgroundColor="rgba(0,0,0,0.5)",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.zIndex="1000";const a=document.createElement("div");a.style.background="#FFFFFF",a.style.padding="20px",a.style.borderRadius="5px",a.style.maxWidth="600px",a.style.textAlign="center";const r=document.createElement("textarea");r.style.width="100%",r.style.height="150px",r.textContent=n,a.appendChild(r);const o=document.createElement("button");o.textContent="복사",o.style.marginTop="10px",o.style.padding="10px 20px",o.style.fontSize="16px",o.style.cursor="pointer",o.style.color="#000",a.appendChild(o),o.addEventListener("click",(function(e){e.preventDefault(),navigator.clipboard.writeText(n).then((()=>{const e=document.createElement("div");e.textContent="클립보드에 복사되었습니다",e.style.padding="4px",e.style.borderRadius="4px",e.style.marginTop="10px",e.style.backgroundColor="#3498db",e.style.color="white",a.appendChild(e),setTimeout((()=>{a.removeChild(e)}),2e3)}))})),i.appendChild(a),document.body.appendChild(i),i.addEventListener("click",(function(e){e.preventDefault(),e.target===i&&document.body.removeChild(i)}))}));var r=document.createElement("button");r.className="rv-video-button",r.textContent="새창",r.addEventListener("click",(function(t){t.preventDefault();var n=e.src;-1!==n.indexOf("?gif")&&(n=n.replace(".mp4",".gif").replace("?gif","")),-1!==n.indexOf("?webp")&&(n=n.replace(".mp4",".webp").replace("?webp","")),window.open(n,"_blank")}));var o=document.createElement("div");o.className="rv-video-control-panel",o.appendChild(n),o.appendChild(i),o.appendChild(a),o.appendChild(r),t.appendChild(o)}}))},function(){app.log("[board_read] set_autolink");var t=null;ge("#ifwl").length>0&&(t=JSON.parse(b64DecodeUnicode(ge("#ifwl").val())),ge("#ifwl").remove());var n=new me({urls:{schemeMatches:!0,wwwMatches:!0,tldMatches:!0},email:!1,phone:!1,mention:!1,hashtag:!1,stripPrefix:!1,stripTrailingSlash:!0,newWindow:!0,truncate:{length:0,location:"end"},className:"",replaceFn:function(e){var n=!1;if(null!==t&&ge(t).each((function(t,i){-1!==e.matchedText.search(i)&&(n=!0)})),n)return!1}});if(e.find(".view_content.autolink").length>0){var i=n.link(e.find(".view_content.autolink").html());e.find(".view_content.autolink").html(i)}}(),app.log("[board_read] img_load"),app.init_gifct(ge("#board_read .view_content")),ge("#board_read").on("click","a.img_load",(function(e){e.preventDefault(),app.image_view_d(this,1)})),ge("#board_read").on("click","a.img_load_m",(function(e){e.preventDefault(),app.image_view_m(this,1)})),app.log("[board_read] read_init"),"#cmt"===location.hash&&(ge(".board_main_view").hide(),ge(".board_main_view").before('<button class="board_main_view_hide padding_15 text_center col_12 border_box text_xlarge">본문 내용 보기(클릭)</button>'),ge(".board_main_view_hide").on("click",(function(){ge(".board_main_view").css("display",""),ge(this).remove()}))),document.querySelector("#board_read.is_spoiler")&&ge("#board_read.is_spoiler .board_main_view").on("click",(function(){ge("#board_read.is_spoiler").removeClass("is_spoiler")})),function(){app.log("[board_read] article_read_set");var t=e.find(".view_bottom").not(".view_content .view_bottom"),i=e.find(".btn_wrapper").not(".view_content .btn_wrapper"),a=e.find(".board_main").not(".view_content .board_main").find(".btn_report"),r=e.find(".board_main_bottom").not(".view_content .board_main_bottom"),o=r.find(".btn_set_cert"),s=r.find(".btn_remove_cert"),l=r.find(".btn_set_replystop"),c=r.find(".btn_remove_replystop"),u=r.find(".btn_move_article"),d=e.find(".btn_next_article"),p=e.find(".btn_prev_article"),f=e.find(".btn_send_article"),h=!1;"1"===sessionStorage.getItem("bbs_like_"+n.board_id+"_"+n.article_id)&&t.find(".like").addClass("visited"),t.find(".like").click((function(){if(ge("#is_logged").length>0){var e=ge(this),t={};if(t.board_id=n.board_id,t.article_id=n.article_id,t.is_recommend=1,h)return!1;h=!0,ge.ajax({url:n.api_url+"articleRecommend",type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(t){if(t.success){var i=t.count;i&&e.find(".like_value").text(i),h=!1,e.removeClass("animate"),e.addClass("animate"),setTimeout((function(){e.removeClass("animate"),sessionStorage.setItem("bbs_like_"+n.board_id+"_"+n.article_id,"1"),e.addClass("visited")}),700)}else alert(t.message),h=!1},error:function(e,t,n){h=!1}})}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),"1"===sessionStorage.getItem("bbs_dislike_"+n.board_id+"_"+n.article_id)&&t.find(".dislike").addClass("visited"),t.find(".dislike").click((function(){if(ge("#is_logged").length>0){if(!0!==confirm("비추천을 하시겠습니까?"))return!1;var e=ge(this),t={};if(t.board_id=n.board_id,t.article_id=n.article_id,t.is_recommend=-1,h)return!1;h=!0,ge.ajax({url:n.api_url+"articleRecommend",type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(t){if(t.success){var i=t.count;i&&e.find(".dislike_value").text(i),h=!1;var a=t.available_disrecommend;alert("남은 비추천 횟수: "+a),e.removeClass("animate"),e.addClass("animate"),setTimeout((function(){e.removeClass("animate"),sessionStorage.setItem("bbs_dislike_"+n.board_id+"_"+n.article_id,"1"),e.addClass("visited")}),700)}else alert(t.message),h=!1},error:function(e,t,n){h=!1}})}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),i.find(".btn_del").click((function(){if(confirm("정말 삭제하시겠습니까?")){if(n.article_id<1)return void alert("게시글 id 오류");document.location.href=n.bbs_url+"/delete?article_id="+n.article_id}})),a.click((function(){if(ge("#is_logged").length>0){var t=app.popup("report");t.action((function(){var i={};i.board_id=n.board_id,i.article_id=n.article_id,i.author_srl=n.author_srl,i.article_url=e.find(".article_url").val(),i.report_type=ge(".report_body").find("input[name=report_type]:radio:checked").val(),i.illegal_type="",ge(".report_body").find("input[name=illegal_type]:checkbox:checked").each((function(){i.illegal_type+=ge(this).val()})),i.reason_etc=ge(".report_body").find("#report_value").val(),"V"!==i.report_type||void 0!==i.illegal_type?(ge.ajax({url:n.api_url+"articleReport",type:"POST",dataType:"json",data:i,xhrFields:{withCredentials:!0},success:function(e){e.success,alert(e.message)},error:function(e,t,n){}}),t.close()):alert("불법촬영물 분류를 하나 이상 선택해주세요.")})),t.show()}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),o.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id,e.is_certify=1,ge.ajax({url:n.api_url+"articleCertify",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})})),s.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id,e.is_certify=-1,ge.ajax({url:n.api_url+"articleCertify",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})})),l.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id,e.is_replystop=1,ge.ajax({url:n.api_url+"articleReplyStop",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})})),c.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id,e.is_replystop=-1,ge.ajax({url:n.api_url+"articleReplyStop",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert(e.message),location.reload()):alert(e.message)},error:function(e,t,n){}})})),u.click((function(){var e={},t=app.popup();t.title("게시글 이동"),t.content('<div id="move_article" class="row"><h3>이동할 게시판 ID</h3><input type="text" id="target_board_id" class="input_ruli"><button class="btn_ruli_light btn_find_board_name">찾기</button><br><span class="target_board_name"></span></div>'),t.submit("확인"),t.show(),t.action((function(){e.board_id=n.board_id,e.article_id=n.article_id,e.target_board_id=ge("#target_board_id").val(),ge.ajax({url:util_getUrl("url_api_ssl")+"/articleMove",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?(alert("이동 완료"),t.close(),location.reload()):(t.addClass("error"),t.title("ERROR"),t.html(e.message+"<br>"),t.submit("확인"))},error:function(e,t,n){alert(n)}})}))})),d.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id;var t=document.location.search;ge.ajax({url:n.api_url+"getNextArticle"+t,type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success&&(document.location.href=n.bbs_url+"/read/"+e.message+t)},error:function(e,t,n){}})})),p.click((function(){var e={};e.board_id=n.board_id,e.article_id=n.article_id;var t=document.location.search;ge.ajax({url:n.api_url+"getPrevArticle"+t,type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success&&(document.location.href=n.bbs_url+"/read/"+e.message+t)},error:function(e,t,n){}})})),ge(".btn_find_board_name").click((function(){post.board_id=ge("#target_board_id").val(),ge.ajax({url:util_getUrl("url_api_ssl")+"/getBoardName",type:"POST",dataType:"json",data:post,xhrFields:{withCredentials:!0},success:function(e){e.success?ge(".target_board_name").html(e.message):(popup.addClass("error"),popup.title("ERROR"),popup.html(e.message+"<br>"),popup.submit("확인"))},error:function(e,t,n){alert(n)}})})),f.click((function(){if(ge("#is_logged").length>0){if(!0!==confirm("게시글 이동 요청을 하시겠습니까? 비추력을 소모합니다."))return!1;var e=ge(this),t={};if(t.board_id=n.board_id,t.article_id=n.article_id,t.send_board_id=e.find(".send_board_id").val(),h)return!1;h=!0,ge.ajax({url:n.api_url+"articleSendRequest",type:"POST",dataType:"json",data:t,xhrFields:{withCredentials:!0},success:function(t){if(t.success){var n=t.count;n&&e.find(".send_value").text(n),h=!1;var i=t.available_disrecommend;e.removeClass("animate"),e.addClass("animate"),setTimeout((function(){e.removeClass("animate"),alert(t.message+"\n남은 비추력: "+i)}),700)}else alert(t.message),h=!1},error:function(e,t,n){h=!1}})}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")}))}(),app.log("[board_read] old_gif_lazyloading"),ge(".lazy_read").each((function(){var e=ge(this).attr("src");if(e.search("/mo/")>-1){var t=e.lastIndexOf("."),n=e.substr(t+1,3);"gif"===n.toLowerCase()&&ge(this).parents(".lazy_img_parent").append('<div class="img_type_label">GIF (클릭 새창 재생)&nbsp&nbsp</div>'),t=null,n=null}ge(this).removeClass("lazy"),ge(this).parents(".lazy_img_parent").removeClass("before"),ge(this).css("display",""),e=null})),function(){var e={},t=[];document.querySelectorAll(".hashtag").forEach((function(e,n){t.push(e.text.replace("#",""))})),e.hashtag=t,t.length>0&&ge.ajax({url:util_getUrl("url_api_ssl")+"/search_recommend_board",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){if(e.success&&void 0!==e.list){var t="";e.list.length>0&&(t='<br><div class="recommend_boards text_center"><strong class="recommend_boards_title">연관게시판</strong>',e.list.forEach((function(e,n){t+='<a class="recommend_board margin_w_5" target="_blank" href="'+e.url+'">'+e.name+"</a>"})),t+="</div>",ge(".like_wrapper").closest(".row").append(t))}},error:function(e,t,n){}})}(),function(){app.log("[board_read] twitter_auto_embeded");const e=document.querySelectorAll("script");let t=!1;if(e.forEach((e=>{"https://platform.twitter.com/widgets.js"===e.src&&(t=!0)})),!t)return!1;if(document.querySelectorAll(".view_content a"))for(const e of document.querySelectorAll(".view_content a"))if(!ge(e).hasClass("embeded")&&void 0!==e.href){let t=e.href;t=e.href.split("/");let n=0;for(const e of t)(e.indexOf("twitter.com")>-1||e.indexOf("x.com")>-1)&&n++,e.indexOf("status")>-1&&n++;if(2===n){ge(e).addClass("embeded");let t=`\n              <blockquote class="twitter-tweet loading-spinner">\n                <a href="${e.href.replace("x.com","twitter.com")}"></a>\n              </blockquote>\n              `;e.outerHTML=e.outerHTML+t}}}(),0!==(t=document.querySelectorAll(".view_content [data-a-target]")).length&&t.forEach((function(e){e.style.cursor="pointer",e.addEventListener("click",(function(t){t.preventDefault(),function(e){var t=document.querySelector('[data-a-id="'+e+'"]');if(t){var n=t.offsetTop;window.scrollTo({top:n,behavior:"smooth"})}}(e.getAttribute("data-a-target"))}))})),app.add_video_pannel(document.querySelectorAll(".view_content video")),setTimeout((function(){app.enableAutoplayInViewport(document.querySelectorAll('.view_content video[data-autoplay="true"]'))}),1e3),setTimeout((function(){app.video_load_check(document.querySelectorAll(".view_content video")),app.video_load_check(document.querySelectorAll(".comment_view_wrapper video"))}),2e3),ge(".mini_profile_onoff").on("click",(function(){if(ge(".board_main_top").hasClass("is_mini_profile")){ge(".board_main_top").removeClass("is_mini_profile"),app.set_cookie("mini_profile_onoff","off",7);const e=util_getUrl("url_api_ssl"),t=ge("body").hasClass("mobile")?"m_mini_profile":"mini_profile",n=ge("body").hasClass("mobile")?"width:150px;height:150px;":"width:300px;height:250px;";ge(".user_view_right").html(`<iframe src="${e}/banneriframe?adcode=${t}" style="${n}"></iframe>`)}else ge(".board_main_top").addClass("is_mini_profile"),app.set_cookie("mini_profile_onoff","on",7),ge(".user_view_right").html("")}))}}));var ve=i(8563);app.add((function(){var e,t=!1;if(app.comment_initAll=function(e){e.each((function(e,o){var u;n(ve(o)),function(e){e.on("cmtimg_submit_status_on",(function(){var t=i(e);t.cmtimg_submit_status=!0,a(e,t),t=null})),e.on("cmtimg_submit_status_off",(function(){var t=i(e);t.cmtimg_submit_status=!1,a(e,t),t=null})),e.on("click",".btn_prev",(function(){var t=i(e);t.current_page=1*t.start_page-1,a(e,t),s(e,t.current_page,!0),t=null})),e.on("click",".btn_next",(function(){var t=i(e);t.current_page=1*t.end_page+1,a(e,t),s(e,t.current_page,!0),t=null})),e.on("click",".btn_num",(function(){var t=i(e),n=1*ve(this).text();if(t.current_page!==n){t.current_page=n,a(e,t),s(e,t.current_page,!0);var r=ve(".comment_view_wrapper").offset().top;ve(window).scrollTop(r),t=null}})),e.on("click",".btn_start",(function(){var t=i(e);t.current_page=1,a(e,t),s(e,t.current_page,!0),t=null})),e.on("click",".btn_end",(function(){var t=i(e);t.current_page=t.max_page_count,a(e,t),s(e,t.current_page,!0),t=null})),e.on("click",".btn_hide",(function(){var n=ve(this),a=function(){var a=i(e),r=n.val(),o={};o.board_id=a.board_id,o.comment_id=r,o.article_id=a.article_id,o.sort=n.data("sort"),o.type=a.type,o.device=a.device,ve.ajax({url:a.api_url+"commentHide",type:"POST",dataType:"json",data:o,xhrFields:{withCredentials:!0},success:function(n){n.success?(s(e,a.current_page,!1),a=null):(app.comment_alert(n.message),t=!1)},error:function(e,t,n){}})};n.hasClass("hide_on")?app.comment_confirm("댓글 숨김처리를 [ON] 하시겠습니까?",a):n.hasClass("hide_off")&&app.comment_confirm("댓글 숨김처리를 [OFF] 하시겠습니까?",a)})),e.on("click",".hide_text",(function(){var t=i(e);"close"===t.comment_hide_status?(e.find(".hide_target").removeClass("close"),t.comment_hide_status="open"):(e.find(".hide_target").addClass("close"),t.comment_hide_status="close"),a(e,t),t=null})),e.on("click",".btn_delete",(function(){var n=ve(this).val(),a=ve("#ct_"+n);if(a.find(".member_srl").val()<1)return ve(".comment_password_wrapper").hide(),void a.find(".comment_password_wrapper").show();app.comment_confirm("삭제하시겠습니까?",(function(){var a=i(e),r={};r.board_id=a.board_id,r.comment_id=n,r.article_id=a.article_id,r.is_child=ve("#ct_"+n).hasClass("child"),r.type=a.type,r.device=a.device,ve.ajax({url:a.api_url+"commentDelete",type:"POST",dataType:"json",data:r,xhrFields:{withCredentials:!0},success:function(n){n.success?(s(e,a.current_page,!1),a=null):(app.comment_alert(n.message),t=!1)},error:function(e,t,n){}})}))})),e.on("click",".btn_delete_w_password",(function(){var n=ve(this).val(),a=ve("#ct_"+n),r=(a.find(".member_srl").val(),a.find(".comment_password_wrapper").find(".comment_password").val());void 0!==r&&null!=r&&""!==r?(app.comment_confirm("삭제하시겠습니까?",(function(){var a=i(e),o={};o.board_id=a.board_id,o.comment_id=n,o.article_id=a.article_id,o.is_child=ve("#ct_"+n).hasClass("child"),o.type=a.type,o.device=a.device,o.comment_password=r,ve.ajax({url:a.api_url+"commentDelete",type:"POST",dataType:"json",data:o,xhrFields:{withCredentials:!0},success:function(n){n.success?(s(e,a.current_page,!1),a=null):(app.comment_alert(n.message),t=!1)},error:function(e,t,n){}})})),a.find(".comment_password_wrapper").hide()):alert("패스워드가 비어 있습니다.")}));var n=!1;e.on("click",".btn_like",(function(){if(ve("#is_logged").length>0){var t=i(e),a=ve(this),r={};if(r.board_id=t.board_id,r.comment_id=a.val(),r.is_recommend=1,n)return!1;n=!0,ve.ajax({url:t.api_url+"commentRecommend",type:"POST",dataType:"json",data:r,xhrFields:{withCredentials:!0},success:function(e){if(e.success){var i=e.count;i&&a.find(".num").text(i),n=!1,a.removeClass("animate"),a.addClass("animate"),setTimeout((function(){a.removeClass("animate")}),1e3)}else app.comment_alert(e.message),n=!1;t=null},error:function(e,t,i){n=!1}})}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),e.on("click",".btn_dislike",(function(){if(ve("#is_logged").length>0){var t=ve(this);app.comment_confirm("비추천을 하시겠습니까?",(function(){var a=i(e),r={};if(r.board_id=a.board_id,r.comment_id=t.val(),r.is_recommend=-1,n)return!1;n=!0,ve.ajax({url:a.api_url+"commentRecommend",type:"POST",dataType:"json",data:r,xhrFields:{withCredentials:!0},success:function(e){if(e.success){var i=e.count;i&&t.find(".num").text(i),n=!1;var r=e.available_disrecommend;alert("남은 비추천 횟수: "+r),t.removeClass("animate"),t.addClass("animate"),setTimeout((function(){t.removeClass("animate")}),700)}else app.comment_alert(e.message),n=!1;a=null},error:function(e,t,i){n=!1}})}))}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),e.on("click",".btn_report",(function(){if(ve("#is_logged").length>0){var t=i(e),n=ve(this).val(),a=app.popup("report");a.action((function(){var e={};e.board_id=t.board_id,e.article_id=t.article_id,ve(".article_url").length>0?e.article_url=ve(".article_url").val():e.article_url=location.href,e.comment_id=n,e.author_srl=ve("#ct_"+n).find("input.member_srl").val(),e.report_type=ve(".report_body").find("input[name=report_type]:radio:checked").val(),e.illegal_type="",ve(".report_body").find("input[name=illegal_type]:checkbox:checked").each((function(){e.illegal_type+=ve(this).val()})),e.reason_etc=ve(".report_body").find("#report_value").val(),"V"!==e.report_type||void 0!==e.illegal_type?(ve.ajax({url:t.api_url+"commentReport",type:"POST",dataType:"json",data:e,xhrFields:{withCredentials:!0},success:function(e){e.success?app.comment_alert("신고 완료."):app.comment_alert(e.message)},error:function(e,t,n){}}),a.close()):alert("불법촬영물 분류를 하나 이상 선택해주세요.")})),a.show()}else confirm("로그인 후 이용 가능 합니다. 로그인 하시겠습니까?")&&(location.href="https://user.ruliweb.com/member/login")})),e.on("click",".btn_comment_img",(function(){var t=i(e),n=ve(window).scrollTop();ve(window).one("dom_end_comment_page_change_handler",(function(){ve(window).scrollTop(n)})),t.cmtimg_current_status?(t.cmtimg_current_status=!1,app.set_cookie("cmtimg",0,10080,".ruliweb.com")):(t.cmtimg_current_status=!0,app.set_cookie("cmtimg",1,10080,".ruliweb.com")),a(e,t),s(e,t.current_page,!1)})),e.on("click",".comment_img_text",(function(){var t=i(e),n=ve(window).scrollTop();ve(window).one("dom_end_comment_page_change_handler",(function(){ve(window).scrollTop(n)})),t.cmtimg_current_status?(t.cmtimg_current_status=!1,app.set_cookie("cmtimg",0,10080,".ruliweb.com")):(t.cmtimg_current_status=!0,app.set_cookie("cmtimg",1,10080,".ruliweb.com")),a(e,t),s(e,t.current_page,!1)})),e.on("click",".btn_comment_refresh",(function(){app.comment_refresh(e)})),e.on("click",".close_password_wrapper",(function(){ve(".comment_password_wrapper").hide()}))}(ve(o)),r(ve(o)),c(ve(o)),l(ve(o)),u=ve(o),app.comment_img_drop=function(e,t){e.preventDefault(),e.dataTransfer.files.length>0&&d(e.dataTransfer.files[0],t)},app.comment_img=function(e){e.files.length>0&&d(e.files[0],e)},u.on("click",".common_img_button",(function(){this.parentElement.querySelector("input[type=file]").click()})),p(ve(o))}))},app.comment_refresh=function(e){s(e,i(e).current_page,!1)},app.comment_async_load_init=function(e){e.each((function(e,t){n(ve(t)),r(ve(t)),c(ve(t)),p(ve(t))}))},0!==(e=ve(".comment_container")).length)return app.init_comment_icon(),app.comment_initAll(e),app.comment_alert=function(e,t){alert(e)&&void 0!==t&&t()},app.comment_confirm=function(e,t,n){confirm(e)?void 0!==t&&t():void 0!==n&&n()},ve("#comment_mode").length>0&&"amp"===ve("#comment_mode").val()&&(app.comment_alert=function(e){var t=app.popup();t.title("댓글"),t.content(e),t.submit("확인"),t.show(),t=null},app.comment_confirm=function(e,t,n){var i=app.popup();i.title("댓글"),i.content(e),i.submit("확인"),void 0!==t&&i.action((function(){t(),i.close()})),void 0!==n&&(i.close_callback=n),i.is_cancel(!0,(function(){i.close()})),i.show()}),app.best_toggle=function(e){document.querySelector(".comment_table.best.hide")?(app.set_cookie("best_toggle","1",43200,".ruliweb.com"),"SPAN"===e.target.tagName.toUpperCase()?e.target.parentElement.innerHTML='<span class="icon_best">BEST</span> ON':e.target.innerHTML='<span class="icon_best">BEST</span> ON'):(app.set_cookie("best_toggle","0",43200,".ruliweb.com"),"SPAN"===e.target.tagName.toUpperCase()?e.target.parentElement.innerHTML='<span class="icon_best">BEST</span> OFF':e.target.innerHTML='<span class="icon_best">BEST</span> OFF'),document.querySelector(".comment_table.best")&&document.querySelector(".comment_table.best").classList.toggle("hide")},"comment";function n(e){var t={article_id:ve("input.article_id").val(),api_url:util_getUrl("url_api_ssl")+"/",active_reply_id:null,current_page:1,max_page_count:1*e.find(".c_mpc").val(),reply_count:1*e.find(".reply_count").text(),board_id:ve("#board_id").val(),type:"default",is_disable:!1,comment_hide_status:"close",cmtimg_current_status:!1,cmtimg_submit_status:!1,device:"default"};ve("body").hasClass("mobile")&&(t.device="m"),e.find(".comment_disable").length>0&&(t.is_disable=!0),ve(".comment_type").length>0&&(t.type=ve(".comment_type").val()),ve("#comment_type").length>0&&(t.type=ve("#comment_type").val()),ve(".comment_device").length>0&&(t.device=ve(".comment_device").val()),ve("#comment_device").length>0&&(t.device=ve("#comment_device").val()),e.parent().find(".comment_info").length>0&&(e.parent().find(".comment_info").find(".article_id").length>0&&(t.article_id=e.parent().find(".comment_info").find(".article_id").val()),e.parent().find(".comment_info").find(".board_id").length>0&&(t.board_id=e.parent().find(".comment_info").find(".board_id").val()),e.parent().find(".comment_info").find(".max_page_count").length>0&&(t.max_page_count=e.parent().find(".comment_info").find(".max_page_count").val()),e.parent().find(".comment_info").find(".comment_type").length>0&&(t.type=e.parent().find(".comment_info").find(".comment_type").val()),e.parent().find(".comment_info").find(".comment_device").length>0&&(t.device=e.parent().find(".comment_info").find(".comment_device").val())),ve(".btn_comment_img").length>0&&""+ve(".btn_comment_img").data("active")=="0"&&(t.cmtimg_current_status=!0),a(e,t),t=null}function i(e){var t=e.data("comment_info");return null==t&&(n(e),t=e.data("comment_info")),null!==t.board_id&&void 0!==t.board_id&&""!==t.board_id&&null!==t.article_id&&void 0!==t.article_id&&""!==t.article_id||(n(e),t=e.data("comment_info")),t}function a(e,t){e.data("comment_info",t)}function r(e){if(!i(e).is_disable&&0!==e.find(".common_input.comment_input").length){var t=e.find(".comment_input_btn");e.find(".comment_input").on("keydown",(function(t){t.ctrlKey&&13==t.keyCode&&o(e)})),t.on("click",(function(){o(e)}))}}function o(e){if(!0!==t){var n=i(e);if(!n.is_disable){var r=e.find(".comment_input"),o=r.val(),l=new FormData,c=r.closest(".common_write_wrapper"),u=!1,d=!1;if((null==(o=(o=o.replace(/^\s+/g,"")).replace(/\s+$/g,""))||""===o)&&(c.find(".preview").length>0&&(d=!0),c.find(".icon_preview").length>0&&void 0!==c.find(".icon_preview").attr("src")&&c.find(".icon_preview").attr("src").length>0&&(d=!0),!d))return app.comment_alert("내용을 넣어주세요."),!1;if(t=!0,r.attr("disabled",!0),c.append('<div class="comment_progress_blocker" style="position:absolute;width:100%;height:100%;top:0;,left:0;"></div>'),c.find(".preview").length>0&&void 0!==c[0].uploadFile&&null!==c[0].uploadFile&&(l.append("file",c[0].uploadFile),u=!0,c.find(".preview").after("<p><strong>전송중...</strong></p>"),c.find(".preview").remove()),c.find(".icon_preview").length>0&&void 0!==c.find(".icon_preview").attr("src")&&c.find(".icon_preview").attr("src").length>0&&l.append("comment_img",c.find(".icon_preview").attr("src")),l.append("content",o),l.append("article_id",n.article_id),l.append("board_id",n.board_id),l.append("type",n.type),l.append("device",n.device),l.append("is_comment_img",u),ve("#is_logged").length<1){if(l.append("nick",c.find(".comment_nick").val()),l.append("password",c.find(".comment_password").val()),c.find(".captcha_input").length>0){var p=c.find(".captcha_input").val();if(null==p||""===p)return app.comment_alert("자동입력방지 문자를 입력해주세요."),r.attr("disabled",!1),c.find(".comment_progress_blocker").remove(),!1;l.append("captcha_input",p)}window.localStorage.setItem("anonymous_nick",c.find(".comment_nick").val()),window.localStorage.setItem("anonymous_pw",c.find(".comment_password").val())}ve(".rating_comment").length>0&&l.append("score",ve("#rating_value").val()||0),ve.ajax({url:n.api_url+"commentWrite",type:"POST",processData:!1,contentType:!1,data:l,xhrFields:{withCredentials:!0},success:function(i){i.success?(u&&(r.parents(".common_write_wrapper").find(".common_img_preview_wrapper").remove(),r.parents(".common_write_wrapper").find(".common_input_wrapper").removeClass("add_common_img_preview")),r.val(""),r.parents(".common_write_wrapper").find(".comment_placeholder").show(),s(e,n.current_page,!1),n.cmtimg_submit_status=!1,a(e,n),i.event_result&&app.comment_alert(i.message)):-1!==i.message.search("인증")?app.comment_confirm(i.message,(function(){location.href=util_getUrl("user")+"/cert"})):(r.attr("disabled",!1),c.find(".comment_progress_blocker").remove(),app.comment_alert(i.message)),t=!1,ve("#is_logged").length<1&&c.find(".captcha_image").attr("src",(function(){return ve(this).attr("src")+n.api_url+"captcha?board_id="+n.board_id+"&article_id="+n.article_id+"&a="+Math.random()}))},error:function(e,n,i){t=!1}})}}}function s(e,n,a){var o=i(e);app.log("[comment_page_change_handler] comment_info",o);var s={};s.page=n||"1",s.article_id=o.article_id,s.board_id=o.board_id,s.type=o.type,s.device=o.device,e.find(".btn_comment_img").length>0&&(o.cmtimg_current_status?s.cmtimg="1":s.cmtimg="0"),app.log("[comment_page_change_handler] post",s),ve.ajax({url:o.api_url+"commentView",type:"POST",dataType:"json",data:s,xhrFields:{withCredentials:!0},success:function(n){if(n.success){if(e.html(n.view),l(e,n.page_info),r(e),!ve("body").hasClass("mobile"))if(!0===a){var i=e.position();ve(window).scrollTop()>i.top&&ve(window).scrollTop(i.top+150)}else ve(window).trigger("dom_end_comment_page_change_handler");"open"===o.comment_hide_status&&e.find(".hide_target").removeClass("close"),p(e),t=!1}else app.comment_alert(n.message),t=!1},error:function(e,t,n){}})}function l(e,t){var n=i(e);if(null==t){n.max_page_count=Math.ceil(n.reply_count/100);var r=Math.ceil(n.current_page/10),o=Math.ceil(n.max_page_count/10),s=Math.floor(10*(r-1)+1),l=s+10-1;l>n.max_page_count&&(l=n.max_page_count),n.start_page=s,n.end_page=l,n.current_block=r,n.end_block=o}else n.reply_count=1*t.comment_count,n.max_page_count=1*t.max_page_count,n.start_page=1*t.start_page,n.end_page=1*t.end_page,n.current_block=1*t.current_block,n.end_block=1*t.end_block;a(e,n)}function c(e){e.on("click",".btn_reply",(function(){var t=i(e);if(!t.is_disable){t.active_reply_id=ve(this).val(),e.find(".comment_reply").hide(),e.find(".captcha_image_r").attr("src","");var n=ve("#rct_"+t.active_reply_id);n.show(0,(function(){n.find(".captcha_image_r").attr("src",(function(){return ve(this).attr("src")+t.api_url+"captcha?reply&board_id="+t.board_id+"&article_id="+t.article_id+"&a="+Math.random()}))})),a(e,t),t=null}})),e.on("keydown",(function(t){i(e).is_disable||t.ctrlKey&&13==t.keyCode&&u(e)})),e.on("click",".reply_input_btn",(function(){i(e).is_disable||u(e)}))}function u(e){if(!0!==t){var n=i(e),r=e.find("#rct_"+n.active_reply_id).find(".reply_input"),o=r.val(),l=new FormData,c=r.closest(".common_write_wrapper"),u=!1,d=!1;if(e.find("#rct_"+n.active_reply_id).find(".common_input_btn").hasClass("disable"))return!1;if((null==(o=(o=o.replace(/^\s+/g,"")).replace(/\s+$/g,""))||""===o)&&(c.find(".preview").length>0&&(d=!0),c.find(".icon_preview").length>0&&void 0!==c.find(".icon_preview").attr("src")&&c.find(".icon_preview").attr("src").length>0&&(d=!0),!d))return app.comment_alert("내용을 넣어주세요."),!1;if(t=!0,r.attr("disabled",!0),c.append('<div class="comment_progress_blocker" style="position:absolute;width:100%;height:100%;top:0;,left:0;"></div>'),c.find(".preview").length>0&&void 0!==c[0].uploadFile&&null!==c[0].uploadFile&&(l.append("file",c[0].uploadFile),u=!0,c.find(".preview").after("<p><strong>전송중...</strong></p>"),c.find(".preview").remove()),c.find(".icon_preview").length>0&&void 0!==c.find(".icon_preview").attr("src")&&c.find(".icon_preview").attr("src").length>0&&l.append("comment_img",c.find(".icon_preview").attr("src")),l.append("content",o),l.append("article_id",n.article_id),l.append("board_id",n.board_id),l.append("type",n.type),l.append("device",n.device),l.append("is_comment_img",u),l.append("parent",n.active_reply_id),ve("#is_logged").length<1){if(l.append("nick",c.find(".comment_nick").val()),l.append("password",c.find(".comment_password").val()),c.find(".captcha_input").length>0){var p=c.find(".captcha_input").val();if(null==p||""===p)return app.comment_alert("자동입력방지 문자를 입력해주세요."),r.attr("disabled",!1),c.find(".comment_progress_blocker").remove(),!1}l.append("captcha_input",p),window.localStorage.setItem("anonymous_nick",c.find(".comment_nick").val()),window.localStorage.setItem("anonymous_pw",c.find(".comment_password").val())}ve.ajax({url:n.api_url+"commentWrite",type:"POST",processData:!1,contentType:!1,data:l,xhrFields:{withCredentials:!0},success:function(o){o.success?(u&&(r.parents(".common_write_wrapper").find(".common_write_wrapper").find(".common_img_preview_wrapper").remove(),r.parents(".common_write_wrapper").find(".common_write_wrapper").find(".common_input_wrapper").removeClass("add_common_img_preview")),s(e,n.current_page,!1),(n=i(e)).cmtimg_submit_status=!1,a(e,n),n=null):(app.comment_alert(o.message),t=!1)},error:function(e,t,n){}})}}function d(e,t){var n=ve(t).closest(".common_write_wrapper"),i=n.find(".preview"),a=n.find(".icon_preview"),r=null,o=function(e){let t=null;const n=["gif","jpg","jpeg","png","webp","mp4"];let i={result:!1,message:""};return null===e?i:(t=e.name.toLocaleLowerCase().substring(e.name.lastIndexOf(".")+1),e.size>10485760?(i.result=!1,i.message="10MB 이하 파일만 전송할 수 있습니다.",i):(n.forEach((function(e){t==e&&(i.result=!0)})),i?(i.result=!0,i):(i.result=!1,i.message=n.join(","),i)))}(e);if(o.result){i.remove(),a.remove(),"video/mp4"===e.type?n.find(".common_input_wrapper").before('<video class="comment-input-video-preview preview block" autoplay="" loop="" muted="" style="max-width:100%;" src=""></video>'):n.find(".common_input_wrapper").before('<img class="comment-input-image-preview preview block" style="max-width:100%;" src="">'),i=n.find(".preview"),n=n[0],i.on("click",(function(){i.remove(),n.uploadFile=null,n.preview=null}));try{(r=new FileReader).readAsDataURL(e),r.addEventListener("loadend",(function(e,t){i.attr("src",this.result)})),n.uploadFile=e,n.preview=i}catch(e){i.remove(),a.remove(),n.uploadFile=null,n.preview=null}}else alert(o.message)}function p(e){var t=new me({urls:{schemeMatches:!0,wwwMatches:!0,tldMatches:!0},email:!1,phone:!1,mention:!1,hashtag:!1,stripPrefix:!1,stripTrailingSlash:!0,newWindow:!0,truncate:{length:0,location:"end"},className:"link"});if(ve(".comment").find(".text_wrapper").each((function(e,n){ve(n).html(t.link(ve(n).html()))})),app.init_gifct(ve(".comment_view_wrapper"),!0),ve(".comment_view_wrapper").on("click","a.img_load",(function(e){e.preventDefault(),app.image_view_d(this)})),ve(".comment_view_wrapper").on("click","a.img_load_m",(function(e){e.preventDefault(),app.image_view_m(this)})),ve("#is_logged").length<1){var n=window.localStorage.getItem("anonymous_nick");null!==n&&ve(".comment_nick").val(n);var i=window.localStorage.getItem("anonymous_pw");null!==i&&ve(".comment_password").val(i)}f(e),function(e){e.find(".btn_comment_video").click((function(){var t=localStorage.getItem("comment_video");null===t&&(t="1"),"1"===t?(t="0",t=localStorage.setItem("comment_video",t)):"0"===t&&(t="1",t=localStorage.setItem("comment_video",t)),f(e)}))}(e),function(e){e.find(".user").each((function(e,t){var n="";if((n=new Image).onload=function(){var e=40,i=ve(t).find(".user_info_wrapper .nick");ve("body").hasClass("mobile")&&(i=ve(t).find(".nick_link"),e=30);var a='<img class="profile_image_m" loading="lazy" width="'+e+'" height="'+e+'" src="'+n.src+'" alt="profile_image">';i.before(a)},ve(t).find(".member_srl").length>0){var i=ve(t).find(".member_srl").val(),a=Math.floor(i/1e4);switch(a="p/i"+a+"/m"+i+".jpg",i.slice(-1)){case"0":case"1":case"2":n.src="https://i1.ruliweb.com/profile_m/"+a;break;case"3":case"4":case"5":n.src="https://i2.ruliweb.com/profile_m/"+a;break;case"6":case"7":case"8":case"9":n.src="https://i3.ruliweb.com/profile_m/"+a}}}))}(e),function(){app.log("[board_read] twitter_auto_embeded");const e="https://platform.twitter.com/widgets.js",t=document.querySelectorAll("script");let n=!1;if(t.forEach((t=>{t.src===e&&(n=!0)})),!n)return!1;if(document.querySelectorAll(".comment_container .text a"))for(const e of document.querySelectorAll(".comment_container .text a"))if(!ve(e).hasClass("embeded")&&void 0!==e.href){let t=e.href;t=e.href.split("/");let n=0;for(const e of t)(e.indexOf("twitter.com")>-1||e.indexOf("x.com")>-1)&&n++,e.indexOf("status")>-1&&n++;if(2===n){ve(e).addClass("embeded");let t=`\n              <blockquote class="twitter-tweet loading-spinner">\n                <a href="${e.href.replace("x.com","twitter.com")}"></a>\n              </blockquote>\n              `;e.outerHTML=e.outerHTML+t}}"undefined"!=typeof twttr&&twttr.widgets.load()}(),app.user_block_init(),app.font_change.init()}function f(e){if(document.querySelector(".btn_comment_video")){var t=localStorage.getItem("comment_video"),n="ON",a=null,r=null;"0"===t?(n="OFF",ve(".comment_video").remove()):(localStorage.setItem("comment_video","1"),e.find(".text").each((function(t,n){!function t(n){if(ve(n).find("a").length>0)ve(n).find("a").each((function(e,n){t(n)}));else if(a=ve(n).text().match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/),r=null!==(r=ve(n).text().match(/^https?:\/\/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch?v=)([^#&?]*).*(t=([0-9]+)).*/))&&void 0!==r[3]?"?start="+r[3]:"",null!==a&&void 0!==a[1])if(a=a[1],ve("body").hasClass("mobile"))ve(n).html('<div class="comment_video"><iframe style="width:100%; height:100%; position:absolute;" src="https://www.youtube.com/embed/'+a+r+'" frameborder="0" allowfullscreen></iframe></div>'+ve(n).html());else{var o="width:640px; height:360px; max-width:100%; position:relative;";"news"===i(e).type&&(o="width:520px; height:233px; max-width:100%; position:relative;"),ve(n).html('<div class="comment_video"><iframe style="'+o+'" src="https://www.youtube.com/embed/'+a+r+'" frameborder="0" allowfullscreen></iframe></div>'+ve(n).html())}}(n)}))),e.find(".btn_comment_video_text").text(n)}}}));i(2097),i(6649),i(881),i(9424),i(2119),i(1723),i(9909),i(9817),i(3324),i(1989),i(4944),i(3224),i(3730),i(2686),i(8706),i(2850),i(8710),i(8236),i(6409),i(8499),i(737),i(7395),i(6561),i(1076),i(2415),i(3812),i(6586),i(6742);function _e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function be(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:_e(t[n])&&_e(e[n])&&Object.keys(t[n]).length>0&&be(e[n],t[n])}))}const we={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ye(){const e="undefined"!=typeof document?document:{};return be(e,we),e}const xe={document:we,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Ce(){const e="undefined"!=typeof window?window:{};return be(e,xe),e}class ke extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function Ae(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...Ae(e)):t.push(e)})),t}function Te(e,t){return Array.prototype.filter.call(e,t)}function Se(e,t){const n=Ce(),i=ye();let a=[];if(!t&&e instanceof ke)return e;if(!e)return new ke(a);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)a.push(t.childNodes[e])}else a=function(e,t){if("string"!=typeof e)return[e];const n=[],i=t.querySelectorAll(e);for(let e=0;e<i.length;e+=1)n.push(i[e]);return n}(e.trim(),t||i)}else if(e.nodeType||e===n||e===i)a.push(e);else if(Array.isArray(e)){if(e instanceof ke)return e;a=e}return new ke(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(a))}Se.fn=ke.prototype;const Ee="resize scroll".split(" ");function De(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)Ee.indexOf(e)<0&&(e in this[t]?this[t][e]():Se(this[t]).trigger(e));return this}return this.on(e,...t)}}De("click"),De("blur"),De("focus"),De("focusin"),De("focusout"),De("keyup"),De("keydown"),De("keypress"),De("submit"),De("change"),De("mousedown"),De("mousemove"),De("mouseup"),De("mouseenter"),De("mouseleave"),De("mouseout"),De("mouseover"),De("touchstart"),De("touchend"),De("touchmove"),De("resize"),De("scroll");const Me={addClass:function(...e){const t=Ae(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=Ae(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=Ae(e.map((e=>e.split(" "))));return Te(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=Ae(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let[t,n,i,a]=e;function r(e){const t=e.target;if(!t)return;const a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),Se(t).is(n))i.apply(t,a);else{const e=Se(t).parents();for(let t=0;t<e.length;t+=1)Se(e[t]).is(n)&&i.apply(e[t],a)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([t,i,a]=e,n=void 0),a||(a=!1);const s=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(l=0;l<s.length;l+=1){const e=s[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:i,proxyListener:r}),t.addEventListener(e,r,a)}else for(l=0;l<s.length;l+=1){const e=s[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:i,proxyListener:o}),t.addEventListener(e,o,a)}}return this},off:function(...e){let[t,n,i,a]=e;"function"==typeof e[1]&&([t,i,a]=e,n=void 0),a||(a=!1);const r=t.split(" ");for(let e=0;e<r.length;e+=1){const t=r[e];for(let e=0;e<this.length;e+=1){const r=this[e];let o;if(!n&&r.dom7Listeners?o=r.dom7Listeners[t]:n&&r.dom7LiveListeners&&(o=r.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){const n=o[e];i&&n.listener===i||i&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===i?(r.removeEventListener(t,n.proxyListener,a),o.splice(e,1)):i||(r.removeEventListener(t,n.proxyListener,a),o.splice(e,1))}}}return this},trigger:function(...e){const t=Ce(),n=e[0].split(" "),i=e[1];for(let a=0;a<n.length;a+=1){const r=n[a];for(let n=0;n<this.length;n+=1){const a=this[n];if(t.CustomEvent){const n=new t.CustomEvent(r,{detail:i,bubbles:!0,cancelable:!0});a.dom7EventData=e.filter(((e,t)=>t>0)),a.dispatchEvent(n),a.dom7EventData=[],delete a.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(i){i.target===this&&(e.call(this,i),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=Ce();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=Ce(),t=ye(),n=this[0],i=n.getBoundingClientRect(),a=t.body,r=n.clientTop||a.clientTop||0,o=n.clientLeft||a.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:i.top+s-r,left:i.left+l-o}}return null},css:function(e,t){const n=Ce();let i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(const t in e)this[i].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,n)=>{e.apply(t,[t,n])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=Ce(),n=ye(),i=this[0];let a,r;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(a=Se(e),r=0;r<a.length;r+=1)if(a[r]===i)return!0;return!1}if(e===n)return i===n;if(e===t)return i===t;if(e.nodeType||e instanceof ke){for(a=e.nodeType?[e]:e,r=0;r<a.length;r+=1)if(a[r]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return Se([]);if(e<0){const n=t+e;return Se(n<0?[]:[this[n]])}return Se([this[e]])},append:function(...e){let t;const n=ye();for(let i=0;i<e.length;i+=1){t=e[i];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const i=n.createElement("div");for(i.innerHTML=t;i.firstChild;)this[e].appendChild(i.firstChild)}else if(t instanceof ke)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){const t=ye();let n,i;for(n=0;n<this.length;n+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,i=a.childNodes.length-1;i>=0;i-=1)this[n].insertBefore(a.childNodes[i],this[n].childNodes[0])}else if(e instanceof ke)for(i=0;i<e.length;i+=1)this[n].insertBefore(e[i],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&Se(this[0].nextElementSibling).is(e)?Se([this[0].nextElementSibling]):Se([]):this[0].nextElementSibling?Se([this[0].nextElementSibling]):Se([]):Se([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return Se([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;e?Se(i).is(e)&&t.push(i):t.push(i),n=i}return Se(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&Se(t.previousElementSibling).is(e)?Se([t.previousElementSibling]):Se([]):t.previousElementSibling?Se([t.previousElementSibling]):Se([])}return Se([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return Se([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;e?Se(i).is(e)&&t.push(i):t.push(i),n=i}return Se(t)},parent:function(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Se(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Se(t)},parents:function(e){const t=[];for(let n=0;n<this.length;n+=1){let i=this[n].parentNode;for(;i;)e?Se(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return Se(t)},closest:function(e){let t=this;return void 0===e?Se([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].querySelectorAll(e);for(let e=0;e<i.length;e+=1)t.push(i[e])}return Se(t)},children:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].children;for(let n=0;n<i.length;n+=1)e&&!Se(i[n]).is(e)||t.push(i[n])}return Se(t)},filter:function(e){return Se(Te(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(Me).forEach((e=>{Object.defineProperty(Se.fn,e,{value:Me[e],writable:!0})}));const Ie=Se;function je(e,t=0){return setTimeout(e,t)}function Fe(){return Date.now()}function Oe(e,t="x"){const n=Ce();let i,a,r;const o=function(e){const t=Ce();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(a=o.transform||o.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new n.WebKitCSSMatrix("none"===a?"":a)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(a=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(a=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),a||0}function Le(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Be(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let a=1;a<e.length;a+=1){const r=e[a];if(null!=r&&(i=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const e=Object.keys(Object(r)).filter((e=>n.indexOf(e)<0));for(let n=0,i=e.length;n<i;n+=1){const i=e[n],a=Object.getOwnPropertyDescriptor(r,i);void 0!==a&&a.enumerable&&(Le(t[i])&&Le(r[i])?r[i].__swiper__?t[i]=r[i]:Be(t[i],r[i]):!Le(t[i])&&Le(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:Be(t[i],r[i])):t[i]=r[i])}}}var i;return t}function Ne(e,t,n){e.style.setProperty(t,n)}function Pe({swiper:e,targetPosition:t,side:n}){const i=Ce(),a=-e.translate;let r,o=null;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{r=(new Date).getTime(),null===o&&(o=r);const l=Math.max(Math.min((r-o)/s,1),0),d=.5-Math.cos(l*Math.PI)/2;let p=a+d*(t-a);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})})),void i.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=i.requestAnimationFrame(u)};u()}let ze,qe,Re;function Ue(){return ze||(ze=function(){const e=Ce(),t=ye();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ze}function He(e={}){return qe||(qe=function({userAgent:e}={}){const t=Ue(),n=Ce(),i=n.navigator.platform,a=e||n.navigator.userAgent,r={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let f="MacIntel"===i;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${s}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(r.os="android",r.android=!0),(c||d||u)&&(r.os="ios",r.ios=!0),r}(e)),qe}function $e(){return Re||(Re=function(){const e=Ce();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),Re}const Ge={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const a=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][a](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function a(...n){i.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(i,n)}return a.__emitterProxy=t,i.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,a)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(a,1)}))})),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,a;"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),a=t):(n=e[0].events,i=e[0].data,a=e[0].context||t),i.unshift(a);return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(a,[e,...i])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(a,i)}))})),t}};const We={updateSize:function(){const e=this;let t,n;const i=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i[0].clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),n=n-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const i=e.params,{$wrapperEl:a,size:r,rtlTranslate:o,wrongRTL:s}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=a.children(`.${e.params.slideClass}`),d=l?e.virtual.slides.length:u.length;let p=[];const f=[],h=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(e));const v=e.snapGrid.length,_=e.slidesGrid.length;let b=i.spaceBetween,w=-m,y=0,x=0;if(void 0===r)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*r),e.virtualSize=-b,o?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(Ne(e.wrapperEl,"--swiper-centered-offset-before",""),Ne(e.wrapperEl,"--swiper-centered-offset-after",""));const C=i.grid&&i.grid.rows>1&&e.grid;let k;C&&e.grid.initSlides(d);const A="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let a=0;a<d;a+=1){k=0;const o=u.eq(a);if(C&&e.grid.updateSlide(a,o,d,t),"none"!==o.css("display")){if("auto"===i.slidesPerView){A&&(u[a].style[t("width")]="");const r=getComputedStyle(o[0]),s=o[0].style.transform,l=o[0].style.webkitTransform;if(s&&(o[0].style.transform="none"),l&&(o[0].style.webkitTransform="none"),i.roundLengths)k=e.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{const e=n(r,"width"),t=n(r,"padding-left"),i=n(r,"padding-right"),a=n(r,"margin-left"),s=n(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+a+s;else{const{clientWidth:n,offsetWidth:r}=o[0];k=e+t+i+a+s+(r-n)}}s&&(o[0].style.transform=s),l&&(o[0].style.webkitTransform=l),i.roundLengths&&(k=Math.floor(k))}else k=(r-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(k=Math.floor(k)),u[a]&&(u[a].style[t("width")]=`${k}px`);u[a]&&(u[a].swiperSlideSize=k),h.push(k),i.centeredSlides?(w=w+k/2+y/2+b,0===y&&0!==a&&(w=w-r/2-b),0===a&&(w=w-r/2-b),Math.abs(w)<.001&&(w=0),i.roundLengths&&(w=Math.floor(w)),x%i.slidesPerGroup==0&&p.push(w),f.push(w)):(i.roundLengths&&(w=Math.floor(w)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+k+b),e.virtualSize+=k+b,y=k,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,o&&s&&("slide"===i.effect||"coverflow"===i.effect)&&a.css({width:`${e.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&a.css({[t("width")]:`${e.virtualSize+i.spaceBetween}px`}),C&&e.grid.updateWrapperSize(k,p,t),!i.centeredSlides){const t=[];for(let n=0;n<p.length;n+=1){let a=p[n];i.roundLengths&&(a=Math.floor(a)),p[n]<=e.virtualSize-r&&t.push(a)}p=t,Math.floor(e.virtualSize-r)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-r)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){const n=e.isHorizontal()&&o?"marginLeft":t("marginRight");u.filter(((e,t)=>!i.cssMode||t!==u.length-1)).css({[n]:`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween;const t=e-r;p=p.map((e=>e<0?-m:e>t?t+g:e))}if(i.centerInsufficientSlides){let e=0;if(h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween,e<r){const t=(r-e)/2;p.forEach(((e,n)=>{p[n]=e-t})),f.forEach(((e,n)=>{f[n]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ne(e.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),Ne(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==_&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.$el.hasClass(t);d<=i.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let a,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||Ie([])).each((e=>{n.push(e)}));else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const e=t.activeIndex+a;if(e>t.slides.length&&!i)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(void 0!==n[a]){const e=n[a].offsetHeight;r=e>r?e:r}(r||0===r)&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:a,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;a&&(o=e),i.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<i.length;e+=1){const s=i[e];let l=s.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=i[0].swiperSlideOffset);const c=(o+(n.centeredSlides?t.minTranslate():0)-l)/(s.swiperSlideSize+n.spaceBetween),u=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-l)/(s.swiperSlideSize+n.spaceBetween),d=-(o-l),p=d+t.slidesSizesGrid[e];(d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e),i.eq(e).addClass(n.slideVisibleClass)),s.progress=a?-c:c,s.originalProgress=a?-u:u}t.visibleSlides=Ie(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:r,isEnd:o}=t;const s=r,l=o;0===i?(a=0,r=!0,o=!0):(a=(e-t.minTranslate())/i,r=a<=0,o=a>=1),Object.assign(t,{progress:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!s&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(s&&!r||l&&!o)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,$wrapperEl:i,activeIndex:a,realIndex:r}=e,o=e.virtual&&n.virtual.enabled;let s;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),s=o?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${a}"]`):t.eq(a),s.addClass(n.slideActiveClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass));let l=s.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));let c=s.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=t.eq(-1),c.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:a,params:r,activeIndex:o,realIndex:s,snapIndex:l}=t;let c,u=e;if(void 0===u){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?u=e:n>=i[e]&&n<i[e+1]&&(u=e+1):n>=i[e]&&(u=e);r.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(a.indexOf(n)>=0)c=a.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,u);c=e+Math.floor((u-e)/r.slidesPerGroup)}if(c>=a.length&&(c=a.length-1),u===o)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const d=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:c,realIndex:d,previousIndex:o,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,i=Ie(e).closest(`.${n.slideClass}`)[0];let a,r=!1;if(i)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===i){r=!0,a=e;break}if(!i||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(Ie(i).attr("data-swiper-slide-index"),10):t.clickedIndex=a,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};const Ye={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,$wrapperEl:a}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=Oe(a[0],e);return n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:a,$wrapperEl:r,wrapperEl:o,progress:s}=n;let l,c=0,u=0;n.isHorizontal()?c=i?-e:e:u=e,a.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),a.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-u:a.virtualTranslate||r.transform(`translate3d(${c}px, ${u}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:u;const d=n.maxTranslate()-n.minTranslate();l=0===d?0:(e-n.minTranslate())/d,l!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,a){const r=this,{params:o,wrapperEl:s}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let u;if(u=i&&e>l?l:i&&e<c?c:e,r.updateProgress(u),o.cssMode){const e=r.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-u;else{if(!r.support.smoothScroll)return Pe({swiper:r,targetPosition:-u,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(u),n&&(r.emit("beforeTransitionStart",t,a),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(u),n&&(r.emit("beforeTransitionStart",t,a),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,n&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}};function Qe({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:a,previousIndex:r}=e;let o=n;if(o||(o=a>r?"next":a<r?"prev":"reset"),e.emit(`transition${i}`),t&&a!==r){if("reset"===o)return void e.emit(`slideResetTransition${i}`);e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}const Ze={slideTo:function(e=0,t=this.params.speed,n=!0,i,a){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let o=e;o<0&&(o=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:f,enabled:h}=r;if(r.animating&&s.preventInteractionOnTransition||!h&&!i&&!a)return!1;const m=Math.min(r.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(s.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(r.initialized&&o!==d){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==o)return!1}let _;if(o!==(u||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),_=o>d?"next":o<d?"prev":"reset",p&&-v===r.translate||!p&&v===r.translate)return r.updateActiveIndex(o),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(v),"reset"!==_&&(r.transitionStart(n,_),r.transitionEnd(n,_)),!1;if(s.cssMode){const e=r.isHorizontal(),n=p?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return Pe({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,_),0===t?r.transitionEnd(n,_):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,_))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,i){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const a=this;let r=e;return a.params.loop&&(r+=a.loopedSlides),a.slideTo(r,t,n,i)},slideNext:function(e=this.params.speed,t=!0,n){const i=this,{animating:a,enabled:r,params:o}=i;if(!r)return i;let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:s;if(o.loop){if(a&&o.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const i=this,{params:a,animating:r,snapGrid:o,slidesGrid:s,rtlTranslate:l,enabled:c}=i;if(!c)return i;if(a.loop){if(r&&a.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const d=u(l?i.translate:-i.translate),p=o.map((e=>u(e)));let f=o[p.indexOf(d)-1];if(void 0===f&&a.cssMode){let e;o.forEach(((t,n)=>{d>=t&&(e=n)})),void 0!==e&&(f=o[e>0?e-1:e])}let h=0;if(void 0!==f&&(h=s.indexOf(f),h<0&&(h=i.activeIndex-1),"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(h=h-i.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),a.rewind&&i.isBeginning){const a=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(a,e,t,n)}return i.slideTo(h,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,i=.5){const a=this;let r=a.activeIndex;const o=Math.min(a.params.slidesPerGroupSkip,r),s=o+Math.floor((r-o)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[s]){const e=a.snapGrid[s];l-e>(a.snapGrid[s+1]-e)*i&&(r+=a.params.slidesPerGroup)}else{const e=a.snapGrid[s-1];l-e<=(a.snapGrid[s]-e)*i&&(r-=a.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,a.slidesGrid.length-1),a.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,r=e.clickedIndex;if(t.loop){if(e.animating)return;a=parseInt(Ie(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-i/2||r>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),je((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-i?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),je((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};const Ve={loopCreate:function(){const e=this,t=ye(),{params:n,$wrapperEl:i}=e,a=i.children().length>0?Ie(i.children()[0].parentNode):i;a.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let r=a.children(`.${n.slideClass}`);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-r.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let i=0;i<e;i+=1){const e=Ie(t.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);a.append(e)}r=a.children(`.${n.slideClass}`)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>r.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=r.length);const o=[],s=[];r.each(((e,t)=>{Ie(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/r.length)*r.length;s.push(r.eq(e)[0]),o.unshift(r.eq(r.length-e-1)[0])}for(let e=0;e<s.length;e+=1)a.append(Ie(s[e].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let e=o.length-1;e>=0;e-=1)a.prepend(Ie(o[e].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:i,allowSlidePrev:a,allowSlideNext:r,snapGrid:o,rtlTranslate:s}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-o[t]-e.getTranslate();if(t<i){l=n.length-3*i+t,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((s?-e.translate:e.translate)-c)}else if(t>=n.length-i){l=-n.length+t+i,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((s?-e.translate:e.translate)-c)}e.allowSlidePrev=a,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};function Xe(e){const t=this,n=ye(),i=Ce(),a=t.touchEventsData,{params:r,touches:o,enabled:s}=t;if(!s)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=Ie(l.target);if("wrapper"===r.touchEventsTarget&&!c.closest(t.wrapperEl).length)return;if(a.isTouchEvent="touchstart"===l.type,!a.isTouchEvent&&"which"in l&&3===l.which)return;if(!a.isTouchEvent&&"button"in l&&l.button>0)return;if(a.isTouched&&a.isMoved)return;const u=!!r.noSwipingClass&&""!==r.noSwipingClass,d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=Ie(d[0]));const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,f=!(!l.target||!l.target.shadowRoot);if(r.noSwiping&&(f?function(e,t=this){return function t(n){if(!n||n===ye()||n===Ce())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(p,c[0]):c.closest(p)[0]))return void(t.allowClick=!0);if(r.swipeHandler&&!c.closest(r.swipeHandler)[0])return;o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const h=o.currentX,m=o.currentY,g=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,v=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(g&&(h<=v||h>=i.innerWidth-v)){if("prevent"!==g)return;e.preventDefault()}if(Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=m,a.touchStartTime=Fe(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;c.is(a.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(a.isTouched=!1)),n.activeElement&&Ie(n.activeElement).is(a.focusableElements)&&n.activeElement!==c[0]&&n.activeElement.blur();const i=e&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!i||c[0].isContentEditable||l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function Je(e){const t=ye(),n=this,i=n.touchEventsData,{params:a,touches:r,rtlTranslate:o,enabled:s}=n;if(!s)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l));if(i.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=u,void(r.startY=d);if(!n.allowTouchMove)return Ie(l.target).is(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=Fe()));if(i.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(d<r.startY&&n.translate<=n.maxTranslate()||d>r.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<r.startX&&n.translate<=n.maxTranslate()||u>r.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&Ie(l.target).is(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=u,r.currentY=d;const p=r.currentX-r.startX,f=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(p**2+f**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",l),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),i.isMoved||(a.loop&&!a.cssMode&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!a.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),i.isMoved=!0;let h=n.isHorizontal()?p:f;r.diff=h,h*=a.touchRatio,o&&(h=-h),n.swipeDirection=h>0?"prev":"next",i.currentTranslate=h+i.startTranslate;let m=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),h>0&&i.currentTranslate>n.minTranslate()?(m=!1,a.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+h)**g)):h<0&&i.currentTranslate<n.maxTranslate()&&(m=!1,a.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-h)**g)),m&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),a.threshold>0){if(!(Math.abs(h)>a.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function Ke(e){const t=this,n=t.touchEventsData,{params:i,touches:a,rtlTranslate:r,slidesGrid:o,enabled:s}=t;if(!s)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=Fe(),u=c-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),u<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=Fe(),je((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=i.followFinger?r?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:d});let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[e+t]?d>=o[e]&&d<o[e+t]&&(p=e,f=o[e+t]-o[e]):d>=o[e]&&(p=e,f=o[o.length-1]-o[o.length-2])}let h=null,m=null;i.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));const g=(d-o[p])/f,v=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?h:p+v):t.slideTo(p)),"prev"===t.swipeDirection&&(g>1-i.longSwipesRatio?t.slideTo(p+v):null!==m&&g<0&&Math.abs(g)>i.longSwipesRatio?t.slideTo(m):t.slideTo(p))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):("next"===t.swipeDirection&&t.slideTo(null!==h?h:p+v),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:p))}}function et(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:a,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=a,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function tt(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function nt(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let a;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();a=0===r?0:(e.translate-e.minTranslate())/r,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let it=!1;function at(){}const rt=(e,t)=>{const n=ye(),{params:i,touchEvents:a,el:r,wrapperEl:o,device:s,support:l}=e,c=!!i.nested,u="on"===t?"addEventListener":"removeEventListener",d=t;if(l.touch){const t=!("touchstart"!==a.start||!l.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};r[u](a.start,e.onTouchStart,t),r[u](a.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),r[u](a.end,e.onTouchEnd,t),a.cancel&&r[u](a.cancel,e.onTouchEnd,t)}else r[u](a.start,e.onTouchStart,!1),n[u](a.move,e.onTouchMove,c),n[u](a.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&r[u]("click",e.onClick,!0),i.cssMode&&o[u]("scroll",e.onScroll),i.updateOnWindowResize?e[d](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",et,!0):e[d]("observerUpdate",et,!0)};const ot={attachEvents:function(){const e=this,t=ye(),{params:n,support:i}=e;e.onTouchStart=Xe.bind(e),e.onTouchMove=Je.bind(e),e.onTouchEnd=Ke.bind(e),n.cssMode&&(e.onScroll=nt.bind(e)),e.onClick=tt.bind(e),i.touch&&!it&&(t.addEventListener("touchstart",at),it=!0),rt(e,"on")},detachEvents:function(){rt(this,"off")}},st=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;const lt={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:i=0,params:a,$el:r}=e,o=a.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,c=st(e,a),u=st(e,l),d=a.enabled;c&&!u?(r.removeClass(`${a.containerModifierClass}grid ${a.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(r.addClass(`${a.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===a.grid.fill)&&r.addClass(`${a.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=a[t]&&a[t].enabled,i=l[t]&&l[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const p=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||p);p&&n&&e.changeDirection(),Be(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),f&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const a=Ce(),r="window"===t?a.innerHeight:n.clientHeight,o=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:r,value:s}=o[e];"window"===t?a.matchMedia(`(min-width: ${s}px)`).matches&&(i=r):s<=n.clientWidth&&(i=r)}return i||"max"}};const ct={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,$el:a,device:r,support:o}=e,s=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};const ut={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function dt(e,t){return function(n={}){const i=Object.keys(n)[0],a=n[i];"object"==typeof a&&null!==a?(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===e[i]&&(e[i]={auto:!0}),i in e&&"enabled"in a?(!0===e[i]&&(e[i]={enabled:!0}),"object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Be(t,n)):Be(t,n)):Be(t,n)}}const pt={eventsEmitter:Ge,update:We,translate:Ye,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Qe({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),Qe({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:Ze,loop:Ve,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:ot,breakpoints:lt,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:ct,images:{loadImage:function(e,t,n,i,a,r){const o=Ce();let s;function l(){r&&r()}Ie(e).parent("picture")[0]||e.complete&&a?l():t?(s=new o.Image,s.onload=l,s.onerror=l,i&&(s.sizes=i),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){const i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},ft={};class ht{constructor(...e){let t,n;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=Be({},n),t&&!n.el&&(n.el=t),n.el&&Ie(n.el).length>1){const e=[];return Ie(n.el).each((t=>{const i=Be({},n,{el:t});e.push(new ht(i))})),e}const i=this;i.__swiper__=!0,i.support=Ue(),i.device=He({userAgent:n.userAgent}),i.browser=$e(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const a={};i.modules.forEach((e=>{e({swiper:i,extendParams:dt(n,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const r=Be({},ut,a);return i.params=Be({},r,ft,n),i.originalParams=Be({},i.params),i.passedParams=Be({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=Ie,Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:Ie(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},i.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:Fe(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),a=(n.maxTranslate()-i)*e+i;n.translateTo(a,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:a,slidesSizesGrid:r,size:o,activeIndex:s}=this;let l=1;if(n.centeredSlides){let e,t=i[s].swiperSlideSize;for(let n=s+1;n<i.length;n+=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0));for(let n=s-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=s+1;e<i.length;e+=1){(t?a[e]+r[e]-a[s]<o:a[e]-a[s]<o)&&(l+=1)}else for(let e=s-1;e>=0;e-=1){a[s]-a[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let a;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(a=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),a||i()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${i}`).addClass(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const n=Ie(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=Ie(e.shadowRoot.querySelector(i()));return t.children=e=>n.children(e),t}return n.children?n.children(i()):Ie(n).children(i())})();if(0===a.length&&t.params.createElements){const e=ye().createElement("div");a=Ie(e),e.className=t.params.wrapperClass,n.append(e),n.children(`.${t.params.slideClass}`).each((e=>{a.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===a.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const n=this,{params:i,$el:a,$wrapperEl:r,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),a.removeAttr("style"),r.removeAttr("style"),o&&o.length&&o.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){Be(ft,e)}static get extendedDefaults(){return ft}static get defaults(){return ut}static installModule(e){ht.prototype.__modules__||(ht.prototype.__modules__=[]);const t=ht.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ht.installModule(e))),ht):(ht.installModule(e),ht)}}Object.keys(pt).forEach((e=>{Object.keys(pt[e]).forEach((t=>{ht.prototype[t]=pt[e][t]}))})),ht.use([function({swiper:e,on:t,emit:n}){const i=Ce();let a=null,r=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(a=new ResizeObserver((t=>{r=i.requestAnimationFrame((()=>{const{width:n,height:i}=e;let a=n,r=i;t.forEach((({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(a=n?n.width:(t[0]||t).inlineSize,r=n?n.height:(t[0]||t).blockSize)})),a===n&&r===i||o()}))})),a.observe(e.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",s))})),t("destroy",(()=>{r&&i.cancelAnimationFrame(r),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",s)}))},function({swiper:e,extendParams:t,on:n,emit:i}){const a=[],r=Ce(),o=(e,t={})=>{const n=new(r.MutationObserver||r.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)o(t[e])}o(e.$el[0],{childList:e.params.observeSlideChildren}),o(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{a.forEach((e=>{e.disconnect()})),a.splice(0,a.length)}))}]);const mt=ht;function gt(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function vt({swiper:e,extendParams:t,on:n,emit:i}){const a="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let o=0;function s(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t[n]().addClass(`${i}-${n}`)[n]().addClass(`${i}-${n}-${n}`)}function c(){const t=e.rtl,n=e.params.pagination;if(s())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let u;const d=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),u>a-1-2*e.loopedSlides&&(u-=a-2*e.loopedSlides),u>d-1&&(u-=d),u<0&&"bullets"!==e.params.paginationType&&(u=d+u)):u=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a,s,d;if(n.dynamicBullets&&(r=i.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",r*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(o+=u-(e.previousIndex-e.loopedSlides||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(u-o,0),s=a+(Math.min(i.length,n.dynamicMainBullets)-1),d=(s+a)/2),i.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`)).join(" ")),c.length>1)i.each((e=>{const t=Ie(e),i=t.index();i===u&&t.addClass(n.bulletActiveClass),n.dynamicBullets&&(i>=a&&i<=s&&t.addClass(`${n.bulletActiveClass}-main`),i===a&&l(t,"prev"),i===s&&l(t,"next"))}));else{const t=i.eq(u),r=t.index();if(t.addClass(n.bulletActiveClass),n.dynamicBullets){const t=i.eq(a),o=i.eq(s);for(let e=a;e<=s;e+=1)i.eq(e).addClass(`${n.bulletActiveClass}-main`);if(e.params.loop)if(r>=i.length){for(let e=n.dynamicMainBullets;e>=0;e-=1)i.eq(i.length-e).addClass(`${n.bulletActiveClass}-main`);i.eq(i.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else l(t,"prev"),l(o,"next");else l(t,"prev"),l(o,"next")}}if(n.dynamicBullets){const a=Math.min(i.length,n.dynamicMainBullets+4),o=(r*a-r)/2-d*r,s=t?"right":"left";i.css(e.isHorizontal()?s:"top",`${o}px`)}}if("fraction"===n.type&&(c.find(gt(n.currentClass)).text(n.formatFractionCurrent(u+1)),c.find(gt(n.totalClass)).text(n.formatFractionTotal(d))),"progressbar"===n.type){let t;t=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(u+1)/d;let a=1,r=1;"horizontal"===t?a=i:r=i,c.find(gt(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${a}) scaleY(${r})`).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(e,u+1,d)),i("paginationRender",c[0])):i("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](n.lockClass)}function u(){const t=e.params.pagination;if(s())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el;let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(r),e.pagination.bullets=a.find(gt(t.bulletClass))}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,a.html(r)),"custom"!==t.type&&i("paginationRender",e.pagination.$el[0])}function d(){e.params.pagination=function(e,t,n,i){const a=ye();return e.params.createElements&&Object.keys(i).forEach((r=>{if(!n[r]&&!0===n.auto){let o=e.$el.children(`.${i[r]}`)[0];o||(o=a.createElement("div"),o.className=i[r],e.$el.append(o)),n[r]=o,t[r]=o}})),n}(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n=Ie(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el),n.length>1&&(n=n.filter((t=>Ie(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),n.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",gt(t.bulletClass),(function(t){t.preventDefault();let n=Ie(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),Object.assign(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}function p(){const t=e.params.pagination;if(s())return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),n.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",gt(t.bulletClass))}n("init",(()=>{!1===e.params.pagination.enabled?f():(d(),u(),c())})),n("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),n("snapIndexChange",(()=>{e.params.loop||c()})),n("slidesLengthChange",(()=>{e.params.loop&&(u(),c())})),n("snapGridLengthChange",(()=>{e.params.loop||(u(),c())})),n("destroy",(()=>{p()})),n("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((t,n)=>{const a=n.target,{$el:r}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!Ie(a).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&a===e.navigation.nextEl||e.navigation.prevEl&&a===e.navigation.prevEl))return;const t=r.hasClass(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),p()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),d(),u(),c()},disable:f,render:u,update:c,init:d,destroy:p})}function _t({swiper:e,extendParams:t,on:n,emit:i}){let a;function r(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(a),a=je((()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?s():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),i("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?s():(t=e.slideTo(0,e.params.speed,!0,!0),i("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&r()}),n)}function o(){return void 0===a&&(!e.autoplay.running&&(e.autoplay.running=!0,i("autoplayStart"),r(),!0))}function s(){return!!e.autoplay.running&&(void 0!==a&&(a&&(clearTimeout(a),a=void 0),e.autoplay.running=!1,i("autoplayStop"),!0))}function l(t){e.autoplay.running&&(e.autoplay.paused||(a&&clearTimeout(a),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,u)})):(e.autoplay.paused=!1,r())))}function c(){const t=ye();"hidden"===t.visibilityState&&e.autoplay.running&&l(),"visible"===t.visibilityState&&e.autoplay.paused&&(r(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)})),e.autoplay.paused=!1,e.autoplay.running?r():s())}function d(){e.params.autoplay.disableOnInteraction?s():(i("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)}))}function p(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,i("autoplayResume"),r())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",(()=>{if(e.params.autoplay.enabled){o();ye().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",d),e.$el.on("mouseleave",p))}})),n("beforeTransitionStart",((t,n,i)=>{e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(n):s())})),n("sliderFirstMove",(()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?s():l())})),n("touchEnd",(()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&r()})),n("destroy",(()=>{e.$el.off("mouseenter",d),e.$el.off("mouseleave",p),e.autoplay.running&&s();ye().removeEventListener("visibilitychange",c)})),Object.assign(e.autoplay,{pause:l,run:r,start:o,stop:s})}var bt=i(8563);window.boardTopBest=function(e,t){if(0!==bt("#board_top").length){var n=function(){var e={top:{bestActiveList:{},bestActiveList2:{},isShow:!1,isMobileNotice:!0,isNotice:!0},list:{skin:{}}};return void 0!==t&&(e.top.isShow=t),bt("#board_top").hasClass("hide_best")&&(e.top.isShow=!1),e},i=function(e){var t=Object.assign({},n(),e);localStorage.setItem("BoardInfo",JSON.stringify(t))},a=function(){var e=localStorage.getItem("BoardInfo");e=null===e?n():JSON.parse(e);var t=Object.assign({},n());return Object.assign({},t,e)};t=!1;bt("#board_top").hasClass("hide_best")&&(t=!1),(t=a().top.isShow)?bt("#board_top").removeClass("screen_out"):bt("#best_on").removeClass("screen_out");var r,o={modules:[vt],speed:400,slidesPerView:1,direction:"horizontal",pagination:{el:"#board_top .swiper-pagination",type:"bullets"},initialSlide:(r=a().top.bestActiveList[""+e],null==r?r=0:r-=1,r),loop:!0,on:{}};o.on.slideChangeTransitionStart=function(e){e=this;bt("#board_top").trigger("slide_change_start_custom_event",[e])},o.on.slideChangeTransitionEnd=function(e){e=this;bt("#board_top").trigger("slide_change_end_custom_event",[e])},bt("#board_top").on("slide_change_end_custom_event",(function(t,n){var r=a();r.top.bestActiveList[""+e]=n.activeIndex,i(r)}));var s=new mt("#board_top .widget_swiper_container",o);bt("#board_top").on("swiper_update",(function(){s.update()}));var l={speed:400,slidesPerView:1,direction:"horizontal",initialSlide:function(){var t=a();void 0===t.top.bestActiveList2&&(t.top.bestActiveList2={});var n=t.top.bestActiveList2[""+e];return null==n?n=0:n-=1,n}(),loop:!0,on:{}};l.on.slideChangeTransitionEnd=function(e){e=this;bt("#best_on").trigger("slide_change_end_custom_event",[e])},bt("#best_on").on("slide_change_end_custom_event",(function(t,n){var r=a();void 0===r.top.bestActiveList2&&(r.top.bestActiveList2={}),r.top.bestActiveList2[""+e]=n.activeIndex,i(r)}));var c=new mt("#best_on .widget_swiper_container",l);bt("#best_on").on("swiper_update",(function(){c.update()})),bt("#best_more").click((function(){bt("#board_top").addClass("screen_out"),bt("#best_on").removeClass("screen_out");var e=a();e.top.isShow=!1,i(e),bt("#best_on").trigger("swiper_update")})),bt("#best_on_btn").click((function(){bt("#board_top").removeClass("screen_out"),bt("#best_on").addClass("screen_out");var e=a();e.top.isShow=!0,i(e),bt("#board_top").trigger("swiper_update")}))}};i(2621);var wt=i(8563);app.add((function(){function e(e){var t={modules:[vt,_t],pagination:{el:e+" .swiper-pagination",type:"bullets"},loop:!0};wt(e).find(".swiper-slide").length>1&&(t.autoplay={delay:1e4}),new mt(e,t)}0!==wt("#family_site").length&&(wt("#b_1").length>0&&e("#b_1"),wt("#b_2").length>0&&e("#b_2"))}));i(2953),i(928);var yt=i(5660),xt=i.n(yt),Ct=i(8563);app.add((function(){if(0!==Ct("#game_search").length){var e=Ct("#game_search");e.on("click",".collapse_btn",(function(e){var t=Ct(e.target);t.toggleClass("icon-flip-vertical"),t.parent().find(".collapse").toggleClass("active")})),e.find(".search_option_toggle").click((function(){e.find(".search_option_wrapper").toggleClass("active"),e.find(".search_option_wrapper").hasClass("active")?Ct(this).html('옵션 접기 <i class="icon-chevron-up"></i>'):Ct(this).html('옵션 펼치기 <i class="icon-chevron-down"></i>')})),i(),app.change_search_value=function(t){var n=Ct(t),a=null;n.prop("checked")?(n.addClass("checked"),n.hasClass("item_all")?(a=n.attr("class").split(" ").filter((function(e){return"item_value"!==e&&"item_all"!==e}))[0],e.find(".item_not_all."+a).prop("checked",!1).removeClass("checked")):(a=n.attr("class").split(" ").filter((function(e){return"item_value"!==e&&"item_not_all"!==e}))[0],e.find(".item_all."+a).prop("checked",!1).removeClass("checked"))):n.removeClass("checked"),i()};var t=1,n=1*Ct("#total_pages").val();app.game_search_more=function(){if(n<=t)Ct(".more").remove();else{t++;var e="&"+xt()(document.querySelector("#search_form"));Ct.ajax({url:util_getUrl("url_api_ssl")+"/game_search_more?page="+t+e}).done((function(e){e.success||alert(e.message);var t=JSON.parse(e.message);Ct.each(t.game,(function(e,t){!function(e){var t=Ct("#game_template > li"),n=util_getUrl("url")+"/game/"+e.id;t.find(".name").text(e.name),t.find(".name").text(e.name);var i="",a=e.ranking-e.prev_ranking;a>0?(a='<i class="icon-long-arrow-up"></i> '+a,i=" up"):0===a?a="-":(a='<i class="icon-long-arrow-down"></i> '+(a*=-1),i=" down");t.find(".ranking_value").html('<strong class="text_medium">'+e.ranking+'</strong>위</span> <span class="ranking_change'+i+'">'+a),t.find(".image_wrapper").html('<a href="'+n+'"><img class="game_image" src="'+e.image+'"alt="'+e.name+'" width="147px"></a>'),t.find(".game_link").attr("href",n);var r=[],o=[],s=[];Ct.each(e.info.genre,(function(e,t){-1===Ct.inArray(t.name,s)&&s.push(t.name)})),s=s.join(", ");var l={};Ct.each(e.info.platform,(function(e,t){-1===Ct.inArray(t.id,o)&&o.push(t.id),l[""+t.id]=t.name}));for(var c=0;c<o.length;c++)o[c]='<i class="icon_cate icon_'+o[c]+'"></i>';o=o.join(" "),Ct.each(e.info.service,(function(e,t){var n="";if(void 0!==l[""+t.platform_id]&&(n+=l[""+t.platform_id]+" "),t.name.length>0&&(n+=t.name+" "),t.start_date.length<10)for(var i=10-t.start_date.length,a=0;a<i;a++)t.start_date+="0";void 0!==l[""+t.platform_id]&&l[""+t.platform_id],n+=t.start_date.substring(0,4)+"."+t.start_date.substring(4,6)+"."+t.start_date.substring(6,8),-1===Ct.inArray(n,r)&&r.push(n)})),r=r.join(", "),t.find(".platform_value").html(o),t.find(".genre_value").html(s),t.find(".service_value").html(r),t.find(".rating_value").html(e.rating),t.find(".person_value").html(e.person),t.find(".new_value").html(e.new_article),t.find(".bbs_value").attr("href",n),t.find(".review_value").attr("href",n+"/review"),t.find(".ranking_value").html(e.ranking);var u=e.ranking-e.prev_ranking;u>0?u='<i class="icon-long-arrow-up"></i> '.diff:0===u?u="-":(u*=-1,u='<i class="icon-long-arrow-down"></i> '.diff);t.find(".ranking_change").html(u),Ct(".game_list").append(t.clone())}(t),app.category_icon()}))})).fail((function(e){alert("error",e)}))}}}function i(){var t=[{elm:Ct("#platform"),val_str:"",name:"platform"},{elm:Ct("#genre"),val_str:"",name:"genre"},{elm:Ct("#service"),val_str:"",name:"service"}];Ct(t).each((function(t,n){0===e.find("input.item_value.checked."+n.name).length&&e.find(".item_all."+n.name).prop("checked",!0),n.val_str=e.find("input.item_value.checked."+n.name).map((function(){return Ct(this).val()})).get().join(","),n.elm.val(n.val_str)}))}}));i(6943),i(2403);var kt=i(8563);app.add((function(){0!==kt(".widget_page").length&&(kt(".widget_page").bind("page_set",(function(){var e,t=kt(this),n=t.attr("id"),i={modules:[vt],speed:400,slidesPerView:1,direction:"horizontal",pagination:{el:"#"+n+" .swiper-pagination",type:"bullets"},initialSlide:0,loop:!0,on:{}};switch(n){case"m_game_bbs_and_game_hot_ranking":case"m_game_hot_ranking":case"m_reading_and_ruliweb_video":var a=t.find(".title_tab.active").data("name"),r=t.find(".title_tab").length,o=new Array(r),s=0;if(r>1){for(var l=1;l<=r;l++)o[l-1]=1*t.find(".title_tab.tab_0"+l).data("count"),s+=1*t.find(".title_tab.tab_0"+l).data("count");i.initialSlide=o[0]}else i.initialSlide=0,"tab_01"===a&&(i.initialSlide=0);var c=1;i.on.slideChangeTransitionStart=function(e){e=this;for(var n=0,i=0;i<o.length;i++)for(var a=0;a<o[i];a++)e.realIndex===n&&(c=i+1),n++;for(i=1;i<=r;i++)c===i?t.find(".widget_header .tab_0"+c).addClass("active"):t.find(".widget_header .tab_0"+i).removeClass("active")},t.find(".title_tab").click((function(){var n=kt(this).data("name");app.log("title_tab click",n),t.find(".widget_header .title_tab").removeClass("active"),t.find(".widget_header .title_tab_background").removeClass("active"),t.find(".widget_header ."+n).addClass("active");for(var i=0,a=0;a<r;a++)for(var s=0;s<o[a];s++)i++,"tab_0"+(a+1)===n&&0===s&&e.slideTo(i);n=null})),t.find(".title_tab_background").click((function(){app.log("title_tab title_tab_background",this);for(var e=0;e<r;e++)for(var t=0;t<o[e];t++)kt(this).hasClass("tab_0"+(e+1))&&kt(".title_tab.tab_0"+(e+1)).click()})),"m_reading_and_ruliweb_video"===n&&(i.initialSlide=Math.floor(Math.random()*s));break;case"m_right_best":t.find(".swiper_prev").click((function(){e.slidePrev()})),t.find(".swiper_next").click((function(){e.slideNext()}));break;case"m_content_top_news":case"m_main_top_game_news":var u=Math.floor(20*Math.random())+1;i.initialSlide=u>10?0:3;break;case"m_main_top_game_news2":var d=Math.floor(13*Math.random()),p=0;p=void 0!==t.data("page")?t.data("page"):d<3?0:d<6?1:d<9?2:3,kt("#m_main_top_game_news2").data("max");var f=["0","0","1","1","2","2","3","4","5","5"];p=1*(f=window.util_shuffle(f))[0],app.news3_slideTo=function(t){e.slideTo(t)},kt("#m_main_top_game_news2").on("click touch",".swiper_prev",(function(){e.slidePrev()})),kt("#m_main_top_game_news2").on("click touch",".swiper_next",(function(){e.slideNext()})),i.initialSlide=p,i.on.afterInit=function(){t.css("visibility","initial")};break;default:void 0!==t.data("first")&&("random"===t.data("first")?(d=Math.floor(Math.random()*(t.find(".tab").length+1)),i.initialSlide=d):i.initialSlide=1*t.data("first")),t.find(".tab").click((function(n){if(!kt(this).hasClass("active")){var i=1*kt(this).data("key");e.slideTo(i),t.find(".tab").removeClass("active"),kt(this).addClass("active"),n.preventDefault()}})),i.on.slideChangeTransitionStart=function(){var e=this;t.find(".tab").removeClass("active"),t.find(".tab").each((function(t,n){var i=1*kt(n).data("key");e.activeIndex===i&&kt(n).addClass("active")})),e.activeIndex>t.find(".tab").length&&kt(t.find(".tab")[0]).addClass("active"),e.activeIndex<1&&kt(t.find(".tab")[t.find(".tab").length-1]).addClass("active")}}i.on.slideChangeTransitionEnd=function(e){e=this,t.trigger("slide_change_end_custom_event",[e])},e=new mt("#"+n+" .widget_swiper_container",i),window[n+"_swiper"]=e,kt("#"+n).on("swiper_update",(function(){e.update()}))})),kt(".widget_page").trigger("page_set"));var e=function(){0!==kt(".widget_button_page").length&&(kt(".widget_button_page").bind("page_set",(function(){var e=kt(this).find(".widget_page_item"),t=kt(this).data("page"),n=kt(this).data("max"),i=kt(this).find(".btn_prev"),a=kt(this).find(".btn_next");null!=t&&""!==t||(kt(this).data("page",0),t=kt(this).data("page")),null!=n&&""!==n||(kt(this).data("max",e.length-1),n=kt(this).data("max")),t<=0?(kt(this).data("page",0),i.removeClass("active"),t=0):i.addClass("active"),t>=n?(kt(this).data("page",n),a.removeClass("active"),t=n):a.addClass("active"),0===n&&(i.removeClass("active"),a.removeClass("active"));var r=kt(e[t]);e.removeClass("active"),r.addClass("active"),e=null,t=null,n=null,i=null,a=null,r=null})),kt(".widget_button_page").trigger("page_set"),app.page_change=function(e,t){var n=kt(e).parents(".widget_button_page"),i=n.data("page");null!=i&&""!==i||(kt(this).data("page",0),i=kt(this).data("page")),n.data("page",i+t),n.trigger("page_set"),n=null,i=null})};e(),e=null,kt(".widget .tab_title").length>0&&(app.widget_bottom_tab=function(e,t){var n=kt(e).parents(".widget");n.find(".tab_title").removeClass("active"),kt(e).addClass("active"),n.find(".tab").removeClass("active"),n.find(".tab."+t).addClass("active")});var t=function(){if(0!==kt(".widget.tab_box.hover").length){var e=kt(".widget.tab_box.hover");e.each((function(e,n){var i=kt(n);if(0===i.find(".tab_box_tab.active").length){var a=Math.floor(Math.random()*i.find(".tab_box_tab").length);kt(i.find(".tab_box_tab")[a]).addClass("visited"),t(kt(i.find(".tab_box_tab")[a]))}else i.find(".tab_box_tab.active").addClass("visited");i.on("click",".tab_box_tab",(function(){if(kt(this).hasClass("visited")){var e=kt(this).data("href");void 0!==e&&(""===e&&null===e||(location.href="https://m.ruliweb.com"+e))}else kt(this).parents(".sub_title_wrapper").find(".tab_box_tab").removeClass("visited"),kt(this).addClass("visited");t(kt(this))})),i.find(".tab_box_tab").hover((function(){t(kt(this))})),i.find(".best_tab_item").click((function(){!function(e){var t=e.parents(".widget");t.find(".best_tab_item").each((function(e,t){kt(t).removeClass("active")})),e.addClass("active"),t.find(".target_list").each((function(t,n){kt(n).hasClass(e.data("target"))?(kt(n).addClass("active"),kt(n).removeClass("screen_out")):(kt(n).removeClass("active"),kt(n).addClass("screen_out"))}))}(kt(this))})),i=null})),e=null}function t(e){var t=e.parents(".sub_title_wrapper").parent(),n=t.find(".tab_box_tab"),i=t.find(".tab_box_page"),a=e.data("index");n.removeClass("active"),t.find(".tab_box_page.first").removeClass("first"),i.removeClass("active"),e.addClass("active"),kt(i[a]).addClass("active"),t=null,n=null,i=null,a=null}};if(t(),t=null,kt("#m_main_top_game_news2").length>0){if(kt("#m_main_top_game_news2").on("click touch","li.small",(function(e){e.preventDefault();var t=kt(this).data("index"),n=kt("#m_main_top_game_news2").find(".body_list_item");kt("#m_main_top_game_news2").find(".big").removeClass("active"),kt("#m_main_top_game_news2").find(".small").removeClass("active"),kt(this).addClass("active"),kt(this).closest(".body_list_item").find(".big").each((function(e,n){kt(n).data("index")===t&&kt(n).addClass("active")})),n.each((function(e,t){0===kt(t).find(".big.active").length&&kt(kt(t).find(".big")[0]).addClass("active"),0===kt(t).find(".small.active").length&&kt(kt(t).find(".small")[0]).addClass("active")}))})),!kt("#m_main_top_game_news2").hasClass("not_rand")){var n=kt(kt("#m_main_top_game_news2").find(".body_list_item")[0]).find(".big").length-1,i=Math.floor(Math.random()*(n-0+1))+0;kt("#m_main_top_game_news2").find(".body_list_item").each((function(e,t){kt(t).hasClass("not_rand")||(kt(t).find(".big").removeClass("active"),kt(t).find(".small").removeClass("active"),kt(kt(t).find(".big")[i]).addClass("active"),kt(kt(t).find(".small")[i]).addClass("active"))}))}}}))})()})();