PageSourceSearch

https://emprendeaprendiendo.com/_next/static/immutable/chunks/3hj44tzdikcgg.js

js emprendeaprendiendo.com collected 2026-09-24 18:15:05 UTC 47,503 bytes, 22 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,886172,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["ChatAvatar",0,function({pictureUrl:e,initials:a,size:n}){let[l,i]=(0,r.useState)(!1);return!e||l?(0,t.jsx)("div",{className:"rounded-full bg-[var(--bg-muted)] text-[var(--fg-muted)] font-semibold flex items-center justify-center flex-shrink-0",style:{width:n,height:n,fontSize:Math.round(.4*n)},"aria-hidden":"true",children:a}):(0,t.jsx)("img",{src:e,alt:"",width:n,height:n,onError:()=>i(!0),className:"rounded-full object-cover bg-[var(--bg-muted)] flex-shrink-0",style:{width:n,height:n}})}])},17431,667310,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(948148),n=e.i(191229),l=e.i(219973);function i({targetIso:e,render:a}){let[n,l]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=()=>l(Date.now()),t=window.setTimeout(e,0),r=window.setInterval(e,3e4);return()=>{window.clearTimeout(t),window.clearInterval(r)}},[]),null===n)return null;let s=new Date(e).getTime()-n;if(s<=0)return null;let o=Math.floor(s/1e3),c=Math.floor(o/86400),u=Math.floor(o%86400/3600),d=Math.floor(o%3600/60);return(0,t.jsx)(t.Fragment,{children:a({days:c,hours:u,minutes:d})})}function s({children:e}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded-full text-[10px] font-semibold border tabular-nums whitespace-nowrap",style:{color:"var(--warning-soft-fg)",backgroundColor:"var(--warning-soft)",borderColor:"var(--warning-soft-border)"},children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full flex-shrink-0",style:{backgroundColor:"var(--warning)"}}),e]})}e.s(["ProductCard",0,function({productId:e,channelId:o,conversationId:c,couponOffered:u=!1}){let d=(0,a.useTranslations)("HostedPublic.product"),[f,m]=(0,r.useState)(null),[p,h]=(0,r.useState)(!0),[x,g]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let t=!1;return async function(){try{let r=await fetch(`/api/hosted/products/${e}?channelId=${o}`);if(!r.ok){t||(g(!0),h(!1));return}let a=await r.json();t||(m(a.product),h(!1))}catch{t||(g(!0),h(!1))}}(),()=>{t=!0}},[e,o]),x)return null;if(p||!f)return(0,t.jsxs)("div",{className:"self-start max-w-md w-full px-3 py-3 rounded-2xl bg-[var(--bg-subtle)] border border-[var(--border)] animate-pulse",children:[(0,t.jsx)("div",{className:"h-4 w-3/5 bg-[var(--bg-muted)] rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-2/5 bg-[var(--bg-muted)] rounded"})]});let b=!0===f.installmentsOnly&&!!f.installmentNote,v=void 0!==f.priceLabel?f.priceLabel:b?f.installmentNote:Array.isArray(f.prices)&&f.prices.length>0?d("priceFrom",{price:(0,n.formatProductPrice)(f.prices.reduce((e,t)=>t.amount<e?t.amount:e,f.prices[0].amount),f.currency)}):null===f.price?d("priceOnRequest"):f.hasVariants?d("priceFrom",{price:(0,n.formatProductPrice)(f.price,f.currency)}):(0,n.formatProductPrice)(f.price,f.currency),y=f.effectiveCtaLabel?.trim()||(f.hasVariants?d("ctaChoose"):d("cta")),w=!1===f.available,k="tag"===f.accessMode||!0===f.viewerOwnsProduct,j=window.location.pathname+window.location.search,S=f.checkoutUrl||f.internalCheckoutPath?`/api/track/product-click?channelId=${o}&productId=${f.id}`+(c?`&conversationId=${c}`:"")+(u?"&coupon=1":"")+(j?`&returnPath=${encodeURIComponent(j)}`:""):null;return(0,t.jsxs)("div",{className:`clonify-hosted-product self-start max-w-md w-full px-3.5 py-3 rounded-2xl bg-[var(--bg-subtle)] border border-[var(--border)] hover:border-[var(--border-strong)] transition-colors flex items-center gap-3 ${f.imageUrl?"clonify-hosted-product-has-image":""}`,children:[f.imageUrl?(0,t.jsx)(l.ProductThumbnail,{src:f.imageUrl,alt:f.title,soldOut:w,checkoutUrl:S,ctaLabel:y,soldOutLabel:d("soldOut"),images:f.images,prevLabel:d("galleryPrev"),nextLabel:d("galleryNext")}):null,(0,t.jsxs)("div",{className:"clonify-hosted-product-main min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,t.jsx)("span",{className:"max-w-full break-words text-sm font-semibold leading-snug text-[var(--fg)] line-clamp-2",children:f.title}),k?(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-semibold bg-[var(--accent-soft)] text-[var(--accent)] flex-shrink-0",children:d("accessGranted")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-sm text-[var(--fg-muted)] flex-shrink-0",children:v}),f.installmentNote&&!b?(0,t.jsx)("span",{className:"text-xs text-[var(--fg-faint)] flex-shrink-0",children:d("installmentsAlso",{note:f.installmentNote})}):null]}),w?(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-semibold bg-[var(--bg-muted)] text-[var(--fg)] border border-[var(--border-strong)]",children:d("soldOut")}):(0,t.jsxs)(t.Fragment,{children:[f.offer?.mode==="fixed"?(0,t.jsx)(i,{targetIso:f.offer.endsAtIso,render:({days:e,hours:r,minutes:a})=>(0,t.jsx)(s,{children:d("offerEndsIn",{time:e>0?d("countdownDHM",{days:e,hours:r,minutes:a}):d("countdownHM",{hours:r,minutes:a})})})}):f.offer?.mode==="units"?(0,t.jsx)(s,{children:d("offerUnitsLeft",{count:f.offer.unitsLeft})}):f.offer?.mode==="per_visitor"||f.campaignActive?(0,t.jsx)(s,{children:d("campaignBadge")}):null,"number"==typeof f.lowStockCount?(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-semibold bg-[var(--bg-muted)] text-[var(--fg)] border border-[var(--border-strong)]",children:d("unitsLeft",{count:f.lowStockCount})}):null]})]}),(0,t.jsx)("p",{className:"text-xs text-[var(--fg-muted)] mt-1 line-clamp-2 leading-relaxed",children:f.description})]}),!S||w||k?null:(0,t.jsx)("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"clonify-hosted-product-cta flex-shrink-0 inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-full text-xs font-medium bg-[var(--accent)] text-[var(--bg)] hover:opacity-90 transition-opacity",children:y})]})}],17431);var o=e.i(689664),c=e.i(327491),u=e.i(263676),d=e.i(632781);e.s(["EscalateBlock",0,function({channelId:e,conversationId:n,verifiedEmail:l,verifiedName:i,escalationMessage:s,escalationButtonLabel:f}){let m=(0,a.useTranslations)("HostedPublic.escalate"),[p,h]=(0,r.useState)("idle"),[x,g]=(0,r.useState)(l??""),[b,v]=(0,r.useState)(""),[y,w]=(0,r.useState)(!1),[k,j]=(0,r.useState)(null),S=i??"",N=null!==l&&!y,C=/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(x.trim());async function A(){if(null===n){j(m("errorNoConversation")),h("error");return}if(!C)return void j(m("errorInvalidEmail"));h("sending"),j(null);
1try{let t=b.trim(),r=await fetch("/api/hosted/escalate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({channelId:e,conversationId:n,email:x.trim(),name:S.trim()||void 0,message:t.length>0?t:void 0})});if(!r.ok){let e=await r.json().catch(()=>({}));j(m("errorSend")),h("error"),"invalid_email"===e.error&&j(m("errorInvalidEmail"));return}h("sent")}catch{j(m("errorSend")),h("error")}}if("sent"===p)return(0,t.jsxs)("div",{className:"clonify-escalate shrink-0 inline-flex items-start gap-2 px-3 py-2 rounded-2xl bg-[color-mix(in_srgb,var(--accent)_10%,transparent)] border border-[color-mix(in_srgb,var(--accent)_30%,transparent)] text-sm text-[var(--fg)] max-w-md",children:[(0,t.jsx)(o.Check,{size:14,className:"text-[var(--accent)] mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-medium",children:m("sentTitle")}),(0,t.jsx)("span",{className:"text-xs text-[var(--fg-muted)] mt-0.5 leading-relaxed",children:s})]})]});if("idle"===p)return(0,t.jsxs)("button",{type:"button",onClick:function(){h("form"),j(null)},className:"clonify-escalate shrink-0 max-w-full self-start inline-flex min-h-11 items-center gap-1.5 px-3 py-1.5 rounded-full bg-[var(--bg-subtle)] border border-[var(--border)] text-xs font-medium text-[var(--fg)] hover:border-[var(--accent)] hover:text-[var(--accent)] transition-colors cursor-pointer",children:[(0,t.jsx)(c.MessageCircleQuestion,{size:13}),f]});let $="sending"===p;return(0,t.jsxs)("div",{className:"clonify-escalate shrink-0 flex flex-col gap-2 px-3 py-3 rounded-2xl bg-[var(--bg-subtle)] border border-[var(--border)] w-full max-w-md",children:[(0,t.jsx)("p",{className:"text-xs text-[var(--fg-muted)] leading-relaxed",children:s}),N?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-[var(--fg)] truncate flex-1",children:l}),(0,t.jsx)("button",{type:"button",onClick:()=>w(!0),disabled:$,className:"text-xs text-[var(--fg-muted)] hover:text-[var(--fg)] underline-offset-2 hover:underline cursor-pointer disabled:opacity-50",children:m("changeEmail")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{className:"text-xs text-[var(--fg-muted)] leading-relaxed",children:m("emailPromptShort")}),(0,t.jsx)("input",{type:"email",inputMode:"email",autoComplete:"email",value:x,onChange:e=>g(e.target.value),placeholder:m("emailPlaceholder"),disabled:$,autoFocus:!0,className:"w-full px-3 py-2 text-sm rounded-[var(--radius)] bg-[var(--field)] text-[var(--fg)] border border-[var(--border)] focus:border-[var(--accent)] focus:outline-none disabled:opacity-50"})]}),(0,t.jsx)("label",{className:"text-xs text-[var(--fg-muted)] leading-relaxed mt-1",children:m("messagePromptShort")}),(0,t.jsx)("textarea",{value:b,onChange:e=>v(e.target.value),placeholder:m("messagePlaceholder"),disabled:$,rows:3,maxLength:2e3,className:"w-full px-3 py-2 text-sm rounded-[var(--radius)] bg-[var(--field)] text-[var(--fg)] border border-[var(--border)] focus:border-[var(--accent)] focus:outline-none disabled:opacity-50 resize-none"}),k?(0,t.jsx)("p",{className:"text-xs text-[var(--danger)]",children:k}):null,(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsxs)("button",{type:"button",onClick:function(){h("idle"),w(!1),j(null)},disabled:$,className:"inline-flex min-h-11 items-center gap-1 px-2.5 py-1.5 text-xs text-[var(--fg-muted)] hover:text-[var(--fg)] rounded-[var(--radius)] cursor-pointer disabled:opacity-50 sm:min-h-0",children:[(0,t.jsx)(u.X,{size:12}),m("cancel")]}),(0,t.jsxs)("button",{type:"button",onClick:A,disabled:$||!N&&!C,className:"inline-flex min-h-11 items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-full bg-[var(--accent)] text-[var(--accent-fg)] hover:bg-[var(--accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer sm:min-h-0",children:[$?(0,t.jsx)(d.Loader2,{size:12,className:"animate-spin"}):(0,t.jsx)(o.Check,{size:12}),$?m("sending"):m("submit")]})]})]})}],667310)},211113,e=>{"use strict";var t=e.i(271645);function r(){return()=>{}}e.s(["useHydrated",0,function(){return(0,t.useSyncExternalStore)(r,()=>!0,()=>!1)}])},522845,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),n=e.i(948148),l=e.i(632781);e.s(["CourseSignIn",0,function({brandName:e,brandLogoUrl:i=null,redirectTo:s=null,variant:o="screen",ctaLabel:c,notice:u=null,paidEmail:d=null,purchaseCode:f=!1}
1){let m=(0,n.useTranslations)("Sitio.signIn"),p=(0,a.useRouter)(),[h,x]=(0,r.useState)(f?"code":"email"),[g,b]=(0,r.useState)(d&&f?"pending":"email"),[v,y]=(0,r.useState)(d??""),[w,k]=(0,r.useState)(""),[j,S]=(0,r.useState)(!1),[N,C]=(0,r.useState)(null);async function A(){if(!j&&0!==v.trim().length){S(!0),C(null);try{if(!(await fetch("/api/hosted/auth/site-request-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v.trim()})})).ok)return void C(m("error"));x("code"),k(""),b("sent")}catch{C(m("error"))}finally{S(!1)}}}async function $(){if(!j&&!(w.trim().length<6)&&v.trim()){S(!0),C(null);try{let e=await fetch("/api/hosted/auth/site-verify-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v.trim(),code:w.trim()})});if(!e.ok){let t=await e.json().catch(()=>null);C(m(t?.reason==="expired"||t?.reason==="attempts_exhausted"?"expiredCode":"wrongCode"));return}s&&p.replace(function(e,t="/"){let r="string"!=typeof e||0===e.length||e.length>512||!e.startsWith("/")||e.startsWith("//")||/[\s\\]/.test(e)?t:e,a=new URL(r,"https://return.invalid"),n=/^\/(en\/|ca\/)?upsell\/(\d+)\/?$/.exec(a.pathname);if(n){let e=new URLSearchParams({product:n[2]});for(let t of["bump","upsell"]){let r=a.searchParams.get(t);r&&/^\d+(,\d+){0,2}$/.test(r)&&e.set(t,r)}return`/${n[1]??""}gracias?${e}`}return"/api/hosted/checkout/complete"===a.pathname?(a.searchParams.set("finish_upsells","1"),`${a.pathname}${a.search}`):r}(s)),p.refresh()}catch{C(m("error"))}finally{S(!1)}}}(0,r.useEffect)(()=>{let e;if(!f||!d||"pending"!==g)return;let t=!1,r=new AbortController,a=Date.now()+45e3;async function n(){try{let e=await fetch(`/api/hosted/auth/purchase-code-status?next=${encodeURIComponent(s??"")}`,{cache:"no-store",signal:r.signal}),a=e.ok?await e.json():null;if(t)return;if(a?.status==="sent"||a?.status==="unavailable")return void b(a.status)}catch{if(t)return}Date.now()>=a?b("unavailable"):e=setTimeout(()=>{n()},3e3)}return n(),()=>{t=!0,r.abort(),clearTimeout(e)}},[g,d,f,s]);let E="w-full py-3 rounded-[var(--radius)] border border-[var(--border)] bg-[var(--bg)] text-[15px] outline-none focus:border-[var(--accent)] focus:ring-4 focus:ring-[color-mix(in_oklab,var(--accent)_18%,transparent)] transition-all",L=`${E} pl-4 pr-14`,I=`${E} px-4 tracking-widest text-center tabular-nums`,M="inline-flex items-center justify-center gap-2 w-full px-5 py-3.5 rounded-[var(--radius)] bg-[var(--accent)] text-[var(--accent-fg)] text-[15px] font-semibold shadow-[0_6px_18px_-6px_color-mix(in_oklab,var(--accent)_60%,transparent)] hover:opacity-90 transition-opacity disabled:opacity-50",T="inline"===o;return(0,t.jsx)("div",{className:T?"w-full min-w-0":"mx-auto w-full min-w-0 max-w-[560px]",children:(0,t.jsxs)("div",{className:T?"mt-3":"overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] p-6 shadow-[0_24px_60px_-20px_rgba(0,0,0,0.35)] sm:p-8",children:[(0,t.jsxs)("div",{className:T?"hidden":"text-center mb-8",children:[i?(0,t.jsx)("img",{src:i,alt:e,className:"w-[72px] h-[72px] rounded-[var(--radius-lg)] object-cover mx-auto mb-4"}):null,(0,t.jsx)("div",{className:"max-w-full break-words text-[32px] font-extrabold leading-tight tracking-tight text-[var(--fg)] [overflow-wrap:anywhere]",children:e}),(0,t.jsx)("p",{className:"text-[15px] text-[var(--fg-faint)] mt-1.5",children:m(d?"purchaseComplete":"title")})]}),u||f?(0,t.jsx)("p",{role:"status",className:"mb-6 max-w-full break-words rounded-[var(--radius)] border border-[var(--border)] bg-[var(--bg-subtle)] px-4 py-4 text-base leading-relaxed text-[var(--fg)] [overflow-wrap:anywhere]",children:f&&"sent"===g?m.rich("purchaseCodeSent",{email:v,address:e=>(0,t.jsx)("strong",{className:"mt-1 block text-lg font-semibold leading-snug",children:e}),instruction:e=>(0,t.jsx)("span",{className:"mt-3 block",children:e})}):f?m("pending"===g?"purchaseCodePending":"unavailable"===g?"purchaseCodeUnavailable":"purchaseCodeEmail",{email:v}):u}):null,"email"===h?(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),A()},className:"flex flex-col gap-3",children:[d?(0,t.jsx)("p",{className:"break-words text-sm text-[var(--fg)] [overflow-wrap:anywhere]",children:m("paidEmail",{email:d})}):(0,t.jsx)("input",{type:"email","aria-label":m("emailPlaceholder"),required:!0,autoFocus:!0,autoComplete:"email",value:v,onCh
1ange:e=>y(e.target.value),placeholder:m("emailPlaceholder"),className:L}),(0,t.jsxs)("button",{type:"submit",disabled:j||0===v.trim().length,className:`${M} mt-0.5`,children:[j?(0,t.jsx)(l.Loader2,{size:15,className:"animate-spin"}):null,c??m(d?"sendAccessCode":"sendCode")]})]}):(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),$()},className:"flex flex-col gap-3",children:[f&&!d&&(0,t.jsxs)("label",{className:"flex flex-col gap-2 text-sm text-[var(--fg)]",children:[m("purchaseEmailLabel"),(0,t.jsx)("input",{type:"email",autoComplete:"email",required:!0,value:v,onChange:e=>y(e.target.value),className:L})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-2 text-sm text-[var(--fg)]",children:[m("codeLabel"),(0,t.jsx)("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code","aria-label":m("codeLabel"),autoFocus:!0,value:w,onChange:e=>k(e.target.value.replace(/\D/g,"").slice(0,6)),placeholder:m("codePlaceholder"),className:I})]}),(0,t.jsxs)("button",{type:"submit",disabled:j||w.length<6||!v.trim(),className:M,children:[j?(0,t.jsx)(l.Loader2,{size:15,className:"animate-spin"}):null,m("verify")]}),(!f||"pending"!==g)&&(0,t.jsx)("button",{type:"button",onClick:()=>{f?A():(x("email"),k(""),C(null))},disabled:j||f&&!v.trim(),className:"mt-0.5 inline-flex min-h-11 items-center self-center px-3 text-xs text-[var(--fg-muted)] hover:text-[var(--fg)]",children:m(d||f?"requestAnotherCode":"back")})]}),N?(0,t.jsx)("p",{role:"alert",className:"text-xs text-[var(--danger)] text-center mt-2.5",children:N}):"email"===h?(0,t.jsx)("p",{className:"text-xs text-[var(--fg-faint)] text-center mt-3",children:m("subtitle")}):f?(0,t.jsx)("p",{className:"text-xs text-[var(--fg-faint)] text-center mt-3",children:m("purchaseCodeHelp")}):(0,t.jsx)("p",{className:"text-xs text-[var(--fg-faint)] text-center mt-3",children:m("codeSentTo",{email:v})})]})})}],522845)},292204,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(174080),n=e.i(88014),l=e.i(618566),i=e.i(948148),s=e.i(861745),o=e.i(263676),c=e.i(522845),u=e.i(764584);function d({open:e,onClose:n,brandName:l,brandLogoUrl:f=null}){let m=(0,i.useTranslations)("Sitio"),p=(0,s.useLocale)(),[h,x]=(0,r.useState)(!1),g=(0,u.useDialog)(e&&h,n);return((0,r.useEffect)(()=>{x(!0)},[]),e&&h)?(0,a.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":m("close"),onClick:n,className:"absolute inset-0 bg-black/40 backdrop-blur-sm cursor-default"}),(0,t.jsxs)("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":m("signInDialogLabel"),tabIndex:-1,className:"relative w-full max-w-[500px] outline-none",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":m("close"),className:"absolute -top-3 -right-3 z-10 grid place-items-center w-8 h-8 rounded-full bg-[var(--surface)] border border-[var(--border)] text-[var(--fg-muted)] hover:text-[var(--fg)] shadow-[var(--shadow-md)]",children:(0,t.jsx)(o.X,{size:16})}),(0,t.jsx)("div",{className:"max-h-[calc(100dvh-2rem)] overflow-y-auto rounded-[var(--radius-lg)]",children:(0,t.jsx)(c.CourseSignIn,{brandName:l,brandLogoUrl:f,redirectTo:`${"en"===p?"/en":""}/mis-productos`})})]})]}),document.getElementById("clonify-site-root")??document.body):null}var f=e.i(427038);function m({formId:e,prefill:n=null,onClose:l}){let s=(0,i.useTranslations)("Sitio"),[c,d]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),x=(0,u.useDialog)(null!==e&&c,l);return((0,r.useEffect)(()=>{d(!0)},[]),(0,r.useEffect)(()=>{h(!1)},[e]),null!==e&&c)?(0,a.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":s("close"),onClick:l,className:"absolute inset-0 bg-black/40 backdrop-blur-sm cursor-default"}),(0,t.jsxs)("div",{ref:x,role:"dialog","aria-modal":"true","aria-label":s("formDialogLabel"),tabIndex:-1,className:"relative w-full max-w-md outline-none",children:[(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":s("close"),className:"absolute -top-3 -right-3 z-10 grid place-items-center w-8 h-8 rounded-full bg-[var(--surface)] border border-[var(--border)] text-[var(--fg-muted)] hover:text-[var(--fg)] shadow-[var(--shadow-md)]",children:(0,t.jsx)(o.X,{size:16})}),(0,t.jsx)("div",{className:"max-h-[calc(100dvh-2rem)] overflow-y-auto rounded-[var(--radius-lg)]",children:p?(0,t.jsx)("div",{role:"alert",className:"rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] px-5 py-6 text-center text-sm text-[var(--fg-muted)]",children:s("formUnavailable")}):(0,t.jsx)(f.FormBlock,{prefill:n,formId:e,site:!0,conversationId:null,onUnavailable:()=>h(!0)})})]})]}),document.getElementById("clonify-site-root")??document.body):null}
1function p({src:e,trackVh:a=500,poster:n,title:l,subtitle:i,overlay:s=.35,overlayHtml:o}){let c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=c.current,t=u.current;if(!e||!t)return;let r=0,a=0,n=0,l=0,i=!1,s=0,o=!0;t.pause();let f=()=>{r=t.duration||0,p(),m(!0)};function m(e){if(!o)return;let c=a-n;if(n+=.14*c,6e-4>Math.abs(c)&&(n=a),r){let a=Math.min(r-.001,Math.max(0,n));if(e||Math.abs(t.currentTime-a)>.008)try{t.currentTime=a}catch{}}d.current&&(d.current.style.width=(100*l).toFixed(2)+"%",d.current.style.opacity=l>.001&&l<.999?"1":"0"),Math.abs(a-n)>6e-4?s=requestAnimationFrame(()=>m(!1)):i=!1}function p(){let t,n,o;t=e.getBoundingClientRect(),n=e.offsetHeight-window.innerHeight,o=-t.top,l=Math.min(1,Math.max(0,n>0?o/n:0)),r&&(a=l*(r-.001)),i||(i=!0,s=requestAnimationFrame(()=>m(!1)))}return t.readyState>=1&&(r=t.duration||0),t.addEventListener("loadedmetadata",f),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),p(),()=>{o=!1,cancelAnimationFrame(s),t.removeEventListener("loadedmetadata",f),window.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[e]),(0,t.jsxs)("div",{ref:c,style:{height:`${a}vh`,position:"relative"},"data-clonify-mounted":"scroll-video",children:[(0,t.jsx)("span",{ref:d,style:{position:"fixed",top:0,left:0,height:3,width:0,zIndex:40,background:"linear-gradient(90deg,#c9a15a,#f0d9a8)",boxShadow:"0 0 14px rgba(201,161,90,.7)",pointerEvents:"none",opacity:0,transition:"opacity .3s ease"}}),(0,t.jsxs)("div",{style:{position:"sticky",top:0,height:"100dvh",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",background:"#000"},children:[(0,t.jsx)("video",{ref:u,src:e,poster:n,muted:!0,playsInline:!0,preload:"auto",tabIndex:-1,style:{width:"100%",height:"100%",objectFit:"cover"}}),s>0?(0,t.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"none",background:`radial-gradient(120% 90% at 50% 45%,transparent 40%,rgba(0,0,0,${1.4*s}) 100%),linear-gradient(180deg,rgba(0,0,0,${s}) 0%,transparent 22%,transparent 70%,rgba(0,0,0,${1.6*s}) 100%)`}}):null,o?(0,t.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 8vw",gap:14,color:"#fff"},dangerouslySetInnerHTML:{__html:o}}):l||i?(0,t.jsxs)("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 8vw",pointerEvents:"none",color:"#fff"},children:[l?(0,t.jsx)("h2",{style:{fontFamily:"Georgia,'Times New Roman',serif",fontWeight:400,fontSize:"clamp(34px,6vw,86px)",lineHeight:1.02,letterSpacing:"-.01em",margin:0,textShadow:"0 2px 40px rgba(0,0,0,.5)"},children:l}):null,i?(0,t.jsx)("p",{style:{marginTop:16,fontSize:"clamp(15px,1.7vw,19px)",maxWidth:560,color:"#e7e5e0",textShadow:"0 1px 20px rgba(0,0,0,.6)"},children:i}):null]}):null]})]})}var h=e.i(361846),x=e.i(81971),g=e.i(780943),b=e.i(778472),v=e.i(302664),y=e.i(59357),w=e.i(948006);let k=/^(acced\w*( (ahora|aqu[ií]|ya))?|acceso|entrar?|log\s*in|sign\s*in|login)$/i,j=/^(inicia(r)? sesi[oó]n|log\s*in|sign\s*in|mi cuenta|[aá]rea privada|[aá]rea de (alumnos|miembros))/i;e.s(["IndexableHtmlSurface",0,function({html:e,localePrefix:s,destinations:o,brandName:c,brandLogoUrl:u=null,scopeClass:f="cl-site-html",signedIn:S=!1,siteBackground:N=null,adminAssetPreview:C=!1,piezas:A,executeScripts:$=!1,dryRun:E=!1}){let L=(0,i.useTranslations)("Sitio"),I=(0,l.useRouter)(),M=(0,r.useMemo)(()=>{let t=":not([data-cl-pieza] *)";return`<style>.${f} input${t},.${f} textarea${t},.${f} select${t}{background-color:#fff;color:#111;color-scheme:light}.${f} img,.${f} video,.${f} iframe,.${f} svg{max-width:100%}.${f} pre{max-width:100%;overflow-x:auto}.${f} table{display:block;max-width:100%;overflow-x:auto}${(0,v.bridgeClickableCss)(`.${f}`)}${(0,b.siteAnimateCss)(`.${f}`)}</style>`+(0,g.scopeSiteHtml)(e,`.${f}`,{allowAllImports:$})},[e,f,$]),T=(0,r.useMemo)(()=>({__html:M}),[M]),P=(0,r.useRef)(null),[_,z]=(0,r.useState)(!1),[q,D]=(0,r.useState)(!1),[H,F]=(0,r.useState)(null),[O,R]=(0,r.useState)({}),U=(0,r.useRef)({destinations:o,localePrefix:s,signedIn:S,thanks:L("leadThanks"),leadError:L("leadError"),videoTitle:L("videoTitle")});return(0,r.useEffect)(()=>{U.current={destinations:o,localePrefix:s,signedIn:S,thanks:L("leadThanks"),leadError:L("leadError"),videoTitle:L("videoTitle")}}),(0,r.useEffect)(()=>{let e=P.current;if(!e)return;async function r(e){if(E)return!0;try{return(await fetch("/api/hosted/contacts/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.email,name:e.name||void 0,tag:e.tag||void 0})})).ok}catch{return!1}}let a=[];function l(e){let t=e.closest("form");return t?function(e){let t={};for(let r of e){let e=(r.value??"").trim();if(0===e.length)continue;let a=function(e){let t=(e.type??"").toLowerCase();if("email"===t)return"email";if("tel"===t)return"phone";let r=(e.name??"").toLowerCase();return/mail|correo/.test(r)?"email":/phone|tel|movil|móvil|whats/.test(r)?"phone":/name|nombre/.test(r)?"name":null}(r);a&&!t[a]&&(t[a]=e)}return Object.keys(t).length>0?t:null}(Array.from(t.querySelectorAll("input, textarea")).map(e=>({name:e.getAttribute("name")||e.getAttribute("id")||"",type:e.getAttribute("type")||"",value:e.value}))):null}let i=t=>{let r=t.target,a=e=>r&&r.closest?r.closest(e):null,n=a('[data-clonify="go"][data-to]');if(n&&e.contains(n)){t.preventDefault();let e=U.current.destinations[n.getAttribute("data-to")];e&&I.push(e);return}let i=a('[data-clonify="form"][data-form]');if(i&&e.contains(i)){if(t.preventDefault(),E)return void D(!0);let e=Number.parseInt(i.getAttribute("data-form"),10);return void(Number.isInteger(e)&&e>0&&F({id:e,prefill:l(i)}))}let s=a('[data-clonify="buy"][data-product]');if(s&&e.contains(s)){t.preventDefault();let e=Number.parseInt(s.getAttribute("data-product"),10);Number.isInteger(e)&&e>0&&I.push(`${U.current.localePrefix}/checkout/${e}`);return}let o=a("a, button, [data-clonify]");if(o&&e.contains(o)&&function(e){if("login"===e.getAttribute("data-clonify"))return!0;let t=(e.getAttribute("href")||"").trim();if(t&&"#"!==t)return!1;let r=(e.textContent||"").replace(/\s+/g," ").trim();return!!r&&!(r.length>40)&&(k.test(r)||j.test(r))}(o)){t.preventDefault(),U.current.signedIn?I.push(`${U.current.localePrefix}/mis-productos`):z(!0);return}let c=a("a[href]");if(c&&e.contains(c)){let r=c.getAttribute("href")||"";if("#"===r.charAt(0)&&r.length>1){let a=e.querySelector(`#${CSS.escape(r.slice(1))}`);if(a){t.preventDefault();let e=document.querySelector("header"),r=e&&"sticky"===getComputedStyle(e).position?e.getBoundingClientRect().height:0,n=a.getBoundingClientRect().top+window.scrollY-r-12;window.scrollTo({top:Math.max(0,n),behavior:"smooth"})}return}/^https?:/i.test(r)&&(t.preventDefault(),window.open(r,"_blank","noopener,noreferrer"))}};e.addEventListener("click",i),a.push(()=>e.removeEventListener("click",i)),(0,y.wireBridgeKeyboard)(e);let s=t=>{let a=t.target?.closest?.("form");if(!a||!e.contains(a))return;let n="lead"===a.getAttribute("data-clonify"),i=a.querySelector('input[type="email"], input[name="email"]');if(!n&&!i)return;if(t.preventDefault(),"form"===a.getAttribute("data-clonify")){if(E)return void D(!0);let e=Number.parseInt(a.getAttribute("data-form")??"",10);return void(Number.isInteger(e)&&e>0&&F({id:e,prefill:l(a)}))}let s=i?i.value.trim():"";if(!s)return void i?.focus();let o=a.querySelector('input[name="name"], input[type="text"]'),c=a.getAttribute("data-clonify-tag")||a.getAttribute("data-tag")||"",u=a.querySelector('button, input[type="submit"]');u&&(u.disabled=!0),r({email:s,name:o?o.value.trim():"",tag:c}).then(e=>{if(e){let e=a.getAttribute("data-clonify-thanks")||U.current.thanks,t=document.createElement("div");t.textContent=e,t.setAttribute("role","status"),t.setAttribute("tabindex","-1"),t.style.cssText="font-weight:600;padding:6px 0;
1",a.replaceChildren(t),t.focus()}else{var t;let e;u&&(u.disabled=!1),t=U.current.leadError,(e=a.querySelector("[data-cl-lead-error]"))||((e=document.createElement("div")).setAttribute("data-cl-lead-error","1"),e.setAttribute("role","alert"),e.style.cssText="color:#b91c1c;padding:6px 0;font-size:.95em;",a.appendChild(e)),e.textContent=t}})};e.addEventListener("submit",s),a.push(()=>e.removeEventListener("submit",s)),$&&(0,w.executeScriptsIn)(e).catch(()=>{}),a.push((0,h.wireSiteInteractivity)(e)),e.querySelectorAll('[data-clonify="video"][data-asset]').forEach(t=>{let r=C?"admin":"public";if(t.dataset.clVideoDone===r)return;let a=Number.parseInt(t.getAttribute("data-asset")||"",10);if(!Number.isInteger(a)||a<=0)return;t.dataset.clVideoDone=r;let n=t.getAttribute("data-ratio")||"16/9";t.style.aspectRatio=n,t.style.display="block",t.style.width=t.style.width||"100%",fetch(C?`/api/hosted/assets/${a}?site=1&preview=owner`:`/api/hosted/assets/${a}?site=1`).then(e=>e.ok?e.json():null).then(r=>{let a=r?.asset?.embedUrl;if("string"!=typeof a||0===a.length){t.style.display="none";return}if(!e.contains(t))return;let n=document.createElement("iframe");n.src=a,n.title=U.current.videoTitle,n.style.cssText="width:100%;height:100%;border:0;border-radius:10px;display:block",n.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen"),n.setAttribute("allowfullscreen",""),t.replaceChildren(n)}).catch(()=>{})});let o=[];return e.querySelectorAll('[data-clonify="scroll-video"]').forEach(e=>{let r=e.getAttribute("data-src")||"";if(!r)return;let a=parseInt(e.getAttribute("data-track")||"500",10)||500,l=e.getAttribute("data-title")||void 0,i=e.getAttribute("data-subtitle")||void 0;void 0===e.__clScrollVideoHtml&&(e.__clScrollVideoHtml=e.innerHTML.trim());let s=e.__clScrollVideoHtml||void 0;e.style.padding="0",e.style.background="none",e.style.minHeight="0",e.style.display="block",e.style.overflow="visible";try{let c=e.__clScrollVideoRoot??(0,n.createRoot)(e);e.__clScrollVideoRoot=c,c.render((0,t.jsx)(p,{src:r,trackVh:a,title:l,subtitle:i,overlayHtml:s})),o.push({el:e,r:c})}catch{}}),()=>{a.forEach(e=>e()),window.setTimeout(()=>{o.forEach(({el:e,r:t})=>{if(!e.isConnected){try{t.unmount()}catch{}delete e.__clScrollVideoRoot}})},0)}},[e,I,C,$,E]),(0,r.useEffect)(()=>{let e=P.current,t=A?Object.keys(A):[];if(!e||0===t.length)return;let r={};for(let a of t){let t=e.querySelector(`[data-cl-pieza="${a}"]`);t&&(t.replaceChildren(),t.style.minHeight="",r[a]=t)}R(r)},[M,A]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:P,style:{...(0,x.sitePaletteStyle)(N?.trim()?N:x.SITE_BACKGROUND_DEFAULT),colorScheme:"light"},className:`${f} bg-[var(--bg)] text-[var(--fg)]`,dangerouslySetInnerHTML:T}),q?(0,t.jsx)("button",{type:"button",onClick:()=>D(!1),className:"fixed inset-x-4 bottom-5 z-[60] mx-auto max-w-md rounded-xl bg-[#0a0a0c] px-4 py-3 text-center text-sm font-medium text-white shadow-2xl",children:L("previewFormNotice")}):null,Object.entries(O).map(([e,t])=>A?.[e]?(0,a.createPortal)(A[e],t,e):null),(0,t.jsx)(d,{open:_,onClose:()=>z(!1),brandName:c,brandLogoUrl:u}),(0,t.jsx)(m,{formId:H?.id??null,prefill:H?.prefill??null,onClose:()=>F(null)})]})}],292204)},594128,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let a=(0,r.createContext)(null);e.s(["ActiveLessonProvider",0,function({lesson:e,children:r}){return(0,t.jsx)(a.Provider,{value:e,children:r})},"useActiveLesson",0,function(){return(0,r.useContext)(a)}])},764584,e=>{"use strict";var t=e.i(271645);e.s(["useDialog",0,function(e,r){let a=(0,t.useRef)(null),n=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!e)return;n.current=document.activeElement instanceof HTMLElement?document.activeElement:null;let t=a.current,l=requestAnimationFrame(()=>{let e=t?.querySelector('a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])');(e??t)?.focus()}),i=e=>{if("Escape"===e.key){e.stopPropagation(),r();return}if("Tab"!==e.key||!t)return;let a=Array.from(t.querySelectorAll('a[href],button:not([disabled]),input
1:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent||e===t);if(0===a.length)return;let n=a[0],l=a[a.length-1],i=document.activeElement;e.shiftKey&&(i===n||!t.contains(i))?(e.preventDefault(),l.focus()):e.shiftKey||i!==l||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",i,!0),()=>{cancelAnimationFrame(l),document.removeEventListener("keydown",i,!0),n.current?.focus?.()}},[e,r]),a}])},778472,e=>{"use strict";e.s(["siteAnimateCss",0,function(e=""){let t=e?`${e} `:"";return`@keyframes cl-spin{to{transform:rotate(360deg)}}
2@keyframes cl-spin-r{to{transform:rotate(-360deg)}}
3@keyframes cl-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
4@keyframes cl-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
5${t}[data-cl-animate=spin]{animation:cl-spin var(--cl-adur,20s) linear infinite}
6${t}[data-cl-animate=spin-r]{animation:cl-spin-r var(--cl-adur,20s) linear infinite}
7${t}[data-cl-animate=float]{animation:cl-float var(--cl-adur,4s) ease-in-out infinite}
8${t}[data-cl-animate=pulse]{animation:cl-pulse var(--cl-adur,3s) ease-in-out infinite}
9@keyframes cl-fade-up{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
10@keyframes cl-fade{from{opacity:0}to{opacity:1}}
11@keyframes cl-zoom{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
12@keyframes cl-left{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
13@keyframes cl-right{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}
14${t}[data-cl-animate=fade-up]{--cl-kf:cl-fade-up}
15${t}[data-cl-animate=fade]{--cl-kf:cl-fade}
16${t}[data-cl-animate=zoom]{--cl-kf:cl-zoom}
17${t}[data-cl-animate=left]{--cl-kf:cl-left}
18${t}[data-cl-animate=right]{--cl-kf:cl-right}
19${t}.cl-arm{opacity:0}
20${t}.cl-go{animation:var(--cl-kf,cl-fade) var(--cl-adur,.7s) cubic-bezier(.2,.7,.2,1) var(--cl-adelay,0s) both}
21@media (prefers-reduced-motion:reduce){${t}.cl-go{animation:none!important}${t}.cl-arm{opacity:1!important}}`}])},59357,948006,e=>{"use strict";e.s(["wireBridgeKeyboard",0,function(e){var t,r='[data-clonify="buy"],[data-clonify="go"],[data-clonify="login"],[data-clonify="form"]';function a(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"a"===t&&e.hasAttribute("href")}for(var n=e.querySelectorAll(r),l=0;l<n.length;l++)!a(t=n[l])&&(t.hasAttribute("role")||t.setAttribute("role","button"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"));e.addEventListener("keydown",function(e){if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t=e.target;if(t&&t.closest){var n=t.closest(r);!n||a(n)||(e.preventDefault(),n.click())}}})}],59357);let t="data-cl-ran";async function r(e){for(let r of Array.from(e.querySelectorAll("script"))){if(r.hasAttribute(t))continue;let e=(r.getAttribute("type")||"").trim().toLowerCase();if(""!==e&&"module"!==e&&"text/javascript"!==e&&"application/javascript"!==e){r.setAttribute(t,"1");continue}let a=document.createElement("script");for(let e of Array.from(r.attributes))a.setAttribute(e.name,e.value);if(a.setAttribute(t,"1"),r.src){a.async=!1;let e=new Promise(e=>{a.addEventListener("load",()=>e(),{once:!0}),a.addEventListener("error",()=>e(),{once:!0})});r.replaceWith(a),await e}else a.textContent=r.textContent,r.replaceWith(a)}}e.s(["executeScriptsIn",0,r,"unwrapHtmlDocument",0,function(e){let t=e.trim();if(!t)return"";if(!/<!doctype|<html[\s>]|<body[\s>]/i.test(t))return t;let r=(/<head\b[^>]*>([\s\S]*?)<\/head>/i.exec(t)?.[1]??"").replace(/<meta\b[^>]*>/gi,"").replace(/<title\b[^>]*>[\s\S]*?<\/title>/gi,"").replace(/<base\b[^>]*>/gi,"").trim(),a=/<body\b[^>]*>([\s\S]*?)<\/body>/i.exec(t)?.[1]??t.replace(/<!doctype[^>]*>/gi,"").replace(/<\/?html\b[^>]*>/gi,"").replace(/<head\b[^>]*>[\s\S]*?<\/head>/gi,"").replace(/<\/?body\b[^>]*>/gi,"");return`${r}
22${a}`.trim()}],948006)},302664,e=>{"use strict";let t=["buy","go","login","form"];e.s(["bridgeClickableCss",0,function(e){let r=e?`${e} `:"",a=t.map(e=>`${r}[data-clonify="${e}"]`).join(",");return`${a}{cursor:pointer;-webkit-user-select:none;user-select:none}`}])},780943,e=>{"use strict";
22let t=["fonts.googleapis.com","fonts.gstatic.com","fonts.bunny.net","use.typekit.net"];function r(e,t){let r=e[t];if('"'===r||"'"===r){let a=t+1;for(;a<e.length;){if("\\"===e[a]){a+=2;continue}if(e[a]===r)return a+1;a++}return e.length}if("/"===r&&"*"===e[t+1]){let r=e.indexOf("*/",t+2);return -1===r?e.length:r+2}if(("u"===r||"U"===r)&&/^url\(/i.test(e.slice(t,t+4))){let r=t+4;for(;r<e.length&&/\s/.test(e[r]);)r++;if('"'===e[r]||"'"===e[r])return t+4;for(;r<e.length&&")"!==e[r];)r++;return r<e.length?r+1:e.length}return -1}function a(e,t,a){let n=t;for(;n<e.length;){let t=r(e,n);if(-1!==t){n=t;continue}if(a.includes(e[n]))return n;n++}return e.length}function n(e,t){let a=1,n=t;for(;n<e.length&&a>0;){let t=r(e,n);if(-1!==t){n=t;continue}"{"===e[n]?a++:"}"===e[n]&&a--,n++}return n}let l=":not([data-cl-pieza] *)",i=/(::[a-z-]+(?:\([^)]*\))?|:(?:before|after|first-line|first-letter))\s*$/i;function s(e){let t=i.exec(e);return t?e.slice(0,t.index)+l+t[0]:e+l}e.s(["scopeSiteHtml",0,function(e,l,i={}){return e.replace(/<style\b[^>]*>([\s\S]*?)<\/style>/gi,(e,o)=>`<style>${function e(l,i,o={}){let c="",u=0,d=l.length;for(;u<d;){if(/\s/.test(l[u])){c+=l[u],u++;continue}if("/"===l[u]&&"*"===l[u+1]){u=r(l,u);continue}if("@"===l[u]){let r=a(l,u,"{;"),s=l.slice(u,r),f=(s.match(/^@([a-z-]+)/i)?.[1]||"").toLowerCase();if(r>=d||";"===l[r]){("import"!==f||!0===o.allowAllImports||function(e){let r=/url\(\s*["']?([^"')]+)/i.exec(e)||/@import\s+["']([^"']+)/i.exec(e);if(!r)return!1;try{return t.includes(new URL(r[1].trim()).host.toLowerCase())}catch{return!1}}(s))&&(c+=l.slice(u,r<d?r+1:r)),u=r<d?r+1:r;continue}let m=r+1,p=n(l,m),h=l.slice(m,p-1);c+=s+"{"+("media"===f||"supports"===f||"container"===f||"layer"===f?e(h,i,o):h)+"}",u=p;continue}let f=a(l,u,"{");if(f>=d){c+=l.slice(u);break}let m=l.slice(u,f),p=f+1,h=n(l,p),x=l.slice(p,h-1);c+=(function(e){let t=[],a=0,n=0,l=0;for(;l<e.length;){let i=r(e,l);if(-1!==i){l=i;continue}let s=e[l];"("===s||"["===s?n++:")"===s||"]"===s?n--:","===s&&0===n&&(t.push(e.slice(a,l)),a=l+1),l++}return t.push(e.slice(a)),t})(m).map(e=>{let t=e.trim();if(!t)return"";if(/^(:root|html|body)\b/i.test(t)){let e=t.replace(/^(:root|html|body)\b/i,i);return e===i?e:s(e)}return s(i+" "+t)}).filter(Boolean).join(", ")+"{"+x+"}",u=h}return c}(o,l,i)}</style>`)}])},361846,e=>{"use strict";e.s(["wireSiteInteractivity",0,function(e){let t=e.ownerDocument||e,r=t.defaultView||window,a=[],n=t=>Array.prototype.slice.call(e.querySelectorAll(t));function l(e,r){let a=e.querySelector(".cl-slides");if(!a)return;let n=a.children.length;if(!n)return;let l=Math.max(0,Math.min(r,n-1));e.__i=l,a.style.transform="translateX(-"+100*l+"%)";let i=e.querySelector(".cl-sl-dots");if(i){i.innerHTML="";for(let e=0;e<n;e++){let r=t.createElement("button");r.type="button",r.className="cl-sl-dot"+(e===l?" cl-on":""),r.setAttribute("data-cl-dot",String(e)),i.appendChild(r)}}}let i=e=>{let t=e.target;if(!t||!t.closest)return;let r=t.closest(".cl-tab-btn");if(r){let e=r.closest(".cl-tabs");if(e){let t=Array.prototype.slice.call(e.querySelectorAll(".cl-tab-btn")),a=Array.prototype.slice.call(e.querySelectorAll(".cl-tab-panel")),n=t.indexOf(r);t.forEach(function(e,t){e.classList.toggle("cl-on",t===n)}),a.forEach(function(e,t){e.classList.toggle("cl-on",t===n)})}return}let a=t.closest("[data-cl-dot]");if(a){let e=a.closest(".cl-slider");e&&l(e,Number(a.getAttribute("data-cl-dot"))||0);return}let n=t.closest("[data-cl-sl]");if(n){let e=n.closest(".cl-slider");if(e){let t=e.__i||0;l(e,t+("next"===n.getAttribute("data-cl-sl")?1:-1))}}};if(e.addEventListener("click",i,!0),a.push(function(){e.removeEventListener("click",i,!0)}),n(".cl-slider").forEach(function(e){l(e,0)}),"IntersectionObserver"in r){let e=new r.IntersectionObserver(function(t){t.forEach(function(t){if(!t.isIntersecting)return;let a=t.target;e.unobserve(a);let n=a.textContent||"",l=/([0-9][0-9.,]*)/.exec(n);if(!l)return;let i=l[1];if(/[.,][0-9]{1,2}$/.test(i)&&!/[.,][0-9]{3}(?:\D|$)/.test(i))return;let s=/[.,]/.exec(i),o=s?s[0]:"",c=parseInt(i.replace(/[.,]/g,""),10);if(!isFinite(c))return;let u=n.slice(0,l.index),d=n.slice(l.index+i.length),f=function(e){let t=String(e);return o&&(t=t.replace(/\B(?=(\d{3})+(?!\d))/g,o)),t},m=null,p=function(e){null===m&&(m=e);let t=Math.min((e-m)/1200,1);a.textContent=t>=1?n:u+f(Math.round(c*t))+d,t<1&&r.requestAnimationFrame(p)};r.requestAnimationFrame(p)})},{threshold:.4});n('[data-cl-fx="count-up"]').forEach(function(t){e.observe(t)}),a.push(function(){e.disconnect()});let t={"fade-up":1,fade:1,zoom:1,left:1,right:1},l=new r.IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(e.target.classList.remove("cl-arm"),e.target.classList.add("cl-go"),l.unobserve(e.target))})},{threshold:0,rootMargin:"0px 0px -8% 0px"});n("[data-cl-animate]").forEach(function(e){t[e.getAttribute("data-cl-animate")||""]&&(e.classList.add("cl-arm"),l.observe(e))}),a.push(function(){l.disconnect()})}return n('[data-clonify="countdown"]').forEach(function(e){let t=(e.getAttribute("data-until")||"").trim();if(!t)return;let n=new Date(t.replace(" ","T")).getTime();if(!isFinite(n))return;let l=function(e){return(e<10?"0":"")+e},i=function(){let t=n-Date.now();if(t<=0){e.textContent="0 s";let t=e.closest("[data-cl-hide-zero]");t?t.style.display="none":e.hasAttribute("data-hide-zero")&&(e.style.display="none"),r.clearInterval(s);return}let a=Math.floor(t/1e3),i=Math.floor(a/86400),o=Math.floor(a%86400/3600),c=Math.floor(a%3600/60),u=a%60;e.textContent=i>0?i+" d "+o+" h "+c+" min":o>0?o+" h "+c+" min "+l(u)+" s":c+" min "+l(u)+" s"},s=r.setInterval(i,1e3);i(),a.push(function(){r.clearInterval(s)})}),function(){a.forEach(function(e){try{e()}catch{}})}}])},81971,e=>{"use strict";let t=/^#?([0-9a-f]{6})$/i;function r(e){let r=t.exec(e.trim()),a=r?r[1]:"ffffff";return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16)}}function a({r:e,g:t,b:r}){let n=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,"0");return`#${n(e)}${n(t)}${n(r)}`}function n({r:e,g:t,b:r}){let a=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*a(e)+.7152*a(t)+.0722*a(r)}function l(e,t,r){return{r:e.r+(t.r-e.r)*r,g:e.g+(t.g-e.g)*r,b:e.b+(t.b-e.b)*r}}function i(e){if(!e)return null;let r=e.trim();if(t.test(r))return r;let n=/^#([0-9a-f]{3})$/i.exec(r);if(n){let[e,t,r]=n[1];return`#${e}${e}${t}${t}${r}${r}`}let l=/^(\d+(?:\.\d+)?)\s+(\d+(?:\.\d+)?)%\s+(\d+(?:\.\d+)?)%$/.exec(r);if(!l)return null;let i=Number(l[1])/360,s=Number(l[2])/100,o=Number(l[3])/100,c=(e,t,r)=>{let a=r;return(a<0&&(a+=1),a>1&&(a-=1),a<1/6)?e+(t-e)*6*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e},u=o<.5?o*(1+s):o+s-o*s,d=2*o-u;return a({r:255*c(d,u,i+1/3),g:255*c(d,u,i),b:255*c(d,u,i-1/3)})}function s(e){let t=n(r(e));return(t+.05)/.05>=1.05/(t+.05)?"#0a0a0c":"#ffffff"}function o(e,t){let o,c,u=r(e),d="#ffffff"===s(e),f=d?{r:250,g:250,b:250}:{r:10,g:10,b:12},m=r(i(t)??(d?"#4ade80":"#166534")),p=l(u,m,.12),h=m;for(let e=.1;e<=1&&4.5>(o=n(h),(Math.max(o,c=n(p))+.05)/(Math.min(o,c)+.05));e+=.1)h=l(m,f,e);let x={"--bg":a(u),"--bg-subtle":a(l(u,f,.04)),"--bg-muted":a(l(u,f,.07)),"--surface":a(l(u,f,.05*!!d)),"--field":a(l(u,f,.05*!!d)),"--surface-hover":a(l(u,f,.08)),"--fg":a(f),"--fg-muted":a(l(f,u,.14)),"--fg-subtle":a(l(f,u,.28)),"--fg-faint":a(l(f,u,.4)),"--fg-placeholder":a(l(f,u,.55)),"--border":a(l(u,f,.13)),"--border-strong":a(l(u,f,.22)),"--accent":a(m),"--accent-hover":a(l(m,{r:0,g:0,b:0},.15)),"--accent-fg":s(a(m)),"--accent-soft":a(p),"--accent-soft-fg":a(h),"--ring":`0 0 0 3px rgba(${m.r}, ${m.g}, ${m.b}, 0.25)`,...d?{"--success":"#4ade80","--warning":"#fbbf24","--warning-soft":"#2a1f0a","--warning-soft-fg":"#fcd34d","--warning-soft-border":"#4a3617","--danger":"#f87171","--danger-soft":"#2a0e0e","--danger-soft-fg":"#fca5a5"}:{"--success":"#16a34a","--warning":"#d97706","--warning-soft":"#fffbeb","--warning-soft-fg":"#92400e","--warning-soft-border":"#fde68a","--danger":"#dc2626","--danger-soft":"#fef2f2","--danger-soft-fg":"#991b1b"}};return{isDark:d,vars:x}}e.s(["SITE_BACKGROUNDS",0,[{id:"blanco",hex:"#ffffff"},{id:"crema",hex:"#faf6ee"},{id:"arena",hex:"#ece3d2"},{id:"gris",hex:"#f2f1ee"},{id:"azulNoche",hex:"#0e1526"},{id:"carbon",hex:"#101014"}],"SITE_BACKGROUND_DEFAULT",0,"#ffffff","accentHexFrom",0,i,"derivePalette",0,o,"isValidHexColor",0,function(e){return"string"==typeof e&&t.test(e.trim())},"sitePaletteStyle",0,function(e,t){let{isDark:r,vars:a}=o(e,t);return{...a,colorScheme:r?"dark":"light"}},"surfaceFamilyFor",0,function(e){return"#ffffff"===s(e)?"dark":"light"},"textOn",0,s])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},55677,e=>{"use strict";let t=(0,e.i(456420).default)("clipboard-list",[["rect",{width:"8",he
22ight:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["ClipboardList",0,t],55677)},482022,e=>{"use strict";let t=(0,e.i(456420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],482022)},926787,e=>{"use strict";let t=(0,e.i(456420).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);e.s(["Maximize2",0,t],926787)},468590,e=>{"use strict";let t=(0,e.i(456420).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],468590)},590582,e=>{"use strict";let t=(0,e.i(456420).default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);e.s(["Minimize2",0,t],590582)},218469,e=>{"use strict";let t=(0,e.i(456420).default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);e.s(["PanelLeftClose",0,t],218469)},328523,e=>{"use strict";let t=(0,e.i(456420).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["Pause",0,t],328523)},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)}]);

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.