PageSourceSearch

https://lablab.ai/_next/static/chunks/35856.f879278ffe7b54ca.js

js lablab.ai collected 2026-10-01 11:27:01 UTC 4,541 bytes, 3 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="28c571bc-644a-592f-b938-b733a35f19d4")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35856],{35856:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var l=a(65321),r=a(97109);let o={default:120,mqdefault:320,hqdefault:480,sddefault:640,maxresdefault:1280},s=r.forwardRef(function(e,t){var a,s;let[i,n]=r.useState(!1),[c,d]=r.useState(e.alwaysLoadIframe||!1),u=encodeURIComponent(e.id),p="string"==typeof e.playlistCoverId?encodeURIComponent(e.playlistCoverId):null,m=e.title,h=e.poster||"hqdefault",y=e.announce||"Watch",b=!e.alwaysLoadIframe||e.autoplay&&e.muted,f=r.useMemo(()=>{let t=new URLSearchParams({...e.muted?{mute:"1"}:{},...b?{autoplay:"1"}:{},...e.enableJsApi?{enablejsapi:"1"}:{},...e.playlist?{list:u}:{}});return e.params&&new URLSearchParams(e.params.startsWith("&")?e.params.slice(1):e.params).forEach((e,a)=>{t.append(a,e)}),t},[e.muted,b,e.enableJsApi,e.playlist,u,e.params]),w=r.useMemo(()=>e.cookie?"https://www.youtube.com":"https://www.youtube-nocookie.com",[e.cookie]),g=r.useMemo(()=>e.playlist?`${w}/embed/videoseries?${f.toString()}`:`${w}/embed/${u}?${f.toString()}`,[e.playlist,w,u,f]),$=!e.thumbnail&&!e.playlist&&"maxresdefault"===h,v=e.webp?"webp":"jpg",j=e.webp?"vi_webp":"vi",x=$?((e,t,a,l="maxresdefault")=>{let[s,i]=(0,r.useState)("");return(0,r.useEffect)(()=>{let r=`https://img.youtube.com/${t}/${e}/${l}.${a}`,s=`https://img.youtube.com/${t}/${e}/hqdefault.${a}`,n=o[l],c=new Image;c.onload=()=>{c.width<n?i(s):i(r)},c.onerror=()=>i(s),c.src=r},[e,t,a,l]),s})(e.id,j,v,h):null,k=r.useMemo(()=>e.thumbnail||x||`https://i.ytimg.com/${j}/${e.playlist?p:u}/${h}.${v}`,[e.thumbnail,x,j,e.playlist,p,u,h,v]),C=e.activatedClass||"lyt-activated",I=e.adNetwork||!1,L=e.aspectHeight||9,S=e.aspectWidth||16,U=e.iframeClass||"",N=e.playerClass||"lty-playbtn",_=e.wrapperClass||"yt-lite",E=r.useCallback(e.onIframeAdded||function(){},[e.onIframeAdded]),F=e.rel?"prefetch":"preload",M=e.containerElement||"article",O=!1!==e.noscriptFallback;return r.useEffect(()=>{c&&(E(),e.focusOnLoad&&"object"==typeof t&&null!=t&&t.current&&t.current.focus())},[c,E,e.focusOnLoad,t]),(0,l.jsxs)(l.Fragment,{children:[!e.lazyLoad&&(0,l.jsx)("link",{rel:F,href:k,as:"image"}),(0,l.jsx)(l.Fragment,{children:i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preconnect",href:w}),(0,l.jsx)("link",{rel:"preconnect",href:"https://www.google.com"}),I&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"})]})]})}),e.seo&&!e.playlist&&(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(a=e.id,JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:(null==(s=e.seo)?void 0:s.name)||m,thumbnailUrl:[(null==s?void 0:s.thumbnailUrl)||k],embedUrl:(null==s?void 0:s.embedUrl)||`${w}/embed/${a}`,contentUrl:(null==s?void 0:s.contentUrl)||`https://www.youtube.com/watch?v=${a}`,...(null==s?void 0:s.description)&&{description:s.description},...(null==s?void 0:s.uploadDate)&&{uploadDate:s.uploadDate},...(null==s?void 0:s.duration)&&{duration:s.duration}}))}}),O&&!e.playlist&&(0,l.jsx)("noscript",{children:(0,l.jsxs)("a",{href:`https://www.youtube.com/watch?v=${e.id}`,"aria-label":`Watch ${m} on YouTube`,children:['Watch "',m,'" on YouTube']})}),(0,l.jsxs)(M,{onPointerOver:()=>{i||n(!0)},onClick:()=>{c||d(!0)},className:`${_} ${c?C:""}`,"data-title":m,role:c?void 0:"img","aria-label":c?void 0:`${m} - YouTube video preview`,style:{...!e.lazyLoad&&{backgroundImage:`url(${k})`},"--aspect-ratio":`${L/S*100}%`,...e.style||{}},children:[e.lazyLoad&&!c&&(0,l.jsx)("img",{src:k,alt:`${m} - YouTube thumbnail`,className:"lty-thumbnail",loading:"lazy"}),(0,l.jsx)("button",{type:"button",className:N,"aria-label":`${y} ${m}`,"aria-hidden":c||void 0,tabIndex:c?-1:0,children:(0,l.jsx)("span",{className:"lty-visually-hidden",children:y})}),c&&(0,l.jsx)("iframe",{ref:t,className:U,title:m,width:"560",height:"315",style:{border:0},allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:g,referrerPolicy:e.referrerPolicy||"strict-origin-when-cross-origin"})]})]})})}}]);
3//# chunkId=28c571bc-644a-592f-b938-b733a35f19d4

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.