1import{sendIntentEvent as k,sendTrackingEvent as f}from"../data_emitter.js-BznVqD2B.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"1789548566057"}}catch{}})();try{(function(){var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new r.Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="f0bf57e7-4e33-46ba-bfe6-f6df233cf01a",r._sentryDebugIdIdentifier="sentry-dbid-f0bf57e7-4e33-46ba-bfe6-f6df233cf01a")})()}catch{}$(()=>{$(".content-file-item").on("click",function(e){$.ajax({type:"POST",url:$(this).data("countup-url"),data:{authenticity_token:$('meta[name="csrf-token"]').attr("content")}}),k("content-file",`${window.location.pathname}#content?title=${$(this).find(".file-item-title").text()}`,"click")}),$.ajax({url:"/browsing_history",dataType:"html"}).always(()=>{$("#browsing-history-box").addClass("hide")}).done(e=>{$("#browsing-history-wrapper").children().remove(),$("#browsing-history-wrapper").html(e),$("#browsing-history-wrapper .product-browsing-history-link").on("click",s=>{const n=$(s.currentTarget).data("productName");f("Browsing History",n,"click")})});const r=10;Promise.all([fetch("/weekly_review_ranking").then(e=>e.ok?e.text():""),fetch("/weekly_access_ranking").then(e=>e.ok?e.text():"")]).then(([e,s])=>{const n=document.getElementById("review-ranking-wrapper"),c=document.getElementById("access-ranking-wrapper"),t=document.querySelector('[data-tab="#review-ranking-wrapper"]'),a=document.querySelector('[data-tab="#access-ranking-wrapper"]'),o=document.getElementById("review-ranking-supplement"),y=document.getElementById("access-ranking-supplement"),i=document.getElementById("weekly-ranking-section");if(!n||!c)return;n.innerHTML=e,c.innerHTML=s;const u=n.querySelectorAll("li").length>=r,d=c.querySelectorAll("li").length>=r;if(!u&&!d){i&&(i.style.display="none");return}u?n.querySelectorAll("li").forEach(b=>{b.addEventListener("click",g=>{const m=g.currentTarget.getAttribute("data-product-name"),p=g.currentTarget.getAttribute("data-rank");f("Weekly Ranking",`${p} / ${m}`,"click")})}):(n.style.display="none",o.style.display="none",t&&(t.style.display="none",t.classList.remove("active")),a&&a.classList.add("active"),c.style.display="grid",y.style.display=""),d?c.querySelectorAll("li").forEach(b=>{b.addEventListener("click",g=>{const m=g.currentTarget.getAttribute("data-product-name"),p=g.currentTarget.getAttribute("data-rank");f("Weekly Ranking",`${p} / ${m}`,"click")})}):(c.style.display="none",y.style.display="none",a&&(a.style.display="none"))}).catch(e=>{});const l=document.querySelector("#searchCategoryHeading");document.querySelectorAll(".category-tab a[data-category-id]").forEach(e=>{e.addEventListener("click",()=>{const s=e.getAttribute("data-category-id"),n=document.querySelector(".parent-category-list"),c=document.querySelector(".sub-category-list"),t=e.getAttribute("data-url-name"),a=e.getAttribute("data-name");document.querySelectorAll(".category-tab-content").forEach(d=>{d.style.display="none"});const o=document.querySelector(`#${t}`);o.style.display="block",o.classList.add("fade-in"),l.textContent=a,n.style.display="none",document.querySelectorAll(".sub-category-list > ul > div").forEach(d=>{d.style.display="none"}),c.style.display="block";const y=document.querySelector(`#sub-category-${s}`);y.style.display="block";const i=y.querySelectorAll("li")[1];i.classList.remove("gray"),i.classList.add("bg-black");const u=i.querySelector("a");u.classList.remove("c-black"),u.classList.add("c-white")})}),document.querySelectorAll(".category-tab a[data-sub-category-id]").forEach(e=>{e.addEventListener("click",()=>{const s=e.getAttribute("data-url-name"),n=e.getAttribute("data-name");document.querySelectorAll(".category-tab-content").forEach(t=>{t.style.display="none"}),document.querySelectorAll(".sub-category-list > ul > div > li").forEach(t=>{t.classList.remove("bg-black"),t.classList.add("gray");const a=t.querySelector("a");a.classList.remove("c-white"),a.classList.add("c-black")}),e.parentElement.classList.remove("gray"),e.classList.remove("c-black"),e.parentElement.classList.add("bg-black"),e.classList.add("c-white");const c=document.querySelector(`#${s}`);c.style.display="block",c.classList.add("fade-in"),l.textContent=n})}
1),document.querySelectorAll(".tab-top-category").forEach(e=>{e.addEventListener("click",()=>{const s=e.getAttribute("data-url-name"),n=e.getAttribute("data-name");document.querySelectorAll(".category-tab-content").forEach(t=>{t.style.display="none"}),l.textContent=n;const c=document.querySelector(`#${s}`);c.style.display="block",c.classList.add("fade-in"),document.querySelectorAll(".sub-category-list > ul > div > li").forEach(t=>{t.classList.remove("bg-black"),t.classList.add("gray");const a=t.querySelector("a");a.classList.remove("c-white"),a.classList.add("c-black")}),e.parentElement.classList.remove("gray"),e.classList.remove("c-black"),e.parentElement.classList.add("bg-black"),e.classList.add("c-white")})}),document.querySelectorAll(".back-button").forEach(e=>{e.addEventListener("click",()=>{const s=document.querySelector(".sub-category-list"),n=document.querySelector(".parent-category-list"),c=document.querySelectorAll(".category-tab-content"),t=document.querySelector("#popular-category");s.style.display="none",n.style.display="block",l.textContent="人æ°ã«ãã´ãªã¼",c.forEach(a=>{a.style.display="none"}),t.style.display="block",t.classList.add("fade-in"),document.querySelectorAll(".sub-category-list > ul > div > li").forEach(a=>{a.classList.remove("bg-black"),a.classList.add("gray");const o=a.querySelector("a");o.classList.remove("c-white"),o.classList.add("c-black")})})})});
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.