1import{_ as s}from"./chunks/index.D_5av9BF.js";import{s as y}from"./chunks/screens.B0WnhdaL.js";import{i as n}from"./chunks/initIntersectionObserver.B5hw3m26.js";import{t as C}from"./chunks/index.COmZMhFe.js";import{d as P}from"./chunks/debounce.BsMEdVCo.js";import{u as V}from"./chunks/updateUserIcon.h2B5jvkr.js";import{m as $}from"./chunks/useProfileApi.BbSHL9GU.js";import"./chunks/updateNotificationCounters.hVN7lvPd.js";import"./chunks/convertToUrlSearchParams.D6QR1eDk.js";import"./chunks/runtime-core.esm-bundler.B6keTsmA.js";console.dump=i=>{console.info(`>>> [${window.location.host}] ${i}`)};let v=document.documentElement.scrollTop;const h=document.querySelector("[data-header-tags]"),E=()=>{document.documentElement.scrollTop>v&&document.documentElement.scrollTop>20?document.documentElement.classList.add("is-scroll-down"):document.documentElement.classList.remove("is-scroll-down"),v=document.documentElement.scrollTop,v>=10?(document.documentElement.classList.add("is-header-sticky"),h==null||h.classList.add("t-dark")):(document.documentElement.classList.remove("is-header-sticky"),document.documentElement.classList.contains("is-hero")||h==null||h.classList.remove("t-dark"))},R=()=>{const i=document.createElement("div");i.className="scrollbar-measure",document.body.appendChild(i);const e=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),e},j=R(),x=()=>{document.body.style.setProperty("--body-scroll-width",`${j}px`)},B=()=>{document.body.style.setProperty("--body-scroll-width","")};(()=>{const i=window.matchMedia(`(min-width: ${y.lg.min})`);let e=null,t=null;const o=document.querySelector("[data-menu-toggle]");o&&o.addEventListener("click",()=>{document.documentElement.classList.toggle("is-menu-open"),document.documentElement.classList.contains("is-menu-open")?x():B()}),E(),document.addEventListener("scroll",()=>E());const a=async()=>{if(i.matches){if(!e){t||([{default:t}]=await Promise.all([s(()=>import("./chunks/NavOverflow.DNHy0wWq.js"),[],import.meta.url)])),e=new t;return}e.init()}else e&&e.kill()};a(),i.addEventListener("change",()=>a())})();n(document.querySelectorAll("[data-hero]"),()=>s(()=>import("./chunks/init.3sQfML6Q.js"),[],import.meta.url));n(document.querySelectorAll("[data-calendar]"),()=>s(()=>import("./chunks/init.CWZTMmEA.js"),[],import.meta.url));const k=i=>{n(i.querySelectorAll("[data-carousel]"),()=>s(()=>import("./chunks/init.C8_QkvIj.js"),[],import.meta.url))};window.tsn.infiniteScrollClosures.push(k);k(document);const A=i=>{n(i.querySelectorAll("[data-copy]"),()=>s(()=>import("./chunks/init.Be8N9zn2.js"),[],import.meta.url))};window.tsn.infiniteScrollClosures.push(A);A(document);n(document.querySelectorAll("[data-modal-target]"),()=>s(()=>import("./chunks/init.DBTv6WgS.js"),[],import.meta.url));document.getElementById("modal-host")&&s(()=>import("./chunks/initModalHost.iB9pXr1q.js"),[],import.meta.url);const L=i=>{customElements.get("lite-youtube")===void 0&&n(i.querySelectorAll("lite-youtube"),()=>s(()=>import("./chunks/init.C6K4zN7z.js"),[],import.meta.url),{rootMargin:"0px 0px 25% 0px"},!0)};window.tsn.infiniteScrollClosures.push(L);L(document);const S=i=>{n(i.querySelectorAll("[data-lazy-video]"),()=>s(()=>import("./chunks/init.B9kzcSe0.js"),[],import.meta.url))};window.tsn.infiniteScrollClosures.push(S);S(document);const I=i=>{n(i.querySelectorAll("[data-playlist]"),()=>s(()=>import("./chunks/init.Bz5G4dH7.js"),[],import.meta.url))};window.tsn.infiniteScrollClosures.push(I);I(document);n(document.querySelectorAll("[data-scroller]"),()=>s(()=>import("./chunks/init.ptWckzN5.js"),[],import.meta.url));n(document.querySelectorAll("[data-search]"),()=>s(()=>import("./chunks/init.a3QejpoT.js"),[],import.meta.url));(()=>{const i=document.querySelectorAll("[data-toggle-target]");i.length!==0&&i.forEach(e=>{const t=e.dataset.toggleTarget;if(!t)return;const o=document.querySelector(t);o&&C({toggleEl:e,targetEl:o})})})();(()=>{const i=document.querySelector("[data-cookies]"),e=document.querySelector("[data-cookies-submit]");if(!i||!e)return;localStorage.getItem("is_cookies_accepted")||(setTimeout(()=>document.documentElement.classList.add("is-cookies-visible"),1e3),e.addEventListener("click",o=>
1{o.preventDefault(),document.documentElement.classList.remove("is-cookies-visible"),localStorage.setItem("is_cookies_accepted","true")}))})();var b={};Object.defineProperty(b,"__esModule",{value:!0});var D=b.AdblockDetector=void 0;class M{constructor(){this.bannerIds=["AdHeader","AdContainer","AD_Top","homead","ad-lead"],this.init()}init(){if(!this.isBrowser()){console.error("Detection on server side is not supported. Please use library only on client side.");return}const e=document.createElement("div");e.innerHTML=this.generatesBannersString(),document.body.append(e)}detect(){return this.isBrowser()?!this.bannerIds.every(e=>this.checkVisibility(e)):!1}generatesBannersString(){return this.bannerIds.map(e=>`<div id="${e}"></div>`).join("")}checkVisibility(e){const t=document.querySelector(`#${e}`);return t?t.offsetParent:null}isBrowser(){return typeof window<"u"}}D=b.AdblockDetector=M;class z{constructor(e){this.configure(e),this.callbacks=[],this.interactiveCallbacks=[],this.counter=0,this.isAdblock=!1,this.isInteracted=!1,this.status="none",this.interactiveListener=this.interactive.bind(this),this.addInteractiveListeners(),this.checkAdblock()}configure(e){const t={observer:{rootMargin:"0px",threshold:0},dfp:{script:"//securepubads.g.doubleclick.net/tag/js/gpt.js"},prefix:"dfp-ad",selector:"[data-ad]",targeting:{}};if(!e||e===void 0){this.config=t;return}Object.keys(t).forEach(o=>{e[o]||(this.config[o]=t[o])})}setTargeting(e){e!==void 0&&(this.config.targeting=e)}interactive(e){this.isInteracted||!this.isEventInteractive(e)||(this.removeInteractiveListeners(),this.isInteracted=!0,this.runInteractiveCallbacks())}isEventInteractive(e){return e.type!="pointerdown"?!0:!(e.target.tagName=="A"&&e.target.href!="#"||e.target.parentNode&&e.target.parentNode.tagName=="A"&&e.target.parentNode.href!="#")}runInteractiveCallbacks(){!this.interactiveCallbacks.length||this.isAdblock||(this.interactiveCallbacks.forEach(e=>e()),this.interactiveCallbacks=[])}addInteractiveListeners(){document.addEventListener("scroll",this.interactiveListener,{passive:!0}),document.addEventListener("pointerdown",this.interactiveListener,{passive:!0})}removeInteractiveListeners(){document.removeEventListener("scroll",this.interactiveListener,{passive:!0}),document.removeEventListener("pointerdown",this.interactiveListener,{passive:!0})}async withLibrary(e){if(this.status=="loaded")return e();this.status!="loaded"&&this.callbacks.push(e),this.status!="loading"&&(this.status="loading",this.loadLibraries(()=>{this.status="loaded",googletag.cmd.push(()=>{googletag.pubads().collapseEmptyDivs(),this.config.targeting&&Object.keys(this.config.targeting).forEach(t=>{googletag.pubads().setTargeting(t,this.config.targeting[t]),console.dump("set googletag.pubads() global targeting ["+t+" => "+this.config.targeting[t]+"]")}),googletag.pubads().setCentering(!0),googletag.enableServices()}),setTimeout(()=>{this.callbacks.length&&!this.isAdblock&&(this.callbacks.forEach(t=>t()),this.callbacks=[])})}))}createObserver(){this.observer=new IntersectionObserver(e=>{e.forEach(t=>{if(t.intersectionRatio>0){this.unobserveNode(t.target);try{this.processNode(t.target)}catch(o){console.error(o)}}})},this.config.observer)}processNode(e){return"timeout"in e.dataset?this.processTimeouted(e,e.dataset.timeout):"interactive"in e.dataset?this.processInteractive(e):this.processDefault(e)}processInteractive(e){return e.dataset.interactive=="scroll"?this.addViaInteractiveScroll(e):this.isInteracted?this.load(e):this.interactiveCallbacks.push(()=>this.load(e))}addViaInteractiveScroll(e){if(window.scrollY>=200){this.load(e);return}const o=P(()=>{window.scrollY<200||(this.load(e),window.removeEventListener("scroll",o,{passive:!0}))},50);window.addEventListener("scroll",o,{passive:!0})}processTimeouted(e,t){if(!this.isAdblock)return window.addEventListener("load",()=>{setTimeout(()=>{this.load(e)},t)})}processDefault(e){return this.load(e)}loadAllIn(e){if(this.isAdblock){document.dispatchEvent(new Event("adblockDetected"));return}e.querySelectorAll(this.config.selector).forEach(o=>this.load(o))}load(e){if(!this.isAdblock)return this.withLibrary(()=>this.initAd(e))}initAd(e){const t=e.getAttribute("type")||e.dataset.type,o=e.dataset.ad;if(!(o===null||o===""))switch(t){case"function":return this.initViaFunction(o);case"doubleclick":return this.initDoubleclickAd(e);default:console.error(`Ad type ${t} is not supported`)}}initViaFunction(e){if(typeof window[e]=="function")return console.dump(`loading ad with function ${e}`),window[e]();console.error(`${e} is not a function`)}initDoubleclickAd(e){const t=this.getSlotId(),o=e.dataset.ad,a=JSON.parse(e.dataset.sizes);console.dump(`loading ad as doubleclick ${o}`),e.id=t,googletag.cmd.push(()=>{const d=googletag.defineSlot(o,a,t);Object.keys(this.config.targeting).forEach(c=>{d.setTargeting(c,this.config.targeting[c])}),d.addService(googletag.pubads()),googletag.display(d),googletag.pubads().addEventListener("slotRenderEnded",c=>{if(c.slot!=d||!c.isEmpty)return;if(c.isEmpty&&console.dump(`ad ${c.slot.getAdUnitPath()} is empty`),window.matchMedia(`(min-width: ${y.lg.min})`).matches){const l=e.closest("[data-ad-container]");if(l){if(console.log(l.dataset),l.dataset.locked)return;const u=l.parentNode;l.remove(),console.log(u),u&&u.childElementCount===0&&u.remove()}}})})}getSlotId(){return this.counter++,`${this.config.prefix}-${this.counter}`}unobserveNode(e){this.observer.unobserve(e)}observe(e){if(this.isAdblock){document.dispatchEvent(new Event("adblockDetected"));return}this.observer||this.createObserver();const t=e.querySelectorAll(this.config.selector);t.length&&t.forEach(o=>{if(o.dataset.interactiveOnLoad)return this.processInteractive(o);this.observer.observe(o)})}disconnect(){this.observer&&this.observer.disconnect()}async checkAdblock(){setTimeout(()=>{new D().detect()&&this.adblockDetected()},150)}adblockDetected(){this.isAdblock||(console.dump("adblock detected"),this.isAdblock=!0,this.removeInteractiveListeners(),this.disconnect(),document.dispatchEvent(new Event("adblockDetected")))}loadLibraries(e){window.googletag=window.googletag||{},window.vmpbjs=window.vmpbjs||{},window.vpb=window.vpb||{},vpb.cmd=vpb.cmd||[],vpb.st=Date.now(),vpb.fastLoad=!0,googletag.cmd=googletag.cmd||[],vmpbjs.cmd=vmpbjs.cmd||[];var t=[];try{t=googletag.cmd.slice(0),googletag.cmd.length=0}catch{}var o=!1;function a(r){return r.call(googletag)}var d=!1;googletag.cmd.push(function(){d=!0,googletag.cmd.unshift=function(r){if(o)return a(r);if(t.unshift(r),r._startgpt){o=!0;for(var m=0;m<t.length;m++)a(t[m])}},googletag.cmd.push=function(r){if(o)return a(r);t.push(r)}}),d||(googletag.cmd.push=function(r){t.push(r)},googletag.cmd.unshift=function(r){t.unshift(r),r._startgpt&&(o=!0,googletag.apiReady?t.forEach(function(m){googletag.cmd.push(m)}):googletag.cmd=t)});var c=36e5,_=parseInt(Date.now()/c),l="//player.bidmatic.io/prebidlink/"+_+"/wrapper_hb_790539_23644.js",u=l.replace("wrapper_hb","hb"),q="//securepubads.g.doubleclick.net/tag/js/gpt.js",O=document.head||document.body||document.documentElement;console.dump("loading prebid.js from "+u);function f(r,m){var g=document.createElement("script");return g.src=r,g.defer=!1,O.appendChild(g),g.onload=m,g.onerror=function(){var w=function(){};w._startgpt=!0,googletag.cmd.unshift(w)},g}f(u),f(q),f(l,()=>{e()})}}const p=new z;window.tsn&&p.setTargeting(window.tsn.adTargeting);p.observe(document);window.tsn.advertizer=p;window.tsn.infiniteScrollClosures.push(p.observe.bind(p));const W=()=>{document.querySelectorAll("[data-ad-container]").forEach(i=>
1i.remove())};document.addEventListener("adblockDetected",W);function F(){window._socialLoginCallback=function(){$.close(),window.location.reload()}}const H=()=>{F()};V();H();n(document.querySelectorAll("[data-restore-password-form]"),()=>s(()=>import("./chunks/init.CXzOLOlJ.js"),[],import.meta.url));const T=i=>{n(i.querySelectorAll("[data-comments-container]"),()=>s(()=>import("./chunks/initCommentsContainer.B38vpUO0.js"),[],import.meta.url))};window.tsn.infiniteScrollClosures.push(T);T(document);export{B as c,x as s};
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.