PageSourceSearch

https://www.versely.studio/_next/static/chunks/3082.9626bef5d8e8f99e.js

js versely.studio collected 2026-09-24 13:30:30 UTC 21,281 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3082],{9036:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(95155),a=r(12115),s=r(57249),o=r(26497),i=r(4874);function l(e){let{accept:t,multiple:r=!1,label:l,hint:c,onFiles:d,disabled:u=!1,enablePaste:p=!1}=e,[m,h]=(0,a.useState)(!1),f=(0,a.useRef)(0),x=(0,a.useRef)(null),g=(0,a.useId)(),b=(0,i.b)(),v=(0,a.useRef)(d);v.current=d,(0,a.useEffect)(()=>{if(!p||u)return;let e=e=>{var n;let a=e.target;if(a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName||a.isContentEditable))return;let s=null==(n=e.clipboardData)?void 0:n.items;if(!(null==s?void 0:s.length))return;let o=[];for(let e of Array.from(s)){if("file"!==e.kind)continue;let n=e.getAsFile();if(n){if(t&&"*/*"!==t&&!t.split(",").some(e=>{let t=e.trim();return t.endsWith("/*")?n.type.startsWith(t.slice(0,-1)):n.type===t||n.name.toLowerCase().endsWith(t.replace(/^\./,"."))}))continue;if(o.push(n),!r)break}}if(0===o.length)return;e.preventDefault();let i=new DataTransfer;for(let e of o)i.items.add(e);v.current(i.files)};return window.addEventListener("paste",e),()=>window.removeEventListener("paste",e)},[p,u,t,r]);let y=()=>{f.current=0,h(!1)},w=(0,a.useCallback)(e=>{var t;if(e.preventDefault(),y(),u)return;let r=null==(t=e.dataTransfer)?void 0:t.files;r&&r.length>0&&d(r)},[u,d]);return(0,n.jsxs)(s.P.div,{onDragEnter:e=>{e.preventDefault(),f.current+=1,u||h(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),f.current-=1,f.current<=0&&y()},onDrop:w,animate:b?{scale:m?1.015:1}:void 0,transition:{duration:.28,ease:i.GA},className:"group relative overflow-hidden rounded-2xl border-2 border-dashed transition-colors duration-300 ".concat(m?"border-primary bg-primary/5 shadow-[0_0_0_1px_hsl(262_80%_55%/0.15),0_20px_50px_-24px_hsl(262_80%_55%/0.45)]":"border-border/80 hover:border-primary/45 hover:bg-muted/25"," ").concat(u?"pointer-events-none opacity-50":""),children:[b&&!m&&(0,n.jsx)(s.P.span,{"aria-hidden":!0,className:"pointer-events-none absolute -left-1/4 top-0 h-full w-1/2 bg-gradient-to-r from-transparent via-primary/[0.06] to-transparent",animate:{x:["0%","200%"]},transition:{duration:5.5,repeat:1/0,ease:"linear",repeatDelay:1.2}}),(0,n.jsx)(o.N,{children:m&&b&&(0,n.jsx)(s.P.span,{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-br from-primary/15 via-violet-500/10 to-transparent",initial:{opacity:0}
1,animate:{opacity:[.4,.7,.4]},exit:{opacity:0},transition:{duration:1.4,repeat:1/0,ease:"easeInOut"}})}),(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary/25 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100"}),(0,n.jsxs)("label",{htmlFor:g,className:"relative flex cursor-pointer flex-col items-center justify-center gap-3 px-6 py-12 text-center md:py-14",children:[(0,n.jsx)(s.P.span,{"aria-hidden":"true",animate:b?{scale:m?1.12:1,y:m?-2:0}:void 0,transition:{type:"spring",stiffness:380,damping:22},className:"flex h-14 w-14 items-center justify-center rounded-2xl transition-shadow ".concat(m?"gradient-primary text-white shadow-lg shadow-primary/30":"bg-muted/80 text-muted-foreground ring-1 ring-border/70 group-hover:ring-primary/30"),children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-6 w-6",stroke:"currentColor",strokeWidth:"1.8",children:[(0,n.jsx)("path",{d:"M12 16V4m0 0L7.5 8.5M12 4l4.5 4.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3",strokeLinecap:"round"})]})}),(0,n.jsx)("span",{className:"font-heading text-base font-semibold tracking-tight",children:m?"Drop it":l}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:m?"Release to load":p?"Drag and drop, click to browse, or paste (⌘/Ctrl+V)":"Drag and drop, or click to browse"}),c&&!m&&(0,n.jsx)("span",{className:"max-w-md text-xs leading-relaxed text-muted-foreground/80",children:c}),(0,n.jsx)("input",{ref:x,id:g,type:"file",accept:t,multiple:r,disabled:u,className:"sr-only",onChange:e=>{var t;(null==(t=e.target.files)?void 0:t.length)&&d(e.target.files),e.target.value=""}})]})]})}},9686:(e,t,r)=>{r.d(t,{Uw:()=>c,bw:()=>a,hU:()=>s,qo:()=>i,r0:()=>l,rO:()=>d});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")};function a(e,t){let r=Math.max(0,Math.round(e)),a=Math.floor(r/36e5),s=Math.floor(r%36e5/6e4),o=Math.floor(r%6e4/1e3);return"".concat(n(a),":").concat(n(s),":").concat(n(o)).concat(t).concat(n(r%1e3,3))}function s(e){let t=e.trim().match(/^(?:(\d+):)?(\d{1,2}):(\d{1,2})[.,](\d{1,3})$/);if(!t)return null;let[,r,n,a,s]=t;return 36e5*Number(null!=r?r:0)+6e4*Number(n)+1e3*Number(a)+Number(s.padEnd(3,"0"))}let o=/^(.+?)\s*-->\s*([^\s]+)(?:\s+(.*))?$/;function i(e){let t=e.replace(/^/,"").replace(/\r\n?/g,"\n").split(/\n{2,}/),r=[],n=0;for(let e of t){let t=e.split("\n").filter(e=>""!==e.trim());if(0===t.length)continue;let a=t[0].trim();if(/^WEBVTT/i.test(a)||/^(NOTE|STYLE|REGION)\b/i.test(a))continue;let i=t.findIndex(e=>o.test(e));if(-1===i){n++;continue}let l=t[i].match(o),c=s(l[1]),d=s(l[2]);if(null==c||null==d){n++;continue}let u=t.slice(i+1).join("\n").trim();if(!u){n++;continue}r.push({index:r.length+1,start:c,end:d,text:u})}return{cues:r,dropped:n}}function l(e){return e.map((e,t)=>"".concat(t+1,"\n").concat(a(e.start,",")," --\x3e ").concat(a(e.end,","),"\n").concat(e.text.replace(/<\/?[a-zA-Z][^>]*>/g,"").replace(/\{\\[^}]*\}/g,"").trim())).join("\n\n")+"\n"}function c(e){return"WEBVTT\n\n"+e.map((e,t)=>"".concat(t+1,"\n").concat(a(e.start,".")," --\x3e ").concat(a(e.end,"."),"\n").concat(e.text)).join("\n\n")+"\n"}function d(e,t){let r=0;return{cues:e.map(e=>{let n=e.start+t,a=e.end+t;return n<0&&r++,{...e,start:Math.max(0,n),end:n<0?Math.max(0,a-n):Math.max(0,a)}}),clamped:r}}},23082:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var n=r(95155),a=r(12115),s=r(9036),o=r(87444),i=r(34416),l=r(9686);function c(){let[e,t]=(0,a.useState)(""),[r,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),[p,m]=(0,a.useState)("gap"),[h,f]=(0,a.useState)(4),[x,g]=(0,a.useState)(60),b=(0,a.useMemo)(()=>e.trim()?(0,l.qo)(e):null,[e]),v=(0,a.useMemo)(()=>b&&0!==b.cues.length?function(e,t,r,n){if(0===e.length)return[];let a=[],s=(e,t)=>{let r=function(e){let t=(e.replace(/<\/?[a-zA-Z][^>]*>/g,"").replace(/\{\\[^}]*\}/g,"").split("\n").map(e=>e.trim()).find(e=>e.length>0)||"Chapter").replace(/^[-.*•\d.)\]]+\s*/,"").trim();return t.length<=60?t||"Chapter":"".concat(t.slice(0,57).trimEnd(),"...")}(t);if(0===a.length)return void a.push({startMs:0,title:r});Math.floor(e/1e3)<=Math.floor(a[a.length-1].startMs/1e3)||a.push({startMs:e,title:r})};if("markers"===t){for(let t of(s(0,e[0].text),e.slice(1)))(function(e){let t=e.replace(/<\/?[a-zA-Z][^>]*>/g,"").trim();
1return/^(chapter|part|section|scene|act)\b/i.test(t)||/^#{1,3}\s+\S/.test(t)})(t.text)&&s(t.start,t.text);return a}if("interval"===t){let t=1e3*Math.max(30,n);s(0,e[0].text);let r=t;for(let n of e)n.start>=r&&(s(n.start,n.text),r=n.start+t);return a}let o=1e3*Math.max(1,r);s(0,e[0].text);for(let t=1;t<e.length;t++){let r=e[t-1],n=e[t];n.start-r.end>=o&&s(n.start,n.text)}return a}(b.cues,p,h,x):[],[b,p,h,x]),y=(0,a.useMemo)(()=>v.map(e=>"".concat(function(e){let t=Math.max(0,Math.floor(e/1e3)),r=Math.floor(t/3600),n=Math.floor(t%3600/60),a=t%60;return r>0?"".concat(r,":").concat(String(n).padStart(2,"0"),":").concat(String(a).padStart(2,"0")):"".concat(n,":").concat(String(a).padStart(2,"0"))}(e.startMs)," ").concat(e.title)).join("\n"),[v]);async function w(e){let r=(0,i.vH)(e,"text");if(!r.ok){var n;u(null!=(n=r.error)?n:"File rejected.");return}u(null),c(e.name),t(await e.text())}return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)("p",{className:"text-sm text-muted-foreground",children:[i.Vz.text.summary," Pure text: timestamps + titles for YouTube description chapters."]}),(0,n.jsx)("p",{className:"rounded-lg bg-muted/50 p-3 text-sm text-muted-foreground",children:"YouTube requires the first chapter at 0:00 and at least three chapters for the chapter UI. Titles come from cue text at each chapter start. Edit freely before paste."}),(0,n.jsx)(s.A,{accept:".srt,.vtt,text/plain,text/vtt",label:"Drop SRT or VTT here",hint:"Or paste the caption file below. Stays on your device.",onFiles:e=>e[0]&&w(e[0])}),r&&(0,n.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Loaded ",r]}),d&&(0,n.jsx)("p",{className:"rounded-lg border border-destructive/40 bg-destructive/5 p-3 text-sm",children:d}),(0,n.jsxs)(o.xP,{children:[(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:[["gap","Gap between cues"],["interval","Every N seconds"],["markers","Chapter / Part markers"]].map(e=>{let[t,r]=e;return(0,n.jsx)("button",{type:"button",onClick:()=>m(t),className:"rounded-lg border px-3 py-2 text-sm ".concat(p===t?"border-foreground bg-foreground text-background":"border-border"),children:r},t)})}),"gap"===p&&(0,n.jsxs)("label",{className:"mt-4 block text-sm",children:[(0,n.jsxs)("span",{className:"mb-1 block font-medium",children:["Min gap to start a chapter \xb7 ",h,"s"]}),(0,n.jsx)("input",{type:"range",min:1,max:30,value:h,onChange:e=>f(Number(e.target.value)),className:"w-56"})]}),"interval"===p&&(0,n.jsxs)("label",{className:"mt-4 block text-sm",children:[(0,n.jsxs)("span",{className:"mb-1 block font-medium",children:["Interval \xb7 ",x,"s"]}),(0,n.jsx)("input",{type:"range",min:30,max:300,step:15,value:x,onChange:e=>g(Number(e.target.value)),className:"w-56"})]}),"markers"===p&&(0,n.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Uses cues whose text starts with Chapter, Part, Section, Scene, Act, or a markdown heading."})]}),(0,n.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"chapters-in",className:"mb-2 block text-sm font-medium",children:"Subtitles"}),(0,n.jsx)("textarea",{id:"chapters-in",value:e,onChange:e=>{t(e.target.value),c(null)},rows:16,spellCheck:!1,className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-xs leading-relaxed",placeholder:"1\n00:00:00,000 --\x3e 00:00:04,000\nIntro line..."}),b&&(0,n.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground",children:[b.cues.length," cue",1===b.cues.length?"":"s",b.dropped?" \xb7 ".concat(b.dropped," block(s) skipped"):""]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"chapters-out",className:"mb-2 block text-sm font-medium",children:"YouTube chapters"}),(0,n.jsx)("textarea",{id:"chapters-out",readOnly:!0,value:y,rows:16,spellCheck:!1,className:"w-full rounded-xl border border-border bg-muted/30 px-3 py-2 font-mono text-xs leading-relaxed",placeholder:"0:00 Intro"}),(0,n.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground",children:[v.length," chapter",1===v.length?"":"s",v.length>0&&v.length<3?" \xb7 YouTube needs 3+ for the chapter list UI":""]})]})]}),(0,n.jsx)(o.I8,{show:v.length>0,children:(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:function(){navigator.clipboard.writeText(y)},className:"rounded-lg border border-foreground bg-foreground px-4 py-2 text-sm text-background",children:"Copy chapters"}),(0,n.jsx)("button",{type:"button",onClick:function(){let e=new Blob([y],{type:"text/plain;charset=utf-8"}),t=URL.createObjectURL(e),n=document.createElement("a");n.href=t;let a=(r||"chapters").replace(/\.[^.]+$/,"");
1n.download="".concat(a,"-chapters.txt"),n.click(),URL.revokeObjectURL(t)},className:"rounded-lg border border-border px-4 py-2 text-sm hover:border-foreground/40",children:"Download .txt"})]})})]})}},26497:(e,t,r)=>{r.d(t,{N:()=>v});var n=r(95155),a=r(12115),s=r(60296),o=r(94416),i=r(46436),l=r(59686),c=r(81402),d=r(53127);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,c.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,c.s)(e)&&e.offsetWidth||0,n=(0,c.s)(e)&&e.offsetHeight||0,a=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=r-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function m(e){var t,r;let{children:s,isPresent:o,anchorX:i,anchorY:l,root:c,pop:m}=e,h=(0,a.useId)(),f=(0,a.useRef)(null),x=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,a.useContext)(d.Q),b=function(...e){return a.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}(...e),e)}(f,null!=(r=null==(t=s.props)?void 0:t.ref)?r:null==s?void 0:s.ref);return(0,a.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:n,right:a,bottom:s,direction:d}=x.current;if(o||!1===m||!f.current||!e||!t)return;let u="rtl"===d;f.current.dataset.motionPopId=h;let p=document.createElement("style");g&&(p.nonce=g);let b=null!=c?c:document.head;return b.appendChild(p),p.sheet&&p.sheet.insertRule('\n          [data-motion-pop-id="'.concat(h,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===i?u?"right: ".concat(a):"left: ".concat(n):u?"left: ".concat(n):"right: ".concat(a),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(r),"px !important;\n          }\n        ")),()=>{var e;null==(e=f.current)||e.removeAttribute("data-motion-pop-id"),b.contains(p)&&b.removeChild(p)}},[o]),(0,n.jsx)(p,{isPresent:o,childRef:f,sizeRef:x,pop:m,children:!1===m?s:a.cloneElement(s,{ref:b})})}let h=e=>{let{children:t,initial:r,isPresent:s,onExitComplete:i,custom:c,presenceAffectsLayout:d,mode:u,anchorX:p,anchorY:h,root:x}=e,g=(0,o.M)(f),b=(0,a.useId)(),v=!0,y=(0,a.useMemo)(()=>(v=!1,{id:b,initial:r,isPresent:s,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;i&&i()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[s,g,i]);return d&&v&&(y={...y}),(0,a.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[s]),a.useEffect(()=>{s||g.size||!i||i()},[s]),t=(0,n.jsx)(m,{pop:"popLayout"===u,isPresent:s,anchorX:p,anchorY:h,root:x,children:t}),(0,n.jsx)(l.t.Provider,{value:y,children:t})};function f(){return new Map}var x=r(75601);let g=e=>e.key||"";function b(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let v=e=>{let{children:t,custom:r,initial:l=!0,onExitComplete:c,presenceAffectsLayout:d=!0,mode:u="sync",propagate:p=!1,anchorX:m="left",anchorY:f="top",root:v}=e,[y,w]=(0,x.xQ)(p),j=(0,a.useMemo)(()=>b(t),[t]),N=p&&!y?[]:j.map(g),k=(0,a.useRef)(!0),M=(0,a.useRef)(j),B=(0,o.M)(()=>new Map),C=(0,a.useRef)(new Set),[P,E]=(0,a.useState)(j),[_,S]=(0,a.useState)(j);(0,i.E)(()=>{k.current=!1,M.current=j;for(let e=0;e<_.length;e++){let t=g(_[e]);N.includes(t)?(B.delete(t),C.current.delete(t)):!0!==B.get(t)&&B.set(t,!1)}},[_,N.length,N.join("-")]);let T=[];if(j!==P){let e=[...j];for(let t=0;t<_.length;t++){let r=_[t],n=g(r);N.includes(n)||(e.splice(t,0,r),T.push(r))}return"wait"===u&&T.length&&(e=T),S(b(e)),E(j),null}let{forceRender:I}=(0,a.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:_.map(e=>{let t=g(e),a=(!p||!!y)&&(j===_||N.includes(t));return(0,n.jsx)(h,{isPresent:a,initial:(!k.current||!!l)&&void 0,custom:r,presenceAffectsLayout:d,mode:u,root:v,onExitComplete:a?void 0:()=>
1{if(C.current.has(t)||!B.has(t))return;C.current.add(t),B.set(t,!0);let e=!0;B.forEach(t=>{t||(e=!1)}),e&&(null==I||I(),S(M.current),p&&(null==w||w()),c&&c())},anchorX:m,anchorY:f,children:e},t)})})}},34416:(e,t,r)=>{r.d(t,{Vz:()=>n,te:()=>i,vH:()=>s,wG:()=>o,zi:()=>a});let n={image:{maxBytes:0x2800000,warnBytes:0xc00000,summary:"Images up to 40 MB. Canvas holds the decoded bitmap, so a 40 MP photo needs roughly 160 MB of memory regardless of how small the file is."},video:{maxBytes:0x80000000,warnBytes:524288e3,summary:"Video up to 2 GB. Only the frame you are on is ever decoded, so large files are fine; the browser streams the rest."},audio:{maxBytes:0x5000000,warnBytes:0x1400000,maxUnits:1200,unitName:"seconds",summary:"Audio up to 80 MB and 20 minutes once decoded. Compressed files expand into PCM in memory, so a long podcast is heavy even when the mp3 looks small."},pdf:{maxBytes:0x9600000,warnBytes:0x2800000,maxUnits:500,unitName:"pages",summary:"PDFs up to 150 MB and 500 pages. Rendering allocates about 25 MB per page at export resolution, which is what the page cap protects."},pptx:{maxBytes:0xc800000,warnBytes:0x3200000,maxUnits:300,unitName:"slides",summary:"PowerPoint files up to 200 MB and 300 slides. A .pptx is a ZIP archive, so it is unpacked in memory before anything is read."},text:{maxBytes:0x1400000,warnBytes:4194304,summary:"Subtitle files up to 20 MB — far beyond any real caption track, which is measured in kilobytes."},office:{maxBytes:0x5000000,warnBytes:0x1400000,summary:"Office files up to 80 MB. A .docx or .xlsx is a ZIP of XML parts, unpacked in memory before anything is read."},hash:{maxBytes:0x19000000,warnBytes:0x5000000,summary:"Files up to 400 MB. The whole file is hashed in memory, so a larger one would freeze this tab rather than fail cleanly."}},a=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):e<0x40000000?"".concat((e/1048576).toFixed(1)," MB"):"".concat((e/0x40000000).toFixed(2)," GB");function s(e,t){let r=n[t];return e.size>r.maxBytes?{ok:!1,error:"That file is ".concat(a(e.size),", over the ").concat(a(r.maxBytes)," limit. The cap exists because processing happens in your browser's memory — a larger file would crash this tab rather than fail gracefully.")}:e.size>r.warnBytes?{ok:!0,warning:"".concat(a(e.size)," is large for in-browser processing. It should work, but expect it to be slow and avoid switching tabs while it runs.")}:{ok:!0}}function o(e,t){let r=n[t];return r.maxUnits&&e>r.maxUnits?{ok:!1,error:"That file has ".concat(e," ").concat(r.unitName,", over the ").concat(r.maxUnits," limit. Split it first — this cap is what stops the tab running out of memory partway through and losing the work.")}:{ok:!0}}let i=()=>new Promise(e=>setTimeout(e,0))},87444:(e,t,r)=>{r.d(t,{I8:()=>l,uM:()=>i,xP:()=>c});var n=r(95155),a=r(57249),s=r(26497),o=r(4874);function i(e){let{value:t,label:r}=e,s=(0,o.b)(),i=null==t?null:Math.max(0,Math.min(1,t));return(0,n.jsxs)("div",{className:"space-y-2.5",role:"status","aria-live":"polite",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[r?(0,n.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:r}):(0,n.jsx)("span",{}),null!=i&&(0,n.jsxs)("span",{className:"tabular-nums text-xs font-semibold text-primary",children:[Math.round(100*i),"%"]})]}),(0,n.jsxs)("div",{className:"relative h-2.5 overflow-hidden rounded-full bg-muted/80 ring-1 ring-border/60",children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-transparent via-primary/5 to-transparent"}),null==i?(0,n.jsx)(a.P.div,{className:"absolute inset-y-0 w-2/5 rounded-full gradient-primary shadow-[0_0_16px_hsl(262_80%_55%/0.45)]",animate:s?{x:["-40%","280%"]}:void 0,transition:s?{duration:1.25,repeat:1/0,ease:"easeInOut"}:void 0}):(0,n.jsx)(a.P.div,{className:"relative h-full rounded-full gradient-primary shadow-[0_0_14px_hsl(262_80%_55%/0.35)]",initial:!1,animate:{width:"".concat(100*i,"%")},transition:{duration:.4*!!s,ease:o.GA}
1,children:s&&(0,n.jsx)(a.P.span,{"aria-hidden":!0,className:"absolute inset-y-0 right-0 w-8 bg-gradient-to-r from-transparent to-white/35",animate:{opacity:[.2,.65,.2]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"}})})]})]})}function l(e){let{show:t,children:r,className:i}=e,l=(0,o.b)();return(0,n.jsx)(s.N,{mode:"wait",children:t&&(0,n.jsxs)(a.P.div,{initial:!!l&&{opacity:0,y:14,scale:.975},animate:{opacity:1,y:0,scale:1},exit:l?{opacity:0,y:8,scale:.99}:void 0,transition:{duration:.45,ease:o.GA},className:"relative ".concat(null!=i?i:""),children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-2 -z-10 rounded-[1.35rem] bg-gradient-to-br from-primary/20 via-violet-500/10 to-transparent opacity-80 blur-xl"}),r]},"tool-result")})}function c(e){let{children:t,className:r}=e,s=(0,o.b)();return(0,n.jsxs)(a.P.div,{initial:!!s&&{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,ease:o.GA},className:"relative overflow-hidden rounded-2xl border border-border/60 bg-gradient-to-br from-muted/40 via-background/80 to-muted/20 p-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur-sm md:p-5 ".concat(null!=r?r:""),children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary/35 to-transparent"}),(0,n.jsx)("div",{className:"relative",children:t})]})}}}]);

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.