1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[5185],{1692:function(t,e,n){n.d(e,{Tj:function(){return s},pb:function(){return o},qI:function(){return a},qh:function(){return i}});var r=n(3964);const o=(0,r.A)(((t,e)=>e.filter(t))),s=(0,r.A)(((t,e)=>e.map(t))),i=(0,r.A)(((t,e)=>e.indexOf(t))),a=(0,r.A)(((t,e)=>e.flatMap(t)))},8321:function(t,e,n){n.d(e,{f:function(){return g},q:function(){return A}});var r=n(367),o=n(4465),s=n(298);const i="load_more_posts/data.js",a={};function c(t){return{site_id:t.bootstrap.site.id,node_id:t.sklId,resource_id:t.bootstrap.resourceId,path_params:JSON.stringify(t.bootstrap.pathParams),rm_page_path:t.path,formats:"html",...t.bootstrap.tag?.isSection&&{is_section_tag:1},...t.pathParams}}function u(t){return t.sklId in a||(a[t.sklId]=1),{...c(t),rm_lazy_load:1,exclude_post_ids:t.excludePostIds,pn:a[t.sklId],last_post_id:t.lastPostId,pn_strategy:t.ignorePageNumber?"ignore":""}}function l(t){return[`/res/${i}`,t]}function d([t,e]){return`${t}?${new URLSearchParams(e).toString()}`}const f=(0,r.A)((function(t){return{...c(t),post_id:t.postId,override_device:"desktop"}}),l,d),m=(0,r.A)(u,l,d),h=(0,r.A)(u,(function(t){return[`/core/${i}`,t]}),d);function p(t){return a[t.node_id]++,[t,a[t.node_id]]}function g(t){const e=(0,o.x3)()?h:m;return(0,s.mQ)(e(t)).then(p)}function A(t){return(0,s.mQ)(f(t))}},409:function(t,e,n){n.d(e,{A:function(){return l}});var r=n(367),o=n(1692),s=t=>e=>Array.from(e.querySelectorAll(t));const i=t=>(0,r.A)(a,u)(t),a=t=>c(t)?new Set:new Set((t.dataset.postsSources||"").split(",")),c=t=>"true"===t.dataset.ignorePageNumber,u=t=>(0,r.A)(s("[data-source]"),(0,o.pb)((t=>"false"!==t.getAttribute("data-source-unique"))),(0,o.pb)((e=>!t.has(e.getAttribute("data-source")))),(0,o.qI)(s("[elid]")),(0,o.Tj)((t=>t.getAttribute("elid"))))(document);function l(t,e){const n=Array.from(t.parentElement.querySelectorAll("article")),r=n[n.length-1],o=r?r.getAttribute("elid"):"",s=i(t),a=new Set(s);return{sklId:t.dataset.sklId,bootstrap:e.settings,path:e.path,pathParams:e.pathParams,excludePostIds:Array.from(new Set(a)).sort().join(","),ignorePageNumber:c(t),lastPostId:o}}},5282:function(t,e,n){function r(t){const e=(t.type||"").toLowerCase();if("video-content"===e||function(t){return t.startsWith("application/")&&t.endsWith("json")}(e))return;const n=document.createElement("script");var r;t.src?n.setAttribute("src",t.src):n.textContent=t.innerText,setTimeout((r=n,function(){document.head.appendChild(r)}),1)}function o(t){t.querySelectorAll("script").forEach(r)}n.d(e,{A:function(){return o}})},5508:function(t,e,n){n.d(e,{A:function(){return s},H:function(){return o}});var r=n(5282);function o(t,e){return t.innerHTML=e,(0,r.A)(t),t}function s(t,e,n=!1){const o=document.createElement("template");return o.innerHTML=e,(0,r.A)(o.content),n?t.insertAdjacentHTML("afterend",e):t.parentElement.insertBefore(o.content,t),n?t.nextElementSibling:t.previousElementSibling}},9046:function(t,e,n){n.d(e,{hD:function(){return c},iq:function(){return s},o2:function(){return i}});var r=n(5508),o=n(893);function s(t,e,n=!1){return(0,o.A)(e.css),n?(0,r.H)(t,e.posts_html):(0,r.A)(t,e.posts_html)}function i(t){let e=window.innerHeight;const n=t.querySelector(".posts-custom");if(n)e=n.offsetHeight;else{const n=t.querySelectorAll("article");if(n.length){const t=n[n.length-1];e=Math.min(6*e,Math.max(6*t.offsetHeight,e))}}return e}function a(t){return t.dataset.hasMore&&"false"!==t.dataset.hasMore}function c(t){const e=Array.from(t.querySelectorAll("[data-has-more]")).filter(a);return a(t)&&e.push(t),!!e.length}},5185:function(t,e,n){n.r(e),n.d(e,{default:function(){return x}});var r=n(367),o=n(3964),s=n(6172),i=n(8498),a=n(409),c=n(8321),u=n(9046);const l="rm-loading",d=(0,i.A)(3),f=(0,o.A)((function(t,e,[n,r]){return d.release(e),function(t,e,n,r){if(!t.classList.contains("wrapper-lazy-loading")&&(0,u.hD)(n,r)){const n=t.cloneNode();n.classList.remove,n.id=`next-page-${e}`,n.style.height="1px",n.classList.remove(l),t.parentElement.insertBefore(n,t.nextSibling)}t.parentElement.removeChild(t)}(t,r,(0,u.iq)(t,n),n.posts_html)})),m=(0,o.A)((function(t,e){const{target:n}=e;!n.dataset.sklId||"hasMore"in n.dataset&&"true"!==n.dataset.hasMore||"morePostsExists"in n.dataset&&"true"!==n.dataset.morePostsExists||(function(t){t.style.height=`${(0,u.o2)(t.parentElement)}px`,t.classList.add(l)}(n),d.request(3e3).then((function(e){(0,c.f)((0,a.A)(n,t)).then(f(n,e))})))}));var h=n(4361);const p=(0,o.A)((function(t,e,n,[r,o]){const s=(0,u.iq)(e,r,!0);e.classList.remove("rm-loading"),e.style.minHeight="0px",(0,u.hD)(s,r.posts_html)||n.classList.add("hidden"),t.innerText=t.dataset.previousText})),g=(0,o.A)((function(t,e,n){const{currentTarget:r}=n;r.dataset.previousText=r.innerText,r.innerText=e.dataset.loadingText||"Loading";const o=function(t){const e=document.createElement("div");e.className="rm-loadmore-placeholder rm-loading";const n=(0,u.o2)(t.parentElement);return e.style.minHeight=`${n}px`,t.parentElement.insertBefore(e,t),e}(r);(0,c.f)((0,a.A)(r,t)).then(p(r,o,e))})),A=(0,o.A)((function(t,e){"hasMore"in e.dataset&&"true"!==e.dataset.hasMore||"morePostsExists"in e.dataset&&"true"!==e.dataset.morePostsExists||(e.classList.remove("hidden"),e.addEventListener("click",g(t,e)))}));var x=(0,r.A)((function(t){const e=".infinite-scroll-wrapper";return function(t){Array.from(document.querySelectorAll(t)).forEac
1h((t=>{!0===t.dataset.hasMore&&t.classList.remove("hidden")}))}(e),(0,s.A)(t.intersectionObserverProvider,{selector:e,onIntersect:m(t),thresholdCalculator:{"4g":function(){return Math.max(3*window.innerHeight,700)},"3g":function(){return Math.max(3.5*window.innerHeight,900)}}}),t}),(function(t){return(0,h.A)(".button-load-more",A(t)),t}))}}]);
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.