1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[37418],{60644(h,m,c){var f,r;f=[c(52473),c(68636),c(96352),c(25967)],r=(function(d,i,k,u){const a={};let g;const l=new Map,y=new Map([["container",'[component="category"]']]);a.init=function(n,e={}){g=n,["container"].forEach(t=>{l.set(t,e[t]||y.get(t))}),x(),$(window).off("action:popstate",s).on("action:popstate",s)},a.onBackClicked=s;function x(){$(l.get("container")).on("click","[data-index]",function(){const n=$(this).attr("data-index"),e=$(window).scrollTop();$(l.get("container")).find("[data-index]").each(function(t,o){if($(o).offset().top-e>0)return i.setItem("category:bookmark",$(o).attr("data-index")),i.setItem("category:bookmark:clicked",n),i.setItem("category:bookmark:offset",$(o).offset().top-e),!1})})}function s(n){const e=n&&ajaxify.data.template.unread;if(ajaxify.data.template.category||ajaxify.data.template.recent||ajaxify.data.template.popular||ajaxify.data.template.world||e){let t=i.getItem("category:bookmark"),o=i.getItem("category:bookmark:clicked");if(i.removeItem("category:bookmark"),i.removeItem("category:bookmark:clicked"),!utils.isNumber(t))return;if(t=Math.max(0,parseInt(t,10)||0),o=Math.max(0,parseInt(o,10)||0),config.usePagination){const p=Math.ceil((parseInt(t,10)+1)/config.topicsPerPage);parseInt(p,10)!==ajaxify.data.pagination.currentPage?u.loadPage(p,function(){a.scrollToTopic(t,o)}):a.scrollToTopic(t,o)}else{if(t===0){a.scrollToTopic(t,o);return}$(l.get("container")).empty(),g(Math.max(0,t-1)+1,function(){a.scrollToTopic(t,o)})}}}return a.highlightTopic=function(n){const e=d.get("category/topic","index",n);e.length&&!e.hasClass("highlight")&&(e.addClass("highlight"),setTimeout(function(){e.removeClass("highlight")},5e3))},a.scrollToTopic=function(n,e){if(!utils.isNumber(n))return;const t=d.get("category/topic","index",n);if(t.length){const o=i.getItem("category:bookmark:offset");i.removeItem("category:bookmark:offset"),$(window).scrollTop(t.offset().top-o),a.highlightTopic(e),k.update()}},a}).apply(m,f),r!==void 0&&(h.exports=r)}}]);
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.