PageSourceSearch

https://www.terra.com/_next/static/chunks/0hsim4al3wh_8.js

js terra.com collected 2026-10-01 08:51:15 UTC 24,620 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,148723,899058,e=>{"use strict";let t={nonPersonalizedAds:!1,restrictDataProcessing:!1};e.s(["ADS_CONSENT_UNRESTRICTED",0,t,"ALL_SIGNALS",0,["ad_storage","ad_user_data","ad_personalization","analytics_storage"]],899058);let n={nonPersonalizedAds:!0,restrictDataProcessing:!0},l=null,r=[],a=null,s=new Set;function i(e){l=e,a&&(clearTimeout(a),a=null);let t=r;for(let n of(r=[],t))n(e)}e.s(["awaitAdsConsent",0,function(){return!0!==window.__e80ConsentRequired?Promise.resolve(t):l?Promise.resolve(l):new Promise(e=>{r.push(e),a||(a=setTimeout(()=>{i(n)},8e3))})},"onConsentChange",0,function(e){return s.add(e),()=>s.delete(e)},"publishAdsConsent",0,function(e){if(l){for(let t of(l=e,s))t(e);return}i(e)}],148723)},556220,e=>{"use strict";var t=e.i(148723);let n=!1,l=null;function r(){let e=window.__e80ApsPubId;return(null==e?void 0:e.trim())||null}let a=[],s=new Map,i=!1,o=null,d=!1,c=!1,u=!1,m={},p=null,f=null,g=!1;function v(e){let t=window.googletag;(null==t?void 0:t.pubads)&&(e.nonPersonalizedAds||e.restrictDataProcessing||null!==f)&&(t.pubads().setPrivacySettings({nonPersonalizedAds:e.nonPersonalizedAds,restrictDataProcessing:e.restrictDataProcessing}),f=e)}function h(){let e=window.googletag;if(null==e?void 0:e.pubads)for(let[t,n]of Object.entries(m))null==n||Array.isArray(n)&&0===n.length||""===n||e.pubads().setTargeting(t,n)}let b={fetchMarginPercent:100,renderMarginPercent:50,mobileScaling:2},w=!0;function y(){window.googletag.cmd.push(()=>{let e=window.googletag;e.pubads().enableSingleRequest(),e.pubads().collapseEmptyDivs(!0,!0),w&&e.setConfig({lazyLoad:b})})}function x(){if(o=null,0===a.length)return;let e=a.splice(0);g||(g=!0,(0,t.onConsentChange)(e=>{var t,n,l,r;p=e,c&&d&&(null===(r=f)||r.nonPersonalizedAds!==e.nonPersonalizedAds||r.restrictDataProcessing!==e.restrictDataProcessing)&&(null==(l=window.googletag)||null==(n=l.cmd)||null==(t=n.push)||t.call(n,()=>{v(e),window.googletag.pubads().refresh()}))})),(0,t.awaitAdsConsent)().then(e=>(p=e,c?Promise.resolve():window.__e80GptStatic?(window.googletag=window.googletag||{cmd:[]},c=!0,y(),Promise.resolve()):u?new Promise(e=>{let t=setInterval(()=>{c&&(clearInterval(t),e())},50)}):(u=!0,new Promise((e,t)=>{window.googletag=window.googletag||{cmd:[]};let n=document.createElement("script");n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.async=!0,n.onload=()=>{c=!0,u=!1,y(),e()},n.onerror=()=>{u=!1,t(Error("Failed to load GPT script"))},document.head.appendChild(n)})))).then(()=>S(e)).then(t=>{let n=new Map;return window.googletag.cmd.push(()=>{let t=window.googletag;for(let m of(i||(i=!0,window.googletag.pubads().addEventListener("slotRenderEnded",e=>{var t,n;let l=s.get(null==(n=e.slot)||null==(t=n.getSlotElementId)?void 0:t.call(n));if(!l)return;let r=!e.isEmpty&&Array.isArray(e.size)&&"number"==typeof e.size[0]?[e.size[0],e.size[1]]:null;l(!e.isEmpty,r)})),e))try{var l,r,a,o,d,c,u;let e=m.format??"in_page";if("in_page"===e){let e=null==(d=t.pubads)||null==(o=d.call(t))||null==(a=o.getSlots)||null==(r=a.call(o))||null==(l=r.find)?void 0:l.call(r,e=>e.getSlotElementId()===m.divId);e&&(null==(c=t.destroySlots)||c.call(t,[e]));let n=t.defineSlot(m.adUnitPath,m.sizes,m.divId);if(!n){m.onError(`defineSlot null: ${m.adUnitPath}`);continue}n.addService(t.pubads())}else{let l="anchor"===e?t.enums.OutOfPageFormat.BOTTOM_ANCHOR:t.enums.OutOfPageFormat.INTERSTITIAL,r=t.defineOutOfPageSlot(m.adUnitPath,l);if(!r){m.onReady();continue}"interstitial"===e&&(null==(u=r.setConfig)||u.call(r,{interstitial:{triggers:{navBar:!0,unhideWindow:!0}}})),r.addService(t.pubads()),n.set(m.divId,r)}}catch(e){m.onError(e instanceof Error?e.message:String(e))}p&&v(p),h()}),(0===t.length||!window.apstag?Promise.resolve():new Promise(e=>{let n=!1,l=()=>{n||(n=!0,clearTimeout(r),e())},r=setTimeout(l,2e3);try{window.apstag.fetchBids({slots:t,timeout:1200},()=>{var e,t,n;null==(n=window.googletag)||null==(t=n.cmd)||null==(e=t.push)||e.call(t,()=>{try{window.apstag.setDisplayBids()}catch{}l()})})}catch{l()}})).then(()=>{window.googletag.cmd.push(()=>{let t=window.googletag;
1for(let l of(d||(t.enableServices(),d=!0),e))try{let e=l.format??"in_page";if("in_page"===e)t.display(l.divId);else{let e=n.get(l.divId);if(!e)continue;t.display(e)}l.onReady()}catch(e){l.onError(e instanceof Error?e.message:String(e))}})})}).catch(t=>{for(let n of e)n.onError(t.message)})}async function S(e){if(!r()||(null==p?void 0:p.nonPersonalizedAds))return[];let t=e.filter(e=>(e.format??"in_page")==="in_page").map(e=>({slotID:e.divId,slotName:e.adUnitPath,sizes:e.sizes}));return 0===t.length?[]:await function(){if(l)return l;let e=r();return l=e?new Promise(t=>{try{(function(){var e;if(window.apstag)return;let t=[],n=(e,n)=>t.push([e,n]);window.apstag={init:function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return n("i",t)},fetchBids:function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return n("f",t)},setDisplayBids:()=>{},targetingKeys:()=>[],_Q:t};let l=document.createElement("script");l.async=!0,l.src="https://c.amazon-adsystem.com/aax2/apstag.js";let r=document.getElementsByTagName("script")[0];null==r||null==(e=r.parentNode)||e.insertBefore(l,r)})(),n||(window.apstag.init({pubID:e,adServer:"googletag",simplerGPT:!1}),n=!0),t(!0)}catch{t(!1)}}):Promise.resolve(!1)}()?t:[]}e.s(["destroySlot",0,function(e){var t,n,l;s.delete(e),c&&(null==(l=window.googletag)||null==(n=l.cmd)||null==(t=n.push)||t.call(n,()=>{var t,n,l,r,a,s;let i=window.googletag,o=null==(a=i.pubads)||null==(r=a.call(i))||null==(l=r.getSlots)||null==(n=l.call(r))||null==(t=n.find)?void 0:t.call(n,t=>t.getSlotElementId()===e);o&&(null==(s=i.destroySlots)||s.call(i,[o]))}))},"registerSlot",0,function(e){var t,n;("u"<typeof document||(null==(n=document.documentElement)||null==(t=n.dataset)?void 0:t.sandbox)!=="1")&&(!1===e.lazyLoad&&(w=!1),e.onRendered&&s.set(e.divId,e.onRendered),a.push(e),o||(o=setTimeout(x,50)))},"setPageTargeting",0,function(e){if(m={...m,...e},d&&c){var t,n,l;null==(l=window.googletag)||null==(n=l.cmd)||null==(t=n.push)||t.call(n,h)}}],556220)},251922,e=>{"use strict";var t=e.i(289704),n=e.i(280515),l=e.i(556220);e.s(["GptAdSlot",0,function(e){let{adUnitPath:r,sizes:a,slotId:s,lazyLoad:i=!0}=e,o=(0,n.useRef)(!1),d=(0,n.useId)().replace(/[^a-zA-Z0-9]/g,""),c=`${s}-${d}`;return(0,n.useEffect)(()=>{if(!o.current)return o.current=!0,(0,l.registerSlot)({adUnitPath:r,sizes:a,divId:c,lazyLoad:i,onReady:()=>{},onError:()=>{}}),()=>(0,l.destroySlot)(c)},[r,a,c,i]),(0,t.jsx)("div",{id:c,className:"w-full flex items-center justify-center",style:{contain:"layout"}})}])},297402,e=>{"use strict";var t=e.i(289704),n=e.i(280515);let l=(0,n.createContext)("rioplatense");e.s(["DialectProvider",0,function(e){let{variant:n,children:r}=e;return(0,t.jsx)(l.Provider,{value:n,children:r})},"useDialect",0,function(){return(0,n.useContext)(l)}])},322426,e=>{"use strict";e.s(["dl",0,function(e,t){return"rioplatense"===e?t.rioplatense:"es"===e?t.es??t.neutral:t.neutral}])},715445,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],715445)},801647,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],801647)},859219,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in l)Object.defineProperty(n,r,{enumerable:!0,get:l[r]});let a=e.r(484841),s=e.r(790243),i=e.r(909433)},695219,e=>{"use strict";var t=e.i(289704),n=e.i(280515);e.i(116233);var l=e.i(819185),r=e.i(337904),a=e.i(297402),s=e.i(322426),i=e.i(859219);let o=(0,i.createServerReference)("40964f3c20363cca5ec635c0009a1563aeefd2baa3",i.callServer,void 0,i.findSourceMapURL,"subscribeToList");e.s(["NewsletterSubscribeForm",0,function(e){let{listSlug:i,titulo:d,descripcion:c,source:u="footer",layout:m="stacked"}=e,p=(0,a.useDialect)(),[f,g]=(0,n.useState)(""),[v,h]=(0,n.useState)(!1),[b,w]=(0,n.useState)(null);async function y(e){if(e.preventDefault(),f.trim()){h(!0),w(null);try{let e=await o({listSlug:i,email:f.trim(),source:u});e.ok?(w({kind:"success",needsConfirm:!!e.needsConfirm,already:!!e.alreadySubscribed}),e.alreadySubscribed||g("")):w({kind:"error",message:function(e,t){switch(e){case"email_invalido":return(0,s.dl)(t,{rioplatense:"Revisá que el email esté bien escrito.",neutral:"Revisa que el correo esté bien escrito."});case"lista_no_encontrada":return"Este newsletter ya no está disponible.";case"tenant_not_found":return console.error("[newsletter] suscripción sin tenant resuelto"),(0,s.dl)(t,{rioplatense:"No pudimos completar la suscripción en este momento. Probá de nuevo en unos minutos.",neutral:"No pudimos completar la suscripción en este momento. Prueba de nuevo en unos minutos."});default:return(0,s.dl)(t,{rioplatense:"No pudimos completar la suscripción. Probá de nuevo.",neutral:"No pudimos completar la suscripción. Prueba de nuevo."})}}(e.error,p)})}catch{w({kind:"error",message:(0,s.dl)(p,{rioplatense:"Hubo un error. Probá de nuevo.",neutral:"Hubo un error. Prueba de nuevo."})})}finally{h(!1)}}}return(null==b?void 0:b.kind)==="success"?(0,t.jsx)("div",{className:"rounded-lg border border-success/30 bg-success/10 p-4",children:b.already?(0,t.jsx)("p",{className:"text-sm",children:(0,s.dl)(p,{rioplatense:"Ya estás suscripto a este newsletter — gracias.",neutral:"Ya estás suscrito a este newsletter — gracias."})}):b.needsConfirm?(0,t.jsxs)("p",{className:"text-sm",children:[(0,s.dl)(p,{rioplatense:"¡Listo! Te mandamos un email a ",neutral:"¡Listo! Te enviamos un correo a "}),(0,t.jsx)("strong",{children:f})," para confirmar la suscripción."]}):(0,t.jsx)("p",{className:"text-sm",children:(0,s.dl)(p,{rioplatense:"Suscripción confirmada. Vas a recibir las próximas ediciones.",neutral:"Suscripción confirmada. Recibirás las próximas ediciones."})})}):(0,t.jsxs)("div",{className:"space-y-3",children:[d?(0,t.jsx)("h3",{className:"font-semibold text-lg",children:d}):null,c?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c}):null,(0,t.jsxs)("form",{onSubmit:y,className:"inline"===m?"flex gap-2":"space-y-2",children:[(0,t.jsx)(r.Input,{type:"email",required:!0,value:f,onChange:e=>g(e.target.value),placeholder:"[email protected]",disabled:v,className:"inline"===m?"flex-1":"w-full"}),(0,t.jsx)(l.Button,{type:"submit",disabled:v,children:v?"Enviando…":"Suscribirme"})]}),(null==b?void 0:b.kind)==="error"?(0,t.jsx)("p",{className:"text-sm text-destructive",children:b.message}):null]})}],695219)},736264,e=>{"use strict";var t=e.i(289704),n=e.i(280515);let l=(0,n.createContext)("es-AR");e.s(["LocaleProvider",0,function(e){let{locale:n,children:r}=e;return(0,t.jsx)(l.Provider,{value:n,children:r})},"useLocale",0,function(){return(0,n.useContext)(l)}])},270673,e=>{"use strict";var t=e.i(289704),n=e.i(280515),l=e.i(859219);let r=(0,l.createServerReference)("40bbfc09dbc11dd4ec40aab53cb56bb06c7c4dc408",l.callServer,void 0,l.findSourceMapURL,"votarEncuesta");var a=e.i(297402),s=e.i(736264),i=e.i(322426);let o='"Inter", system-ui, -apple-system, Arial, sans-serif';e.s(["EncuestaWidget",0,function(e){let{encuesta:l,titulo:d,fondoUrl:c,colorFondo:u,bannerSlot:m}
1=e,[p,f]=(0,n.useState)({yaVoto:!1,votos:Object.fromEntries(l.respuestas.map(e=>[e.id,e.votos])),total:l.totalVotos}),[g,v]=(0,n.useState)(new Set),[h,b]=(0,n.useState)([]),[w,y]=(0,n.useState)(null),[x,S]=(0,n.useTransition)(),j=(0,a.useDialect)(),P=(0,s.useLocale)(),N=`e80_encuesta_voto_${l.id}`;(0,n.useEffect)(()=>{let e=[];try{let t=window.localStorage.getItem(N);t&&(e=JSON.parse(t).filter(e=>Number.isInteger(e)))}catch{}let t=document.cookie.match(RegExp(`(?:^|;\\s*)encuesta_${l.id}=1`));e.length>0&&b(e),(e.length>0||t)&&f(e=>({...e,yaVoto:!0}))},[l.id,N]),(0,n.useEffect)(()=>{let e=!1;return fetch(`/api/encuestas/${l.id}/resultados`).then(e=>e.ok?e.json():null).then(t=>{if(e||!(null==t?void 0:t.porRespuesta))return;let n={};for(let e of t.porRespuesta)n[e.id]=e.votos;f(e=>({...e,votos:n,total:t.total}))}).catch(()=>{}),()=>{e=!0}},[l.id]);let k="cerrada"===l.estado||!!(l.cierreProgramado&&new Date(l.cierreProgramado)<=new Date),E=p.yaVoto||k,A="unica"===l.modoSeleccion;function I(e){b(e),f(e=>({...e,yaVoto:!0})),y(null);try{window.localStorage.setItem(N,JSON.stringify(e))}catch{}S(async()=>{try{await r({encuestaId:l.id,respuestaIds:e})}catch{}})}let R=p.total+h.length,_=l.mostrarCantidadVotos&&R>0,T=c&&u?{backgroundColor:u,backgroundImage:`url("${c}")`}:c?{backgroundImage:`url("${c}")`}:u?{backgroundColor:u,backgroundImage:"none"}:void 0;return(0,t.jsxs)("div",{className:"encuesta-box relative overflow-hidden p-6 text-white",style:T,children:[(0,t.jsxs)("div",{className:"mb-[18px] flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[(0,t.jsx)("h3",{className:"text-[21px] font-medium uppercase leading-none",children:d??"Encuesta"}),m&&(0,t.jsx)("div",{className:"shrink-0",children:m})]}),(0,t.jsx)("p",{className:`text-lg font-medium leading-tight text-white ${l.bajada?"mb-2":"mb-8"}`,children:l.pregunta}),l.bajada&&(0,t.jsx)("p",{className:"mb-8 text-sm font-medium leading-snug text-white/85",children:l.bajada}),(0,t.jsx)("div",{className:"space-y-4",style:{fontFamily:o},children:l.respuestas.map(e=>{let n,r=(n=e.id,(p.votos[n]??0)+ +!!h.includes(n)),a=0===R?0:Math.round(r/R*100),s=g.has(e.id);return(0,t.jsx)("button",{type:"button",onClick:()=>(function(e){if(!E){if(y(null),A)return void I([e]);v(t=>{let n=new Set(t);return n.has(e)?n.delete(e):(!l.maxSelecciones||n.size<l.maxSelecciones)&&n.add(e),n})}})(e.id),disabled:E||x,className:`relative block min-h-[40px] w-full overflow-hidden rounded-[20px] border bg-white px-4 py-3 text-left text-sm text-black transition-colors ${E?"cursor-default border-white":s?"cursor-pointer border-black/30":"cursor-pointer border-white hover:border-black/15"}`,children:E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-px left-0 z-0 bg-[#DBDBDB] transition-[width] duration-500",style:{width:`${a}%`}}),(0,t.jsxs)("span",{className:"relative z-10 flex items-center justify-between gap-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[l.conImagen&&e.imagenUrl&&(0,t.jsx)("img",{src:e.imagenUrl,alt:e.texto,className:"h-8 w-8 shrink-0 rounded object-cover"}),(0,t.jsx)("span",{className:"truncate font-medium",children:e.texto})]}),(0,t.jsxs)("span",{className:"shrink-0 font-semibold tabular-nums",children:[a,"%"]})]}),e.textoSecundario&&(0,t.jsx)("span",{className:"relative z-10 mt-0.5 block text-xs text-black/60",children:e.textoSecundario})]}):(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[l.conImagen&&e.imagenUrl&&(0,t.jsx)("img",{src:e.imagenUrl,alt:e.texto,className:"h-8 w-8 shrink-0 rounded object-cover"}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block truncate font-medium",children:e.texto}),e.textoSecundario&&(0,t.jsx)("span",{className:"block text-xs text-black/60",children:e.textoSecundario})]}),!A&&(0,t.jsx)("span",{"aria-hidden":!0,className:`ml-auto h-4 w-4 shrink-0 rounded-[4px] border ${s?"border-black bg-black":"border-black/40"}`})]})},e.id)})}),w&&(0,t.jsx)("p",{className:"mt-3 text-sm font-medium text-white",children:w}),!E&&!A&&(0,t.jsx)("button",{type:"button",onClick:function(){0===g.size?y((0,i.dl)(j,{rioplatense:"Elegí al menos una opción",neutral:"Elige al menos una opción"})):I([...g])},disabled:x||0===g.size,className:"mt-4 rounded-full bg-white px-5 py-2 text-sm font-semibold text-[color:var(--encuesta-accent)] transition-opacity disabled:opacity-60",style:{fontFamily:o},children:x?"Enviando...":"Votar"}),(_||E&&!k)&&(0,t.jsxs)("div",{className:"mt-3 flex items-end justify-between gap-3 pt-1 text-sm text-white",style:{fontFamily:o}
1,children:[(0,t.jsx)("span",{children:_?`${R.toLocaleString(P)} votos`:""}),E&&!k&&(0,t.jsx)("span",{className:"text-xs text-white/90",children:"Gracias por participar!"})]})]})}],270673)},802072,522290,732756,e=>{"use strict";e.s(["buildVideoAdTag",0,function(e,t){var n,l;let r;try{r=new URL(e)}catch{return e}let a=r.searchParams;a.set("plcmt","instream"===t.placement?"1":"2"),a.set("vpa",t.autoplay?"auto":"click"),a.set("vpmute",t.muted?"1":"0"),a.set("vpos",t.position);let s=null==(n=t.descriptionUrl)?void 0:n.trim();s&&a.set("description_url",s),!a.has("vid_d")&&t.contentDuration&&t.contentDuration>0&&a.set("vid_d",String(Math.round(t.contentDuration)));let i=null==(l=t.language)?void 0:l.trim().slice(0,2).toLowerCase();!a.has("hl")&&i&&/^[a-z]{2}$/.test(i)&&a.set("hl",i);let o=function(e,t){let n=new URLSearchParams(e??"");for(let[e,l]of Object.entries(t??{})){let t=Array.isArray(l)?l.filter(e=>"string"==typeof e&&e.trim()).join(","):(l??"").trim();!t||n.has(e)||n.set(e,t)}return n.toString()||null}(a.get("cust_params"),t.custParams);return o&&a.set("cust_params",o),r.toString()}],802072),e.s(["reportAdOutcome",0,function(e){try{let t=JSON.stringify({v:e.videoId,p:e.position,pl:e.placement,o:e.outcome,e:Math.round(e.errorCode??0),l:Math.round(e.loadMs??0),a:+!!e.autoplay,m:+!!e.muted,c:+!!e.completed,s:+!!e.skipped});if("function"==typeof navigator.sendBeacon)return void navigator.sendBeacon("/api/video-ad",t);fetch("/api/video-ad",{method:"POST",body:t,keepalive:!0}).catch(()=>{})}catch{}}],522290);let t=null;e.s(["loadImaSdk",0,function(){var e;return(null==(e=window.google)?void 0:e.ima)?Promise.resolve():(t||(t=new Promise((e,n)=>{let l=document.createElement("script");l.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",l.async=!0,l.onload=()=>e(),l.onerror=()=>{t=null,n(Error("IMA SDK failed to load"))},document.head.appendChild(l)})),t)}],732756)},480590,e=>{"use strict";var t=e.i(289704),n=e.i(280515),l=e.i(802072),r=e.i(522290),a=e.i(732756);let s=null,i={addBigPlayButton:!0,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"var(--primary, rgb(83, 84, 254))",adBreaks:"rgb(255, 204, 0)"},controlPanelElements:["play_pause","time_and_duration","spacer","mute","volume","captions","overflow_menu","fullscreen"],overflowMenuButtons:["quality","picture_in_picture","playback_rate","statistics"]};e.s(["VideoPlayer",0,function(o){let{cdnHostname:d,videoId:c,vastTagUrl:u,vastPostrollUrl:m,autoplay:p=!1,title:f,orientation:g="landscape",className:v,poster:h,placement:b="instream",contentDuration:w,adCustParams:y}=o,x=(0,n.useRef)(null),S=(0,n.useRef)(null),j=(0,n.useRef)(null),P=(0,n.useRef)(!1),[N,k]=(0,n.useState)(!1),[E,A]=(0,n.use
1State)(!1),I=h??(d?`https://${d}/${c}/thumbnail.jpg`:null),R=(null==u?void 0:u.trim())||null,_=(null==m?void 0:m.trim())||null,T=!!(R||_),C="object-contain",L=JSON.stringify(y??null),z=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e=j.current;if(!e)return;let t=`vp:${c}`,n=()=>{if(!z.current&&!e.paused&&!e.muted){z.current=!0;try{if(sessionStorage.getItem(t))return;sessionStorage.setItem(t,"1")}catch{}try{let e=JSON.stringify({v:c});"function"==typeof navigator.sendBeacon?navigator.sendBeacon("/api/video-play",e):fetch("/api/video-play",{method:"POST",body:e,keepalive:!0})}catch{}}};return e.addEventListener("playing",n),e.addEventListener("volumechange",n),()=>{e.removeEventListener("playing",n),e.removeEventListener("volumechange",n)}},[c]),(0,n.useEffect)(()=>{if(!p||N)return;let e=x.current;if(!e)return;if("u"<typeof IntersectionObserver)return void k(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(k(!0),t.disconnect())},{threshold:.5});return t.observe(e),()=>t.disconnect()},[p,N]),(0,n.useEffect)(()=>{if(!N||E)return;let t=!1,n=null,o=null,u=null;return(async()=>{let m=j.current,f=S.current;if(!m||!f)return;let g=`https://${d}/${c}/playlist.m3u8`;try{let d=await (!s&&(s=e.A(981498).then(e=>{let t=e.default??e;return t.polyfill.installAll(),t})),s);if(t)return;if(!d.Player.isBrowserSupported()){if(m.canPlayType("application/vnd.apple.mpegurl")){m.controls=!0,m.src=g,p?(m.muted=!0,m.play().catch(()=>{})):P.current&&m.play().catch(()=>{});return}throw Error("browser not supported by Shaka")}if(n=new d.Player,await n.attach(m),t)return void n.destroy();(o=new d.ui.Overlay(n,f,m)).configure(i),n.addEventListener("error",()=>{t||A(!0)});let y=n.load(g);y.catch(()=>{});let x=!1,S=()=>{x||t||(x=!0,u&&(clearTimeout(u),u=null),y.then(()=>{!t&&(p?(m.muted=!0,m.play().catch(()=>{})):P.current&&m.play().catch(()=>{}))}).catch(()=>{}))},j=!1;if(T)try{if(await (0,a.loadImaSdk)(),!t){let e=n.getAdManager(),t=window.google;if(e&&(null==t?void 0:t.ima)){var v,h;let a={placement:b,autoplay:p,muted:p,descriptionUrl:window.location.href,contentDuration:w??null,language:document.documentElement.lang||null,custParams:JSON.parse(L)??void 0},s=R?(0,l.buildVideoAdTag)(R,{...a,position:"preroll"}):null,i=_?(0,l.buildVideoAdTag)(_,{...a,position:"postroll"}):null,o=new t.ima.AdsRequest;if(i){let e;e=(e,t,n)=>`<vmap:AdBreak timeOffset="${e}" breakType="linear" breakId="${t}"><vmap:AdSource id="${t}-src" allowMultipleAds="false" followRedirects="true"><vmap:AdTagURI templateType="vast3"><![CDATA[${n}]]></vmap:AdTagURI></vmap:AdSource></vmap:AdBreak>`,o.adsResponse='<?xml version="1.0" encoding="UTF-8"?><vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">'+(s?e("start","preroll",s):"")+(i?e("end","postroll",i):"")+"</vmap:VMAP>"}else o.adTagUrl=s;null==(v=o.setAdWillAutoPlay)||v.call(o,p),null==(h=o.setAdWillPlayMuted)||h.call(o,p),R&&n.configure({ads:{skipPlayDetection:!0}}),e.requestClientSideAds(o,null);let d=s?"preroll":"postroll",m=0,f=null,g=()=>f??(f={pos:d,loadMs:m,filled:!1,completed:!1,skipped:!1,done:!1}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=g();n.done||(n.done=!0,(0,r.reportAdOutcome)({videoId:c,position:n.pos,placement:b,outcome:e,errorCode:t,loadMs:n.loadMs,autoplay:p,muted:p,completed:n.completed,skipped:n.skipped}),(n.filled||"error"===e)&&(d="postroll"),f=null)};if(e.addEventListener("ads-loaded",e=>{m=Math.round(1e3*(Number(null==e?void 0:e.loadTime)||0))}),e.addEventListener("ad-started",()=>{g().filled=!0}),e.addEventListener("ad-complete",()=>{g().completed=!0}),e.addEventListener("ad-skipped",()=>{g().skipped=!0}),e.addEventListener("ad-error",e=>{let t=0;try{var n,l,r,a;t=Number(null==e||null==(a=e.originalEvent)||null==(r=a.getError)||null==(l=r.call(a))||null==(n=l.getErrorCode)?void 0:n.call(l))||0}catch{}y("error",t)}),e.addEventListener("ad-stopped",()=>{y((null==f?void 0:f.filled)?"filled":"error")}),s){j=!0,u=setTimeout(()=>{y("timeout"),S()},4e3);let t=()=>{u&&(clearTimeout(u),u=null)};for(let n of(e.addEventListener("ad-started",t),e.addEventListener("ad-content-pause-requested",t),["ad-error","ad-stopped","all-ads-completed"]))e.addEventListener(n,S)}}}}catch{}j||S()}catch{t||A(!0)}})(),()=>{t=!0,u&&clearTimeout(u),o?o.destroy().catch(()=>{}):n&&n.destroy().catch(()=>{})}},[N,E,T,R,_,p,d,c,b,w,L]);let O=(0,n.useCallback)(()=>{P.current=!0,k(!0)},[]);if(E){let e=`https://${d}
1/${c}/playlist.m3u8`;return(0,t.jsx)("div",{className:v??"absolute inset-0 h-full w-full",children:(0,t.jsx)("video",{src:e,poster:I??void 0,title:f,controls:!0,playsInline:!0,muted:p,autoPlay:p,className:"h-full w-full object-contain bg-black"})})}return(0,t.jsx)("div",{ref:x,className:v??"absolute inset-0 h-full w-full",children:(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-black",children:[(0,t.jsx)("div",{ref:S,className:"absolute inset-0 h-full w-full",children:(0,t.jsx)("video",{ref:j,playsInline:!0,poster:I??void 0,title:f,preload:"none",className:`h-full w-full ${C}`})}),!N&&(0,t.jsxs)("button",{type:"button",onClick:O,"aria-label":f?`Reproducir: ${f}`:"Reproducir video",className:"group absolute inset-0 z-10 flex items-center justify-center bg-black/10 transition-colors hover:bg-black/20",children:[I&&(0,t.jsx)("img",{src:I,alt:f??"",className:`absolute inset-0 h-full w-full ${C}`,loading:"lazy"}),(0,t.jsx)("span",{className:"relative flex size-16 items-center justify-center rounded-full bg-black/55 backdrop-blur-sm transition-transform group-hover:scale-105",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"ml-1 size-7 fill-white","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})]})]})})}])}]);

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.