1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,818724,e=>{"use strict";let t=(0,e.i(475254).default)("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["PhoneCall",0,t],818724)},339118,e=>{"use strict";var t=e.i(843476);e.s(["CheckIcon",0,e=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,t.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,t.jsx)("path",{d:"M9 12l2 2l4 -4"})]})])},243553,620278,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);e.s(["Crown",0,r],243553);let a=(0,t.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,a],620278)},523309,e=>{"use strict";var t,r=e.i(843476),a=e.i(243553),n=e.i(818724),i=e.i(620278),l=e.i(339118),s=e.i(460748),o=((t={}).PRO="Pro",t.ELITE="Elite",t.ENTERPRISE="Teams",t);let c={Pro:{month:"price_1TbPlg6uPrHGvSYr9ib92TQS",year:"price_1TbPln6uPrHGvSYrzyvwk3Y3"},Elite:{month:"price_1TbPm16uPrHGvSYrb4JKC7Gp",year:"price_1TbPmA6uPrHGvSYrx3MYRxW2"}},d=[{title:"Pro",icon:i.Target,subtitle:"For reps getting started.",monthlyPrice:49,annualMonthlyPrice:39,minutes:180,priceIds:c.Pro,planSlug:"pro",ctaText:"Start free",ctaLink:"/sign-up",features:["Realistic AI prospects: cold, discovery & interview","AI Coach reviews your calls & tracks progress","Feedback & scoring after every call","Custom scenarios + Rithim scenario library","Call recordings & transcripts","Practice in 32 languages","180 minutes of practice / month"],featured:!0},{title:"Elite",icon:n.PhoneCall,subtitle:"Built for reps who run drills daily.",monthlyPrice:99,annualMonthlyPrice:79,minutes:600,priceIds:c.Elite,planSlug:"elite",ctaText:"Start free",ctaLink:"/sign-up",features:["Realistic AI prospects: cold, discovery & interview","AI Coach reviews your calls & tracks progress","Feedback & scoring after every call","Custom scenarios + Rithim scenario library","Call recordings & transcripts","Practice in 32 languages","600 minutes of practice / month"]},{title:"Teams",icon:a.Crown,subtitle:"We build the program around your sales motion.",monthlyPrice:null,annualMonthlyPrice:null,minutes:null,priceIds:null,planSlug:null,ctaText:"Book a demo",ctaLink:"/enterprise",features:["Everything in Pro & Elite","Team management, analytics & manager dashboards","Shared scenario library & training paths","Custom scoring rubrics","White-glove onboarding","Named success partner"]}],u=(0,r.jsx)(l.CheckIcon,{className:"mx-auto size-5 text-gray-600"}),m=(0,r.jsx)(s.CloseIcon,{className:"mx-auto size-5 text-gray-600"});function h(e,t,r,a){return{title:e,tiers:[{title:"Pro",value:t},{title:"Elite",value:r},{title:"Teams",value:a}]}}let x=[h("AI call minutes / month","180","600","Custom"),h("Interview Simulator (All Rounds)",u,u,u),h("Mock Cold Calls",u,u,u),h("Mock Discovery Calls",u,u,u),h("Custom Scenario Creation",u,u,u),h("AI Coach",u,u,u),h("Post-Call Scoring & Coaching",u,u,u),h("Call Recordings & Transcripts",u,u,u),h("Practice in 32 Languages",u,u,u),h("Manager Dashboards",m,m,u),h("Team Management & Analytics",m,m,u),h("Shared Scenario Library",m,m,u),h("Configurable Scorecards",m,m,u),h("Training Paths & Certifications",m,m,u),h("SSO & Advanced Security",m,m,u),h("Custom Onboarding",m,m,u),h("SLA & Uptime Guarantees",m,m,u),h("Support","Email","Email","Dedicated")];e.s(["MINUTES_PACK",0,{minutes:60,priceUsd:14},"STRIPE_PRICE_IDS",0,c,"TIER_TO_PLAN_SLUG",0,{Pro:"pro",Elite:"elite"},"TierName",()=>o,"pricingTable",0,x,"tiers",0,d])},627446,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(604570),i=e.i(853355
1),l=e.i(477952),s=e.i(523309),o=e.i(649460);let c={pro:1,elite:2};function d({planName:e,priceId:a,variant:i,className:s,children:o}){let[c,u]=(0,r.useState)(!1);async function m(){u(!0),n.default.capture("pricing_switch_plan_clicked",{plan:e});try{let e=await fetch("/api/stripe/portal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({priceId:a})}),{url:t}=await e.json();t&&(window.location.href=t)}finally{u(!1)}}return(0,t.jsx)(l.Button,{className:s,variant:i,onClick:m,disabled:c,children:c?"Openingâ¦":o})}function u({priceId:e,planName:a,interval:i,variant:s,className:o,children:c}){let[d,m]=(0,r.useState)(!1);async function h(){m(!0),n.default.capture("pricing_cta_clicked",{plan:a,interval:i,signed_in:!0});try{let t=await fetch("/api/stripe/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({priceId:e,planName:a,interval:i})}),{url:r}=await t.json();r&&(window.location.href=r)}finally{m(!1)}}return(0,t.jsx)(l.Button,{className:o,variant:s,onClick:h,disabled:d,children:d?"Redirectingâ¦":c})}e.s(["TierCta",0,function({tier:e,interval:r,currentPlan:m,variant:h,className:x="mt-6 w-full"}){let g=e.priceIds?.[r],p=s.TIER_TO_PLAN_SLUG[e.title]??null,v="call_simulator"===m?"pro":m,b=null!=p&&v===p,f=(0,o.isPaidPlanSlug)(m),y=v?c[v]:void 0,k=p?c[p]:void 0;return g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Show,{when:"signed-out",children:(0,t.jsx)(l.Button,{className:x,as:a.default,href:e.ctaLink,variant:h,onClick:()=>n.default.capture("pricing_cta_clicked",{plan:e.title,interval:r,signed_in:!1}),children:e.ctaText})}),(0,t.jsx)(i.Show,{when:"signed-in",children:b?(0,t.jsx)(l.Button,{className:x,variant:"secondary",disabled:!0,children:"Current plan"}):f?(0,t.jsxs)(d,{planName:p??e.title,priceId:g,variant:h,className:x,children:[null!=y&&null!=k&&k<y?"Downgrade":"Upgrade"," to ",e.title]}):(0,t.jsxs)(u,{priceId:g,planName:p??e.title,interval:r,variant:h,className:x,children:["Upgrade to ",e.title]})})]}):(0,t.jsx)(l.Button,{className:x,as:a.default,href:e.ctaLink,variant:h,onClick:()=>n.default.capture("pricing_cta_clicked",{plan:e.title,interval:r,signed_in:!1}),children:e.ctaText})}])},680499,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(532181),n=e.i(647163);let i=a.motion.create("p"),l=r.default.memo(function({children:e,className:a,duration:l=2,spread:s=2}){let o=(0,r.useMemo)(()=>e.length*s,[e,s]);return(0,t.jsx)(i,{className:(0,n.cn)("relative inline-block bg-[length:250%_100%,auto] bg-clip-text","text-transparent [--base-color:#a1a1aa] [--base-gradient-color:#000]","[background-repeat:no-repeat,padding-box] [--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))]","dark:[--base-color:#71717a] dark:[--base-gradient-color:#ffffff] dark:[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))]",a),initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:l,ease:"linear",repeatDelay:2},style:{"--spread":`${o}px`,backgroundImage:"var(--bg), linear-gradient(var(--base-color), var(--base-color))"},children:e})});e.s(["ShimmerText",0,l])},38357,e=>{"use strict";var t=e.i(843476),r=e.i(657688),a=e.i(647163),n=e.i(316204);let i={sky:"bg-sky-100 text-sky-700 dark:bg-sky-950/70 dark:text-sky-300",violet:"bg-violet-100 text-violet-700 dark:bg-violet-950/70 dark:text-violet-300",emerald:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950/70 dark:text-emerald-300",amber:"bg-amber-100 text-amber-700 dark:bg-amber-950/70 dark:text-amber-300",rose:"bg-rose-100 text-rose-700 dark:bg-rose-950/70 dark:text-rose-300",cyan:"bg-cyan-100 text-cyan-700 dark:bg-cyan-950/70 dark:text-cyan-300"},l=({size:e=800,className:n,showRings:l=!0,ringDurationsSec:s,numRings:o=3})=>{let c=[{name:"Kyle Harper",title:"Founder @ Oscar Health",label:"Closing",avatar:"/avatars/avatar3.jpg",color:"emerald"},{name:"Lucas Reid",title:"Founder @ Plaid",label:"Discovery",avatar:"/avatars/avatar5.jpg",color:"violet"},{name:"Sarah Chen",title:"VP Sales @ Stripe",label:"Objections",avatar:"/avatars/
1avatar4.jpg",color:"amber"},{name:"Ada Ferrell",title:"Head of Ops @ Notion",label:"Cold call",avatar:"/avatars/avatar1.jpg",color:"sky"},{name:"Mira Patel",title:"COO @ Brex",label:"Pricing",avatar:"/avatars/avatar2.jpg",color:"rose"},{name:"Ryan Murphy",title:"VP Marketing @ Klaviyo",label:"Follow-up",avatar:"/avatars/avatar6.jpg",color:"cyan"},{name:"Kyle Harper",title:"Founder @ Oscar Health",label:"Interview",avatar:"/avatars/avatar3.jpg",color:"rose"},{name:"Lucas Reid",title:"Founder @ Plaid",label:"Renewal",avatar:"/avatars/avatar5.jpg",color:"cyan"},{name:"Sarah Chen",title:"VP Sales @ Stripe",label:"Champion",avatar:"/avatars/avatar4.jpg",color:"emerald"},{name:"Ada Ferrell",title:"Head of Ops @ Notion",label:"Negotiation",avatar:"/avatars/avatar1.jpg",color:"rose"},{name:"Mira Patel",title:"COO @ Brex",label:"Demo",avatar:"/avatars/avatar2.jpg",color:"violet"},{name:"Ryan Murphy",title:"VP Marketing @ Klaviyo",label:"Exec call",avatar:"/avatars/avatar6.jpg",color:"sky"}],d=c.length,u=Array.from({length:o},(e,t)=>t+1),m=u.reduce((e,t)=>e+t,0),h=u.map(e=>Math.floor(d*e/m)),x=d-h.reduce((e,t)=>e+t,0);for(let e=o-1;e>=0&&x>0;e--)h[e]+=1,x--;let g=0,p=h.map(e=>{let t=c.slice(g,g+e);return g+=e,t}),v=o<=1?[(.42+.94)/2]:Array.from({length:o},(e,t)=>.42+.52*t/(o-1));return(0,t.jsxs)("div",{className:(0,a.cn)("relative mx-auto flex items-center justify-center",n),style:{width:e,height:e},children:[l&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0",children:Array.from({length:o},(e,t)=>o-1-t).map(r=>{let n=Math.round(e*v[r]);return(0,t.jsx)("div",{className:(0,a.cn)("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full shadow-inner",0===r&&"bg-neutral-300 dark:bg-neutral-500",1===r&&"bg-neutral-200 dark:bg-neutral-600",2===r&&"bg-neutral-100 dark:bg-neutral-700",3===r&&"bg-neutral-50 dark:bg-neutral-800"),style:{width:n,height:n}},`bg-ring-${r}`)})}),Array.from({length:o},(e,t)=>o-1-t).map(n=>(n=>{let l=p[n],o=l.length;if(0===o)return null;let c=Math.round(e*v[n]),d=c/2,u=(s&&s[n])??18+8*n,m=n%2==1;return(0,t.jsx)("div",{className:(0,a.cn)("absolute top-1/2 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2 rounded-full",m?"animate-counter-orbit":"animate-orbit"),style:{width:c,height:c,"--duration":`${u}s`},children:(0,t.jsx)("div",{className:"relative h-full w-full",children:l.map((e,l)=>{let s=360/o*l;return(0,t.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",style:{transform:`rotate(${s}deg) translateX(${d}px)`},children:(0,t.jsx)("div",{style:{transform:`rotate(${-s}deg)`},children:(0,t.jsxs)("div",{className:(0,a.cn)("shadow-aceternity flex w-[112px] flex-col items-center gap-1.5 rounded-2xl border border-neutral-200 bg-white p-2 backdrop-blur dark:border-neutral-800 dark:bg-neutral-950",m?"animate-orbit":"animate-counter-orbit"),style:{"--duration":`${u}s`},title:`${e.name} â ${e.label}`,children:[(0,t.jsx)("div",{className:"relative size-10 shrink-0 overflow-hidden rounded-full",children:(0,t.jsx)(r.default,{src:e.avatar,alt:e.name,fill:!0,sizes:"40px",className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center leading-tight",children:[(0,t.jsx)("span",{className:"w-full truncate text-center text-[10px] font-semibold text-neutral-900 dark:text-neutral-100",children:e.name}),(0,t.jsx)("span",{className:"w-full truncate text-center text-[8.5px] text-neutral-500 dark:text-neutral-400",children:e.title})]}),(0,t.jsx)("span",{className:(0,a.cn)("rounded-full px-2 py-0.5 text-[9px] font-semibold whitespace-nowrap",i[e.color]),children:e.label})]})})},`ring-${n}-item-${l}`)})})},`ring-${n}`)})(n))]})};e.s(["TheSolution",0,()=>(0,t.jsxs)(n.Container,{id:"the-solution",className:"border-divide relative flex flex-col items-center justify-center overflow-hidden border-x pt-32 pb-16 md:pt-48 md:pb-32",children:[(0,t.jsx)(l,{className:"absolute inset-x-0 -top-[480px] [mask-image:linear-gradient(to_bottom,black_40%,transparent_100%)]"}),(0,t.jsxs)("div",{className:"relative z-10 flex flex-col items-center justify-center px-6 md:px-12",children:[(0,t.jsx)("h2",{className:"text-charcoal-700 max-w-3xl text-center text-3xl leading-tight font-semibold tracking-tight md:text-4xl lg:text-5xl dark:text-neutral-100",children:"Stop using your prospects as practice."}),(0,t.jsx)("p",{className:"mt-6 max-w-2xl text-center text-sm leading-relaxed text-gray-600 md:text-base dark:text-gray-300",children:"Every high-performance role rehearses before the real thing. Sales is the last one still teaching on the job, where every missed objection costs a meeting and every fumbled discovery costs a deal. Rithim is where reps run the hardest calls of their career against realistic buyers, get graded the moment they hang up, and walk into the real one already knowing what works."})]})]}),"TheSolutionOrbit",0,l])},948309,e=>{"use strict";var t=e.i(843476),r=e.i(647163);e.s(["SectionHeading",0,({children:e,className:a})=>(0,t.jsx)("h2",{className:(0,r.cn)("text-charcoal-700 text-center text-2xl font-medium tracking-tight md:text-3xl lg:text-4xl dark:text-neutral-100",a),children:e})])},858299,969470,e=>{"use strict";var t=e.i(843476),r=e.i(680499);e.s(["Badge",0,({text:e})=>(0,t.jsx)(r.ShimmerText,{duration:1.2,className:"text-sm font-normal [--base-color:var(--color-brand)] [--base-gradient-color:var(--color-white)] dark:[--base-color:var(--color-brand)] dark:[--base-gradient-color:var(--color-white)]",children:e})],858299);var a=e.i(647163);e.s(["DivideX",0,({className:e})=>(0,t.jsx)("div",{className:(0,a.cn)("bg-divide h-[1px] w-full",e)})],969470)},931008,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(316204),n=e.i(858299),i=e.i(948309),l=e.i(969470),s=e.i(339118),o=e.i(523309),c=e.i(647163),d=e.i(627446);function u({interval:e,onChange:r}){return(0,t.jsxs)("div",{className:"mt-6 inline-flex items-center gap-1 rounded-full border border-divide p-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>
1r("month"),className:(0,c.cn)("rounded-full px-4 py-1.5 text-sm font-medium transition-colors","month"===e?"bg-gray-100 text-charcoal-700 dark:bg-neutral-800 dark:text-neutral-100":"text-gray-600 dark:text-neutral-400"),children:"Monthly"}),(0,t.jsxs)("button",{type:"button",onClick:()=>r("year"),className:(0,c.cn)("flex items-center gap-1.5 rounded-full px-4 py-1.5 text-sm font-medium transition-colors","year"===e?"bg-gray-100 text-charcoal-700 dark:bg-neutral-800 dark:text-neutral-100":"text-gray-600 dark:text-neutral-400"),children:["Yearly",(0,t.jsx)("span",{className:"rounded-full bg-emerald-500/10 px-2 py-0.5 text-xs font-medium text-emerald-600 dark:text-emerald-400",children:"Save 20%"})]})]})}let m=({children:e})=>(0,t.jsxs)("div",{className:"text-charcoal-700 flex items-center gap-2 dark:text-neutral-100",children:[(0,t.jsx)(s.CheckIcon,{className:"h-4 w-4 shrink-0"}),e]});e.s(["Pricing",0,({currentPlan:e})=>{let[s,c]=(0,r.useState)("month");return(0,t.jsxs)("section",{id:"pricing",className:"scroll-mt-16",children:[(0,t.jsxs)(a.Container,{className:"border-divide flex flex-col items-center justify-center border-x pt-10 pb-10",children:[(0,t.jsx)(n.Badge,{text:"Pricing"}),(0,t.jsx)(i.SectionHeading,{className:"mt-4",children:"Practice until cold calls feel warm"}),(0,t.jsx)("p",{className:"mt-2 max-w-lg text-center text-base text-gray-600 dark:text-neutral-400",children:"Reps using us book 2.3Ã more meetings in their first 60 days."}),(0,t.jsx)("p",{className:"mt-2 max-w-lg text-center text-base font-medium text-charcoal-700 dark:text-neutral-200",children:"Every plan starts with 15 free minutes of practice. No credit card required."}),(0,t.jsx)(u,{interval:s,onChange:c})]}),(0,t.jsx)(l.DivideX,{}),(0,t.jsx)(a.Container,{className:"border-divide border-x",children:(0,t.jsx)("div",{className:"divide-divide grid grid-cols-1 divide-y md:grid-cols-3 md:divide-x md:divide-y-0",children:o.tiers.map((r,a)=>{let n=null===r.monthlyPrice?null:"year"===s?r.annualMonthlyPrice:r.monthlyPrice,i=r.icon;return(0,t.jsxs)("div",{className:"flex flex-col p-4 md:p-8",children:[(0,t.jsxs)("h3",{className:"text-charcoal-700 flex items-center gap-2 text-xl font-medium dark:text-neutral-100",children:[(0,t.jsx)(i,{className:"size-5 shrink-0 text-gray-500 dark:text-neutral-400"}),r.title]}),(0,t.jsx)("p",{className:"text-base text-gray-600 dark:text-neutral-400",children:r.subtitle}),(0,t.jsx)("span",{className:"mt-6 flex items-baseline-last text-2xl font-medium dark:text-white",children:null===n?"Let's talk":(0,t.jsxs)(t.Fragment,{children:["$",n,(0,t.jsx)("span",{className:"ml-1 text-sm font-normal",children:"/mo"})]})}),(0,t.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-neutral-400",children:null===n?"Pricing scales with seat count":"year"===s?"billed annually":"billed monthly"}),(0,t.jsx)("div",{className:"flex flex-col gap-4 px-0 py-4 md:hidden md:p-8",children:r.features.map((e,r)=>(0,t.jsx)(m,{children:e},e+a+r))},r.title+"tier-list-of-items"),(0,t.jsx)("div",{className:"mt-auto",children:(0,t.jsx)(d.TierCta,{tier:r,interval:s,currentPlan:e,variant:r.featured?"brand":"secondary"})})]},r.title+"tier-meta")})})}),(0,t.jsx)(l.DivideX,{}),(0,t.jsx)(a.Container,{className:"border-divide hidden border-x md:block",children:(0,t.jsx)("div",{className:"divide-divide grid grid-cols-1 md:grid-cols-3 md:divide-x",children:o.tiers.map((e,r)=>(0,t.jsx)("div",{className:"flex flex-col gap-4 p-4 md:p-8",children:e.features.map((e,a)=>(0,t.jsx)(m,{children:e},e+r+a))},e.title+"tier-list-of-items"))})})]})}])},648563,e=>{"use strict";var t=e.i(271645);function r(e,t){let r;return(...a)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...a),t)}}let a=["x","y","top","bottom","left","right","width","height"];e.s(["default",0,function({debounce:e,scroll:n,polyfill:i,offsetSize:l}={debounce:0,scroll:!1,offsetSize:!1}){var s,o,c;let d=i||("u"<typeof window?class{}:window.ResizeObserver);if(!d)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[u,m]=(0,t.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}
1),h=(0,t.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:u,orientationHandler:null}),x=e?"number"==typeof e?e:e.scroll:null,g=e?"number"==typeof e?e:e.resize:null,p=(0,t.useRef)(!1);(0,t.useEffect)(()=>(p.current=!0,()=>void(p.current=!1)));let[v,b,f]=(0,t.useMemo)(()=>{let e=()=>{let e,t;if(!h.current.element)return;let{left:r,top:n,width:i,height:s,bottom:o,right:c,x:d,y:u}=h.current.element.getBoundingClientRect(),x={left:r,top:n,width:i,height:s,bottom:o,right:c,x:d,y:u};h.current.element instanceof HTMLElement&&l&&(x.height=h.current.element.offsetHeight,x.width=h.current.element.offsetWidth),Object.freeze(x),p.current&&(e=h.current.lastBounds,t=x,!a.every(r=>e[r]===t[r]))&&m(h.current.lastBounds=x)};return[e,g?r(e,g):e,x?r(e,x):e]},[m,l,x,g]);function y(){h.current.scrollContainers&&(h.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",f,!0)),h.current.scrollContainers=null),h.current.resizeObserver&&(h.current.resizeObserver.disconnect(),h.current.resizeObserver=null),h.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",h.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",h.current.orientationHandler))}function k(){h.current.element&&(h.current.resizeObserver=new d(f),h.current.resizeObserver.observe(h.current.element),n&&h.current.scrollContainers&&h.current.scrollContainers.forEach(e=>e.addEventListener("scroll",f,{capture:!0,passive:!0})),h.current.orientationHandler=()=>{f()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",h.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",h.current.orientationHandler))}return s=f,o=!!n,(0,t.useEffect)(()=>{if(o)return window.addEventListener("scroll",s,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",s,!0)},[s,o]),c=b,(0,t.useEffect)(()=>(window.addEventListener("resize",c),()=>void window.removeEventListener("resize",c)),[c]),(0,t.useEffect)(()=>{y(),k()},[n,f,b]),(0,t.useEffect)(()=>y,[]),[e=>{e&&e!==h.current.element&&(y(),h.current.element=e,h.current.scrollContainers=function e(t){let r=[];if(!t||t===document.body)return r;let{overflow:a,overflowX:n,overflowY:i}=window.getComputedStyle(t);return[a,n,i].some(e=>"auto"===e||"scroll"===e)&&r.push(t),[...r,...e(t.parentElement)]}(e),k())},u,v]}])}]);
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.