1$(function(){var e,t,n=$(window).width()<=950,o=!1,i=$(".gameClassification ul"),a=$(".homeBrands li");i.on("mousedown",function(n){o=!0,e=n.pageX-$(this).offset().left,t=$(this).scrollLeft(),$(this).css("cursor","grabbing")}),a.on("mousedown",function(n){n.preventDefault(),o=!0,e=n.pageX-i.offset().left,t=i.scrollLeft(),i.css("cursor","grabbing")}),i.on("mouseleave",function(){o=!1,$(this).css("cursor","grab")}),i.on("mouseup",function(){o=!1,$(this).css("cursor","grab")}),i.on("mousemove",function(n){if(o){n.preventDefault();var i=n.pageX-$(this).offset().left,a=t-2*(i-e),s=$(this)[0].scrollWidth-$(this).width();a<0?a=s+a:a>s&&(a-=s),$(this).scrollLeft(a)}}),a.on("click",function(e){if(o)return e.preventDefault(),e.stopPropagation(),!1}),i.css("cursor","grab");var s=$(".category-dropdown"),r=$(".category-select"),l=$(".category-option"),c=$('.category-options input[type="checkbox"][name="category"]'),p=function(){return Math.max(0,function(){var e=0,t=$(".header");if(t.length){var n=t.css("position");"fixed"!==n&&"sticky"!==n||(e=t.outerHeight()||0)}return e}()-1)},u=function(){var e=p();"number"!=typeof e||isNaN(e)||document.documentElement.style.setProperty("--blog-sticky-top",e+"px")};u(),$(window).on("resize",u),$(window).on("scroll",u),r.on("click",function(e){e.stopPropagation(),$(this).closest(".category-dropdown").toggleClass("active")}),l.on("click",function(e){e.stopPropagation()}),$(document).on("click",function(){s.removeClass("active")}),s.on("click",function(e){e.stopPropagation()}
1),c.on("change",function(){var e=$(this);c.not(e).prop("checked",!1);var t=e.attr("data-url")||"";t&&(window.location.href=t)});var d=$(".search-right"),f=d.find(".blog-search-input"),h=d.find(".blog-search-popup"),w=d.find(".search-btn");if(f.length&&h.length){var m=h.find(".search-popup-header"),g=m.find(".title"),v=h.find(".search-popup-body"),y=h.find(".search-popup-list"),b=h.find(".search-popup-loading"),x=h.find(".search-popup-empty"),P=x.find(".empty-text"),S=m.find(".count"),_=h.find(".search-popup-hot"),k=_.find(".hot-title"),E=_.find(".search-popup-hot-list"),B=h.data("emptyText")||h.attr("data-empty-text")||"",L=h.data("titleText")||h.attr("data-title-text")||"",V=h.data("hotTitle")||h.attr("data-hot-title")||"",T=null,C=null,A=0,M=[],q=V,I=function(){h.addClass("is-open").attr("aria-hidden","false")},D=function(){h.removeClass("is-open").attr("aria-hidden","true")},N=function(e,t){e&&e.length?(k.text(t||V),E.empty(),_.show(),(e||[]).forEach(function(e){E.append(z(e,!0))})):(_.hide(),E.empty())},z=function(e,t){var n=e.detailUrl||e.detail_url||"#",o=e.title||"",i=e.thumb||"",a=e.time||"",s=e.brandName||e.brand_name||"",r=[];s&&r.push('<span class="brand">'+s+"</span>"),a&&r.push('<span class="time">'+a+"</span>");var l=r.length?r.join('<span class="dot">·</span>'):"";return'<li><a class="'+(t?"search-popup-item search-popup-item-hot":"search-popup-item")+'" href="'+n+'"><img class="search-popup-thumb" src="'+i+'" alt="'+o+'" /><div class="search-popup-text"><div class="search-popup-title">'+o+"</div>"+(l?'<div class="search-popup-meta">'+l+"</div>":"")+"</div></a></li>"},G=function(e,t,n,o){I(),b.hide(),y.empty(),m.show(),g.text(t||L),S.text(n||""),P.length?P.text(e||B):x.text(e||B),x.show(),N(o&&o.list?o.list:[],o&&o.title?o.title:"")},X=function(e){var t=(e||"").toString().trim();if(!t)return b.hide(),x.hide(),y.empty(),m.hide(),_.hide(),E.empty(),void D();C&&"function"==typeof C.abort&&C.abort();var n,o=A+=1;I(),b.css("display","flex"),x.hide(),y.empty(),m.show(),g.text(L),S.text(""),_.hide(),E.empty(),C=$.ajax({url:(n="undefined"!=typeof window&&window.$lang?String(window.$lang):"",(n&&"en"!==n.toLowerCase()?"/"+n:"")+"/blog/search-json"),method:"GET",dataType:"json",headers:window.getApiHeaders(),data:{q:t,size:8},success:function(e){if(o===A){var t=e&&e.data?e.data:{},n=t.list||[],i=t.title||L,a=t.emptyText||t.empty_text||B,s=t.totalText||t.total_text||"",r=t.hotList||t.hot_list||[],l=t.hotTitle||t.hot_title||V;M=Array.isArray(r)?r:[],q=l||V,n&&n.length?function(e,t,n,o){I(),b.hide(),x.hide(),y.empty(),m.show(),g.text(t||L),S.text(n||""),(e||[]).forEach(function(e){y.append(z(e,!1))}),N(o&&o.list?o.list:[],o&&o.title?o.title:"")}(n,i,s,{list:r,title:l}):G(a,i,s,{list:r,title:l})}},error:function(){o===A&&G(B,L,"",{list:M,title:q})},complete:function(){o===A&&b.hide()}})},Y=function(){T&&clearTimeout(T),T=setTimeout(function(){X(f.val())},180)};w.on("click",function(){Y()}),n&&(f.on("focus",function(){Y()}),f.on("input",function(){Y()})),f.on("keydown",function(e){var t=e.key||e.keyCode;"Enter"!==t&&13!==t||(e.preventDefault(),Y())}),$(document).on("click",function(e){$(e.target).closest(".search-right").length||D()}),v.on("click",function(e){e.stopPropagation()})}if($(".Genshin").on("click",'a[href^="#"]',function(e){var t=$(this).attr("href")||"";if(t&&"#"===t.charAt(0)&&$(t).length){e.preventDefault();var n=window.location.pathname+window.location.search+t;window.history&&"function"==typeof window.history.replaceState?window.history.replaceState(null,"",n):window.location.hash=t,function(e){if(e&&"string"==typeof e&&"#"===e.charAt(0)&&"#"!==e){var t=$(e);if(t.length){var n=t.offset().top;if("number"==typeof n&&!isNaN(n)){var o=p(),i=$(".Genshin");i.length&&(o+=i.outerHeight()||0),window.scrollTo({top:Math.max(0,n-o),behavior:"smooth"})}}}}(t)}}),$(".scroll").length&&$(".box").length){var j=0,H=function(){-750===j&&(j=0),j-=1,$(".scroll").css({left:j})},O=setInterval(H,20);$(".box").hover(function(){clearInterval(O)},function(){O=setInterval(H,20)})}var U=function(e,t){if("undefined"==typeof Swiper)return null;if(!document.querySelector(e))return null;try{return new Swiper(e,t)}catch(e){return null}},F=null,R=!1,W=null,J=".news-right .mySwiper",K={spaceBetween:0,loop:!0,centeredSlides:!1,autoplay:{delay:2500,disableOnInteraction:!1},pagination:{el:".news-right .swiper-pagination",clickable:!0}},Q=function(){return F||(e=J,t=document.querySelector(e),F=(t&&t.swiper?t.swiper:null)||U(J,K));var e,t},Z=function(e){var t=Q();
1t&&("number"!=typeof e||isNaN(e)||e<0||(t.autoplay&&"function"==typeof t.autoplay.stop&&t.autoplay.stop(),"function"==typeof t.slideToLoop?t.slideToLoop(e,300):"function"==typeof t.slideTo&&t.slideTo(e,300)))};R||(R=!0,$(".news-left").on("mouseover","li[data-slide-index]",function(){var e=parseInt($(this).attr("data-slide-index"),10);isNaN(e)&&(e=$(this).index()),e!==W&&(W=e,Z(e))}),$(".news-left").on("focusin","li[data-slide-index] a",function(){var e=$(this).closest("li"),t=parseInt(e.attr("data-slide-index"),10);isNaN(t)&&(t=e.index()),Z(t)}),$(".news-left").on("mouseleave",function(){var e=Q();e&&e.autoplay&&"function"==typeof e.autoplay.start&&e.autoplay.start()}),$(".news-left").on("focusout",function(){setTimeout(function(){if(!$(".news-left").find(":focus").length){var e=Q();e&&e.autoplay&&"function"==typeof e.autoplay.start&&e.autoplay.start()}},0)})),Q();var ee=0,te=setInterval(function(){ee+=1,(Q()||ee>=30)&&clearInterval(te)},200),ne=function(e,t){var n=document.querySelectorAll(e+" .swiper-slide"),o=n?n.length:0;return!(o<=1||2===o||!t)},oe=function(e,t){var n=document.querySelectorAll(e+" .swiper-slide");return!((n?n.length:0)<=2||!t)};U(".carousel_a .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_a",!0),centeredSlides:ne(".carousel_a",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_a .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_a .swiper-button-next",prevEl:".carousel_a .swiper-button-prev"}}),U(".carousel_b .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_b",!0),centeredSlides:ne(".carousel_b",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_b .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_b .swiper-button-next",prevEl:".carousel_b .swiper-button-prev"}}),U(".carousel_c .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_c",!0),centeredSlides:ne(".carousel_c",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_c .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_c .swiper-button-next",prevEl:".carousel_c .swiper-button-prev"}}),U(".carousel_d .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_d",!0),centeredSlides:ne(".carousel_d",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_d .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_d .swiper-button-next",prevEl:".carousel_d .swiper-button-prev"}}),U(".carousel_e .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_e",!0),centeredSlides:ne(".carousel_e",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_e .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_e .swiper-button-next",prevEl:".carousel_e .swiper-button-prev"}}),U(".carousel_f .mySwiper",{slidesPerView:1.35,spaceBetween:20,loop:oe(".carousel_f",!0),centeredSlides:ne(".carousel_f",!0),breakpoints:{1320:{slidesPerView:3,spaceBetween:50},768:{slidesPerView:2,spaceBetween:30},640:{slidesPerView:2,spaceBetween:20},320:{slidesPerView:1.4,spaceBetween:10}},pagination:{el:".carousel_f .swiper-pagination",clickable:!0},navigation:{nextEl:".carousel_f .swiper-button-next",prevEl:".carousel_f .swiper-button-prev"}}),$(".fold-up").click(function(){$(this).hasClass("on")?($(this).removeClass("on"),$(".Genshin").animate({left:0},500)):($(this).addClass("on"),$(".Genshin").animate({left:"-.95rem"},500))}),$(".More").click(function(e){e.stopPropagation(),$(".moreShow").hasClass("show")?$(".moreShow").removeClass("show"):$(".moreShow").addClass("show")}),$(document).on("click",function(e){$(e.target).closest(".moreShow").length||$(".moreShow").removeClass("show")}),$(".More .moreShow").click(function(e){e.stopPropagation()}),$(".More .moreShow .allGameBlog img").click(function(e){$(".moreShow").removeClass("show")});var ie=new Swiper("#blogs-index-bottom-hottest-img-box",{direction:"vertical",grabCursor:!0,momentumRatio:.8,navigation:!1,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0,waitForTransition:!0},on:{slideChange:function(e){var t=e.realIndex;$(".blogs-index-bottom-hottest-item").removeClass("active"),$(".blogs-index-bottom-hottest-item").eq(t).addClass("active")}}});$(".blogs-index-bottom-hottest-box").hover(function(){ie.autoplay.stop()},function(){ie.autoplay.start()}),$(".blogs-index-bottom-hottest-item").hover(function(){var e=$
1(this).index();ie.slideToLoop(e)});var ae=document.getElementById("bhMapSelector");if(ae){var se=function(){ge.forEach(function(e,t){var n=t-Be;n>ge.length/2&&(n-=ge.length),n<-ge.length/2&&(n+=ge.length);var o=function(e){var t=Math.abs(e);return 0===t?{y:0,scale:1,opacity:1,z:20,rotate:0}:1===t?{y:142*e,scale:.79,opacity:.42,z:12,rotate:1.2*e}:2===t?{y:232*e,scale:.64,opacity:.1,z:6,rotate:1.8*e}:{y:260*e,scale:.56,opacity:0,z:1,rotate:2*e}}(n);e.style.setProperty("--map-y",o.y+"px"),e.style.setProperty("--map-scale",o.scale),e.style.setProperty("--map-opacity",o.opacity),e.style.setProperty("--map-z",o.z),e.style.setProperty("--map-rotate",o.rotate+"deg"),e.style.setProperty("--map-drag-y",Te+"px"),e.classList.toggle("is-active",0===n),e.setAttribute("aria-hidden",0===n?"false":"true"),e.tabIndex=0===n?0:-1,0===n?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")}),Xe.forEach(function(e,t){var n=t===Be;e.classList.toggle("is-active",n),e.setAttribute("aria-pressed",String(n))}),ye&&(ye.textContent=String(Be+1).padStart(2,"0")),$e&&($e.disabled=ge.length<2),xe&&(xe.disabled=ge.length<2)},re=function(e,t){Be=function(e){return ge.length?(e%ge.length+ge.length)%ge.length:0}(e),Te=0,se(),t||fe()},le=function(e,t){re(Be+e,t)},ce=function(){return ge.length>1&&Ge&&!ze&&!Ne&&!De&&!Ae&&!document.hidden},pe=function(){var e=ce();ae.classList.toggle("is-autoplaying",e),ae.classList.toggle("is-autoplay-paused",!e),Pe&&(Pe.setAttribute("aria-pressed",String(ze)),Pe.setAttribute("aria-label",ze?"Resume automatic featured blog rotation":"Pause automatic featured blog rotation")),Se&&(Se.textContent=ze?"Paused":"Auto · 5s")},ue=function(){window.clearTimeout(qe),qe=0,ae.classList.remove("is-autoplaying")},de=function(e){ue(),pe(),ce()&&(ae.classList.remove("is-autoplaying"),ae.offsetWidth,ae.classList.add("is-autoplaying"),qe=window.setTimeout(function(){le(1,!0),de(ke)},"number"==typeof e?e:ke))},fe=function(e){de("number"==typeof e?e:ke)},he=function(){Ne=!0,window.clearTimeout(Ie),ue(),pe(),Ie=window.setTimeout(function(){Ne=!1,fe()},Ee)},we=function(e){if(Ae){var t;if(Ae=!1,ae.classList.remove("is-dragging"),me.hasPointerCapture&&me.hasPointerCapture(e.pointerId)&&me.releasePointerCapture(e.pointerId),t="mouse"===e.pointerType?Te:Ce,Te=0,Math.abs(t)<5){var n=e.clientX,o=e.clientY,i=document.elementFromPoint(n,o);if(i){var a=i.closest("[data-map-card]");if(a){console.log("æåæè·å¡çç¹å»",a);var s=ge.indexOf(a),r=Math.abs(t)>5;if(r||s!==Be)r||(he(),re(s));else{var l=a.getAttribute("href");l&&(window.location.href=l)}}}}else le(t<0?1:-1);window.setTimeout(function(){},30),fe(Ee)}},me=ae.querySelector(".bh-map-selector__viewport"),ge=Array.from(ae.querySelectorAll("[data-map-card]")),ve=ae.querySelector("[data-map-dots]"),ye=ae.querySelector("[data-map-current]"),be=ae.querySelector("[data-map-total]"),$e=ae.querySelector("[data-map-prev]"),xe=ae.querySelector("[data-map-next]"),Pe=ae.querySelector("[data-map-toggle]"),Se=ae.querySelector("[data-map-toggle-label]"),_e=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,ke=2e3,Ee=6500,Be=0,Le=0,Ve=0,Te=0,Ce=0,Ae=!1,Me=!1,qe=0,Ie=0,De=!1,Ne=!1,ze=_e,Ge=!0;be&&(be.textContent=String(ge.length).padStart(2,"0"));var Xe=ge.map(function(e,t){var n=document.createElement("button");return n.type="button",n.className="bh-map-selector__dot",n.setAttribute("aria-label","Show featured blog "+(t+1)),n.addEventListener("click",function(){he(),re(t)}),ve.appendChild(n),n});$e&&$e.addEventListener("click",function(){he(),le(-1)}),xe&&xe.addEventListener("click",function(){he(),le(1)}),Pe&&Pe.addEventListener("click",function(){ze=!ze,Ne=!1,window.clearTimeout(Ie),fe()}),ae.addEventListener("mouseenter",function(){De=!0,ue(),pe()}),ae.addEventListener("mouseleave",function(){De=!1,fe()}),me.addEventListener("wheel",function(e){e.preventDefault(),Me||Math.abs(e.deltaY)<8||(Me=!0,he(),le(e.deltaY>0?1:-1),window.setTimeout(function(){Me=!1},360))},{passive:!1}),me.addEventListener("keydown",function(e){"ArrowDown"!==e.key&&"PageDown"!==e.key||(e.preventDefault(),he(),le(1)),"ArrowUp"!==e.key&&"PageUp"!==e.key||(e.preventDefault(),he(),le(-1)),"Home"===e.key&&(e.preventDefault(),he(),re(0)),"End"===e.key&&(e.preventDefault(),he(),re(ge.length-1))}),me.addEventListener("pointerdown",function(e){"mouse"===e.pointerType&&0!==e.button||(he(),Le=e.clientY,Ve=e.clientX,Te=0,Ce=0,Ae=!0,ae.classList.add("is-dragging"),me.setPointerCapture(e.pointerId))}),me.addEventListener("pointermove",function(e){if(Ae){Ce=e.clientX-Ve,Te=e.clientY-Le;Math.abs(Ce),Math.abs(Te);"mouse"===e.pointerType?Te=Math.max(-82,Math.min(82,Te)):Te=Math.max(-82,Math.min(82,Ce)),se()}}),me.addEventListener("pointerup",we),me.addEventListener("pointercancel",we),document.addEventListener("visibilitychange",function(){document.hidden?(ue(),pe()):fe()}),se(),fe()}});
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.