PageSourceSearch

https://vid.ai/_next/static/chunks/2780.ddd29e237df4e08e.js

js vid.ai collected 2026-10-04 06:57:13 UTC 58,446 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2780],{88992:function(t,e,i){i.d(e,{rL:function(){return x},kf:function(){return p}});var n=i(85893),a=i(67294),l=i(50100);let r=new Set,o=t=>t instanceof Error?t:Error("string"==typeof(null==t?void 0:t.message)?t.message:String(null!=t?t:"Unknown preview error")),s=()=>{try{return new URLSearchParams(window.location.search).get("id")||void 0}catch(t){return}},c=function(t){var e,i;let{tool:n,projectId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o(t),h="".concat(n||"unknown","|").concat(c.name,"|").concat(c.message);if(r.has(h))return!1;r.add(h);let d={source:"remotion-player",tool:n||"unknown",projectId:a||s(),path:null===(e=window.location)||void 0===e?void 0:e.pathname,errorMessage:String(c.message).slice(0,500),errorStack:c.stack?String(c.stack).slice(0,4e3):void 0};try{"function"==typeof(null===(i=window.posthog)||void 0===i?void 0:i.captureException)?window.posthog.captureException(c,d):(0,l.n7)("$exception",{$exception_message:d.errorMessage,$exception_type:c.name,...d})}catch(t){}return!0},h=(t,e)=>{if(!t||"function"!=typeof t.addEventListener)return()=>{};let i=t=>{var i;return c(null==t?void 0:null===(i=t.detail)||void 0===i?void 0:i.error,e)};return t.addEventListener("error",i),()=>{var e;return null===(e=t.removeEventListener)||void 0===e?void 0:e.call(t,"error",i)}},d=t=>{let{unit:e}=t,i=Math.max(24,Math.round(e/24));return(0,n.jsxs)("div",{role:"alert",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:Math.round(.5*i),padding:i,background:"#09090b",color:"#a1a1aa",textAlign:"center",fontFamily:"inherit"},children:[(0,n.jsx)("p",{style:{margin:0,fontSize:i,fontWeight:600,color:"#fafafa"},children:"The preview couldn't load."}),(0,n.jsx)("p",{style:{margin:0,fontSize:Math.round(.8*i)},children:"Refresh the page to try again."}),(0,n.jsx)("button",{type:"button",onPointerDown:t=>t.stopPropagation(),onClick:()=>window.location.reload(),style:{marginTop:Math.round(.4*i),padding:"".concat(Math.round(.35*i),"px ").concat(i,"px"),fontSize:Math.round(.75*i),fontWeight:600,color:"#fff",background:"#2563eb",border:0,borderRadius:Math.round(.4*i),cursor:"pointer"},children:"Refresh"})]})},x=function(){let{tool:t,projectId:e,compositionWidth:i=1080,compositionHeight:a=1080}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Math.min(Number(i)||1080,Number(a)||1080);return i=>{let{error:a}=i;return c(a,{tool:t,projectId:e}),(0,n.jsx)(d,{unit:l})}},p=function(t){let{tool:e,projectId:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];(0,a.useEffect)(()=>{if(n)return h(null==t?void 0:t.current,{tool:e,projectId:i})},[n,t,e,i])}},88412:function(t,e,i){i.d(e,{ZP:function(){return tP}});var n=i(85893),a=i(67294),l=i(93373),r=i(80265);let o=l.oY.bezier(.16,1,.3,1),s=l.oY.bezier(.7,0,.84,0),c=l.oY.bezier(.65,0,.35,1),h={extrapolateLeft:"clamp",extrapolateRight:"clamp"},d=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[0,1];return i<=e?t>=e?a[1]:a[0]:(0,l.sX)(t,[e,i],a,{...h,easing:n})},x=(t,e)=>Math.round(Number(t)/1e3*e),p=t=>Math.min(7,Math.max(4,Math.round(.15*t))),g=function(t,e,i){let{charWidth:n=.6,minSize:a=20}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Math.max(a,Math.min(i,e/(Math.max(1,String(null!=t?t:"").length)*n)))},y=function(t,e,i,n){let{charWidth:a=.56,lineHeight:l=1.12,minSize:r=20}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=String(null!=t?t:"").split(/\s+/).filter(Boolean),s=t=>{let n=e/(t*a),r=1,s=0;for(let t of o){let e=t.length+(s>0?1:0);if(t.length>n)return!1;s+e>n?(r+=1,s=t.length):s+=e}return r*t*l<=i},c=n;for(;c>r&&!s(c);)c-=2;return Math.max(r,c)},m=(0,a.createContext)({pace:1}),f=t=>30*(Number(t)>0?Number(t):1),u=(t,e,i)=>t*f(i)/e,j=t=>{let e=(0,l.ND)(),{fps:i,width:n,height:r}=(0,l.rf)(),{pace:o}=(0,a.useContext)(m),s=f(o),h=u(e,i,o),x=p(t),g=Math.max(0,t-x);return{frame:h,fps:s,width:n,height:r,portrait:r>n,unit:Math.min(n,r)/1080,exitStart:g,exit:d(h,g,t,c)}},b=(t,e)=>{var i;return x(null!==(i=null==t?void 0:t.atMs)&&void 0!==i?i:0,e)},M=function(t){let{damping:e=12,stiffness:i=180,mass:n=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Number.isFinite(null==t?void 0:t.energy)?t.energy:1;return{damping:e+(1-a)*16,stiffness:i*(.45+.55*a),mass:n}},v=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{rise:i=10,blur:n=6}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{opacity:t,transform:"translateY(".concat((1-t)*i*e,"px) scale(").concat(.98+.02*t,")"),filter:t>=1?void 0:"blur(".concat((1-t)*n*e,"px)")}},w="0 2px 12px rgba(0,0,0,0.55), 0 0 32px rgba(0,0,0,0.35)";var k=i(75459);let S={landscape:{x:.06,top:.07,bottom:.07},portrait:{x:.07,top:.08,bottom:.08}},z={above:.12,below:.06,clearance:.025},W={xs:8,sm:16,md:28,lg:44},F={hero:150,title:64,label:44,body:36,note:28},I={hero:140,lg:120,md:92},U=t=>{let{width:e,height:i,captionsVisible:n=!1,captionsYPosition:a}=t,l=i>e,r=l?S.portrait:S.landscape,o=i*r.top,s=i*(1-r.bottom);if(n){let t=(0,k.PG)(a)/100,e=(t-z.above-z.clearance)*i,n=(t+z.below+z.clearance)*i;e-o>=s-n?s=Math.min(s,e):o=Math.max(o,n)}let c=e*r.x;return{left:c,top:o,width:e-2*c,height:Math.max(1,s-o),cx:e/2,cy:(o+s)/2,portrait:l,frameWidth:e,frameHeight:i,unit:Math.min(e,i)/1080}},L=(0,a.createContext)(null),D=()=>{let t=(0,a.useContext)(L),{width:e,height:i}=(0,l.rf)();return t||U({width:e,height:i})},A=/[ऀ-ॿ]/,C=(t,e)=>
1A.test(t)?1.04*e:e,P=function(t,e,i,n,a){let{charWidth:l=.56}=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=String(null!=t?t:""),o=r.split(/\s+/).filter(Boolean),s=C(r,l),c=t=>{let n=e/(t*s),a=1,l=0;for(let t of o){if(t.length>n)return!1;let e=t.length+(l>0?1:0);l+e>n?(a+=1,l=t.length):l+=e}return a<=i},h=n;for(;h>a&&!c(h);)h-=1;return Math.max(a,h)},X=function(t,e,i){let{charWidth:n=.56}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=String(null!=t?t:""),l=Math.max(1,e/(i*C(a,n))),r=1,o=0;for(let t of a.split(/\s+/).filter(Boolean)){let e=t.length+(o>0?1:0);o+e>l&&o>0?(r+=1,o=t.length):o+=e}return r},H=t=>({text:(null==t?void 0:t.text)||"#FFFFFF",soft:(null==t?void 0:t.soft)||(null==t?void 0:t.text)||"#FFFFFF",accent:(null==t?void 0:t.accentText)||(null==t?void 0:t.accent)||"#FFFFFF"});var N=i(94656);let Y=[.48,.4,.56],E=t=>{let e=String(t||"").replace("#","");return/^[0-9a-f]{6}$/i.test(e)?[0,2,4].map(t=>parseInt(e.slice(t,t+2),16)):[15,23,42]},T=(t,e)=>"rgba(".concat(E(t).join(","),",").concat(e,")"),B=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return Math.sin(t/e*Math.PI*2+n)*i},R=t=>{let{strength:e=.55}=t;return(0,n.jsx)(l.hU,{style:{background:"radial-gradient(ellipse 75% 70% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,".concat(e,") 100%)")}})},Z=t=>{let{look:e,t:i,unit:a,p:r}=t,o="blur(".concat(34*a*r,"px) brightness(").concat(1-.55*r,") saturate(").concat(1+(1.2-1)*r,")");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.hU,{style:{backdropFilter:o,WebkitBackdropFilter:o}}),(0,n.jsx)(l.hU,{style:{background:"linear-gradient(180deg, ".concat(Y.map((t,i)=>"".concat(T(e.surface,t*r)," ").concat(50*i,"%")).join(", "),")")}}),(0,n.jsx)(l.hU,{style:{background:"radial-gradient(circle at ".concat(50+B(i,14,18),"% ").concat(40+B(i,11,8,1),"%, ").concat(T(e.accent,.1*r)," 0%, rgba(0,0,0,0) 45%)")}}),(0,n.jsx)(R,{strength:.6*r})]})},O=[{color:"accent",alpha:.34,size:72,x:22,y:30,period:17,amp:7},{color:"secondary",alpha:.2,size:64,x:78,y:70,period:21,amp:8},{color:"accent",alpha:.16,size:58,x:80,y:18,period:25,amp:6},{color:"secondary",alpha:.14,size:70,x:30,y:88,period:19,amp:7}],V=[255,255,255],_=(t,e,i)=>e.map((e,n)=>t*e+(1-t)*i[n]),G=t=>(0,N.ov)("#".concat(t.map(t=>Math.round(t).toString(16).padStart(2,"0")).join(""))),$=(t,e)=>(Math.max(t,e)+.05)/(Math.min(t,e)+.05),q=t=>{var e,i;let n=E(t.surface),a=[null!==(e=(0,N.ov)(t.text))&&void 0!==e?e:1,null!==(i=(0,N.ov)(t.accentText))&&void 0!==i?i:1],l=e=>O.reduce((i,n)=>_(n.alpha*e,E("accent"===n.color?t.accent:t.secondary),i),n);for(let t=1;t>.3;t-=.05){let e=l(t),i=G(e);if([...a,G(_(.86,V,e))].every(t=>$(t,i)>=4.6))return t}return .3},Q=t=>{let{look:e,t:i}=t,a=q(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.hU,{style:{background:"linear-gradient(160deg, ".concat(T(e.surface,1)," 0%, ").concat(T(e.surfaceDeep,1)," 100%)")}}),O.map((t,r)=>{let o=t.x+B(i,t.period,t.amp,1.7*r),s=t.y+B(i,1.3*t.period,.7*t.amp,2.3*r),c="accent"===t.color?e.accent:e.secondary,h=t.alpha*a;return(0,n.jsx)(l.hU,{style:{background:"radial-gradient(circle ".concat(t.size,"vmax at ").concat(o,"% ").concat(s,"%, ").concat(T(c,h)," 0%, ").concat(T(c,.45*h)," 30%, rgba(0,0,0,0) 62%)")}},r)}),(0,n.jsx)(R,{strength:.45})]})},K=t=>{let{look:e,t:i,frame:a,width:r,height:o,unit:s}=t,c=26*s,h=1.4*s,d=6*i*s%c,x=i/9%1*160-30,p=Math.floor(a/2),g=200*(0,l.MX)("grain-".concat(p));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.hU,{style:{background:"radial-gradient(ellipse 90% 80% at 50% 40%, ".concat(T(e.surface,1)," 0%, ").concat(T(e.surfaceDeep,1)," 100%)")}}),(0,n.jsx)(l.hU,{style:{backgroundImage:"radial-gradient(circle, rgba(255,255,255,0.09) ".concat(h,"px, rgba(255,255,255,0) ").concat(h+.6,"px)"),backgroundSize:"".concat(c,"px ").concat(c,"px"),backgroundPosition:"".concat(d,"px ").concat(.5*d,"px"),WebkitMaskImage:"radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 100%)",maskImage:"radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 100%)"}}),(0,n.jsx)(l.hU,{style:{background:"linear-gradient(105deg, rgba(0,0,0,0) ".concat(x-22,"%, ").concat(T(e.accent,.1)," ").concat(x,"%, rgba(0,0,0,0) ").concat(x+22,"%)")}}),(0,n.jsxs)("svg",{width:r,height:o,style:{position:"absolute",inset:0,opacity:.07,mixBlendMode:"screen"},children:[(0,n.jsxs)("filter",{id:"grain-".concat(p),children:[(0,n.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:.9,numOctaves:2,seed:Math.round(g),stitchTiles:"stitch"}),(0,n.jsx)("feColorMatrix",{type:"saturate",values:"0"})]}
1),(0,n.jsx)("rect",{width:r,height:o,filter:"url(#grain-".concat(p,")")})]}),(0,n.jsx)(R,{strength:.5})]})},J=t=>{let{style:e,look:i,durationInFrames:a}=t,r=(0,l.ND)(),{fps:s,width:h,height:x}=(0,l.rf)(),p=r/s,g=Math.max(2,Math.min(Math.round(.5*s),Math.floor(a/3))),y=d(r,0,g,o),m=d(r,a-g,a,c,[1,0]),f={look:i,t:p,frame:r,width:h,height:x,unit:Math.min(h,x)/1080};if("texture"===e){let t=140*y-20,e=(1-m)*140-20,i="linear-gradient(90deg, transparent ".concat(e-20,"%, #000 ").concat(e,"%, #000 ").concat(t,"%, transparent ").concat(t+20,"%)");return(0,n.jsx)(l.hU,{style:{WebkitMaskImage:i,maskImage:i},children:(0,n.jsx)(K,{...f})})}return"mesh"===e?(0,n.jsx)(l.hU,{style:{opacity:Math.min(y,m)},children:(0,n.jsx)(Q,{...f})}):(0,n.jsx)(Z,{...f,p:Math.min(y,m)})},tt=["footage-blur","mesh","texture"],te={"icon-stat":"footage-blur","counter-roll":"footage-blur","percent-ring":"footage-blur","unit-grid":"footage-blur","list-pop":"footage-blur","compare-icons":"footage-blur","stat-bars":"footage-blur","number-slam":"footage-blur","kinetic-title":"mesh","typewriter-quote":"mesh","strike-correct":"mesh","highlight-marker":"mesh","icon-spotlight":"mesh","keyword-stamp":"mesh","underline-scribble":"mesh","glitch-reveal":"mesh","icon-burst":"mesh","line-chart":"texture","icon-timeline":"texture","timeline-tick":"texture","route-map":"texture","map-pin":"texture","flow-diagram":"texture","cycle-loop":"texture"},ti=new Set(["split-contrast"]),tn=t=>ti.has(t)?null:te[t]||"mesh",ta=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mix",i=Array.isArray(t)?t:[],n=i.map((t,e)=>e).sort((t,e)=>i[t].startMs-i[e].startMs||t-e),a=Array(i.length).fill(null),l=null;for(let t of n){let n=i[t],r=tn(null==n?void 0:n.template);r&&tt.includes(e)&&(r=e),r&&(null==l?void 0:l.style)&&n.startMs-l.endMs<3e3&&(r=l.style),a[t]=r,l={style:r,endMs:n.endMs}}return a};var tl=i(92952),tr=i(2003);let to=t=>{let{stage:e,gap:i=0,width:a,height:l,align:r="center",style:o,children:s}=t;return(0,n.jsx)("div",{style:{position:"absolute",left:e.left,top:e.top,width:e.width,height:e.height,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{position:"relative",display:"flex",flexDirection:"column",alignItems:r,gap:i,width:a,height:l,maxWidth:e.width,flexShrink:0,...o},children:s})})},ts=t=>{let{size:e,color:i,width:a,align:l="center",lineHeight:r=1.15,style:o,children:s}=t;return(0,n.jsx)("div",{style:{fontSize:e,color:i,lineHeight:r,textAlign:l,maxWidth:null!=a?a:"100%",overflowWrap:"break-word",textShadow:w,...o},children:s})},tc={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"};var th=i(41036);let td="radial-gradient(ellipse 60% 45% at 50% 42%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 80%)",tx=t=>String(t).toUpperCase(),tp=(t,e,i)=>{let n=[];for(let a=0;a<2;a++)for(let r=0;r<=6;r++){let o=(a%2==0?r/6:1-r/6)*t,s=e*(.35+.3*a)+((0,l.MX)("".concat(i,"-p").concat(a,"-").concat(r))-.5)*e*.35;n.push([o,s])}return n.reduce((t,e,i)=>{let[a,l]=e;if(0===i)return"M ".concat(a.toFixed(1)," ").concat(l.toFixed(1));let[r,o]=n[i-1];return"".concat(t," Q ").concat(r.toFixed(1)," ").concat(o.toFixed(1)," ").concat(((r+a)/2).toFixed(1)," ").concat(((o+l)/2).toFixed(1))},"")},tg=t=>{let{shape:e,size:i,color:a}=t,l=i/2;if("triangle"===e)return(0,n.jsx)("svg",{width:i,height:i,children:(0,n.jsx)("polygon",{points:"".concat(l,",0 ").concat(i,",").concat(i," 0,").concat(i),fill:a})});if("star"===e){let t=Array.from({length:10},(t,e)=>{let i=e%2==0?l:.45*l,n=e/10*Math.PI*2-Math.PI/2;return"".concat(l+Math.cos(n)*i,",").concat(l+Math.sin(n)*i)}).join(" ");return(0,n.jsx)("svg",{width:i,height:i,children:(0,n.jsx)("polygon",{points:t,fill:a})})}return"plus"===e?(0,n.jsxs)("svg",{width:i,height:i,children:[(0,n.jsx)("rect",{x:l-.14*i,y:0,width:.28*i,height:i,fill:a}),(0,n.jsx)("rect",{x:0,y:l-.14*i,width:i,height:.28*i,fill:a})]}):(0,n.jsx)("svg",{width:i,height:i,children:(0,n.jsx)("circle",{cx:l,cy:l,r:l,fill:a})})};var ty=i(78986);let tm=t=>{let e=[];for(let i=-15;i<=15;i++)for(let n=-15;n<=15;n++){let a=Math.hypot(i,n);if(a>15)continue;let l=(0,ty.Hb)("land-".concat(t),.16*i,.16*n)>.05;e.push({gx:i,gy:n,land:l,edge:a/15})}return e},tf=t=>{var e;return(null===(e=t.words)||void 0===e?void 0:e.length)?t.words:String(t.title).split(/\s+/).filter(
1Boolean).map(t=>({text:t,atMs:null}))},tu=(t,e,i)=>t.map((t,n)=>null===t.atMs||void 0===t.atMs?2+n*i:Math.max(0,b(t,e)-2)),tj=(t,e)=>{let i=Math.max(1,Math.min(e,t.length)),n=Array.from({length:i},()=>[]);return t.forEach((e,a)=>n[Math.floor(a*i/t.length)].push({...e,index:a})),n},tb=t=>{let{children:e,opacity:i}=t,a=D();return(0,n.jsx)(l.hU,{style:{opacity:i},children:(0,n.jsx)(to,{stage:a,children:e})})},tM=(t,e)=>y(t,e.width*(e.portrait?.84:.7),.34*e.height,120*e.unit,{charWidth:.54,lineHeight:1.12}),tv=t=>{let{params:e,look:i,durationInFrames:a}=t,l=j(a),{frame:r,fps:s,unit:c,exit:h,width:x,portrait:p}=l,g=tf(e),y=tu(g,s,5),m=tM(e.title,l);return(0,n.jsx)(tb,{opacity:1-h,children:(0,n.jsx)("div",{style:{maxWidth:x*(p?.84:.7),display:"flex",flexWrap:"wrap",justifyContent:"center",fontSize:m,lineHeight:1.12,color:i.text,textShadow:w},children:g.map((t,e)=>(0,n.jsx)("span",{style:{margin:"0 ".concat(.13*m,"px"),...v(d(r,y[e],y[e]+12,o),c)},children:t.text},e))})})},tw={"fade-words":tv,"soft-focus":t=>{let{params:e,look:i,durationInFrames:a}=t,l=j(a),{frame:r,unit:s,exit:c,width:h,portrait:x}=l,p=tM(e.title,l),g=d(r,0,16,o);return(0,n.jsx)(tb,{opacity:1-c,children:(0,n.jsx)("div",{style:{maxWidth:h*(x?.84:.7),textAlign:"center",fontSize:p,lineHeight:1.12,color:i.text,textShadow:w,letterSpacing:"".concat((1-g)*.04*p,"px"),...v(g,s,{rise:0,blur:12})},children:e.title})})},"rise-lines":t=>{let{params:e,look:i,durationInFrames:a}=t,l=j(a),{frame:r,fps:s,unit:c,exit:h,portrait:x}=l,p=tf(e),g=tj(p,p.length>3?2:1),y=tu(p,s,6),m=tM(e.title,l);return(0,n.jsx)(tb,{opacity:1-h,children:(0,n.jsx)("div",{style:{textAlign:"center",fontSize:m,lineHeight:1.14,color:i.text,textShadow:w,maxWidth:l.width*(x?.86:.74)},children:g.map((t,e)=>{let i=y[t[0].index]+3*e;return(0,n.jsx)("div",{style:v(d(r,i,i+14,o),c,{rise:14}),children:t.map(t=>t.text).join(" ")},e)})})})}},tk=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:14;return t.map((t,a)=>{let l=Number.isFinite(null==t?void 0:t.atMs)?b(t,e)-3:null;return Math.min(Math.max(4,.6*i),Math.max(0===a?0:4+6*a,null!=l?l:4+a*n))})},tS=(t,e)=>P(t,.8*e.width,2,F.title*e.unit,F.body*e.unit),tz=t=>{let{r:e,icon:i,appear:a,frame:l,look:r,unit:s,style:h}=t,x=d(l,a,a+12,o),p=d(l,a,a+12,c),g=d(l,a+3,a+22,c),y=l>=a;return(0,n.jsxs)("div",{style:{position:"relative",width:2*e,height:2*e,flexShrink:0,opacity:y?x:0,transform:"scale(".concat(.96+.04*x,")"),...h},children:[(0,n.jsx)("svg",{width:2*e,height:2*e,style:{position:"absolute",inset:0,overflow:"visible"},children:(0,n.jsx)("circle",{cx:e,cy:e,r:e-2*s,fill:"rgba(0,0,0,0.35)",stroke:r.accent,strokeWidth:3*s,pathLength:1,strokeDasharray:1,strokeDashoffset:1-p,transform:"rotate(-90 ".concat(e," ").concat(e,")")})}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(th.A,{name:i,size:1.05*e,color:r.text,progress:g,strokeWidth:1.5})})]})},tW=t=>{let{x1:e,y1:i,x2:a,y2:l,draw:r,frame:o,look:s,unit:c,flowing:h}=t;if(4>Math.hypot(a-e,l-i))return null;let d=Math.atan2(l-i,a-e),x=14*c,p=o%36/36;return(0,n.jsxs)("g",{children:[(0,n.jsx)("line",{x1:e,y1:i,x2:e+(a-e)*r,y2:i+(l-i)*r,stroke:s.muted,strokeWidth:3*c,strokeLinecap:"round"}),r>.98&&(0,n.jsx)("path",{d:"M ".concat(a-Math.cos(d-.5)*x," ").concat(l-Math.sin(d-.5)*x," L ").concat(a," ").concat(l," L ").concat(a-Math.cos(d+.5)*x," ").concat(l-Math.sin(d+.5)*x),fill:"none",stroke:s.muted,strokeWidth:3*c,strokeLinecap:"round",strokeLinejoin:"round"}),h&&r>.98&&(0,n.jsx)("circle",{cx:e+(a-e)*p,cy:i+(l-i)*p,r:5*c,fill:s.accent,opacity:Math.sin(p*Math.PI)})]})},tF=t=>{let{length:e,r:i,vertical:a,draw:l,frame:r,look:o,unit:s}=t,c=12*s,h=a?{x1:i,y1:c,x2:i,y2:e-c}:{x1:c,y1:i,x2:e-c,y2:i};return(0,n.jsx)("svg",{width:a?2*i:e,height:a?e:2*i,style:{flexShrink:0,overflow:"visible"},children:(0,n.jsx)(tW,{...h,draw:l,frame:r,look:o,unit:s,flowing:!0})})},tI=t=>{let{steps:e,R:i,r:n,labelW:a,labelSize:l,gap:r}=t,o=e.length,s=e.map((t,e)=>{let s;let c=-Math.PI/2+e/o*Math.PI*2,h=Math.cos(c)*i,d=Math.sin(c)*i,x=Math.min(2,X(t.label,a,l))*l*1.15;return s=.3>Math.abs(Math.cos(c))?{x:h-a/2,y:0>Math.sin(c)?d-n-r-x:d+n+r,align:"center"}:Math.cos(c)>0?{x:h+n+r,y:d-x/2,align:"left"}:{x:h-n-r-a,y:d-x/2,align:"right"},{a:c,x:h,y:d,label:{...s,w:a,h:x}}}),c=[-i,i,...s.flatMap(t=>[t.x-n,t.x+n,t.label.x,t.label.x+t.label.w])],h=[-i,i,...s.flatMap(t=>[t.y-n,t.y+n,t.label.y,t.label.y+t.label.h])];return{items:s,x0:Math.min(...c),x1:Math.max(...c),y0:Math.min(...h),y1:Math.max(...h)}},tU={up:t=>.12+.72*t**1.5,down:t=>.84-.7*t**1.3,peak:t=>.18+.68*Math.sin(Math.PI*t)**1.2,dip:t=>.82-.62*Math.sin(Math.PI*t)**1.2},tL={"number-slam":t=>{var e;let{params:i,look:a,durationInFrames:r}=t,{frame:o,fps:s,width:c,height:h,unit:x,exit:p}=j(r),y=(0,l.ST)({frame:o,fps:s,config:M(a,{damping:12,stiffness:240,mass:.7})}),m=null!==(e=a.energy)&&void 0!==e?e:1,f=(0,l.sX)(y,[0,1],[1+1.2*m,1])*(1+.06*p),u=o<5?0:Math.exp(-(o-5)/3.5)*m,b=20*Math.sin(2.7*o)*x*u,v=12*Math.cos(3.4*o)*x*u,w=o<5?0:.22*m*Math.exp(-(o-5)/2.2),k=d(o,9,21),S=g(i.text,.86*c,.32*h,{charWidth:.62});return(0,n.jsxs)(l.hU,{style:{...tc,opacity:1-p},children:[(0,n.jsx)(l.hU,{style:{background:a.accent,opacity:w}}),(0,n.jsx)("div",{style:{transform:"translate(".concat(b,"px, ").concat(v,"px) scale(").concat(f,")"),opacity:(0,l.sX)(y,[0,.35],[0,1],{extrapolateRight:"clamp"}),fontFamily:a.fontFamily,fontSize:S,lineHeight:1,color:a.text,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",letterSpacing:"".concat(-.02*S,"px")}
1,children:i.text}),i.caption&&(0,n.jsx)("div",{style:{marginTop:26*x,fontFamily:a.fontFamily,fontSize:40*x,letterSpacing:10*x,textTransform:"uppercase",color:a.muted,opacity:k,transform:"translateY(".concat((1-k)*16*x,"px)")},children:i.caption})]})},"counter-roll":t=>{let{params:e,look:i,durationInFrames:a}=t,{frame:r,unit:s,exit:c}=j(a),h=D(),x=H(i),p=d(r,2,Math.max(18,Math.round(.55*a)),o),y=e.value*p,m=(0,tr.HT)(e.suffix),f="".concat(e.prefix||"").concat((0,tr.CZ)(y,e.decimals||0)).concat(m),u=g("".concat(e.prefix||"").concat((0,tr.CZ)(e.value,e.decimals||0)).concat(m),.86*h.width,Math.min(.26*h.height,220*s),{charWidth:.6,minSize:F.body*s}),b=.7*h.width,M=e.label?P(e.label,b,2,F.label*s,F.note*s):0,w=d(r,0,12,o);return(0,n.jsx)(l.hU,{style:{opacity:1-c},children:(0,n.jsxs)(to,{stage:h,gap:W.md*s,children:[(0,n.jsx)("div",{style:{fontSize:u,lineHeight:1,color:x.text,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",...v(w,s)},children:f}),e.label&&(0,n.jsx)(ts,{size:M,color:x.soft,width:b,style:v(d(r,10,22,o),s),children:e.label})]})})},"stat-bars":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:s,unit:c,exit:h}=j(a),x=D(),p=H(i),g=e.bars.length,y=Math.max(...e.bars.map(t=>t.value),1),m=e.bars.findIndex(t=>t.value===y),f=Math.min(x.width*(x.portrait?.86:.6),1100*c),u=Math.round(F.body*c),b=W.lg*c,M=Math.max(20*c,Math.min(56*c,(x.height-b*(g-1))/g-1.2*u-W.xs*c)),v=Math.min(Math.round(F.label*c),Math.max(.9*M,F.note*c)),w=f-(Math.max(...e.bars.map(t=>String(t.display).length))*v*.6+W.md*c);return(0,n.jsx)(l.hU,{style:{opacity:1-h},children:(0,n.jsx)(to,{stage:x,gap:b,width:f,align:"stretch",children:e.bars.map((t,e)=>{let a=3+6*e,l=d(s,a,a+16,o),r=d(s,a-3,a+6),h=Math.max(.02,t.value/y)*l;return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:W.xs*c,op
1acity:r,transform:"translateX(".concat(-((1-r)*24)*c,"px)")},children:[(0,n.jsx)(ts,{size:u,color:p.soft,align:"left",lineHeight:1.2,width:f,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.label}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",height:M},children:[(0,n.jsx)("div",{style:{width:w*h,height:M,background:e===m?i.accent:"rgba(255,255,255,0.78)",borderRadius:.12*M,flexShrink:0}}),(0,n.jsx)(ts,{size:v,color:p.text,align:"left",lineHeight:1,style:{marginLeft:W.md*c,whiteSpace:"nowrap",opacity:d(s,a+10,a+18)},children:t.display})]})]},e)})})})},"strike-correct":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:s,unit:c,exit:h}=j(a),x=D(),p=H(i),g=x.width*(x.portrait?.86:.72),y=P(e.right,g,2,92*c,F.body*c,{charWidth:.54}),m=Math.min(.7*y,P(e.wrong,g,2,F.title*c,F.note*c,{charWidth:.54})),f=d(s,0,12,o),u=Math.max(14,.3*a),b=d(s,u-4,u+10,o),M=d(s,u,u+14,o);return(0,n.jsx)(l.hU,{style:{opacity:1-h},children:(0,n.jsxs)(to,{stage:x,gap:W.md*c,children:[(0,n.jsx)(ts,{size:m,color:p.text,width:g,style:{...v(f,c),opacity:f*(1-.14*b)},children:e.wrong}),(0,n.jsx)(ts,{size:y,color:p.accent,width:g,lineHeight:1.1,style:v(M,c,{rise:14}),children:e.right})]})})},"keyword-stamp":t=>{let{params:e,look:i,durationInFrames:a,seed:r}=t,{frame:c,width:h,height:x,unit:p,portrait:y,exit:m}=j(a),f=tx(e.text),u=g(f,h*(y?.7:.5),130*p,{charWidth:.66}),b=.45*u,M=.28*u,v=f.length*u*.66+2*b,w=u+2*M,k=y?[.5]:[.3,.5,.7],S=h*k[Math.floor((0,l.MX)("".concat(r,"-x"))*k.length)],z=((0,l.MX)("".concat(r,"-r"))-.5)*14,W=d(c,0,6,s),F=(0,l.sX)(W,[0,1],[1.9,1]),I=c>6?1+.035*Math.exp(-(c-6)/2.5)*Math.sin((c-6)*1.8):1,U=Math.max(4,.09*u),L=Array.from({length:70},(t,e)=>({x:(0,l.MX)("".concat(r,"-hx-").concat(e))*v,y:(0,l.MX)("".concat(r,"-hy-").concat(e))*w,r:(.4+1.6*(0,l.MX)("".concat(r,"-hr-").concat(e)))*p*2.2})),D=Array.from({length:10},(t,e)=>{let i=e/10*Math.PI*2+(0,l.MX)("".concat(r,"-da-").concat(e)),n=d(c,6,20,o)*(.35*v+60*(0,l.MX)("".concat(r,"-dd-").concat(e))*p);return{x:Math.cos(i)*n,y:Math.sin(i)*n*.6,opacity:c<6?0:d(c,8,22,o,[.9,0])}}),A="stamp-mask-".concat(r);return(0,n.jsxs)(l.hU,{style:{opacity:1-m},children:[(0,n.jsx)(l.hU,{style:{background:td,opacity:.8*W}}),(0,n.jsxs)("div",{style:{position:"absolute",left:S-v/2,top:x*(y?.3:.32)-w/2,width:v,height:w,transform:"rotate(".concat(z,"deg) scale(").concat(F*I,")"),opacity:W},children:[(0,n.jsxs)("svg",{width:v,height:w,style:{overflow:"visible"},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("mask",{id:A,children:[(0,n.jsx)("rect",{x:-U,y:-U,width:v+2*U,height:w+2*U,fill:"white"}),L.map((t,e)=>(0,n.jsx)("circle",{cx:t.x,cy:t.y,r:t.r,fill:"black"},e))]})}),(0,n.jsxs)("g",{mask:"url(#".concat(A,")"),children:[(0,n.jsx)("rect",{x:U/2,y:U/2,
1width:v-U,height:w-U,rx:.8*U,fill:"none",stroke:i.accent,strokeWidth:U}),(0,n.jsx)("text",{x:v/2,y:w/2+.35*u,textAnchor:"middle",fontFamily:i.fontFamily,fontSize:u,fill:i.accent,textLength:v-2*b,lengthAdjust:"spacingAndGlyphs",children:f})]})]}),D.map((t,e)=>(0,n.jsx)("div",{style:{position:"absolute",left:v/2+t.x,top:w/2+t.y,width:8*p,height:8*p,background:i.accent,opacity:t.opacity,transform:"rotate(".concat(37*e,"deg)")}},e))]})]})},"highlight-marker":t=>{let{params:e,look:i,durationInFrames:a}=t,{frame:r,fps:s,unit:c,exit:h}=j(a),x=D(),p=H(i),g=e.words.map(t=>t.text).join(" "),y=x.width*(x.portrait?.86:.72),m=P(g,y,3,84*c,F.body*c,{charWidth:.54});return(0,n.jsx)(l.hU,{style:{opacity:1-h},children:(0,n.jsx)(to,{stage:x,children:(0,n.jsx)("div",{style:{maxWidth:y,display:"flex",flexWrap:"wrap",justifyContent:"center",fontSize:m,lineHeight:1.2,textShadow:w},children:e.words.map((t,i)=>{let l=Math.min(b(t,s),.6*a),h=i===e.highlightIndex;return(0,n.jsx)("span",{style:{margin:"0 ".concat(.13*m,"px"),color:h?p.accent:p.text,...v(d(r,l-2,l+10,o),c)},children:t.text},i)})})})})},"typewriter-quote":t=>{var e;let{params:i,look:a,durationInFrames:r}=t,{frame:s,fps:c,unit:h,exit:x}=j(r),p=D(),g=H(a),y=(null===(e=i.words)||void 0===e?void 0:e.length)?i.words:i.text.split(/\s+/).map((t,e)=>({text:t,atMs:260*e})),m=p.width*(p.portrait?.86:.7),f=P(i.text,m,4,80*h,F.body*h,{charWidth:.54}),u=Math.min(b(y[y.length-1],c),.6*r);return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsxs)(to,{stage:p,gap:.6*f,children:[(0,n.jsx)("div",{style:{maxWidth:m,display:"flex",flexWrap:"wrap",justifyContent:"center",fontSize:f,lineHeight:1.25,color:g.text},children:y.map((t,e)=>{let i=Math.min(b(t,c),.6*r);return(0,n.jsx)("span",{style:{margin:"0 ".concat(.12*f,"px"),...v(d(s,i-2,i+10,o),h)},children:t.text},e)})}),i.attribution&&(0,n.jsx)(ts,{size:Math.max(F.note*h,.45*f),color:g.soft,width:m,style:v(d(s,u+6,u+18,o),h),children:i.attribution})]})})},"timeline-tick":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:o,unit:s,exit:h}=j(a),x=D(),p=H(i),g="overlay"===r,y=.9*x.width,m=e.decade?10:1,f=e.decade?120:40,u=y/f,b=e.decade?60:24,M=Math.max(16,Math.round(.45*a)),v=d(o,0,M,c),k=e.year-b*(1-v),S=Math.floor((k-f/2)/m)*m,z=[];for(let t=S;t<=k+f/2+m;t+=m)z.push(t);let I=d(o,M-2,M+8),U=d(o,M,M+18),L=Math.round(k/m)*m,A="".concat(e.decade?10*Math.floor(L/10):L).concat(e.decade?"s":""),C=Math.min(x.height*(g?.2:.26),(g?150:220)*s),X=.7*x.width,N=e.label?P(e.label,X,2,F.label*s,F.note*s):0,Y=d(o,0,10),E=120*s,T=y/2;return(0,n.jsx)(l.hU,{style:{opacity:Y*(1-h)},children:(0,n.jsxs)(to,{stage:x,gap:W.md*s,children:[(0,n.jsx)("div",{style:{fontSize:C,lineHeight:1,color:p.text,fontVariantNumeric:"tabular-nums",textShadow:w},children:A}),(0,n.jsxs)("svg",{width:y,height:E,style:{flexShrink:0,overflow:"hidden"},children:[(0,n.jsx)("line",{x1:0,x2:y,y1:E/2,y2:E/2,stroke:i.faint,strokeWidth:3*s}),z.map(t=>{let i=T+(t-k)*u,a=t%(10*m)==0||!e.decade&&t%10==0,l=(a?44:20)*s,r=1-Math.min(1,Math.abs(i-T)/T);return(0,n.jsx)("g",{opacity:.25+.75*r,children:(0,n.jsx)("line",{x1:i,x2:i,y1:E/2-l/2,y2:E/2+l/2,stroke:"rgba(255,255,255,0.7)",strokeWidth:(a?4:2)*s})},t)}),(0,n.jsx)("circle",{cx:T,cy:E/2,r:(8+30*U)*s,fill:"none",stroke:i.accent,strokeWidth:3*s,opacity:I*(1-U)}),(0,n.jsx)("circle",{cx:T,cy:E/2,r:12*s*I,fill:i.accent})]}),e.label&&(0,n.jsx)(ts,{size:N,color:p.soft,width:X,style:{opacity:I},children:e.label})]})})},"map-pin":t=>{let{params:e,look:i,durationInFrames:r,variant:s,seed:c}=t,{frame:h,unit:x,exit:p}=j(r),g=D(),y=H(i),m=P(e.place,.7*g.width,1,F.title*x,F.body*x),f=Math.min(.3*g.width,(g.height-1.2*m-W.lg*x)/2.3,("overlay"===s?260:330)*x),u=2.3*f,b=u/2,M=u/2,w=f/15,k=(0,a.useMemo)(()=>tm(c),[c]),S=(0,a.useMemo)(()=>{let t=k.filter(t=>t.land&&t.edge<.6),e=t.length?t:k;return e[Math.floor((0,l.MX)("".concat(c,"-pin"))*e.length)]},[k,c]),z=d(h,0,12),I=.12*h,U=d(h,6,20,o),L=b+S.gx*w,A=M+S.gy*w,C=t=>d(h,12+t,36+t,o),X=d(h,14,24),N=Math.max(34*x,.16*f);return(0,n.jsx)(l.hU,{style:{opacity:1-p},children:(0,n.jsxs)(to,{stage:g,gap:W.lg*x,children:[(0,n.jsxs)("div",{style:{position:"relative",width:u,height:u,flexShrink:0},children:[(0,n.jsxs)("svg",{width:u,height:u,style:{position:"absolute",left:0,top:0,opacity:z,overflow:"visible"},children:[k.map((t,e)=>{let i=b+(t.gx+.15*Math.sin((t.gy+I)*.2))*w,a=M+t.gy*w;return(0,n.jsx)("circle",{cx:i,cy:a,r:w*(t.land?.28:.14)*(1-.35*t.edge),fill:t.land?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.14)"},e)}),[0,8].map(t=>(0,n.jsx)("circle",{cx:L,cy:A,r:C(t)*f*.45,fill:"none",stroke:i.accent,strokeWidth:3*x,opacity:(1-C(t))*(h>12+t?1:0)},t))]}),(0,n.jsx)("div",{style:{position:"absolute",left:L-N/2,top:A-1.25*N-(1-U)*24*x,width:N,height:1.3*N,opacity:U},children:(0,n.jsxs)("svg",{width:N,height:1.3*N,viewBox:"0 0 40 52",children:[(0,n.jsx)("path",{d:"M20 0 C31 0 40 9 40 20 C40 34 20 52 20 52 C20 52 0 34 0 20 C0 9 9 0 20 0 Z",fill:i.accent}),(0,n.jsx)("circle",{cx:"20",cy:"20",r:"7",fill:i.accentInk})]})})]}),(0,n.jsx)(ts,{size:m,color:y.text,width:.8*g.width,style:v(X,x),children:e.place})]})})},"percent-ring":t=>{let{params:e,look:i,durationInFrames:a}=t,{frame:r,unit:o,exit:s}=j(a),h=D(),x=H(i),p=.7*h.width,g=e.label?P(e.label,p,2,F.label*o,F.note*o):0,y=e.label?Math.min(2,X(e.label,p,g))*g*1.15+W.lg*o:0,m=Math.min(.5*h.width,h.height-y,520*o),f=.075*m,u=(m-f)/2,b=2*Math.PI*u,M=Math.max(20,Math.round(.6*a)),v=d(r,3,M,c),w=d(r,0,12),k=e.percent/100*v,S=k*Math.PI*2-Math.PI/2,z="".concat((0,tr.CZ)(e.percent*v,e.decimals||0),"%");return(0,n.jsx)(l.hU,{style:{opacity:1-s},children:(0,n.jsxs)(to,{stage:h,gap:W.lg*o,children:[(0,n.jsxs)("div",{style:{position:"relative",width:m,height:m,flexShrink:0,transform:"scale(".concat(.85+.15*w,")"),opacity:w},children:[(0,n.jsxs)("svg",{width:m,height:m,children:[(0,n.jsx)("circle",{cx:m/2,cy:m/2,r:u,fill:"none",stroke:i.faint,strokeWidth:f}),(0,n.jsx)("circle",{cx:m/2,cy:m/2,r:u,fill:"none",stroke:i.accent,strokeWidth:f,strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-k),transform:"rotate(-90 ".concat(m/2," ").concat(m/2,")")}),k>.005&&(0,n.jsx)("circle",{cx:m/2+Math.cos(S)*u,cy:m/2+Math.sin(S)*u,r:.28*f,fill:i.accentInk})]}),(0,n.jsx)("div",{style:{...tc,position:"absolute",inset:0,fontSize:.26*m,color:x.text,fontVariantNumeric:"tabular-nums"},children:z})]}),e.label&&(0,n.jsx)(ts,{size:g,color:x.soft,width:p,style:{opacity:d(r,M-6,M+6)},children:e.label})]})})},"list-pop":t=>{let{params:e,look:i,durationInFrames:a}=t,{frame:r,fps:s,unit:h,exit:x}=j(a),p=D(),g=H(i),y=p.portrait,m=e.items.length,f=y?.8*p.width:Math.min(p.width/m,400*h),u=y?72*h:Math.min(I.md*h,.4*f),M=y?f-u-W.md*h:f-W.md*h,w=Math.min(...e.items.map(t=>P(t.text,M,2,F.label*h,F.note*h)));return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsx)(to,{stage:p,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:y?"column":"row",alignItems:y?"stretch":"flex-start",ga
1p:y?W.md*h:0},children:e.items.map((t,e)=>{let l=Math.min(Math.max(0,b(t,s)-2),.55*a+3*e),x=d(r,l,l+12,o),p=d(r,l,l+22,c);return(0,n.jsxs)("div",{style:{width:f,display:"flex",flexDirection:y?"row":"column",alignItems:"center",gap:(y?W.md:W.sm)*h},children:[t.icon&&(0,n.jsx)(th.A,{name:t.icon,size:u,color:i.text,progress:p,strokeWidth:1.5,style:{flexShrink:0}}),(0,n.jsx)(ts,{size:w,color:g.text,width:M,align:y?"left":"center",style:v(x,h),children:t.text})]},e)})})})})},"glitch-reveal":t=>{let{params:e,look:i,durationInFrames:a,seed:r}=t,{frame:s,width:c,height:h,unit:x,exit:p}=j(a),y=tx(e.text),m=g(y,.84*c,.26*h,{charWidth:.64}),f=d(s,0,14,o),u=Math.round(.62*a),b=Math.max(1-f,s>=u&&s<u+3?.55:0),M=22*b*x,v=s<7?(0,l.MX)("".concat(r,"-f-").concat(Math.floor(s)))>.3?1:.35:1,w=(t,e,a)=>(0,n.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:i.fontFamily,fontSize:m,lineHeight:1,color:t,whiteSpace:"nowrap",mixBlendMode:a,transform:"translateX(".concat(e,"px)")},children:y});return(0,n.jsxs)(l.hU,{style:{opacity:v*(1-p)},children:[Array.from({length:7},(t,e)=>{let a=e/7*100,o=100-(e+1)/7*100,c=((0,l.MX)("".concat(r,"-s-").concat(e,"-").concat(Math.floor(s)))-.5)*90*x*b;return(0,n.jsxs)("div",{style:{position:"absolute",inset:0,clipPath:"inset(".concat(a,"% 0 ").concat(o,"% 0)"),transform:"translateX(".concat(c,"px)")},children:[w("#FF2D55",-M,"screen"),w("#00E5FF",M,"screen"),w(i.text,0,"normal")]},e)}),(0,n.jsx)(l.hU,{style:{background:"repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 5px)",opacity:.6}})]})},"split-contrast":t=>{let{params:e,look:i,durationInFrames:a}=t,{frame:r,width:s,height:h,unit:x,portrait:p,exit:g}=j(a),m=d(r,0,10,o),f=d(r,4,14,o),u=.5-.1*d(r,.5*a,.7*a,c),b=y(e.left,(p?s:s*u)*.8,(p?h*u:h)*.5,120*x,{charWidth:.56}),M=y(e.right,(p?s:s*(1-u))*.8,(p?h*(1-u):h)*.5,130*x,{charWidth:.56}),v=(t,e,a,l,r,o)=>(0,n.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:t,transform:p?"translateY(".concat(o,"%)"):"translateX(".concat(o,"%)"),padding:40*x,textAlign:"center"},children:[a&&(0,n.jsx)("div",{style:{fontFamily:i.fontFamily,fontSize:34*x,letterSpacing:6*x,textTransform:"uppercase",color:e,opacity:.7,marginBottom:20*x},children:a}),(0,n.jsx)("div",{style:{fontFamily:i.fontFamily,fontSize:r,lineHeight:1.08,color:e},children:l})]});return(0,n.jsxs)(l.hU,{style:{display:"flex",flexDirection:p?"column":"row",opacity:1-g,overflow:"hidden"},children:[(0,n.jsx)("div",{style:{display:"flex",flexBasis:"".concat(100*u,"%"),flexGrow:0,flexShrink:0},children:v("#16161A","rgba(255,255,255,0.6)",e.leftLabel,e.left,b,-(100*(1-m)))}),(0,n.jsx)("div",{style:{display:"flex",flex:1},children:v(i.accent,i.accentInk,e.rightLabel,e.right,M,(1-f)*100)})]})},"icon-burst":t=>{let{params:e,look:i,durationInFrames:a,seed:r}=t,{frame:s,fps:c,width:h,height:x,unit:p,exit:y}=j(a),m=tx(e.text),f=g(m,.62*h,140*p,{charWidth:.64}),u=(0,l.ST)({frame:s,fps:c,config:M(i,{damping:10,stiffness:200})}),b=h/2,v=.34*x,w=Math.max(m.length*f*.34,220*p),k=["circle","triangle","star","plus"];return(0,n.jsxs)(l.hU,{style:{opacity:1-y},children:[(0,n.jsx)(l.hU,{style:{background:td.replace("50% 42%","50% 34%"),opacity:d(s,0,8)}}),Array.from({length:16},(t,a)=>{let c=a/16*Math.PI*2+((0,l.MX)("".concat(r,"-a-").concat(a))-.5)*.35,h=d(s,2,22,o)*w*(.85+.45*(0,l.MX)("".concat(r,"-d-").concat(a))),x="mixed"===e.shape?k[a%k.length]:e.shape,g=(18+22*(0,l.MX)("".concat(r,"-s-").concat(a)))*p,y=d(s,14,30,o,[1,0]);return(0,n.jsx)("div",{style:{position:"absolute",left:b+Math.cos(c)*h-g/2,top:v+Math.sin(c)*h*.7-g/2,opacity:s<2?0:y,transform:"rotate(".concat(s*(a%2?9:-7),"deg) scale(").concat(.4+.6*d(s,2,10),")")},children:(0,n.jsx)(tg,{shape:x,size:g,color:a%3==0?i.text:i.accent})},a)}),(0,n.jsx)("div",{style:{position:"absolute",left:0,right:0,top:v-f/2,textAlign:"center",fontFamily:i.fontFamily,fontSize:f,lineHeight:1,color:i.text,transform:"scale(".concat((0,l.sX)(u,[0,1],[.55,1]),")"),opacity:Math.min(1,2*u),textShadow:"0 6px 40px rgba(0,0,0,0.6)"},children:m})]})},"underline-scribble":t=>{let{params:e,look:i,durationInFrames:a,seed:r}=t,{frame:o,width:s,height:h,unit:x,portrait:p,exit:g}=j(a),m=e.text,f=s*(p?.84:.6),u=y(m,f,.3*h,150*x,{charWidth:.56}),b=Math.max(1,Math.ceil(m.length*u*.56/f)),M=Math.min(f,m.length*u*.56),v=p?(s-f)/2:.08*s,w=h*(p?.18:.16),k=d(o,0,10),S=d(o,6,20,c
1),z=.5*u;return(0,n.jsxs)(l.hU,{style:{opacity:1-g},children:[(0,n.jsx)(l.hU,{style:{background:p?"linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 38%, rgba(0,0,0,0) 62%)":"linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.42) 42%, rgba(0,0,0,0) 70%)",opacity:k}}),(0,n.jsx)("div",{style:{position:"absolute",left:v,top:w,width:f,fontFamily:i.fontFamily,fontSize:u,lineHeight:1.08,color:i.text,textAlign:p?"center":"left",clipPath:"inset(0 ".concat((1-k)*100,"% 0 0)"),transform:"translateY(".concat((1-k)*20*x,"px)"),textShadow:"0 4px 30px rgba(0,0,0,0.5)"},children:m}),(0,n.jsx)("svg",{width:M,height:z,style:{position:"absolute",left:p?(s-M)/2:v,top:w+b*u*1.08+.02*u,overflow:"visible"},children:(0,n.jsx)("path",{d:tp(M,z,r),fill:"none",stroke:i.accent,strokeWidth:Math.max(5,.09*u),strokeLinecap:"round",strokeLinejoin:"round",pathLength:1,strokeDasharray:1,strokeDashoffset:1-S})})]})},"kinetic-title":t=>{let e=tw[t.params.style]||tv;return(0,n.jsx)(e,{...t})},"icon-stat":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:s,unit:h,exit:x}=j(a),p=D(),y=H(i),m=Math.min(240*h,.34*p.height),f=d(s,0,18,c),u=d(s,5,26,c),b=Number.isFinite(e.value),M=b?d(s,8,Math.max(26,.45*a),o):1,k=(0,tr.HT)(e.suffix),S=b?"".concat(e.prefix||"").concat((0,tr.CZ)(e.value*M,e.decimals||0)).concat(k):e.text,z=g(b?"".concat(e.prefix||"").concat((0,tr.CZ)(e.value,e.decimals||0)).concat(k):e.text,.8*p.width,Math.min(F.hero*h,.2*p.height),{charWidth:.6,minSize:F.body*h}),I=Math.min(.7*p.width,1100*h),U=e.label?P(e.label,I,2,F.label*h,F.note*h):0,L=d(s,14,28,o),A=d(s,6,20,o),C=m/2;return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsxs)(to,{stage:p,gap:W.md*h,children:[(0,n.jsxs)("div",{style:{position:"relative",width:m,height:m,flexShrink:0},children:[(0,n.jsxs)("svg",{width:m,height:m,style:{position:"absolute",inset:0,overflow:"visible"},children:[(0,n.jsx)("g",{transform:"rotate(".concat(.25*s," ").concat(C," ").concat(C,")"),children:Array.from({length:48},(t,e)=>{let a=e/48*Math.PI*2,l=e/48<f;return(0,n.jsx)("line",{x1:C+Math.cos(a)*C*.9,y1:C+Math.sin(a)*C*.9,x2:C+Math.cos(a)*C*(e%6==0?.8:.85),y2:C+Math.sin(a)*C*(e%6==0?.8:.85),stroke:i.faint,strokeWidth:2*h,opacity:l?1:0},e)})}),(0,n.jsx)("circle",{cx:C,cy:C,r:.97*C,fill:"none",stroke:i.accent,strokeWidth:3*h,pathLength:1,strokeDasharray:1,strokeDashoffset:1-f,transform:"rotate(-90 ".concat(C," ").concat(C,")")})]}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(th.A,{name:e.icon,size:.46*m,color:i.text,progress:u,strokeWidth:1.4})})]}),(0,n.jsx)("div",{style:{fontSize:z,lineHeight:1,color:y.text,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",textShadow:w,...v(A,h)},children:S}),e.label&&(0,n.jsx)(ts,{size:U,color:y.soft,width:I,style:v(L,h),children:e.label})]})})},"flow-diagram":t=>{let{params:e,look:i,durationInFrames:r,variant:o}=t,{frame:s,fps:h,unit:x,exit:p}=j(r),g=D(),y=H(i),m=g.portrait,f=e.steps,u=f.length,b=tk(f,h,r),M=60*x,w=(m?56:96)*x,k=m?.8*g.width-2*M-W.md*x:Math.min(380*x,(g.width-(u-1)*w)/u),S=Math.min(...f.map(t=>P(t.label,.94*k,2,F.label*x,F.note*x))),z=e.title?tS(e.title,g):0;return(0,n.jsx)(l.hU,{style:{opacity:1-p},children:(0,n.jsxs)(to,{stage:g,gap:W.lg*x,children:[e.title&&(0,n.jsx)(ts,{size:z,color:y.text,width:.8*g.width,style:v(d(s,0,12),x),children:e.title}),(0,n.jsx)("div",{style:{display:"flex",flexDirection:m?"column":"row",alignItems:"flex-start"},children:f.map((t,e)=>(0,n.jsxs)(a.Fragment,{children:[e>0&&(0,n.jsx)(tF,{length:w,r:M,vertical:m,frame:s,look:i,unit:x,draw:d(s,b[e]-8,b[e]+2,c)}),(0,n.jsxs)("div",{style:{width:m?void 0:k,display:"flex",flexDirection:m?"row":"column",alignItems:"center",gap:(m?W.md:W.sm)*x},children:[(0,n.jsx)(tz,{r:M,icon:t.icon,appear:b[e],frame:s,look:i,unit:x}),(0,n.jsx)(ts,{size:S,color:y.text,width:k,align:m?"left":"center",style:v(d(s,b[e]+8,b[e]+20),x),children:t.label})]})]},e))})]})})},"cycle-loop":t=>{let{params:e,look:i,durationInFrames:r,variant:o}=t,{frame:s,fps:h,unit:x,exit:p}=j(r),g=D(),y=H(i),m=e.steps,f=m.length,u=tk(m,h,r,12),b=Math.max(...u)+14,M=(f>4?52:60)*x,v=Math.min(320*x,g.width*(g.portrait?.28:.2)),w=Math.min(...m.map(t=>P(t.label,v,2,F.body*x,F.note*x))),k=W.sm*x,S=Math.min(300*x,.42*g.height),z=tI({steps:m,R:S,r:M,labelW:v,labelSize:w,gap:k});for(;S>2*M&&(z.y1-z.y0>g.height||z.x1-z.x0>g.width);)S-=8*x,z=tI({steps:m,R:S,r:M,labelW:v,labelSize:w,gap:k});let I=z.x1-z.x0,U=z.y1-z.y0,L=-z.x0,A=-z.y0,C=2*Math.asin(Math.min(.9,(M+12*x)/S)),X=t=>-Math.PI/2+t/f*Math.PI*2,N=(t,e)=>{let i=X(t)+C/2,n=i+(X(t+1)-C/2-i)*e;return"M ".concat(L+Math.cos(i)*S," ").concat(A+Math.sin(i)*S," A ").concat(S," ").concat(S," 0 0 1 ").concat(L+Math.cos(n)*S," ").concat(A+Math.sin(n)*S)},Y=s>b?(s-b)/90*Math.PI*2:null,E=1.2*S,T=e.title?P(e.title,E,2,F.label*x,F.note*x):0;return(0,n.jsx)(l.hU,{style:{opacity:1-p},children:(0,n.jsxs)(to,{stage:g,width:I,height:U,children:[(0,n.jsxs)("svg",{width:I,height:U,style:{position:"absolute",inset:0,overflow:"visible"},children:[m.map((t,e)=>{let a=(e+1)%f,l=0===a?b-10:u[a]-8,r=d(s,l,l+10,c);return r<=0?null:(0,n.jsx)("path",{d:N(e,r),fill:"none",stroke:i.muted,strokeWidth:3*x,strokeLinecap:"round"},e)}),null!==Y&&(0,n.jsx)("circle",{cx:L+Math.cos(X(0)+Y)*S,cy:A+Math.sin(X(0)+Y)*S,r:7*x,fill:i.accent})]}),e.title&&(0,n.jsx)("div",{style:{position:"absolute",left:L-E/2,width:E,top:A,transform:"translateY(-50%)",display:"flex",justifyContent:"center"},children:(0,n.jsx)(ts,{size:T,color:y.text,width:E,style:{opacity:d(s,4,16)},children:e.title})}),z.items.map((t,e)=>(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(tz,{r:M,icon:m[e].icon,appear:u[e],frame:s,look:i,unit:x,style:{position:"absolute",left:L+t.x-M,top:A+t.y-M}}),(0,n.jsx)("div",{style:{position:"absolute",left:L+t.label.x,top:A+t.label.y,width:t.label.w,height:t.label.h,display:"flex",alignItems:"center",justifyContent:"center"===t.label.align?"center":"left"===t.label.align?"flex-start":"flex-end"},children:(0,n.jsx)(ts,{size:w,color:y.text,width:t.label.w,align:t.label.align,style:{opacity:d(s,u[e]+8,u[e]+20)},children:m[e].label})})]},e))]})})},"compare-icons":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:s,unit:h,exit:x}=j(a),p=D(),g=H(i),y=p.portrait,m=[e.left,e.right],f=m.map(t=>Number.isFinite(t.value)?t.value:null),u=f.every(t=>null!==t),b=u?Math.max(...f,1e-9):1,M=y?.8*p.width:Math.min(520*h,.34*p.width),k=Math.min(I.lg*h,p.height*(y?.09:.17)),S=Math.min(...m.map(t=>P(t.label,M,2,F.label*h,F.note*h))),z=Math.max(...m.map(t=>Math.min(2,X(t.label,M,S)))),U=Math.round(1.15*S),L=e.title?tS(e.title,p):0,A=d(s,4,20,c),C="rgba(255,255,255,0.32)",N=(t,e)=>{let a=4+10*e,l=d(s,a,a+22,c),r=d(s,a+8,a+20),x=u?d(s,a+12,a+36,o):0,p=u&&f[e]===b;return(0,n.jsxs)("div",{style:{width:M,display:"flex",flexDirection:"column",alignItems:"center",gap:W.sm*h},children:[(0,n.jsx)(th.A,{name:t.icon,size:k,color:p?i.accent:i.text,progress:l,strokeWidth:1.4}),(0,n.jsx)("div",{style:{minHeight:z*S*1.15,display:"flex",alignItems:"center",...v(r,h)},children:(0,n.jsx)(ts,{size:S,color:g.text,width:M,children:t.label})}),u&&(0,n.jsxs)("div",{style:{marginTop:W.xs*h,width:.8*M,display:"flex",flexDirection:"column",alignItems:"center",gap:W.sm*h},children:[(0,n.jsx)("div",{style:{width:"100%",height:14*h,background:i.faint,borderRadius:7*h,overflow:"hidden"},children:(0,n.jsx)("div",{style:{width:"".concat(f[e]/b*100*x,"%"),height:"100%",background:p?i.accent:"rgba(255,255,255,0.7)",borderRadius:7*h}})}),(0,n.jsx)(ts,{size:U,color:p?g.accent:g.text,lineHeight:1,style:{opacity:d(s,a+26,a+36),fontVariantNumeric:"tabular-nums"},children:t.display||(0,tr.CZ)(f[e])})]})]},e)},Y=(0,n.jsx)("div",{style:{fontSize:F.note*h,lineHeight:1,color:g.soft,textShadow:w,opacity:A},children:"vs"}),E=y?(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:W.md*h,width:.8*M,al
1ignSelf:"center"},children:[(0,n.jsx)("div",{style:{flex:1,height:2*h,background:C,transform:"scaleX(".concat(A,")"),transformOrigin:"right"}}),Y,(0,n.jsx)("div",{style:{flex:1,height:2*h,background:C,transform:"scaleX(".concat(A,")"),transformOrigin:"left"}})]}):(0,n.jsxs)("div",{style:{width:96*h,display:"flex",flexDirection:"column",alignItems:"center",gap:W.sm*h,alignSelf:"stretch"},children:[(0,n.jsx)("div",{style:{flex:1,width:2*h,background:C,transform:"scaleY(".concat(A,")"),transformOrigin:"bottom"}}),Y,(0,n.jsx)("div",{style:{flex:1,width:2*h,background:C,transform:"scaleY(".concat(A,")"),transformOrigin:"top"}})]});return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsxs)(to,{stage:p,gap:W.lg*h,children:[e.title&&(0,n.jsx)(ts,{size:L,color:g.text,width:.8*p.width,style:v(d(s,0,12),h),children:e.title}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:y?"column":"row",alignItems:y?"center":"stretch",gap:W.md*h},children:[N(m[0],0),E,N(m[1],1)]})]})})},"icon-timeline":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:o,fps:s,unit:h,exit:x}=j(a),p=D(),g=H(i),y=e.events,m=y.length,f=tk(y,s,a),u=Math.min(420*h,p.width/m),b=u*m,M=Math.min(I.md*h,.42*u),w=M+W.sm*h,k=28*h,S=10*h,z=w+k+S,U=Math.min(...y.map(t=>P(t.label,.9*u,2,F.body*h,F.note*h))),L=Math.round(F.label*h),A=y.map((t,e)=>u*(e+.5)),C=.08*u,X=b-.08*u,N=(()=>{let t=[[0,C],...f.map((t,e)=>[t,A[e]]),[Math.max(...f)+12,X]];for(let e=t.length-1;e>=0;e--)if(o>=t[e][0]){let i=t[e+1];if(!i)return X;return(0,l.sX)(o,[t[e][0],i[0]],[t[e][1],i[1]],{extrapolateRight:"clamp"})}return C})();return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsxs)(to,{stage:p,width:b,children:[(0,n.jsxs)("svg",{width:b,height:z+2*S,style:{position:"absolute",left:0,top:0,overflow:"visible"},children:[(0,n.jsx)("line",{x1:C,y1:z,x2:X,y2:z,stroke:i.faint,strokeWidth:3*h}),(0,n.jsx)("line",{x1:C,y1:z,x2:N,y2:z,stroke:i.accent,strokeWidth:4*h,strokeLinecap:"round"}),A.map((t,e)=>{let a=d(o,f[e]-1,f[e]+8);return(0,n.jsxs)("g",{opacity:a,children:[(0,n.jsx)("line",{x1:t,y1:w,x2:t,y2:w+k,stroke:i.faint,strokeWidth:2*h}),(0,n.jsx)("circle",{cx:t,cy:z,r:S*a,fill:i.accent})]},e)})]}),(0,n.jsx)("div",{style:{display:"flex",width:b},children:y.map((t,e)=>{let a=d(o,f[e],f[e]+20,c),l=d(o,f[e]+6,f[e]+18);return(0,n.jsxs)("div",{style:{width:u,display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,n.jsx)("div",{style:{height:M,opacity:a>0?1:0},children:(0,n.jsx)(th.A,{name:t.icon,size:M,color:i.text,progress:a,strokeWidth:1.4})}),(0,n.jsx)("div",{style:{height:z+S-M+W.md*h}}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:W.xs*h,...v(l,h)},children:[t.year&&(0,n.jsx)(ts,{size:L,color:g.accent,lineHeight:1.05,style:{fontVariantNumeric:"tabular-nums"},children:t.year}),(0,n.jsx)(ts,{size:U,color:g.text,width:.9*u,children:t.label})]})]},e)})})]})})},"route-map":t=>{let{params:e,look:i,durationInFrames:r,variant:s,seed:h}=t,{frame:x,unit:p,exit:g}=j(r),y=D(),m=H(i),f=(0,a.useMemo)(()=>tm(h),[h]),u=(0,a.useMemo)(()=>f.filter(t=>t.land&&t.edge<.75),[f]),b=P(e.to,.5*y.width,1,F.title*p,F.body*p),M=e.from?P(e.from,.34*y.width,1,F.label*p,F.note*p):0,w=Math.min(280*p,.3*y.width,(y.height-1.2*b-W.md*p)/2.3),k=2.3*w,S=k/2,z=k/2,I=w/15,U=(t,e)=>{let i=u.length?u:f,n=e?[...i].sort((t,i)=>Math.hypot(i.gx-e.gx,i.gy-e.gy)-Math.hypot(t.gx-e.gx,t.gy-e.gy)):i,a=e?n.slice(0,Math.max(1,Math.floor(.25*n.length))):n;return a[Math.floor((0,l.MX)("".concat(h,"-").concat(t))*a.length)]},L=(0,a.useMemo)(()=>U("to"),[u,h]),A=(0,a.useMemo)(()=>e.from?U("from",L):null,[u,h,e.from,L]),C=t=>({x:S+t.gx*I,y:z+t.gy*I}),X=C(L),N=A?C(A):null,Y=d(x,0,14),E=Math.max(30,.5*r),T=N?d(x,10,E,c):1,B=N?{x:(N.x+X.x)/2,y:Math.min(N.y,X.y)-.45*Math.hypot(X.x-N.x,X.y-N.y)}:null,R=t=>({x:(1-t)**2*N.x+2*(1-t)*t*B.x+t*t*X.x,y:(1-t)**2*N.y+2*(1-t)*t*B.y+t*t*X.y}),Z=N?R(T):null,O=N?(()=>{let t=R(Math.min(1,T+.01)),e=R(Math.max(0,T-.01));return Math.atan2(t.y-e.y,t.x-e.x)})():0,V=N?E:8,_=d(x,V,V+14,o),G=d(x,V+2,V+30,o),$=Math.max(30*p,.12*w);return(0,n.jsx)(l.hU,{style:{opacity:1-g},children:(0,n.jsxs)(to,{stage:y,gap:W.md*p,children:[(0,n.jsxs)("div",{style:{position:"relative",width:k,height:k,flexShrink:0},children:[(0,n.jsxs)("svg",{width:k,height:k,style:{position:"absolute",inset:0,opacity:Y,overflow:"visible"},children:[(0,n.jsx)("circle",{cx:S,cy:z,r:1.04*w,fill:"none",stroke:i.faint,strokeWidth:2*p}),f.map((t,e)=>(0,n.jsx)("circle",{cx:S+t.gx*I,cy:z+t.gy*I,r:I*(t.land?.26:.12)*(1-.3*t.edge),fill:t.land?"rgba(255,255,255,0.55)":"rgba(255,255,255,0.12)"},e)),N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M ".concat(N.x," ").concat(N.y," Q ").concat(B.x," ").concat(B.y," ").concat(X.x," ").concat(X.y),fill:"none",stroke:i.accent,strokeWidth:3*p,strokeDasharray:"".concat(10*p," ").concat(9*p),opacity:.35}),(0,n.jsx)("path",{d:"M ".concat(N.x," ").concat(N.y," Q ").concat(B.x," ").concat(B.y," ").concat(X.x," ").concat(X.y),fill:"none",stroke:i.accent,strokeWidth:4*p,pathLength:1,strokeDasharray:1,strokeDashoffset:1-T,strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:N.x,cy:N.y,r:9*p,fill:i.text})]}),(0,n.jsx)("circle",{cx:X.x,cy:X.y,r:G*w*.4,fill:"none",stroke:i.accent,strokeWidth:3*p,opacity:x>V?1-G:0})]}),N&&T<.999&&T>0&&(0,n.jsx)("div",{style:{position:"absolute",left:Z.x-.6*$,top:Z.y-.6*$,transform:"rotate(".concat(180*O/Math.PI+45,"deg)")},children:(0,n.jsx)(th.A,{name:e.icon||"plane",size:1.2*$,color:i.text,progress:1,strokeWidth:1.8})}),(0,n.jsx)("div",{style:{position:"absolute",left:X.x-$/2,top:X.y-1.3*$-(1-_)*20*p,opacity:_},children:(0,n.jsxs)("svg",{width:$,height:1.3*$,viewBox:"0 0 40 52",children:[(0,n.jsx)("path",{d:"M20 0 C31 0 40 9 40 20 C40 34 20 52 20 52 C20 52 0 34 0 20 C0 9 9 0 20 0 Z",fill:i.accent}),(0,n.jsx)("circle",{cx:"20",cy:"20",r:"7",fill:i.accentInk})]})})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:W.md*p,maxWidth:.9*y.width},children:[N&&e.from&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ts,{size:M,color:m.soft,style:{opacity:d(x,6,16)},children:e.from}),(0,n.jsx)("div",{style:{opacity:d(x,10,20),display:"flex"},children:(0,n.jsx)(th.A,{name:"arrow-right",size:M,color:m.soft,progress:1,strokeWidth:2})})]}),(0,n.jsx)(ts,{size:b,color:m.text,style:v(d(x,V+4,V+16),p),children:e.to})]})]})})},"line-chart":t=>{let{params:e,look:i,durationInFrames:a,variant:r,seed:s}=t,{frame:h,unit:x,exit:p}=j(a),g=D(),y=H(i),m=e.label?tS(e.label,g):0,f=e.label?Math.min(2,X(e.label,.8*g.width,m))*m*1.15+W.lg*x:0,u=Math.round(F.body*x),b=Math.round(1.1*F.label*x),M=e.endLabel||e.icon?Math.min(.3*g.width,(e.endLabel?String(e.endLabel).length*b*.6:0)+(e.icon?1.3*b+12*x:0)+22*x):0,w=e.startLabel?1.4*u+W.sm*x:W.md*x,k=Math.min(1040*x,g.width*(g.portrait?.84:.62),.92*g.width-M),S=Math.max(120*x,Math.min(420*x,g.height-f-w-W.md*x)),z=k+M,I=w+S,U=tU[e.trend]||tU.up,L=Array.from({length:11}
1,(t,e)=>{let i=e/10,n=0===e||10===e?0:((0,l.MX)("".concat(s,"-w-").concat(e))-.5)*.08;return{x:i*k,y:w+S*(1-Math.max(.04,Math.min(.96,U(i)+n)))}}),A=L.reduce((t,e,i)=>0===i?"M ".concat(e.x," ").concat(e.y):"".concat(t," L ").concat(e.x," ").concat(e.y),""),C=d(h,0,12,c),P=Math.max(26,.45*a),N=d(h,8,P,c),Y=d(h,P-6,P+10),E=L[L.length-1],T=d(h,P,P+24,o),B="chart-fill-".concat(s);return(0,n.jsx)(l.hU,{style:{opacity:1-p},children:(0,n.jsxs)(to,{stage:g,gap:W.lg*x,children:[e.label&&(0,n.jsx)(ts,{size:m,color:y.text,width:.8*g.width,style:v(d(h,2,14),x),children:e.label}),(0,n.jsxs)("div",{style:{position:"relative",width:z,height:I,flexShrink:0},children:[(0,n.jsxs)("svg",{width:z,height:I,style:{position:"absolute",inset:0,overflow:"visible"},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:B,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:i.accent,stopOpacity:.35}),(0,n.jsx)("stop",{offset:"100%",stopColor:i.accent,stopOpacity:0})]})}),[.25,.5,.75].map(t=>(0,n.jsx)("line",{x1:0,x2:k*C,y1:w+S*t,y2:w+S*t,stroke:i.faint,strokeWidth:1.5*x,strokeDasharray:"".concat(6*x," ").concat(8*x)},t)),(0,n.jsx)("line",{x1:0,y1:w+S,x2:k*C,y2:w+S,stroke:i.muted,strokeWidth:2.5*x}),(0,n.jsx)("line",{x1:0,y1:w+S,x2:0,y2:w+S-S*C,stroke:i.muted,strokeWidth:2.5*x}),(0,n.jsx)("path",{d:"".concat(A," L ").concat(E.x," ").concat(w+S," L 0 ").concat(w+S," Z"),fill:"url(#".concat(B,")"),opacity:Y}),(0,n.jsx)("path",{d:A,fill:"none",stroke:i.accent,strokeWidth:5*x,strokeLinecap:"round",strokeLinejoin:"round",pathLength:1,strokeDasharray:1,strokeDashoffset:1-N}),(0,n.jsx)("circle",{cx:E.x,cy:E.y,r:(10+26*T)*x,fill:"none",stroke:i.accent,strokeWidth:2.5*x,opacity:N>=1?1-T:0}),(0,n.jsx)("circle",{cx:E.x,cy:E.y,r:10*x,fill:i.accent,opacity:N>=.99?1:0})]}),e.startLabel&&(0,n.jsx)("div",{style:{position:"absolute",left:0,top:L[0].y-W.sm*x,transform:"translateY(-100%)",opacity:d(h,8,18)},children:(0,n.jsx)(ts,{size:u,color:y.soft,align:"left",lineHeight:1.1,style:{whiteSpace:"nowrap"},children:e.startLabel})}),(e.endLabel||e.icon)&&(0,n.jsxs)("div",{style:{position:"absolute",left:E.x+22*x,width:M-22*x,top:E.y,transform:"translateY(-50%)",opacity:Y,display:"flex",alignItems:"center",gap:12*x},children:[e.icon&&(0,n.jsx)(th.A,{name:e.icon,size:1.3*b,color:i.text,progress:Y}),e.endLabel&&(0,n.jsx)(ts,{size:b,color:y.accent,align:"left",lineHeight:1.1,children:e.endLabel})]})]})]})})},"icon-spotlight":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:s,unit:h,exit:x}=j(a),p=D(),g=H(i),y=Math.min(I.hero*h,.17*p.height),m=2.6*y,f=m/2,u=d(s,4,28,c),b=d(s,0,18,o),M=p.width*(p.portrait?.86:.62),v=P(e.label,M,2,F.title*h,F.body*h),w=e.sublabel?P(e.sublabel,M,2,F.body*h,F.note*h):0,k=d(s,12,26);return(0,n.jsx)(l.hU,{style:{opacity:1-x},children:(0,n.jsxs)(to,{stage:p,gap:W.md*h,children:[(0,n.jsxs)("div",{style:{position:"relative",width:m,height:m,flexShrink:0},children:[(0,n.jsxs)("svg",{width:m,height:m,style:{position:"absolute",inset:0,overflow:"visible"},children:[(0,n.jsx)("circle",{cx:f,cy:f,r:.78*y*(.7+.3*b),fill:i.accent,opacity:.14*b}),[.95,1.25,1.6].map((t,e)=>{let a=d(s,2+5*e,20+5*e,c);return(0,n.jsx)("circle",{cx:f,cy:f,r:y*t*.78,fill:"none",stroke:0===e?i.accent:i.faint,strokeWidth:(0===e?3:2)*h,pathLength:1,strokeDasharray:1,strokeDashoffset:1-a,transform:"rotate(".concat(-90+s*(e%2?-.3:.3)," ").concat(f," ").concat(f,")")},t)})]}),(0,n.jsx)("div",{style:{position:"absolute",left:f-y/2,top:f-y/2},children:(0,n.jsx)(th.A,{name:e.icon,size:y,color:i.text,progress:u,strokeWidth:1.3})})]}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:W.sm*h,opacity:k,transform:"translateY(".concat((1-k)*12*h,"px)")},children:[(0,n.jsx)(ts,{size:v,color:g.text,width:M,children:e.label}),e.sublabel&&(0,n.jsx)(ts,{size:w,color:g.soft,width:M,children:e.sublabel})]})]})})},"unit-grid":t=>{let{params:e,look:i,durationInFrames:a,variant:r}=t,{frame:o,unit:s,exit:h}=j(a),x=D(),p=H(i),g=e.total,y=x.portrait?Math.min(5,g):Math.min(10,g),m=Math.ceil(g/y),f=Math.min(.7*x.width/y,.36*x.height/m,110*s),u="".concat(e.filled," in ").concat(g),b=.7*x.width,M=e.label?P(e.label,b,2,F.label*s,F.note*s):0,w=6+.8*g,k=d(o,w,w+12);return(0,n.jsx)(l.hU,{style:{opacity:1-h},children:(0,n.jsxs)(to,{stage:x,gap:W.md*s,children:[(0,n.jsx)("div",{style:{position:"relative",width:y*f,height:m*f,flexShrink:0},children:Array.from({length:g},(t,a)=>{let l=a%y,r=Math.floor(a/y),s=d(o,2+.8*a,16+.8*a,c),h=a<e.filled?d(o,w+3*a,w+3*a+10,c):0;return(0,n.jsxs)("div",{style:{position:"absolute",left:l*f+.12*f,top:r*f+.12*f},children:[(0,n.jsx)(th.A,{name:e.icon,size:.76*f,color:i.faint,progress:s,strokeWidth:1.6}),(0,n.jsx)(th.A,{name:e.icon,size:.76*f,color:i.accent,progress:h,strokeWidth:1.9,style:{position:"absolute",left:0,top:0}})]},a)})}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:W.xs*s,...v(k,s)},children:[(0,n.jsx)(ts,{size:Math.min(Math.max(.9*f,64*s),110*s),color:p.accent,lineHeight:1.05,style:{fontVariantNumeric:"tabular-nums"},children:u}),e.label&&(0,n.jsx)(ts,{size:M,color:p.soft,width:b,children:e.label})]})]})})}},tD=new Set,tA=t=>{!(null==t?void 0:t.fontKey)||tD.has(t.fontFamily)||(tD.add(t.fontFamily),(0,r.m)({family:t.fontFamily,url:(0,l.eF)("/remotion/fonts/".concat(t.fontKey,".ttf"))}).catch(()=>{}))},tC=t=>{let{moment:e,look:i,durationInFrames:r,backgroundStyle:o,captionsOn:s,captionsYPosition:c,children:h}=t,{width:d,height:x}=(0,l.rf)(),p=s&&!(0,tl.ak)(e),g=(0,a.useMemo)(()=>U({width:d,height:x,captionsVisible:p,captionsYPosition:c}),[d,x,p,c]);return(0,n.jsxs)(l.hU,{style:{pointerEvents:"none",fontFamily:null==i?void 0:i.fontFamily},children:[o&&(0,n.jsx)(J,{style:o,look:i,durationInFrames:r}),(0,n.jsx)(L.Provider,{value:g,children:h})]})};var tP=t=>{let{moments:e,look:i,captionsOn:r=!0,captionsYPosition:o}=t,{fps:s}=(0,l.rf)(),c=(0,a.useMemo)(()=>ta(e,null==i?void 0:i.backgroundStyle),[e,null==i?void 0:i.backgroundStyle]);if(!Array.isArray(e)||0===e.length)return null;tA(i);let h=(null==i?void 0:i.pace)||1;return(0,n.jsx)(m.Provider,{value:{pace:h},children:(0,n.jsx)(l.hU,{style:{zIndex:6,pointerEvents:"none"},children:e.map((t,e)=>{let a=tL[t.template];if(!a)return null;let d=Math.round(t.startMs/1e3*s),x=Math.max(1,Math.round(t.endMs/1e3*s)-d),p=Math.max(1,Math.round(x*f(h)/s));return(0,n.jsx)(l.T9,{from:d,durationInFrames:x,name:"motion:".concat(t.template),children:(0,n.jsx)(tC,{moment:t,look:i,durationInFrames:x,backgroundStyle:c[e],captionsOn:r,captionsYPosition:o,children:(0,n.jsx)(a,{params:t.params,look:i,variant:t.variant,durationInFrames:p,seed:t.id||"".concat(t.template,"-").concat(t.startMs)})})},t.id||"".concat(t.template,"-").concat(t.startMs))})})})}}
1,41036:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(85893),a=i(67294),l=i(84952);let r=t=>Math.max(0,Math.min(1,t)),o=t=>{let{name:e,size:i,color:o,progress:s=1,strokeWidth:c=1.6,opacity:h=1,style:d}=t,x=(0,l.Yj)(e)||(0,l.Yj)("sparkles"),p=x.length;return(0,n.jsx)("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round",style:{overflow:"visible",opacity:h,...d},children:x.map((t,e)=>{let[i,n]=t,l=r((s-(p>1?e/p*.45:0))/.55);return a.createElement(i,{key:e,...n,pathLength:1,strokeDasharray:1,strokeDashoffset:1-l,opacity:l<=0?0:1})})})}}}]);

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.