1!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){"use strict";function t(t){var n=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).closest("form").ajaxSubmit(n))}function n(t){var n=t.target,o=e(n);if(!o.is("[type=submit],[type=image]")){var i=o.closest("[type=submit]");if(0===i.length)return;n=i[0]}var a=n.form;if(a.clk=n,"image"===n.type)if(void 0!==t.offsetX)a.clk_x=t.offsetX,a.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var r=o.offset();a.clk_x=t.pageX-r.left,a.clk_y=t.pageY-r.top}else a.clk_x=t.pageX-n.offsetLeft,a.clk_y=t.pageY-n.offsetTop;setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},100)}function o(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i={};i.fileapi=void 0!==e('<input type="file">').get(0).files,i.formdata=void 0!==window.FormData;var a=!!e.fn.prop;e.fn.attr2=function(){if(!a)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t,n,r,s){function l(n){function i(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){o("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(n){o("cannot get iframe.contentDocument: "+n),t=e.document}return t}function r(){var t=p.attr2("target"),n=p.attr2("action"),a=p.attr("enctype")||p.attr("encoding")||"multipart/form-data";C.setAttribute("target",h),c&&!/post/i.test(c)||C.setAttribute("method","POST"),n!==u.url&&C.setAttribute("action",u.url),u.skipEncodingOverride||c&&!/post/i.test(c)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),u.timeout&&(k=setTimeout(function(){x=!0,s(1)},u.timeout));var r=[];try{if(u.extraData)for(var l in u.extraData)u.extraData.hasOwnProperty(l)&&(e.isPlainObject(u.extraData[l])&&u.extraData[l].hasOwnProperty("name")&&u.extraData[l].hasOwnProperty("value")?r.push(e('<input type="hidden" name="'+u.extraData[l].name+'">',$).val(u.extraData[l].value).appendTo(C)[0]):r.push(e('<input type="hidden" name="'+l+'">',$).val(u.extraData[l]).appendTo(C)[0]));u.iframeTarget||m.appendTo(_),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(function e(){try{var t=i(v).readyState;o("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(t){o("Server abort: ",t," (",t.name,")"),s(2),k&&clearTimeout(k),k=void 0}},15);try{C.submit()}catch(e){document.createElement("form").submit.apply(C)}}finally{C.setAttribute("action",n),C.setAttribute("enctype",a),t?C.setAttribute("target",t):p.removeAttr("target"),e(r).remove()}}function s(t){if(!b.aborted&&!A){if((N=i(v))||(o("cannot access response document"),t=2),1===t&&b)return b.abort("timeout"),void T.reject(b,"timeout");if(2===t&&b)return b.abort("server abort"),void T.reject(b,"error","server abort");if(N&&N.location.href!==u.iframeSrc||x){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var n,a="success";try{if(x)throw"timeout";var r="xml"===u.dataType||N.XMLDocument||e.isXMLDoc(N);if(o("isXml="+r),!r&&window.opera&&(null===N.body||!N.body.innerHTML)&&--E)return o("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var l=N.body?N.body:N.documentElement;b.responseText=l?l.innerHTML:null,b.responseXML=N.XMLDocument?N.XMLDocument:N,r&&(u.dataType="xml"),b.getResponseHeader=function(e){return{"content-type":u.dataType}[e.toLowerCase()]},l&&(b.status=Number(l.getAttribute("status"))||b.status,b.statusText=l.getAttribute("statusText")||b.statusText);var c=(u.dataType||"").toLowerCase(),d=/(json|script|text)/.test(c);if(d||u.textarea){var p=N.getElementsByTagName("textarea")[0];if(p)b.responseText=p.value,b.status=Number(p.getAttribute("status"))||b.status,b.statusText=p.getAttribute("statusText")||b.statusText;else if(d){var h=N.getElementsByTagName("pre")[0],g=N.getElementsByTagName("body")[0];h?b.responseText=h.textContent?h.textContent:h.innerText:g&&(b.responseText=g.textContent?g.textContent:g.innerText)}}else"xml"===c&&!b.responseXML&&b.responseText&&(b.responseXML=P(b.responseText));try{D=I(b,c,u)}catch(e){a="parsererror",b.error=n=e||a}}catch(e){o("error caught: ",e),a="error",b.error=n=e||a}b.aborted&&(o("upload aborted"),a=null),b.status&&(a=b.status>=200&&b.status<300||304===b.status?"success":"error"),"success"===a?(u.success&&u.success.call(u.context,D,"success",b),T.resolve(b.responseText,"success",b),f&&e.event.trigger("ajaxSuccess",[b,u])):a&&(void 0===n&&(n=b.statusText),u.error&&u.error.call(u.context,b,a,n),T.reject(b,"error",n),f&&e.event.trigger("ajaxError",[b,u,n])),f&&e.event.trigger("ajaxComplete",[b,u]),f&&!--e.active&&e.event.trigger("ajaxStop"),u.complete&&u.complete.call(u.context,b,a),A=!0,u.timeout&&clearTimeout(k),setTimeout(function(){u.iframeTarget?m.attr("src",u.iframeSrc):m.remove(),b.responseXML=null},100)}}}var l,d,u,f,h,m,v,b,y,w,x,k,C=p[0],T=e.Deferred();if(T.abort=function(e){b.abort(e)},n)for(d=0;d<g.length;d++)l=e(g[d]),a?l.prop("disabled",!1):l.removeAttr("disabled");(u=e.extend(!0,{},e.ajaxSettings,t)).context=u.context||u,h="jqFormIO"+(new Date).getTime();var $=C.ownerDocument,_=p.closest("body");if(u.iframeTarget?(w=(m=e(u.iframeTarget,$)).attr2("name"))?h=w:m.attr2("name",h):(m=e('<iframe name="'+h+'" src="'+u.iframeSrc+'" />',$)).css({position:"absolute",top:"-1000px",left:"-1000px"}),v=m[0],b={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var n="timeout"===t?"timeout":"aborted";o("aborting upload... "+n),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}m.attr("src",u.iframeSrc),b.error=n,u.error&&u.error.call(u.context,b,n,t),f&&e.event.trigger("ajaxError",[b,u,n]),u.complete&&u.complete.call(u.context,b,n)}},(f=u.global)&&0==e.active++&&e.event.trigger("ajaxStart"),f&&e.event.trigger("ajaxSend",[b,u]),u.beforeSend&&!1===u.beforeSend.c
1all(u.context,b,u))return u.global&&e.active--,T.reject(),T;if(b.aborted)return T.reject(),T;(y=C.clk)&&(w=y.name)&&!y.disabled&&(u.extraData=u.extraData||{},u.extraData[w]=y.value,"image"===y.type&&(u.extraData[w+".x"]=C.clk_x,u.extraData[w+".y"]=C.clk_y));var S=e("meta[name=csrf-token]").attr("content"),j=e("meta[name=csrf-param]").attr("content");j&&S&&(u.extraData=u.extraData||{},u.extraData[j]=S),u.forceSync?r():setTimeout(r,10);var D,N,A,E=50,P=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},M=e.parseJSON||function(e){return window.eval("("+e+")")},I=function(t,n,o){var i=t.getResponseHeader("content-type")||"",a=("xml"===n||!n)&&i.indexOf("xml")>=0,r=a?t.responseXML:t.responseText;return a&&"parsererror"===r.documentElement.nodeName&&e.error&&e.error("parsererror"),o&&o.dataFilter&&(r=o.dataFilter(r,n)),"string"==typeof r&&(("json"===n||!n)&&i.indexOf("json")>=0?r=M(r):("script"===n||!n)&&i.indexOf("javascript")>=0&&e.globalEval(r)),r};return T}if(!this.length)return o("ajaxSubmit: skipping submit process - no element selected"),this;var c,d,u,p=this;"function"==typeof t?t={success:t}
1:"string"==typeof t||!1===t&&arguments.length>0?(t={url:t,data:n,dataType:r},"function"==typeof s&&(t.success=s)):void 0===t&&(t={}),c=t.method||t.type||this.attr2("method"),(u=(u="string"==typeof(d=t.url||this.attr2("action"))?e.trim(d):"")||window.location.href||"")&&(u=(u.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:u,success:e.ajaxSettings.success,type:c||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var f={};if(this.trigger("form-pre-serialize",[this,t,f]),f.veto)return o("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return o("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h=t.traditional;void 0===h&&(h=e.ajaxSettings.traditional);var m,g=[],v=this.formToArray(t.semantic,g,t.filtering);if(t.data){var b=e.isFunction(t.data)?t.data(v):t.data;t.extraData=b,m=e.param(b,h)}if(t.beforeSubmit&&!1===t.beforeSubmit(v,this,t))return o("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,f]),f.veto)return o("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var y=e.param(v,h);m&&(y=y?y+"&"+m:m),"GET"===t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+y,t.data=null):t.data=y;var w=[];if(t.resetForm&&w.push(function(){p.resetForm()}),t.clearForm&&w.push(function(){p.clearForm(t.includeHidden)}),!t.dataType&&t.target){var x=t.success||function(){};w.push(function(n,o,i){var a=arguments,r=t.replaceTarget?"replaceWith":"html";e(t.target)[r](n).each(function(){x.apply(this,a)})})}else t.success&&(e.isArray(t.success)?e.merge(w,t.success):w.push(t.success));if(t.success=function(e,n,o){for(var i=t.context||this,a=0,r=w.length;a<r;a++)w[a].apply(i,[e,n,o||p,p])},t.error){var k=t.error;t.error=function(e,n,o){var i=t.context||this;k.apply(i,[e,n,o,p])}}if(t.complete){var C=t.complete;t.complete=function(e,n){var o=t.context||this;C.apply(o,[e,n,p])}}var T=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}).length>0,$="multipart/form-data",_=p.attr("enctype")===$||p.attr("encoding")===$,S=i.fileapi&&i.formdata;o("fileAPI :"+S);var j,D=(T||_)&&!S;!1!==t.iframe&&(t.iframe||D)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){j=l(v)}):j=l(v):j=(T||_)&&S?function(n){for(var o=new FormData,i=0;i<n.length;i++)o.append(n[i].name,n[i].value);if(t.extraData){var a=function(n){var o,i,a=e.param(n,t.traditional).split("&"),r=a.length,s=[];for(o=0;o<r;o++)a[o]=a[o].replace(/\+/g," "),i=a[o].split("="),s.push([decodeURIComponent(i[0]),decodeURIComponent(i[1])]);return s}(t.extraData);for(i=0;i<a.length;i++)a[i]&&o.append(a[i][0],a[i][1])}t.data=null;var r=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:c||"POST"});t.uploadProgress&&(r.xhr=function(){var n=e.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",function(e){var n=0,o=e.loaded||e.position,i=e.total;e.lengthComputable&&(n=Math.ceil(o/i*100)),t.uploadProgress(e,o,i,n)},!1),n}),r.data=null;var s=r.beforeSend;return r.beforeSend=function(e,n){t.formData?n.data=t.formData:n.data=o,s&&s.call(this,e,n)},e.ajax(r)}(v):e.ajax(t),p.removeData("jqxhr").data("jqxhr",j);for(var N=0;N<g.length;N++)g[N]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(i,a,r,s){if(("string"==typeof i||!1===i&&arguments.length>0)&&(i={url:i,data:a,dataType:r},"function"==typeof s&&(i.success=s)),(i=i||{}).delegation=i.delegation&&e.isFunction(e.fn.on),!i.delegation&&0===this.length){var l={s:this.selector,c:this.context};return!e.isReady&&l.s?(o("DOM not ready, queuing ajaxForm"),e(function(){e(l.s,l.c).ajaxForm(i)}),this):(o("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return i.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,i,t).on("click.form-plugin",this.selector,i,n),this):this.ajaxFormUnbind().on("submit.form-plugin",i,t).on("click.form-plugin",i,n)},e.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,n,o){var a=[];if(0===this.length)return a;var r,s,l,c,d,u,p,f,h=this[0],m=this.attr("id"),g=t||void 0===h.elements?h.getElementsByTagName("*"):h.elements;if(g&&(g=e.makeArray(g)),m&&(t||/(Edge|Trident)\//.test(navigator.userAgent))&&((r=e(':input[form="'+m+'"]').get()).length&&(g=(g||[]).concat(r))),!g||!g.length)return a;for(e.isFunction(o)&&(g=e.map(g,o)),s=0,p=g.length;s<p;s++)if((c=(u=g[s]).name)&&!u.disabled)if(t&&h.clk&&"image"===u.type)h.clk===u&&(a.push({name:c,value:e(u).val(),type:u.type}),a.push({name:c+".x",value:h.clk_x},{name:c+".y",value:h.clk_y}));else if((d=e.fieldValue(u,!0))&&d.constructor===Array)for(n&&n.push(u),l=0,f=d.length;l<f;l++)a.push({name:c,value:d[l]});else if(i.fileapi&&"file"===u.type){n&&n.push(u);var v=u.files;if(v.length)for(l=0;l<v.length;l++)a.push({name:c,value:v[l],type:u.type});else a.push({name:c,value:"",type:u.type})}else null!=d&&(n&&n.push(u),a.push({name:c,value:d,type:u.type,required:u.required}));if(!t&&h.clk){var b=e(h.clk),y=b[0];(c=y.name)&&!y.disabled&&"image"===y.type&&(a.push({name:c,value:b.val()}),a.push({name:c+".x",value:h.clk_x},{name:c+".y",value:h.clk_y}))}return a}
1,e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var n=[];return this.each(function(){var o=this.name;if(o){var i=e.fieldValue(this,t);if(i&&i.constructor===Array)for(var a=0,r=i.length;a<r;a++)n.push({name:o,value:i[a]});else null!=i&&n.push({name:this.name,value:i})}}),e.param(n)},e.fn.fieldValue=function(t){for(var n=[],o=0,i=this.length;o<i;o++){var a=this[o],r=e.fieldValue(a,t);null==r||r.constructor===Array&&!r.length||(r.constructor===Array?e.merge(n,r):n.push(r))}return n},e.fieldValue=function(t,n){var o=t.name,i=t.type,a=t.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!o||t.disabled||"reset"===i||"button"===i||("checkbox"===i||"radio"===i)&&!t.checked||("submit"===i||"image"===i)&&t.form&&t.form.clk!==t||"select"===a&&-1===t.selectedIndex))return null;if("select"===a){var r=t.selectedIndex;if(r<0)return null;for(var s=[],l=t.options,c="select-one"===i,d=c?r+1:l.length,u=c?r:0;u<d;u++){var p=l[u];if(p.selected&&!p.disabled){var f=p.value;if(f||(f=p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value),c)return f;s.push(f)}}return s}return e(t).val().replace(/\r?\n/g,"\r\n")},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var o=this.type,i=this.tagName.toLowerCase();n.test(o)||"textarea"===i?this.value="":"checkbox"===o||"radio"===o?this.checked=!1:"select"===i?this.selectedIndex=-1:"file"===o?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(o)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){var t=e(this),n=this.tagName.toLowerCase();switch(n){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var o=t.parents("select");return o.length&&o[0].multiple?"option"===n?this.selected=this.defaultSelected:t.find("option").resetForm():o.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var i=e(t.attr("for")),a=t.find("input,select,textarea");return i[0]&&a.unshift(i[0]),a.resetForm(),!0;case"form":return("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var n=this.type;if("checkbox"===n||"radio"===n)this.checked=t;else if("option"===this.tagName.toLowerCase()){var o=e(this).parent("select");t&&o[0]&&"select-one"===o[0].type&&o.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}),window.hasOwnProperty("INVEN")&&$.isPlainObject(window.INVEN)||(window.INVEN={}
1),$("select.filter").change(function(){var e=$("body").hasClass("culture")?"?ct=":"?c=";window.location=e+$(this).val()});var ajaxWait=!1,listPage=1;function readMore(){if($this=$(".webzineListWrap section.list-article ul"),!ajaxWait&&"noMore"!=$this.data("listES")){ajaxWait=!0,$("#articleListReadMore").addClass("active");var e="";para=document.location.href.split("?")[1],e="undefined"==typeof para?"?page="+ ++listPage:"?page="+ ++listPage+"&"+para,$.ajax({url:e,dataType:"json",success:function(e){e.result&&$this.append(e.list),e.morePage&&e.result||($this.data("listES","noMore"),$("#articleListReadMore").addClass("hidden"))}}).done(function(){ajaxWait=!1}).fail(function(){alert("Posts could not be loaded."),ajaxWait=!1}).always(function(){$("#articleListReadMore").removeClass("active")})}}$('.webzineDetail a.jumplink[href^="#"]').on("click",function(e){e.preventDefault();var t=this.hash,n=$(t);$("html, body").stop().animate({scrollTop:n.offset().top},100,"swing",function(){window.location.hash=t})});var _url="",_msg="",_banner="";function createSnsBttns(e,t,n){_url=e,_msg=t,_banner=n}function sendSns(e){switch(_url||(_url=encodeURIComponent($('meta[property="og:url"]').attr("content")||location.href)),_msg||(_msg=encodeURIComponent($('meta[property="og:title"]').attr("content")||document.title)),_banner||"pinterest"!=e||(_banner=encodeURIComponent($('meta[property="og:image"]:first').attr("content"))),e){case"facebook":window.open("http://www.facebook.com/sharer/sharer.php?u="+_url,"sns","width=560,height=430");break;case"twitter":window.open("http://twitter.com/intent/tweet?text="+_msg+"&url="+_url,"sns","width=560,height=430");break;case"googleplus":window.open("https://plus.google.com/share?url="+_url,"sns","width=560,height=430");break;case"pinterest":window.open("https://www.pinterest.com/pin/create/button/?url="+_url+"&media="+_banner+"&description=","sns","width=754,height=613");break;case"reddit":window.open("http://reddit.com/submit?&url="+_url+"&title="+_msg,"sns","width=850,height=550")}}function comment_callback(e){var t=Number($(".mini_comment .fb-comments-count").text())+1,n=$("#IGCCS").find("> div.IGCCS-comment > p.IGCCS-comment_count > strong");n.length&&(t+=parseInt(n.text(),10)),$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="_token"]').attr("content")}}),$.ajax({url:e.href,data:{cnt:t},dataType:"text",type:"POST",success:function(e){console.log(e),console.log("Comment Update Success"),$(".cmtz").removeClass("cmtz"),$(".fb-comments-count").text(t),$(".comments-count").text(t)}})}function sideMenu(){$("html").hasClass("openSideMenu")?$("html").removeClass("openSideMenu"):$("html").addClass("openSideMenu")}function headerNavToggle(e){$("#header-nav")[e?"addClass":"removeClass"]("open")}function headerSearchToggle(){var e=$("#header-search"),t=$("#header_right .btn-search, #header-right .btn-search");window.innerWidth<=600?e.slideToggle(120):e.animate({width:"toggle"},120),e.hasClass("cancel-icon")?(e.removeClass("cancel-icon"),t.removeClass("cancel")):(e.addClass("cancel-icon"),t.addClass("cancel"),e.find('input[type="search"]').focus())}function headerQuickLinkToggle(e){if(e){$(e).toggleClass("open");var t=$("#h-nav");"none"===t.css("display")&&t.css("display","")}$("#header-quicklink").toggleClass("open")}function headerQuickLinkToggleV2(){$("#header-quicklink").toggleClass("open"),$("#header-nav").toggleClass("open")}
1function headerUserInfoToggle(){var e=$("#header-user-info");e.find("li").length<=3&&$(window).width()>=480?location.href="/login":e.toggleClass("open")}function mobileSearch(){$(".mobile_search").hasClass("hidden")?$(".mobile_search").removeClass("hidden"):$(".mobile_search").addClass("hidden")}function igeSearchFormSubmit(){return!1}function showBadWordList(e,t){var n=e.parent();if(e.hasClass("loading-cursor"))return!1;n.children(".bad-word-list").length?n.toggleClass("active"):(e.addClass("loading-cursor"),$.get(t).done(function(e){var t='<div class="bad-word-list"><ul>',o="";for(type in e)e[type]&&(o+="<li><b>"+type.toUpperCase()+"</b>",e[type]=e[type].split("|").map(function(e){return"<li>"+e+"</li>"}).join(""),o+="<ol>"+e[type]+"</ol></li>");o||(o="<li><b>No entries</b></li>"),t+=o+"</ul></div>",n.append(t),setTimeout(function(){n.toggleClass("active")},0)}).always(function(){e.removeClass("loading-cursor")}))}function openWin(winName){var blnCookie=getCookie(winName),obj=eval("window."+winName);blnCookie||(obj.style.display="block")}function closeWin(winName,expiredays){setCookie(winName,"done",expiredays);var obj=eval("window."+winName);obj.style.display="none"}function getCookie(e){for(var t=e+"=",n=0;n<=document.cookie.length;){var o=n+t.length;if(document.cookie.substring(n,o)==t)return-1==(endOfCookie=document.cookie.indexOf(";",o))&&(endOfCookie=document.cookie.length),unescape(document.cookie.substring(o,endOfCookie));if(0==(n=document.cookie.indexOf(" ",n)+1))break}return""}function setCookie(e,t,n,o){var i=new Date;i.setDate(i.getDate()+n),document.cookie=e+"="+escape(t)+"; path="+(o||"/")+"; expires="+i.toGMTString()+";"}function clipCopy(e,t,n,o){var i=null,a=!1,r="",s=navigator.userAgent.match(/ipad|ipod|iphone/i);if($.isFunction(e)?r=e():(i=e,r=(a=$(i).is(":input"))?$(i).val():$(i).text()),r=$.trim(r)){var l=!("execCommand"in document);if($.isFunction(n)&&n(l),l)prompt(t,r);else{var c;if(i&&!a&&!s&&"getSelection"in window&&"createRange"in document){var d=getSelection();(p=document.createRange()).selectNodeContents(i),d.removeAllRanges(),d.addRange(p),c=function(){d.removeAllRanges()}}else if(i&&a&&!s)$(i).select(),c=function(){$(i).blur()};else{var u=$("<input>",{type:"text",value:r,style:"position:absolute;left:0;bottom:0;z-index:-1;opacity:0;"}).appendTo(document.body);if(s){var p,f=u.get(0);f.contentEditable=!0,f.readOnly=!1,(p=document.createRange()).selectNodeContents(f),(d=getSelection()).removeAllRanges(),d.addRange(p),f.setSelectionRange(0,999999)}else u.select();c=function(){u.remove()}}document.execCommand("copy"),c()}$.isFunction(o)&&o(l)}}function URLCopy(){clipCopy(function(){var e=location.pathname.split("/"),t="";return-1!==[1,2].indexOf(e.indexOf("articles"))?e.pop():t=location.search,("origin"in location?location.origin:location.protocol+"//"+location.host)+e.join("/")+t},"URL Copy: Ctrl+C, Enter",null,function(e){e||alert("The article's URL has been successfully copied to the clipboard")})}function formatDate(e){var t=e.split("-"),n=(e=new Date(t[0]+"/"+t[1]+"/"+t[2]),new Date(e)),o=n.getHours(),i=n.getDate();return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n.getMonth()]+" "+i+" - "+(o%12||12)+(o<12?"A":"P")+"M"}function igeDialog(e){var t,n="",o="";function i(e,t,n,o){return n?'<a class="ige-btn" href="'+n+'" data-type="'+e+'"'+(!0===o?" autofocus":"")+">"+t+"</a>":'<button class="ige-btn" type="button" data-type="'+e+'"'+(!0===o?" autofocus":"")+">"+t+"</button>"}n=$.isArray(e.contents)?'<ul class="contents'+(e.alignCenter?" center":"")+'"><li>'+e.contents.join("</li><li>")+"</li></ul>":'<p class="contents'+(e.alignCenter?" center":"")+'">'+e.contents+"</p>","button"in e?e.button.useOK?(o=i("ok",e.button.okText||"OK",e.button.okLink,!0),o+=i("cancel",e.button.cancelText||"Cancel",e.button.cancelLink)):o=i("close",e.button.text||"Close",e.button.link,!0):o=i("close","Close",null,!0),!e.type&&$(document.body).hasClass("darkmode")&&(e.type="dark"),t='\t\t<div id="ige-dialog" class="ige-dialog '+(e.type||"")+'">\t\t\t<div class="ige-dialog-box">\t\t\t\t<h2>'+e.title+' <button type="button" class="x">×</button></h2>\t\t\t'+n+'\t\t\t<div class="buttons">'+o+"</div>\t\t\t</div>\t\t</div>";var a=function(){$("#ige-dialog").remove(),$(document.body).removeClass("o-hidden"),$(document).off("keyup.igeDialog")},r=function(t){"listener"in e&&t in e.listener&&$.isFunction(e.listener[t])&&
1!1===e.listener[t](a)||a()};$(t).mouseup(function(e){e.stopPropagation()}).on("animationend",".ige-dialog-box",function(e){$(this).find("button[autofocus]").focus()}).find("button.x").click(r.bind(null,"close")).end().find("button.ige-btn").click(function(e){r($(this).attr("data-type"))}).end().appendTo(document.body),$(document.body).addClass("o-hidden"),$(document).off("keyup.igeDialog").on("keyup.igeDialog",function(e){27==e.which&&r("close")})}function loadService(e,t,n){if(!("js"in t&&$.isArray(t.js)&&t.js.length))return $.Deferred().reject("You must include the js file to load the service.").promise();if(e in window||e.startsWith("jquery:")&&e.substring(7)in $.fn)return $.Deferred().resolve(window[e]).promise();if(e in loadService.loading)return loadService.loading[e];var o=[],i=[];for(var a in t)for(var r=0,s=t[a].length;r<s;r++)switch(a){case"css":var l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("href",t[a][r]),o.push(l);break;case"js":var c=document.createElement("script");c.setAttribute("type","text/javascript"),c.setAttribute("src",t[a][r]),i.push(c)}var d=document.getElementsByTagName("head")[0];for(r=0,s=o.length;r<s;r++)d.prepend(o[r]);var u=$.Deferred();if(!1===n){u=u.resolve(0);for(r=0,s=i.length;r<s;r++)u=u.then(function(e){return $.Deferred(function(t){i[e].onload=i[e].onreadystatechange=function(){this.onload=this.onreadystatechange=null,t.resolve(++e)},d.appendChild(i[e])}).promise()})}else{var p=[];for(r=0,s=i.length;r<s;r++)!function(e){var t=$.Deferred();i[e].onload=i[e].onreadystatechange=function(){t.resolve(),this.onload=this.onreadystatechange=null},p.push(t)}(r),d.appendChild(i[r]);u=$.when.apply(null,p)}return loadService.loading[e]=u.then(function(){return delete loadService.loading[e],window[e]}),loadService.loading[e]}$("#search_form, #search_page_form, #search_form_bottom").on("submit",function(e){var t=$(this).find('input[type="search"]'),n=$.trim(t.val()),o=$(".header-search");if(o.attr("data-request"))return!1;n.length<2?(igeDialog({title:"Alert",contents:"Please enter a search term at least two characters.",type:"warning",alignCenter:!0}),e.preventDefault()):o.attr("data-request",!0)}),$(function(){function e(e){$(".etc-games-news .gamens_tab li").removeClass("on").eq(e).addClass("on"),$(".etc-games-news .gamens_tab_mb option").attr("selected",!1).eq(e).attr("selected",!0).prop("selected",!0),$(".etc-games-news .gamens_wrap > .gamens_content").removeClass("on").eq(e).addClass("on")}$(".etc-games-news .top li").click(function(t){t.preventDefault(),e($(this).index())}).eq(0).click(),$(".etc-games-news .gamens_tab_mb").change(function(){e(this.selectedIndex)})}),$(function(){$(".etc-popular-news-side .popular_tab li").click(function(e){if("active"==this.className)return!1;e.preventDefault();var t=$(this).index();$(".etc-popular-news-side .popular_tab li.on").removeClass("on"),$(this).addClass("on"),$(".etc-popular-news-side .popular_wrap > .popular_content.on").removeClass("on"),$(".etc-popular-news-side .popular_wrap > .popular_content").eq(t).addClass("on")}).eq(0).click()}),$(function(){$(".etc-popular-news .popular_tab li").click(function(e){if("active"==this.className)return!1;e.preventDefault();var t=$(this).index();$(".etc-popular-news .popular_tab li.on").removeClass("on"),$(this).addClass("on"),$(".etc-popular-news .popular_wrap > .popular_content.on").removeClass("on"),$(".etc-popular-news .popular_wrap > .popular_content").eq(t).addClass("on")}).eq(0).click()}),$(function(){$("section.popular-link ul.popular_link li .mobile_view").click(function(e){$("section.popular-link ul.popular_link li .mobile_view").addClass("hidden"),$("section.popular-link ul.popular_link li").css("display","inline-block")})}),$(document).ready(function(){$("#igecAds").hasClass("igecAdWrap")&&openWin("igecAds"),$(".closePopAd").click(function(){$("#igecAds").hide()})}),loadService.loading={};var youtubeApi={init:!1,yt:null,dfd:$.Deferred(),load:function(e){this.init||(loadService("YT",{js:["https://www.youtube.com/iframe_api"]}),this.init=!0),this.dfd.done(e)}};function onYouTubeIframeAPIReady(){youtubeApi.yt=YT,youtubeApi.dfd.resolve()}var twitterApi={init:!1,twttr:null,dfd:$.Deferred(),load:function(e){if(!this.init){var t={_e:[],ready:function(e){t._e.push(e)}};t.ready(function(){twitterApi.twttr=twttr,twitterApi.dfd.resolve()}),window.twttr=t,loadService("_twttr",{js:["https://platform.twitter.com/widgets.js"]}),this.init=!0}this.dfd.done(e)}};class SimpleRouter{constructor(e="",t=null,n=null,o={}){this.routeMap=new Map,this.routeNames=new Set,this.hashState=new Map,this.signal=t||$.noop,this.canonicalizePath=n,this.$root=e?$(e):$(),this.useHash=!1,this.setAjaxParam=!0===o.setAjaxParam,this.resetScrollTop=!1!==o.resetScrollTop,this.syncRouteName2Class=!0!==o.syncRouteName2Class,this.requestState={abortController:new AbortController,isPending:!1,lastUrl:""}}
1static setTtitle(e){document.title="object"==typeof e&&e.title?`${e.title} - Inven Global`:document.title}init(){this.$root.length&&this.$root.on("click",'a:not([target="_blank"])',e=>(this.run(e.currentTarget.href,e.currentTarget.href==location.href?"replace":"push").catch(function(t){location.href=e.currentTarget.href}),!1)).on("submit","form",e=>{if("get"==e.currentTarget.method.toLowerCase()){const t=new URL(`?${new URLSearchParams(new FormData(e.currentTarget))}`,e.currentTarget.action||location.href);return this.run(t.href).catch(function(t){e.currentTarget.submit()}),!1}}),window.addEventListener("popstate",e=>{e.state?this.call(e.state):this.run(this.getPath(),"replace")}),!0===this.useHash&&this.canonicalizePath instanceof"function"&&window.addEventListener("hashchange",e=>{this.hashState.has(location.hash)?this.call(this.hashState.get(location.hash)):this.request(this.canonicalizePath()).then(e=>{this.hashState.set(location.hash,e.res)})});const e=this.resolve(this.getPath());history.state?(this.signal("init:withState",e),this.call(history.state)):this.signal("init:withoutState",e)}run(e,t=!1){return this.request(e).then(e=>{e.method=t||e.method,!1!==e.method&&("replace"==e.method?history.replaceState(e.res,"",e.url):history.pushState(e.res,"",e.url),this.resetScrollTop&&window.scrollTo(0,0),SimpleRouter.setTtitle(e.res))},e=>"ignore"==e.type?"":Promise.reject(e))}async request(e){const t=this.resolve(e);if(!t||!t.url)throw this.signal("request:fail",{type:"route_not_found"}),{type:"route_not_found"};{const e=new URL(t.url),n=this.validateRequest(t.url.href);this.requestState.lastUrl=t.url.href,this.requestState.isPending=!0,this.signal("request:start",t),e.searchParams.append("is_ajax","Y");try{const o=await Promise.all([fetch(e,Object.assign(this.signal("request:prepare",t)||{},{signal:n})),this.loadDependency(t.dependency)]);if(o[0].ok){const e=await(o[0].headers.get("content-type").includes("application/json")?o[0].json():o[0].text());return this.changeClass(t),this.routeMap.get(t.key).handler(e),{method:this.signal("request:done",t),url:t.url.href,res:e}}{const e=new Error("The response is not ok");throw e.name="ResponseError",e.response=o[0],e}}catch(e){if(e instanceof DOMException&&("AbortError"==e.name||e.message.includes("abort")))throw{type:"ignore"};const n=this.signal("request:fail",{type:"fail_after_request",error:e,route:t});throw!1!==n&&alert(n||"An error occurred. Please try again later."),{error:e,type:"fail_after_request"}}finally{this.signal("request:end",t),this.requestState.lastUrl==t.url.href&&(this.requestState.isPending=!1)}}}bind(e,t,n="",o=[]){if(!(e instanceof RegExp))throw new Error("The route must be an instance of RegExp.");"function"!=typeof t&&(t=function(e){this.$root.html("string"==typeof e?e:e.html)}.bind(this)),this.routeMap.set(e,{handler:t,name:n,dependency:o}),this.routeNames.add(n)}getPath(){return this.canonicalizePath?this.canonicalizePath():location.pathname.replace(/\/$/,"")}resolve(e){e=new URL(e,location.href);for(const t of this.routeMap.keys())if(t.test(e.pathname)){const n=this.routeMap.get(t);return{url:e,key:t,name:n.name,dependency:n.dependency}}return null}call(e,t=null){(t=t||this.resolve(this.getPath()))&&(this.signal("call:start",t),this.changeClass(t),this.routeMap.get(t.key).handler(e),SimpleRouter.setTtitle(e),this.signal("call:end",t))}changeClass(e){this.syncRouteName2Class&&!this.$root.hasClass(e.name)&&this.$root.removeClass(Array.from(this.routeNames)).addClass(e.name)}loadDependency(e=[]){const t={swiper:{alias:"Swiper",js:["https://static.invenglobal.com/resource/js/framework/swiper/swiper.min.js"],css:["https://static.invenglobal.com/resource/css/framework/swiper/swiper.min.css"]},select2:{alias:"jquery:select2",js:["https://static.invenglobal.com/resource/framework/select2/4.1.0/select2.min.js"],css:["https://static.invenglobal.com/resource/framework/select2/4.1.0/select2.min.css"]}},n=[];for(const o of e)o in t&&n.push(new Promise((e,n)=>loadService(t[o].alias||o,t[o]).then(e,n)));let o="",i="";return n.length,o=Promise.all(n),i=new Promise((e,t)=>
1setTimeout(t,5e3,{type:"dependency_timeout"})),Promise.race([o,i])}validateRequest(e){if(this.requestState.isPending){if(this.requestState.lastUrl==e)throw{type:"ignore"};this.requestState.abortController.abort("abort")}return this.requestState.abortController=new AbortController,this.requestState.abortController.signal}}function themeSwitch(e,t){var n=$(document.body),o=getCookie("themeType").trim();if(!e){var i=INVEN.THEMES.indexOf(o);e=INVEN.THEMES[!o||i<0?1:i===INVEN.THEMES.length-1?0:i+1]}INVEN.THEMES.indexOf(e)<0?console.log("no support theme : "+e):(o||setCookie("themeType",o="default"),o===e&&!0!==t||(n.removeClass(o).toggleClass("darkmode","darkmode"===e).triggerHandler("changeTheme",[e]),$(".header-btn.theme-btn").attr("aria-pressed","darkmode"===e?"true":"false"),$("img.theme-switch-enable").each(function(){var t=this.getAttribute("data-theme-"+e);t&&(this.src=t)}),setCookie("themeType",e)))}function setVenatusAD(){const e={top:null,left:[],center:[],right:[],video:null},t=document.querySelectorAll("div.vm-placement:not([id]):not([style])");for(const n of t){const t=n.getAttribute("data-id"),o=n.getAttribute("data-id-mobile");if(!t&&!o)continue;n.setAttribute("data-id",t||o),n.setAttribute("data-id-mobile",o||t);const i=n.closest(".banner-ad");i?i.closest(".top")?e.top=n:i.closest(".leftSide")?e.left.push(n):i.closest(".main")||i.closest(".bottom")?e.center.push(n):i.closest(".rightSide")&&e.right.push(n):n.closest(".article-ad-top")?e.top=n:(n.closest(".article-ad-middle")||n.closest(".webzineDetail")||n.closest(".bottomSide"))&&e.center.push(n)}const n=document.querySelector("#news-article-content-view");if(n){const t=$(n).children("p");e.video=$('<div class="vm-placement" style="padding-top:40px;"></div>').appendTo(document.body).get(0),t.length?$(t.eq(Math.min(t.length,2)-1)).after(e.video):$(n).append(e.video)}const o=window.innerWidth<748;for(const[t,n]of Object.entries(e)){switch(t){case"top":n&&(n.setAttribute("data-display-type","hybrid-banner"),n.setAttribute("data-id",o?n.getAttribute("data-id-mobile"):n.getAttribute("data-id")));break;case"left":case"right":n.forEach(e=>e.setAttribute("data-id",o?e.getAttribute("data-id-mobile"):e.getAttribute("data-id")));break;case"center":const e=window.innerWidth>=1201&&window.innerWidth<1388;n.forEach(t=>t.setAttribute("data-id",o||e?t.getAttribute("data-id-mobile"):t.getAttribute("data-id")));break;case"video":n&&(n.setAttribute("id","vm-av"),n.setAttribute("data-format","isvideo"))}null!==n&&(Array.isArray(n)&&n.length?n.forEach(e=>window.top.__vm_add.push(e)):window.top.__vm_add.push(n))}const i=[...document.querySelectorAll(".leftSide .iModule-banner-ad:last-child,.rightSide .iModule-banner-ad:last-child")],a=i.map(e=>(e.classList.toggle("is-right-side",null!==e.closest(".rightSide")),e.querySelector(".banner-ad"))),r=document.querySelector("body > footer");let s=window.scrollY,l=window.innerHeight,c=null;const d=function(e){c&&(clearTimeout(c),c=null),c=setTimeout(()=>{const e=window.scrollY,t=window.innerHeight;for(const[e,n]of i.entries()){const o=n.getBoundingClientRect(),i=a[e],s=i.hasAttribute("style"),c=document.body.clientWidth;let d=c<=1865&&n.classList.contains("is-right-side")?85:50;if(n.style.minHeight=`${i.clientHeight}px`,o.top<=d&&!s)i.setAttribute("style",`position:fixed;top:${d}px`);else if(o.top>d&&s)i.removeAttribute("style");else if(s){const e=i.getBoundingClientRect();if(c<1402){const t=e.height+d,n=r.getBoundingClientRect();t>n.top?(i.setAttribute("style",`position:fixed;top:${d-(t-n.top)-10}px`),i.classList.add("at-footer")):i.classList.contains("at-footer")&&(i.setAttribute("style",`position:fixed;top:${d}px`),i.classList.remove("at-footer"))}else e.bottom>window.innerHeight?i.setAttribute("style",`position:fixed;top:${d-(e.bottom-window.innerHeight)}px`):l!=t&&i.setAttribute("style",`position:fixed;top:${d}px`)}}s=e,l=t},10)},u=function(e){if(i.length)if(e.matches)document.addEventListener("scroll",d,{passive:!0});else{c&&(clearTimeout(c),c=null),document.removeEventListener("scroll",d);for(const e of i)e.style.minHeight="";for(const e of a)e.removeAttribute("style")}},p=window.matchMedia("(min-width: 1201px)");p.addEventListener("change",u),u(p)}
1INVEN.THEMES=["default","darkmode"],function(e){var t=e("#logout-form .darkmode-switch").length,n=e(document.body).hasClass("darkmode")?"darkmode":"default";e(function(e){var o=getCookie("themeType").trim()||"default";t&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?getCookie("themeType").trim()||themeSwitch("darkmode"):t&&o!=n&&themeSwitch(o,!0)}),t&&/(ipod|iphone|ipad)/i.test(navigator.userAgent||"")&&e(window).on("pageshow",function(e){var t=getCookie("themeType").trim()||"default";t!=n&&themeSwitch(t,!0)})}(jQuery),jQuery(function(e){var t,n=e(".has-hash-link a"),o={},i=e(window).height(),a=null,r=0;function s(t){a&&(clearTimeout(a),a=null),a=setTimeout(function(){i=e(window).height(),t.each(function(t,n){var i="#"+this.href.split("#")[1],a=e(i).closest("section");if(a.length){var s=a.offset().top;o[i]={top:Math.floor(s),height:Math.floor(a.outerHeight())},r=0==r?o[i].top:Math.min(r,o[i].top)}}),r=Math.ceil(r>i?r-i+i/2:r/3),a=null},10)}e(window).scroll(function(a){var s=e(this).scrollTop(),l=0,c=null;for(var d in o){var u=o[d].top-s,p=o[d].top+o[d].height-(s+i),f=o[d].height-(u<0?Math.abs(u):0)-(p>0?p:0);if(r<s&&f>0&&f<=i&&f>l&&(o[d].top,l=f,c=d),o[d].height==f)break}c?c!=t&&(n.filter('.active,[href$="'+c+'"]').toggleClass("active"),t=c):(n.removeClass("active"),t=null)}),(n=n.filter(function(){return-1!==this.href.indexOf("#")&&-1!==this.href.indexOf(location.pathname)})).length&&(n.addClass("hash-link-active"),e(window).resize(s.bind(null,n)),s(n))}
1),$(function(){var e=$("#esports_schedule"),t=$("#esports-series"),n=e.find(".esports-inner").attr("data-gamename");function o(e){var t=e.split(" "),n=t[0].split("-"),o=t[1].split(":");return new Date(n[0],n[1]-1,n[2],o[0],o[1],o[2]).getTime()}function i(){var t=o(moment.tz(new Date,"America/Los_Angeles").format("Y-MM-DD HH:mm:ss")),n=null,i=null;e.find(".content.item").each(function(){var e=$(this),a=o(e.find(".startdate").attr("data-date")),r=Number(t)-Number(a);r<0&&(r=Math.abs(r)),(!n||n>=r)&&(n=r,i=e)}),r.slideTo(i.closest(".content.item").index())}if(e.length>0){e.find(".esports-container").hasClass("hidden")&&e.find(".esports-container").removeClass("hidden");var a={slidesPerView:8,slidesPerGroup:8,allowSlidePrev:!1,allowSlideNext:!1,freeMode:!1,watchOverflow:!0,speed:150,pagination:{el:".scd_pagination",clickable:!0},breakpoints:{340:{slidesPerView:2,slidesPerGroup:2},620:{slidesPerView:3,slidesPerGroup:3},720:{slidesPerView:4,slidesPerGroup:4},860:{slidesPerView:5,slidesPerGroup:5},1024:{slidesPerView:6,slidesPerGroup:6}}},r=new Swiper(".esports-container",a);e.find(".item div.series").on("click",function(){t.toggleClass("open")}),t.find("li > a").on("click",function(){if(e.hasClass("ajax"))return!1;var o=$(this),s=o.parent("li"),l=s.attr("data-series-idx"),c=t.attr("data-game-idx");t.find("li > a").removeClass("selected"),s.children("a").addClass("selected"),t.removeClass("open"),e.find(".content").addClass("hidden"),e.find(".scd_pagination").addClass("hidden"),e.find(".esports-container").append('<div class="loader"></div>'),e.addClass("ajax"),$.ajax({url:"/esports/schedule_read/"+c+"/"+l,type:"GET",dataType:"JSON"}).done(function(t){e.find("div.item.title .series span.teamname").text(o.text()),e.find(".content").each(function(o){var i=$(this).children("a"),a=i.find("span.startdate"),r=i.find("span.team"),s=i.find("span.team-a"),l=i.find("span.team-b");if(t.schedule[o]){var c=t.schedule[o],d=i.parent("div.content").hasClass("item"),u=c.idx,p="javascript:;";if(d||i.parent("div.content").addClass("item swiper-slide"),void 0!==c.team_info)var f=JSON.parse(c.team_info),h=f[c.team_a],m=f[c.team_b];else h=[],m=[];var g=c.team_a_abbr?c.team_a_abbr:"-",v=c.team_b_abbr?c.team_b_abbr:"-",b=h.steamlogo?h.steamlogo:"https://static.invenglobal.com/img/common/schedule_team_default.png",y=m.steamlogo?m.steamlogo:"https://static.invenglobal.com/img/common/schedule_team_default.png";if(c.total_result)var w=c.total_result.split("|");if(c.startdate){var x=formatDate(c.startdate);a.text(x),i.find(".startdate").attr("data-date",c.startdate)}else a.text(""),i.find(".startdate").attr("data-date",0);if(s.find("img").attr("src",b).removeClass("hidden").siblings(".team-abbreviation").text(g).siblings(".score").text(void 0!==w?w[0]:"-"),l.find("img").attr("src",y).removeClass("hidden").siblings(".team-abbreviation").text(v).siblings(".score").text(void 0!==w?w[1]:"-"),i.parent(".content").attr("data-idx",u),"Y"==c.has_vod){var k=c.series_title+"-"+c.tournament_title+"-"+c.round;p="/esports/"+n+"/vod/"+u+"-"+k.replace(/ /g,"-").toLowerCase(),i.removeClass("nolink")}else i.addClass("nolink");i.attr("href",p)}else i.parent("div.content").removeClass("item swiper-slide").removeAttr("data-idx"),i.attr("href","javascript:;").addClass("nolink"),a.text(""),r.find("img").addClass("hidden"),r.find(".team-abbreviation").text(""),r.find(".score").text("");e.find(".content").removeClass("hidden")})}).fail(function(e,t,n){alert("code:"+e.status+"\nerror:"+n)}).always(function(t){e.removeClass("ajax"),e.find("div.loader").remove(),e.find(".scd_pagination").removeClass("hidden"),r.destroy(),r=new Swiper(".esports-container",a),i()})}),i()}}),$(function(){var e=window,t=$(document.body);if(t.is(".layout-v2, .ige-page")){var n=$("#h-nav-icon").click(function(){$(this).toggleClass("open"),t.toggleClass("header-menu-open"),$(document.documentElement).toggleClass("no-scroll"),$("#h-nav").slideToggle(300)}),o=function(e){e.matches?($("#h-nav").removeAttr("style").find(".hash-link-active").off("click.hash_link"),$("#h-nav-icon").removeClass("open"),t.removeClass("header-menu-open"),$(document.documentElement).removeClass("no-scroll")):$("#h-nav .hash-link-active").on("click.hash_link",function(e){n.trigger("click")})},i=e.matchMedia("(min-width: 871px)");o(i),i.addListener(o),$("#header-center").on("click",function(e){t.is(".header-menu-open")&&e.target&&"header-center"===e.target.id&&n.trigger("click")}),$("#h-nav ul.menus li.more > a").on({click:function(e){e.preventDefault()}})}}
1),$(function(){var e=$(".layout-v2 .sns-list");if(e.length){var t=$(window),n=$(".layout-v2 .container"),o=$(".layout-v2 header"),i=window.matchMedia("(max-width: 1200px)");function a(){var i=t.scrollTop(),a=o.height()+15,r=n.offset().top;i>=r-5?e.stop().animate({top:i+(a-r-20)},400):i<=20&&e.stop().animate({top:i-20+"px"},400)}function r(e){e.matches?t.off("scroll",a):t.on("scroll",a)}r(i),i.addListener(r)}}),$(function(){void 0!==window.admiral&&(window.admiral("after","measure.detected",function(e){e.subscribed||getCookie("adr_ige")&&setCookie("adr_ige","",-1)}),window.admiral("after","transact.subscribed",function(){getCookie("adr_ige")||setCookie("adr_ige",1,14)}),window.admiral("after","transact.loggedOut",function(){getCookie("adr_ige")&&(setCookie("adr_ige","",-1),location.reload())}))}),$(function(){var e="#floating-banner-ow";if($(e).length>0){var t=e;closedTime=localStorage.getItem(t),$("#floating-banner-ow .close").click(function(e){var n=$(t).find('input[type="checkbox"]').is(":checked");$(t).remove(),n&&localStorage.setItem(t,Date.now())}),(!closedTime||Date.now()-closedTime>=864e5)&&($(e).removeClass("hidden"),localStorage.removeItem(t))}}),window.top.__vm_add=window.top.__vm_add||[],setVenatusAD(),$("body > main > div.container").on("click","section.tabs .nav a[data-tab-id]",function(){var e,t=$(this),n=t.parent(),o=$("body > main > div.container").find("ul.tab-content > li.tab-content");try{n.is(".active")||(e=n.parent().find("li.active").removeClass("active").map(function(){"use strict";return"."+$(this).find("> a").attr("data-tab-id")}),o.filter(e.toArray().join(",")).removeClass("show show-fi"),n.addClass("active"),o.filter("."+this.getAttribute("data-tab-id")).addClass("show").filter(":eq(0)").addClass("show-first"))}catch(e){console.log(e.message)}finally{t=null,n=null,e=null,o=null}}),window.hasOwnProperty("INVEN")&&$.isPlainObject(window.INVEN)||(window.INVEN={}),INVEN.hasOwnProperty("Tooltip")&&INVEN.Tooltip.constructor.prototype.hasOwnProperty("__provider__")&&"INVEN"===INVEN.Tooltip.constructor.prototype.__provider__||(INVEN.Tooltip=function(e){var t=!1,n={x:0,y:0,originX:0,originY:0,offsetX:10,offsetY:10,windowHeight:0,windowWidth:0},o={isSafari:!/Chrome|Android|CriOS|FxiOS|EdgiOS/i.test(navigator.userAgent)&&/Mac/i.test(navigator.userAgent)&&/Safari/i.test(navigator.userAgent),ieFIX:!!window.navigator.userAgent.match(/((?:MSIE\s?((?:10)|(?:[1-9])))|(?:Trident\/7\.0;.+?rv:11\.0))/i),doNotDisplay:!1,fromTouch:!1,currernt:null,shown:!1,layerDiv:null,collection:{},setup:function(){if(!this.layerDiv)if(this.layerDiv=e('<div id="inven-tooltip-layer-pane"></div>'),"INVEN_TOOLTIP_TARGET_PANE"in window)if(e("body").length)this.layerDiv.appendTo("body");else{var t=this.layerDiv;e(document).ready(function(){"use strict";t.appendTo("body")})}else this.layerDiv.appendTo("body")},checkID:function(t){return"string"==typeof t&&0!=(t=e.trim(t)).length&&t},exists:function(e){return this.collection.hasOwnProperty(e)},add:function(t,a){var r,s,l,c;try{if((t=this.checkID(t))&&!this.exists(t)){if((r=e("#"+t)).length)return this.collection[t]=r;if(this.collection[t]=e("<div/>").attr("id",t).addClass("inven-tooltip-layer loading").html('<span class="dot"></span><span class="dot"></span><span class="dot"></span><span class="dot"></span><span class="dot"></span>').appendTo(this.layerDiv),(s=t.split("-"))&&s.length>1)if(2==s.length?(l=s[0],d=s[1],this.collection[t].addClass("inven-tooltip-layer-"+l)):(l=s[0],c=s[1],d=s[2],this.collection[t].addClass("inven-tooltip-layer-"+l+"-"+c)),a&&this.collection[t].addClass(a),"_self_"===l){var d=e("#"+t.replace(/^_self_\-/,""));if(!(r=o.get(t)))return;r.removeClass("loading").html(d.length?d[0].outerHTML:"").find("> *").removeAttr("id"),o.shown&&o.currernt.attr("id")==t&&i(n.originX,n.originY,t)}else e.ajax({type:"GET",dataType:"json",url:"/"+l+(c?"/"+c:"")+"/layer/"+d}).done(function(e){var t;try{if(!(t=o.get(e.id)))return;t.removeClass("loading").html(e.data),o.shown&&o.currernt.attr("id")==e.id&&i(n.originX,n.originY,e.id)}catch(e){console.log(e.message)}finally{t=null}}).fail(function(){var e;(e=o.get(t))&&e.removeClass("loading")});else this.collection[t].text("No data")}return this.collection[t]||!1}catch(e){return!1}finally{r=null,s=null,l=null,c=null,d=null}},remove:function(e){return!(!(e=this.checkID(e))||!this.exists(e))&&(this.collection[e].remove(),this.collection[e]=null,delete this.collection[e],!0)},get:function(e,t,n){return(e=this.checkID(e))&&this.exists(e)?this.collection[e]:!!t&&this.add(e,n)},setCurrent:function(e,t){var n=this.get(e,!0,t);return!1!==n&&(this.currernt=n,!0)},getTarget:function(e){return"string"==typeof e?this.get(e):"object"==typeof e.currentTarget&&"function"==typeof e.currentTarget.getAttribute?this.get(e.currentTarget.getAttribute("data-tooltip-code"),!0,e.currentTarget.getAttribute("data-add-class")):(this.currernt||this.setCurrent(e.currentTarget.getAttribute("data-tooltip-code"),e.currentTarget.getAttribute("data-add-class")),this.currernt)},show:function(e){var t;try{if(o.doNotDisplay||o.fromTouch)return!0;
1if(!1===(t=o.getTarget(e)))return!0;"object"==typeof e&&"touchstart"===e.type?(o.shown=!1,o.hide(e),o.fromTouch=!0):(t.show(),o.shown=!0,o.move(t.id||t.attr("id")))}catch(e){return!1}finally{t=null}},hide:function(e){var t;try{if(o.doNotDisplay||o.fromTouch)return!0;if(!1===(t=o.getTarget(e)))return!1;t.hide(),o.shown=!1,o.fromTouch=!1}catch(e){return!1}finally{t=null}},move:function(e){var t;try{return!(!o.shown||!1===(t=o.getTarget(e))&&!(t=o.currernt))&&(t.css({left:n.x,top:n.y}),!0)}catch(e){return!1}finally{t=null}},setLayerOffset:function(e,t){if(!isNaN(e=parseInt(e,10))||!isNaN(t=parseInt(t,10)))return!1;n.offsetX=e,n.offsetY=t}},i=function(t,i,a){if("string"==typeof a&&a.length&&o.setCurrent(a),!o.currernt)return!1;var r=t+n.offsetX,s=i+n.offsetY,l=e(window).scrollLeft(),c=e(window).scrollTop(),d=n.windowWidth,u=n.windowHeight,p=o.currernt.outerWidth(),f=o.currernt.outerHeight();r+p>d+l&&(r=Math.max(r-n.offsetX-p,l)),s+f>u+c&&(s=Math.max(s-1.5*n.offsetY-f,c)),n.x=r,n.y=s,n.originX=t,n.originY=i,o.move(a)},a=function(){(window.hasOwnProperty("sessionStorage")||"sessionStorage"in window)&&(o.setup(),t||(e(document).ready(function(){var a=e("main > div.container");"INVEN_TOOLTIP_TARGET_PANE"in window&&(a=e(window.INVEN_TOOLTIP_TARGET_PANE)),a.on("mouseover touchstart","div[data-tooltip-code], a[data-tooltip-code],button[data-tooltip-code],span[data-tooltip-code],img[data-tooltip-code]",o.show).on("mouseout","div[data-tooltip-code], a[data-tooltip-code],button[data-tooltip-code],span[data-tooltip-code],img[data-tooltip-code]",function(e){!o.doNotDisplay&&o.shown&&o.hide(e)}).on("mousemove","div[data-tooltip-code],a[data-tooltip-code],button[data-tooltip-code],span[data-tooltip-code],img[data-tooltip-code]",function(e){t&&!o.doNotDisplay&&o.shown&&i(e.pageX,e.pageY,this.getAttribute("data-tooltip-code"))}),e(window).on("resize",function(){var t=e(window);n.windowWidth=t.width(),n.windowHeight=t.height(),o.doNotDisplay=!!(n.windowWidth<720),o.fromTouch=!1,t=null}).trigger("resize"),o.isSafari&&e(window).on("beforeunload",function(){o.layerDiv.children(".inven-tooltip-layer").hide()}),window.tooltip1=o}),t=!0))};return e.extend(a.prototype,{__provider__:"INVEN",showLayer:function(e){o.show(e)},hideLayer:function(e){o.hide(e)},moveLayer:function(t){var n="",o=0,a=0;if(!(t.length<2)){if(2==t.length)o=parseInt(t[0],10),a=parseInt(t[1],10);else{if(3!=t.length)return;n=e.trim(t[0]),o=parseInt(t[1],10),a=parseInt(t[2],10)}isNaN(o)||isNaN(a)||i(o,a,n)}}}),new a}(jQuery));var INVEN=window.INVEN||{};INVEN.Clipboard=new function(){var e=function(e){return"object"==typeof e.clipboardData&&"function"==typeof e.clipboardData.clearData&&"function"==typeof e.clipboardData.setData},t=function(e){switch(typeof e){case"string":return $.trim(e);case"number":return String(e);default:return""}},n=null,o=null,i=null,a={x:0,y:0,obj:null,click:null};if(e(window))this.copy=function(e,o){if(u(window.event)){n="function"==typeof o?o:null;var i=t(e),a=!1;try{window.clipboardData.clearData(),a=window.clipboardData.setData("text",i)}catch(e){a=!1}p(a,i)}};else{var r=null,s=null,l=!0,c=function(){var e=r;return r=null,$(document).off("copy.InvenClipboard"),s&&(clearTimeout(s),s=null),e},d=function(t){var n=c();if(null!==n){t.preventDefault();var o=!1;if(e(t.originalEvent))try{t.originalEvent.clipboardData.clearData(),t.originalEvent.clipboardData.setData("text/plain",n),o=!0}catch(e){if(l)return l=!1,!1}p(o,n)}};this.copy=function(e,o){null===r&&u(window.event)&&(c(),n="function"==typeof o?o:null,r=t(e),document.queryCommandSupported("copy")?($(document).on("copy.InvenClipboard",d),s=setTimeout(function(){null!==r&&p(!1,c())},100),document.execCommand("copy")):p(!1,r))}}var u=function(e){return!("object"==typeof e&&e&&"click"==e.type&&e.srcElement&&(a.click=$(e.srcElement),o&&o._obj&&o._obj[0]===e.srcElement))||(h(null),!1)},p=function(e,t){if(t.length>0){if("function"==typeof n)try{if(!1===n(e,t))return}catch(e){}e?m("It's copied to clipboard."):h(t)}};$(document).on("mouseup.InvenClipboard touchend.InvenClipboard",function(e){a.x=e.pageX,a.y=e.pageY,a.obj=e.target&&"HTML"!=e.target.tagName&&"BODY"!=e.target.tagName?$(e.target):null});var f=function(){if("string"!=typeof navigator.platform||"Win32"!=navigator.platform){var e=String(navigator.userAgent||"");if(/android/i.test(e))return"android";
1if(/(ipod|iphone|ipad)/i.test(e))return"ios";if(/mobile/i.test(e))return!0}return!1}(),h=function(e){if(e){if(!o||0==$("#InvenClipboardCopyBox").length){var t=function(e){return e.preventDefault(),!1};(o=$('<div id="InvenClipboardCopyBox" style="display: block; float: none; clear: both; position: absolute; z-index: 10; width: 240px; padding: 5px; margin: 0px; overflow: hidden; border: 1px solid #aaa; border-radius: 3px; box-sizing: content-box; box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px 0px, rgba(0, 0, 0, 0.188235) 0px 6px 20px 0px; color: #333; font-size: 14px; background: #f0f0f0; background-image: -webkit-gradient(linear,left top,left bottom,from(#e0e0e0),to(#f0f0f0)); background-image: -moz-linear-gradient(top,#e0e0e0 0%,#f0f0f0 100%); background-image: -o-linear-gradient(top,#e0e0e0 0%,#f0f0f0 100%); background-image: -ms-linear-gradient(top,#e0e0e0 0%,#f0f0f0 100%); background-image: linear-gradient(to bottom,#e0e0e0 0%,#f0f0f0 100%); font-family: gulim, 굴림; font-weight: normal; font-style: normal;"></div>').appendTo("body").on("click",function(){o._value.blur().focus()}))._text=$('<div style="display:block; float: none; clear: both; font-weight: bold; margin-bottom: 4px;"></div>').appendTo(o).on("selectstart dragstart",t),$('<span style="display:block; position: absolute; top: 5px; right: 5px; cursor: pointer;">â
©</span>').appendTo(o).on("click",function(){h(null)}).on("selectstart dragstart",t);var n=$('<div style="display: block; float: none; clear: both; width: 100%; height: 30px; box-sizing: border-box; border: 1px solid #aaa; overflow: hidden; background-color: #fff; color: #333; font-size: 12px;"></div>').appendTo(o),i="display: block; float: none; clear: both; width: 100%; height: 100%; line-height: 30px; box-sizing: border-box; margin: 0px; padding: 0px 4px; background-color: #fff; color: #333; font-size: 12px; font-family: gulim, 굴림; font-weight: normal; font-style: normal; text-decoration: none; overflow: hidden;";o._value=$('<textarea readonly style="'+i+' resize: none; border: none; outline: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; "></textarea>').appendTo(n).on("focus focusin",function(){o._value.is(":visible")&&(o._value[0].setSelectionRange?o._value[0].setSelectionRange(0,o._value.val().length):o._value.select())}).on("click",function(e){o._value.is(":visible")&&o._value.blur().focus()}),o._url=$('<a style="'+i+'"></a>').appendTo(n).on("click selectstart dragstart",t)}$("html").off("mousedown.InvenClipboard").on("mousedown.InvenClipboard",function(e){o&&e.target!==o[0]&&0==o.find(e.target).length&&(o._obj&&o._obj[0]==e.target||h(null))}),!/^http[s]?:\/\/[^\r\n\s\t]+$/.test(e)||"android"!=f&&"ios"!=f?(f?o._text.html("Please copy contents below."):o._text.html("Please copy contents below with<br>push 'Cntl+C' on a keyboard"),o._value.blur().val(e).css("display","block").focus().off("copy.InvenClipboard").on("copy.InvenClipboard",function(e){"number"==typeof this.selectionStart&&0===Math.min(this.selectionStart,this.selectionEnd)&&Math.max(this.selectionStart,this.selectionEnd)===this.value.length&&(o._value.off("copy.InvenClipboard"),h(null),setTimeout(function(){m("It's copied to clipboard.")},1))}),o._url.css("display","none")):(o._text.html("Please push the contents<br>while you can see the list menu<br>and select copy button on it."),o._value.val(e).css("display","none").off("copy.InvenClipboard"),o._url.attr("href",e).text(e).css("display","block")),o.css({display:"block",left:"-1000px",top:"-1000px"})._obj=a.obj;var r=function(e,t,n,o,i,a){e="number"!=typeof e||isNaN(e)?0:e,t="number"!=typeof t||isNaN(t)?0:t,n="number"!=typeof n||isNaN(n)?0:n,o="number"!=typeof o||isNaN(o)?0:o,i="number"!=typeof i||isNaN(i)?5:i,a="number"!=typeof a||isNaN(a)?5:a;var r=$(window),s=$("body"),l=r.width(),c=r.height(),d=e+i,u=t+a;return n>=200&&l<415?d=Math.max(l/2-n/2,0)+s[0].scrollLeft:d+n>l+s[0].scrollLeft&&(d=Math.max(e-n,s[0].scrollLeft)),u+o>c+s[0].scrollTop&&(u=Math.max(u-1.5*a-o,s[0].scrollTop))==s[0].scrollTop&&o>=300&&l<415&&(u=Math.max(c/2-o/2,0)+s[0].scrollTop),{left:Math.floor(d),top:Math.floor(u)}}(a.x,a.y,o.outerWidth(),o.outerHeight(),5,5);
1o.css({left:r.left+"px",top:r.top+"px"})}else o&&(o._obj=null,o._value[0].setSelectionRange&&o._value[0].setSelectionRange(0,0),o.css("display","none")._value.off("copy.InvenClipboard"),$("html").off("mousedown.InvenClipboard"))},m=function(e){if(e=String(e),0!=$.trim(e).length){if(null===i){i=$('<div style="position: fixed; z-index: 10000; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); transform: translate(-50%, -50%); display: none; float: none; clear: both; background-color: #000; background-color: rgba(0, 0, 0, 0.75); color: #fff; border-radius: 8px; padding: 12px 8px; font-size: 14px; text-align: center;"></div>');try{var t=i[0].style;"fixed"==t.position&&(t.transformProperty||t.WebkitTransform||t.MozTransform||t.OTransform||t.msTransform)?i.appendTo("body"):i=!1}catch(e){i=!1}}!1===i?alert(e):i.text(e).css("display","block").stop().css("opacity",1).delay(2e3).fadeOut(1e3)}}},jQuery(function(e){var t=e(".ige-poll-embed[data-idx]"),n=getCookie("XSRF-TOKEN"),o={vote:{},result:{}},i=function(){var t=e(".ige-poll-vote:not(.result,#poll-preview-part)").each(function(){var t=e(this),o=t.attr("data-idx"),i=+t.attr("data-progress");if(!+t.attr("data-login")&&i)t.find("label,:input").click(function(n){if(e(this).is('[data-action="results"]')){var i=e(this);if(i.filter(".result-action").removeClass("result-action"),i.addClass("result-action"),i.hasClass("result-action"))return r(o,t),!1}return igeDialog({type:"",title:"Confirm",contents:"You need to log in to use this function.<br>Would you like to log in?",alignCenter:!0,button:{useOK:!0,okText:"Yes",okLink:"/login",cancelText:"No"}}),!1});else{var s=+t.find("h3").attr("data-num"),l=t.find('[name="choice[]"]'),c=t.find("#ige-poll-choice"+o+"-0"),d=t.find('[name="opinion"]'),u=t.find('button[data-action="vote"]'),p=t.find('button[data-action="results"]'),f={answers:{select:[],input:{checked:!1,value:""}},get:function(){return{select:l.filter(":checked").map(function(){return this.value}).get(),input:{checked:c.is(":checked"),value:d.val()}}},update:function(){this.answers=this.get()},check:function(){var t=this.get();if(this.answers.select.length!=t.select.length)return!0;var n=this.answers.select;return!!t.select.filter(function(e){return-1===n.indexOf(e)}).length||(this.answers.input.checked!=t.input.checked||e.trim(this.answers.input.value)!=e.trim(t.input.value))}},h=function(){return!this.disabled&&(this.blur(),l.filter(":checked").length?c.is(":checked")&&!e.trim(d.val())?(igeDialog({title:"Poll",contents:"Please enter your opinion.",alignCenter:!0,listener:{close:function(){d.focus()}}}),!1):f.check()?(this.disabled=!0,void e.ajax({url:"/poll/vote/"+o,type:"POST",headers:{"X-XSRF-TOKEN":n},data:t.find(":input").serializeArray()}).done(function(e){f.update(),e?(p.removeClass("hidden"),a(o,t,e)):igeDialog({title:"Poll",contents:"Voted successfully.",alignCenter:!0})}).fail(function(e){igeDialog({type:"warning",title:"Poll",contents:"responseJSON"in e?"Wrong Access":e.responseText,alignCenter:!0})}).always(e.proxy(function(){this.disabled=!1},this))):(igeDialog({type:"warning",title:"Poll",contents:"The votes are the same.",alignCenter:!0}),!1):(igeDialog({title:"Poll",contents:i?"Please select an answer.":"The poll is closed. Thank you.",alignCenter:!0}),!1))};f.update(),i?(t.find(".answer label").click(function(t){var n=e("#"+e(this).attr("for")).is(":checked");return n||1!=s?n||l.filter(":checked").length<s:(l.filter(":checked").prop("checked",!1),!0)}),l.change(function(e){this.checked&&l.not(c).filter(":checked").length>=s&&d.prop("readOnly",!0)}),c.change(function(e){d.prop("readOnly",!this.checked),this.checked&&d.focus()}),d.on("mousedown touchstart",function(e){this.readOnly&&(l.filter(":checked").prop("checked",s>1),l.filter(":checked").length<s&&(this.readOnly=!1,c.prop("checked",!0)))}),d.keyup(function(e){13==e.which&&h.bind(u.get(0))()}),u.click(h)):t.find(".answer label").add(d).click(function(n){var o=e("<p/>",{class:"ige-poll-tooltip",text:"The poll is already closed."}).css({top:n.pageY+10,left:t.offset().left,width:t.width()}).one("transitionend",function(e){o.css({opacity:0,"transition-delay":"0.6s"}),setTimeout(function(){o.one("transitionend",function(e){o.remove()})},10)}).appendTo(document.body);o.css({top:n.pageY-o.height(),opacity:1}),setTimeout(function(){o.remove()},2500)}),p.click(function(){r(o,t)})}});d(l,t)},a=function(t,n,i){o.result[t]=e(i).insertBefore(n).find('button[data-action="return"]').one("click",function(n){e(this).closest(".ige-poll-vote.result").before(o.vote[t]).detach()}).end(),o.vote[t]=n.detach(),"string"==typeof i&&s(o.result[t])},r=function(t,i){if(t in o.result)return a(t,i,o.result[t]),!1;var r=i.find('button[data-action="results"]');if(r.is(":disabled"))return!1;r.prop("disabled",!0),e.ajax({url:"/poll/result/"+t,type:"GET",headers:{"X-XSRF-TOKEN":n}}).done(function(e){e&&a(t,i,e)}).fail(function(e){igeDialog({type:"warning",title:"Poll",contents:"responseJSON"in e?"Wrong Access":e.responseText,alignCenter:!0})}).always(function(){r.prop("disabled",!1)})},s=function(t){var n=t.attr("data-index"),o=e("#poll-select-"+n,t),i=e(".etc-answer-"+n,t);o.change(function(){var t=e(this).val();o.closest(".answer").find(".choice > li").each(function(){"count"==t?e(this).css("order","0"):e(this).css("order",e(this).attr("item-order"))})}),i.click(function(){e(this).toggleClass("active")}),d(l,t)},l=window.matchMedia("(max-width: 599px)");l.addListener(function(e){d(l=e)});var c=e(),d=function(t,n){if(n="object"==typeof n?n:e(".ige-poll-vote"),t.matches){n.filter(".popup-installed").removeClass(".popup-installed").find(".choice a").off("
1click"),c.remove(),c=e(),e(document).off("keyup.pollPopup")}else{if(!c.length){c=e("<div/>",{class:"ige-poll-vote-popup hidden",html:'\t\t\t\t\t\t\t<div class="wrap">\t\t\t\t\t\t\t\t<div class="box">\t\t\t\t\t\t\t\t\t<img src="https://static.invenglobal.com/img/common/loading.gif" alt="">\t\t\t\t\t\t\t\t\t<button type="button">×</button>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>'}).appendTo(document.body);var o=function(){c.addClass("hidden").find("img").attr("src","https://static.invenglobal.com/img/common/loading.gif"),e(document.body).removeClass("o-hidden")};e(c,c.find("button")).click(o),c.find("img").click(function(e){return!1}),e(document).off("keyup.pollPopup").on("keyup.pollPopup",function(e){27!=e.which||c.hasClass("hidden")||o()})}n.not(".popup-installed").addClass("popup-installed").find(".choice a").click(function(t){return e("<img/>",{src:this.href}).on("load",function(e){c.find("img").replaceWith(this)}),c.removeClass("hidden"),e(document.body).addClass("o-hidden"),!1})}};t.length?e.get("/poll/view",{sidx:t.map(function(){return e(this).attr("data-idx")}).get()}).done(function(n){t.each(function(){e(this).replaceWith(n[e(this).attr("data-idx")]||"")}),e(".ige-poll-vote.result").each(function(){s(e(this))}),i()}):e(".ige-poll-vote:not(.result)").length?i():e(".ige-poll-vote.result").length&&e(".ige-poll-vote.result").each(function(){s(e(this))})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.