1!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]="8ff79b75-c325-5e20-a200-b167d1924d0a")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,462684,e=>{e.v(t=>Promise.all(["static/chunks/2r8-q-11n_cdt.js"].map(t=>e.l(t))).then(()=>t(506175)))},901279,e=>{"use strict";var t=e.i(456420);let o={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};o.node;let a=(0,t.default)(o);e.s(["User",0,a],901279)},967924,e=>{"use strict";var t=e.i(456420);let o={name:"volume-2",size:24,node:[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]};o.node;let a=(0,t.default)(o);e.s(["default",0,a])},847224,e=>{"use strict";var t=e.i(967924);e.s(["Volume2Icon",()=>t.default])},537105,e=>{"use strict";var t=e.i(456420);let o={name:"volume-x",size:24,node:[["path",{d:"M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z",key:"1p7khw"}],["path",{d:"m16.5 14.5 5-5",key:"cul3yw"}],["path",{d:"m16.5 9.5 5 5",key:"1akey5"}]]};o.node;let a=(0,t.default)(o);e.s(["default",0,a])},949572,e=>{"use strict";var t=e.i(537105);e.s(["VolumeXIcon",()=>t.default])},529651,e=>{e.v(t=>Promise.all(["static/chunks/11ww7cuhtp8gh.js"].map(t=>e.l(t))).then(()=>t(946858)))},875475,e=>{"use strict";e.i(597949);var t=e.i(204850),o=e.i(337290),a=e.i(507482);let i=(0,t.defineVideoModels)(["gemini-omni-1.1","wan-3.0","ltx-2.5"]),r=a.videoResolutionPresets,s=i.map(e=>({...(0,o.getVideoModelConfig)(e),value:e})),l={"ltx-2.5":{minSeconds:.5,maxSeconds:45},"wan-3.0":{minSeconds:2,maxSeconds:15}},n="gemini-omni-1.1",d="720p",u="ltx-2.5";function c(e){return"gemini-omni"===e?"gemini-omni-1.1":i.find(t=>t===e)??null}e.s(["defaultModel",0,n,"defaultResolution",0,d,"freeTierDefaultModel",0,u,"getDefaultResolutionForModel",0,function(e,t){let a=o.videoModelReader.getSupportedResolutions({model:e});return a.find(a=>o.videoModelReader.isResolutionAllowed({model:e,resolution:a,tier:t}))??a[0]??d},"getModelConfig",0,function(e){let t=c(e),o=s.find(e=>e.value===t);if(!o)throw Error(`Unknown AI Video Editor model: ${e}`);return o},"getTierDefaultModel",0,function(e){return"free"!==e?n:u},"getTierDefaultResolution",0,function(e){return"free"===e?"480p":d},"getTrimRange",0,function(e){return l[e]??o.videoModelReader.getDurationRange({model:e})},"normalizeVideoEditorModel",0,c,"videoEditorModels",0,i,"videoEditorResolutions",0,r])},856015,e=>{"use strict";var t=e.i(843476),o=e.i(689664),a=e.i(508734),i=e.i(271645),r=e.i(519455),s=e.i(967489),l=e.i(677572),n=e.i(173487);let d={python:"Python",node:"Node.js",curl:"cURL",go:"Go",rust:"Rust"},u=Object.keys(d);e.s(["ProductApiCodePanel",0,function({code:e}){let[c,m]=(0,i.useState)("python"),[h,g]=(0,i.useState)(!1),f=e[c];function p(e){e in d&&m(e)}let x=async()=>{try{await navigator.clipboard.writeText(f),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-stretch justify-between border-b border-white/10",children:[(0,t.jsxs)(s.Select,{value:c,onValueChange:p,children:[(0,t.jsx)(s.SelectTrigger,{className:"m-2 md:hidden","aria-label":"Select code language",children:(0,t.jsx)(s.SelectValue,{})}),(0,t.jsx)(s.SelectContent,{children:u.map(e=>(0,t.jsx)(s.SelectItem,{value:e,children:d[e]},e))})]}),(0,t.jsx)(l.Tabs,{value:c,onValueChange:p,className:"hidden min-w-0 flex-1 md:block",children:(0,t.jsx)(l.TabsList,{className:"flex h-12 w-full items-stretch justify-start gap-5 overflow-x-auto rounded-none bg-transparent px-4",children:u.map(e=>(0,t.jsx)(l.TabsTrigger,{value:e,className:"text-foreground flex-none px-1",style:c===e?{color:"var(--secondary-foreground)"}:void 0,children:d[e]},e))})}),(0,t.jsxs)(r.Button,{type:"button",variant:"ghost",onClick:x,className:"text-foreground h-12 shrink-0 gap-2 rounded-none px-4 text-sm font-medium has-[>svg]:px-4","aria-label":"Copy code",children:[h?(0,t.jsx)(o.Check,{className:"size-4"}):(0,t.jsx)(a.Copy,{className:"size-4"}),h?"Copied":"Copy"]})]}),(0,t.jsx)("div",{className:"h-72 min-h-0 md:hidden",children:(0,t.jsx)(n.SyntaxHighlighterLazy,{language:c,code:f,className:"h-full overflow-auto rounded-none py-4 text-base"})}),(0,t.jsxs)("div",{className:"relative hidden h-72 min-h-0 md:block md:flex-1",children:[(0,t.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute top-4 bottom-4 z-10 w-px bg-white/10",style:{left:64}}),(0,t.jsx)(n.SyntaxHighlighterLazy,{language:c,code:f,showLineNumbers:!0,wrapLongLines:!0,className:"h-full overflow-y-auto rounded-none py-4 text-base"})]})]})}])},848593,e=>{"use strict";var t=e.i(618566),o=e.i(271645),a=e.i(120936);e.s(["ResumeTaskLoader",0,function({onResume:e,setPage:i,currentPage:r}){let s=(0,t.useSearchParams)(),l=(0,t.usePathname)(),n=(0,o.useEffectEvent)(e),d=(0,o.useEffectEvent)(e=>i?.(e)??!1);return(0,o.useEffect)(()=>{let e=s?.get("page");if(i&&e&&e!==r&&d(e))return;let t=s?.get("resume");if(!t)return;let o=a.default.string().uuid().safeParse(t);o.success&&n(o.data),window.history.replaceState(null,"",l??"/")},[s,l,r,i]),null}])},424957,e=>{"use strict";var t=e.i(271645),o=e.i(486854);e.s(["useFileTypeRouter",0,function(e,a,i){let{setCurrentPage:r,pendingFile:s,setPendingFile:l}=(0,o.usePageToggle)(),n=(0,t.useEffectEvent)(a),d=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!s){d.current=null;return}d.current!==s&&(d.current=s,l(null),n(s))},[s,l]),{handleFileRejected:function(t){let o=i(t);o&&o!==e&&(l(t),r(o))}}}])},230576,e=>{"use strict";var t=e.i(843476),o=e.i(604743),a=e.i(430434),a=a,i=e.i(975157),r=e.i(754491);function s(e){let t=e.target;t instanceof Element&&t.closest('[data-rcs="handle-root"], [data-rcs="handle"]')&&e.stopPropagation()}function l({label:e,className:o}){return(0,t.jsx)("div",{className:(0,i.cn)("bg-background/80 absolute top-2 z-10 rounded-md px-2 py-1 text-xs font-medium",o),children:e})}function n({assetPath:e,videoFormats:o,label:i,labelClassName:s}){return(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,t.jsx)(l,{label:i,className:s}),(0,t.jsx)(r.VideoComponent,{assetPath:e,availableFormats:o,className:"bg-background/50 absolute inset-0 size-full object-cover",style:(0,a.a)(),muted:!0,autoPlay:!0,playsInline:!0,loop:!0,preload:"auto"})]})}e.s(["ExampleComparisonVideo",0,function({beforeSrc:e,afterSrc:a,videoFormats:i=["mp4","webm"],layout:r="slider"}){return"side-by-side"===r?(0,t.jsxs)("div",{className:"grid h-full min-h-0 w-full grid-cols-2 gap-1",children:[(0,t.jsx)(n,{assetPath:e,videoFormats:i,label:"Before",labelClassName:"left-2"}),(0,t.jsx)(n,{assetPath:a,videoFormats:i,label:"After",labelClassName:"right-2"})]}):(0,t.jsx)("div",{className:"relative h-full min-h-0 w-full overflow-hidden",onTouchStart:s,onTouchMove:s,onTouchEnd:s,onPointerDown:s,children:(0,t.jsx)(o.ReactCompareSlider,{transition:"0.15s ease-out",className:"h-full w-full motion-reduce:transition-none!",style:{width:"100%",height:"100%"},defaultPosition:50,onlyHandleDraggable:!0,itemOne:(0,t.jsx)(n,{assetPath:e,videoFormats:i,label:"Before",labelClassName:"left-2"}),itemTwo:(0,t.jsx)(n,{assetPath:a,videoFormats:i,label:"After",labelClassName:"right-2"})})})}],230576)},624014,e=>{"use strict";var t=e.i(843476),o=e.i(994814),a=e.i(409807),i=e.i(618566),r=e.i(271645),s=e.i(653145),l=e.i(120936),n=e.i(955130),d=e.i(711299),u=e.i(486854),c=e.i(848593),m=e.i(722489),h=e.i(488136),g=e.i(496309),f=e.i(875475),p=e.i(758161),x=e.i(6996),v=e.i(134568),j=e.i(597864),b=e.i(149317),P=e.i(924645);let w=l.default.object({video:(0,d.requiredUploadOrPreset)("Please upload a video"),prompt:l.default.string().trim().min(1,"Please enter a prompt")});e.s(["FormV3",0,function({handoffModel:e}){let l="/products/ai-video-generator"===(0,i.usePathname)(),d=(0,s.useForm)({resolver:(0,o.zodResolver)(w),defaultValues:{prompt:""}}),y=(0,P.useSignUpModal)(),N=(0,i.useRouter)(),{currentPage:T,setCurrentPage:F}=(0,u.usePageToggle)(),S=(0,m.useFreeToolV2)("any-to-video","v5",{assetPrefix:"ai-video-editor",toolKey:"ai-video-editor",disableCancelTaskOnUnload:y.isOpen}),[k,C]=(0,r.useState)(null),I=(0,r.useRef)(0),E=(0,s.useWatch)({control:d.control,name:"video"}),V=(0,j.useFreeToolInputHandoff)(async()=>({target:"ai-video-editor",videoFile:E instanceof File?await (k??S.uploadFile(E,"video",!1)):E,...E instanceof File?{previewFile:E}:{},prompt:d.getValues("prompt").trim(),...e?{model:e}:{}}));function A(e){let t=++I.current;if(C(null),d.clearErrors("video"),d.setValue("video",void 0),!e)return;d.setValue("video",e);let o=S.uploadFile(e,"video",!1);
1C(o),o.catch(()=>{t===I.current&&C(null)})}return(0,t.jsxs)(s.FormProvider,{...d,children:[(0,t.jsxs)(r.Suspense,{fallback:null,children:[(0,t.jsx)(h.VideoUrlLoader,{onVideoLoaded:A}),(0,t.jsx)(c.ResumeTaskLoader,{onResume:e=>{S.resumeTask(e)},setPage:F,currentPage:T})]}),(0,t.jsx)("form",{className:"w-full",id:"ai-video-editor-form-v3",onSubmit:d.handleSubmit(async t=>{try{if(e){await V(),await (0,b.setSubmitIntent)("ai-video-editor"),N.push("/create/ai-video-editor?handoff=ai-video-editor&submit=true");return}(0,v.trackEvent)({eventName:"freeAiVideoEditorRender",action:"click"}),S.uploadingFile&&S.setStatus(n.freeToolStatuses.uploading);let o=t.video instanceof File?k?await k:await S.uploadFile(t.video,"video"):t.video,a={mode:"VIDEO_EDIT",videoKey:o,prompt:t.prompt,duration:3,trimStartSeconds:0,trimEndSeconds:3};y.freeToolUpsell.open({toolName:S.name,version:S.version,eta:30,label:"AI Video Editor",project:{type:"VIDEO_EDITOR",model:f.freeTierDefaultModel,requestBody:a}});let{taskId:i,success:r}=await S.startTask({...a,resolution:"480p"});if(!r)return void y.freeToolUpsell.fail();y.freeToolUpsell.setId(i)}catch(e){console.error(e),y.freeToolUpsell.fail()}}),children:(0,t.jsxs)(p.ProductPageFormProviderV2,{tool:S,form:d,outputAssetType:"video",generationEtaSeconds:30,mediaHeight:l?280:420,children:[(0,t.jsx)(x.ProductPageFormFullscreenDropzone,{allowedFileTypes:["video"],onChange:A,onError:e=>d.setError("video",{message:e}),disabled:d.formState.isSubmitting}),(0,t.jsx)(u.ProductPageFormToggle,{isUploading:null!==S.uploadingFile}),(0,t.jsxs)(p.ProductPageFormContent,{style:{minHeight:l?g.videoGenerationFormMinHeightCompact:g.videoGenerationFormMinHeight},children:[(0,t.jsx)(p.ProductPageFormUploadView,{children:(0,t.jsx)(x.ProductPageFormInputs,{children:(0,t.jsxs)(x.ProductPageFormInput,{file:E,onChange:A,acceptedTypes:["video"],error:d.formState.errors.video?.message,disabled:d.formState.isSubmitting,className:"max-h-48",children:[(0,t.jsx)(x.ProductPageFormInputDragOverlay,{}),(0,t.jsx)(x.ProductPageFormVideoPreview,{}),(0,t.jsx)(x.ProductPageFormInputDescription,{compact:!0,title:"Upload video to edit"}),(0,t.jsx)(x.ProductPageFormInputErrors,{})]})})}),(0,t.jsx)(p.ProductPageFormOutputView,{children:(0,t.jsx)(p.ProductPageFormOutputs,{downloadEventName:"freeAiVideoEditorDownload"})}),l&&(0,t.jsx)("div",{className:"h-3"}),(0,t.jsxs)(p.ProductPageFormMenuBar,{children:[(0,t.jsx)(p.ProductPageFormPromptInput,{name:"prompt",placeholder:"Describe what to change in the video",className:l?"h-12":"h-18"}),(0,t.jsx)(p.ProductPageFormUploadOnly,{children:(0,t.jsx)("div",{className:l?"h-6":"h-6 md:h-11"})}),(0,t.jsx)(p.ProductPageFormMenuBarBottomBar,{prepareHandoff:V,toolName:"AI Video Editor",toolPath:"/create/ai-video-editor?handoff=ai-video-editor",children:(0,t.jsx)(p.ProductPageFormMenuBarSubmit,{createAnotherClassName:"hidden md:flex",children:(0,t.jsxs)(p.ProductPageFormSubmitButton,{children:[(0,t.jsx)(a.SparklesIcon,{className:"size-4"}),"Edit video"]})})})]})]})]})})]})}])},168512,e=>{"use strict";var t=e.i(843476),o=e.i(346773),a=e.i(867927),i=e.i(847224),r=e.i(949572),s=e.i(522016),l=e.i(271645),n=e.i(273443),d=e.i(519455),u=e.i(515288),c=e.i(323211),m=e.i(410225),h=e.i(327966),g=e.i(250761),f=e.i(975157),p=e.i(134568),x=e.i(769841),v=e.i(754491);let j=(0,l.createContext)(void 0);function b(){let e=(0,l.useContext)(j);if(!e)throw Error("Must be used within ProductPageToolHighlightsItemProvider");return e}function P({imageAsBackground:e,children:o}){return(0,t.jsx)(j.Provider,{value:{imageAsBackground:e},children:o})}e.s(["ProductPageExampleItemVideo",0,function({className:e,videoSrc:o,videoFormats:a,showAudioToggle:s=!1,deferPosterUntilVisible:n=!1}){let[u,c]=(0,l.useState)(!0);return(0,t.jsxs)("div",{className:"relative h-full min-h-0 w-full overflow-hidden",children:[s&&(0,t.jsx)(d.Button,{variant:"secondary",size:"icon",className:"absolute top-2 right-2 z-10",onClick:e=>{e.preventDefault(),e.stopPropagation(),c(e=>!e)},children:u?(0,t.jsx)(r.VolumeXIcon,{className:"text-muted-foreground h-4 w-4"}):(0,t.jsx)(i.Volume2Icon,{className:"text-foreground h-4 w-4"})}),(0,t.jsx)(v.VideoComponent,{assetPath:o,className:(0,f.cn)("bg-background/50 absolute inset-0 size-full object-cover",e),muted:u,autoPlay:!0,playsInl
1ine:!0,loop:!0,availableFormats:a,deferPosterUntilVisible:n})]})},"ProductPageExamples",0,function({children:e,className:a,stopOnInteraction:i=!0}){return(0,t.jsx)(c.Carousel,{className:(0,f.cn)("flex w-full max-w-screen pt-24 md:pt-32",a),opts:{loop:!0,dragFree:!0,watchDrag:(e,t)=>{let o;return!((o=t.target)instanceof Element)||null===o.closest('[data-rcs="handle-root"], [data-rcs="handle"]')}},plugins:[(0,o.default)({playOnInit:!0,direction:"backward",speed:.5,stopOnInteraction:i})],children:(0,t.jsx)(c.CarouselContent,{children:e})})},"ProductPageRunWithApiButton",0,function({toolsPagePath:e,apiProductSlug:o,productTitle:i,className:r}){let l=function({toolsPagePath:e,apiProductSlug:t}){return t?`/api/${t}`:e?`https://docs.magichour.ai/tools/${e}`:"https://docs.magichour.ai/introduction"}({toolsPagePath:e,apiProductSlug:o}),n=function({toolsPagePath:e,apiProductSlug:t,productTitle:o}){if(void 0!==o)return o;let a=t??e?.split("/").pop();return a?(0,m.formatToolName)(a):null}({toolsPagePath:e,apiProductSlug:o,productTitle:i}),u=n?`Use ${n} API`:"Run with API";return(0,t.jsx)(d.Button,{variant:"ghost",asChild:!0,className:(0,f.cn)("group mx-auto h-auto whitespace-normal",r),onClick:()=>{(0,p.trackEvent)({eventName:"runWithApiButton",action:"click"})},children:(0,t.jsxs)(s.default,{href:l,target:"_blank",className:"flex max-w-full flex-wrap items-center justify-center gap-1 text-center",children:[(0,t.jsx)(h.TypographyBodyDashboard,{className:"bg-clip-text text-transparent",style:{backgroundImage:"linear-gradient(90deg, #007bff 0%, #8a2be2 100%)"},children:`${u}: `}),(0,t.jsx)(h.TypographyBodyDashboard,{className:"text-foreground",children:"Fast, easy, and scalable"}),(0,t.jsx)(a.ChevronRight,{className:"text-foreground h-5 w-5 transition-transform group-hover:translate-x-1"})]})})},"ProductPageToolHighlightsItem",0,function({children:e,className:o,imageAsBackground:a=!1,style:i}){return(0,t.jsx)(P,{imageAsBackground:a,children:(0,t.jsxs)(u.Card,{className:(0,f.cn)("relative flex min-h-fit flex-col items-start justify-between gap-1 overflow-hidden rounded-2xl border-none p-8 shadow-xl lg:p-10",a&&"min-h-96",o),style:i,children:[e,a&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-lg",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--background) 40%, transparent) 20%, transparent 60%)"}})]})})},"ProductPageToolHighlightsItemFooter",0,function({children:e,className:o}){let{imageAsBackground:a}=b();return(0,t.jsx)("div",{className:(0,f.cn)(a&&"absolute bottom-6 z-10",o),children:e})},"ProductPageToolHighlightsItemFooterSubtitle",0,function({children:e,className:o}){let{imageAsBackground:a}=b();return(0,t.jsx)(h.TypographyBody,{weight:"thin",className:(0,f.cn)("text-muted-foreground mt-1 text-shadow-sm",a&&"text-foreground/60 max-w-4/5",o),children:e})},"ProductPageToolHighlightsItemFooterTitle",0,function({children:e,className:o}){return(0,t.jsx)(h.TypographyH5,{weight:"semibold",asChild:!0,className:o,children:(0,t.jsx)("h3",{children:e})})},"ProductPageToolHighlightsItemImageV2",0,function({alt:e,className:o,...a}){let{imageAsBackground:i}=b();return(0,t.jsx)(g.WebImage,{...a,alt:e,imgClassName:(0,f.cn)("h-full w-full object-cover",i?"absolute top-0 left-0 h-full object-cover p-0":"rounded-2xl",o)})},"ProductPageToolHighlightsItemVideo",0,function({className:e,videoSrc:o}){let{imageAsBackground:a}=b();return(0,t.jsx)(v.VideoComponent,{preload:"auto",assetPath:o,className:(0,f.cn)("w-full object-cover mix-blend-normal",a?"absolute top-0 left-0 h-full object-cover p-0":"mb-4 rounded-2xl",e),muted:!0,autoPlay:!0,playsInline:!0,loop:!0})},"ProductPageUseCasesScenarios",0,function({scenarios:e,className:o}){let a=e[0]?.question??"",[i,r]=(0,l.useState)(a),s=e.find(e=>e.question===i);return(0,t.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-6 md:grid md:grid-cols-2 md:gap-8",o),children:[(0,t.jsx)("div",{className:"order-first md:order-last md:mt-16",children:s&&(0,t.jsxs)("picture",{className:"flex w-full",children:[["avif","webp","jpg"].slice(0,-1).map(e=>(0,t.jsx)("source",{srcSet:`${x.webAssetsCdnBaseUrl}/products/${s.image}.${e}`,type:`image/${e}`},e)),(0,t.jsx)("img",{src:`${x.webAssetsCdnBaseUrl}/products/${s.image}.jpg`,alt:s.question,width:600,height:600,className:"h-auto w-full rounded-xl object-contain",loading:"lazy"})]})}),(0,t.jsx)(n.Accordion,{type:"single",collapsible:!0,defaultValue:a,onValueChange:e=>{e&&r(e)},children:e.map(e=>(0,t.jsxs)(n.AccordionItem,{value:e.question,children:[(0,t.jsx)(n.AccordionTrigger,{className:"text-base font-medium",children:e.question}),(0,t.jsx)(n.AccordionContent,{className:"text-muted-foreground",forceMount:!0,children:e.answer})]},e.question))})]})},"useProductPageToolHighlightsItem",0,b],168512)},250761,e=>{"use strict";var t=e.i(843476),o=e.i(354437);let a={avif:"image/avif",webp:"image/webp",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml"};e.s(["WebImage",0,function({sources:e,fallback:i,alt:r,className:s,imgClassName:l,loading:n="lazy"}){return(0,t.jsxs)("picture",{className:s,children:[e.map(e=>(0,t.jsx)("source",{srcSet:(0,o.webAsset)(e),type:a[e.split(".").pop()]},e)),(0,t.jsx)("img",{className:l,src:(0,o.webAsset)(i),alt:r,loading:n})]})}])},173487,e=>{"use strict";var t=e.i(843476),o=e.i(770703),a=e.i(271645),i=e.i(358324),r=e.i(975157);let s={overflowWrap:"anywhere",wordBreak:"break-word"},l={paddingRight:"1em",textAlign:"right",userSelect:"none",color:"rgb(148 163 184 / 0.65)",marginRight:"1rem",minWidth:"3em"};function n({code:e,className:o,wrapLongLines:a,showLineNumbers:i}){return(0,t.jsx)("pre",{tabIndex:0,className:(0,r.cn)("overflow-y-hidden rounded-lg text-sm sm:overflow-y-scroll",o),style:{background:"transparent",color:"#abb2bf",height:o?void 0:340,overflowX:a?"hidden":void 0,padding:"0.5em 1rem",margin:0},children:(0,t.jsx)("code",{style:a?{whiteSpace:"pre-wrap",...s}:void 0,children:i?e.split("\n").map((e,o)=>(0,t.jsxs)("span",{style:{display:"block"},children:[(0,t.jsx)("span",{style:{...l,display:"inline-block"},children:o+1}),e]},o)):e})})}let d=(0,a.createContext)(null);function u(){let e=(0,a.useContext)(d);return e?(0,t.jsx)(n,{...e}):null}let c=(0,o.default)(()=>e.A(727738).then(e=>e.SyntaxHighlighter),{loadableGenerated:{modules:[816026]},ssr:!1,loading:()=>(0,t.jsx)(u,{})});e.s(["SyntaxHighlighterLazy",0,function(e){let[o,r]=(0,a.useState)(!1),{setRef:s}=(0,i.useOnScreen)(.01,()=>r(!0));return(0,t.jsx)("div",{ref:s,className:"h-full",children:o?(0,t.jsx)(d.Provider,{value:e,children:(0,t.jsx)(c,{...e})}):(0,t.jsx)(n,{...e})})}])},727738,e=>{e.v(t=>Promise.all(["static/chunks/2-w84zq7wy96t.js","static/chunks/2l_dww5etacg2.js"].map(t=>e.l(t))).then(()=>t(816026)))},597864,e=>{"use strict";var t=e.i(942850),o=e.i(903179);let a=t.z.object({version:t.z.literal(1),expiresAt:t.z.number().finite().refine(e=>e>Date.now())});e.s(["freeToolHandoffMetadataSchema",0,a,"useFreeToolInputHandoff",0,function(e){let t=(0,o.useDraftsDB)();return async(...a)=>{await t.save(o.HANDOFF_KEY,{...await e(...a),handoffMetadata:{version:1,expiresAt:Date.now()+36e5}})}}])}]); 2 3//# chunkId=8ff79b75-c325-5e20-a200-b167d1924d0a
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.