PageSourceSearch

https://www.projectread.ai/_next/static/chunks/4610.a2f4855d86c61135.js

js projectread.ai collected 2026-09-24 10:38:07 UTC 19,508 bytes, 9 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="00a7e98d-6cd6-4870-91ce-25ddfcea845a",e._sentryDebugIdIdentifier="sentry-dbid-00a7e98d-6cd6-4870-91ce-25ddfcea845a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([["4610"],{2025:function(e,t,r){r.d(t,{Me:()=>R,Dh:()=>E,YO:()=>C});var n=r(97496),a=r(7033),i=r(6007),l=r(71189);function o(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&(0,i.C)(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{o(e,t)})})}function s(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){(0,a.k)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push((0,l.d)(e,r,{transitionOverride:n}))}),Promise.all(i)},set:r=>((0,a.k)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?o(t,n):"string"==typeof n?o(t,[n]):(0,i.C)(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}var u=r(71413),c=r(97513);let d=function(){let e=(0,u.h)(s);return(0,c.L)(e.mount,[]),e};var f=r(25228),p=r(87652),h=r(95931),m=r(11222),v=r(98879),y=r(31756),g=r(37906),w=r(75619),b=r(50473),x=r(11823);let k=(0,h.createContext)({coins:0,awardCoins:()=>{throw Error("Cannot award coins outside of CoinProvider")}}),E=e=>{let{student:t,demo:r,children:a}=e;(0,b.k)(r||t);let i=(0,m.n)(),[l,o]=(0,h.useState)(r?100:t.coins),s=!!t,u=(0,h.useCallback)(async e=>{await i.playAsync({uri:w.QN.CHIME,retries:1,timeout:4e3,onStarted:()=>{o(t=>t+e)}}),s&&(0,v.El)({type:"coinsAwarded",value:e}).then(e=>{e.success&&o(e.coins)})},[i,o,s]);return(0,n.tZ)(k.Provider,{value:{coins:l,awardCoins:u},children:a})},C=()=>(0,h.useContext)(k),R=e=>{let{className:t}=e,{coins:r}=C();return(0,n.tZ)(A,{coins:r,className:t})},A=e=>{let{coins:t,className:r}=e,a=d(),i=(0,h.useRef)(!1),l=(0,h.useRef)(!1),o=(0,h.useCallback)(()=>{l.current||(l.current=!0,a.start("pulse").catch(y.MO).finally(()=>{l.current=!1}))},[a]);return(0,h.useEffect)(()=>{if(!i.current){i.current=!0;return}o()},[t,o]),(0,n.BX)("div",{css:{display:"flex",alignItems:"center"},className:r,children:[(0,n.BX)(f.E.div,{css:{display:"flex",width:72,filter:"drop-shadow(0 0 6px ".concat(x.r.colors.yellow50,"80)"),svg:{filter:"drop-shadow(0 1px 1px ".concat(x.r.colors.n100,"33)")}},initial:"idle",animate:a,variants:M.group,children:[(0,n.tZ)(g.r,{width:24,variants:M.small,style:{position:"relative",left:8,top:2}}),(0,n.tZ)(g.r,{width:24,variants:M.primary,style:{position:"relative",zIndex:2}}),(0,n.tZ)(g.r,{width:24,variants:M.small,style:{position:"relative",left:-8,top:2}})]}),(0,n.tZ)(f.E.div,{layout:i.current,css:{...x.r.titleL,lineHeight:1,letterSpacing:"-0.05em",whiteSpace:"nowrap",minWidth:"5ch"},children:(0,n.tZ)(p.M,{initial:!1,mode:"popLayout",children:t.toLocaleString("en-US",{currency:"USD"}).split("").map((e,t)=>(0,n.tZ)(f.E.span,{layout:"position",style:{display:"inline-block"},initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.8},children:e},"d".concat(e,"-i").concat(t)))})})]})},M={group:{idle:{},pulse:{transition:{staggerChildren:.1}}},small:{idle:{scale:.8},pulse:{scale:[.8,1.8,.8],transition:{duration:.6,ease:"easeOut"}}},primary:{idle:{scale:1.2},pulse:{scale:[1.2,1.8,1.2],transition:{duration:.6,ease:"easeOut"}}}}},54441:function(e,t,r){r.r(t),r.d(t,{StudentExperienceWrapper:()=>k});var n=r(97496),a=r(20178),i=r.n(a),l=r(23250),o=r(45727),s=r(2025),u=r(43545),c=r(11823);let d=e=>{let{student:t}=e;return(0,n.BX)("header",{css:{display:"flex",justifyContent:"space-between",gap:16,alignItems:"center",paddingBlock:12,paddingInline:24,background:c.r.colors.green120,color:c.r.colors.n0,minHeight:56,[c.r.mobile]:{padding:0,paddingBottom:12,gap:8,flexDirection:"column",background:c.r.colors.green150}},children:[(0,n.BX)("div",{css:{display:"contents",[c.r.mobile]:{display:"flex",justifyContent:"space-between",gap:16,width:"100%",background:c.r.colors.green120,padding:"12px 16px"}},children:[(0,n.BX)(i(),{href:u._.studentHome,css:{...c.r.bodyL,...c.r.studentFacingText,textDecoration:"none",fontWeight:700,color:"inherit",letterSpacing:"-0.32px",display:"flex",alignItems:"center",justifyContent:"center",gap:14,whiteSpace:"nowrap"},children:[(0,n.tZ)(l.o,{css:{width:32,flexShrink:0,[c.r.mobileSmall]:{flexShrink:1}},leftColor:c.r.colors.green20,rightColor:c.r.colors.green50}),(0,n.tZ)("span",{children:"Project Read"})]}),(0,n.BX)("nav",{css:{order:3,display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,fontSize:15,fontWeight:500,color:"inherit",[c.r.max(450)]:{fontSize:14}},children:[(0,n.tZ)("div",{css:{whiteSpace:"nowrap",[c.r.max(440)]:{display:"none"}},children:t.name}),(0,n.tZ)(o.i,{})]})]}),(0,n.tZ)(s.Me,{})]})};var f=r(95931),p=r(98879),h=r(50473),m=r(61072);let v=()=>((0,h.k)(!g,"setupActivityHeartbeat already running — call teardown first"),(0,m.cM)("[activityHeartbeat] Setting up time tracking"),document.addEventListener("click",b),document.addEventListener("keydown",b),document.addEventListener("student:interaction",b),g=setInterval(x,6e4),w),y=Date.now(),g=null,w=()=>{(0,m.cM)("[activityHeartbeat] Disabling time tracking"),document.removeEventListener("click",b),document.removeEventListener("keydown",b),document.removeEventListener("student:interaction",b),g&&(clearInterval(g),g=null)},b=()=>{y=Date.now()},x=()=>{let e=Date.now()-y;if(e>6e4)return void(0,m.cM)("[activityHeartbeat] Skipping due to inactivity",{msSinceLastInteraction:e});
1(0,m.cM)("[activityHeartbeat] Logging usage"),(0,p.El)({type:"appUsage",value:1})},k=e=>{var t;let{student:r,children:a}=e;return t=r.tutorMode,(0,f.useEffect)(()=>{(0,p.pb)(t)},[t]),(0,f.useEffect)(v,[]),(0,n.BX)(s.Dh,{student:r,children:[(0,n.tZ)(d,{student:r}),a]})}},98879:function(e,t,r){r.d(t,{D6:()=>f,El:()=>p,pb:()=>d});var n=r(29506),a=r(46128),i=r(53220),l=r(79748),o=r(50473),s=r(61072),u=r(4883);let c=null,d=e=>{c=e},f=()=>((0,o.k)(c,"getCurrentTutorMode called before setCurrentTutorMode"),c),p=async e=>{(0,o.k)(c,"captureActivity called before setCurrentTutorMode");let t=(0,u.NH)(),r={...e,tutorMode:c};try{return await a.L.post("/api/activity/capture",{body:r},{nonce:t})}catch(n){return E(n)&&g({body:r,nonce:t,type:e.type}),{success:!1,error:(0,l.Y)(n)}}},h=[1e3,2e3,4e3,8e3,16e3,32e3,6e4],m=[],v=null,y=null,g=e=>{let{body:t,nonce:r,type:n}=e,a=Date.now();m.push({body:t,nonce:r,type:n,enqueuedAt:a,nextAttemptAt:a+h[0],attempts:1}),w()},w=()=>{if(0===m.length)return;let e=Math.min(...m.map(e=>e.nextAttemptAt));if(v&&null!==y&&y<=e)return;v&&clearTimeout(v);let t=Math.max(0,e-Date.now());y=e,v=setTimeout(()=>{b()},t)},b=async()=>{v=null,y=null,k();let e=Date.now(),t=m.filter(t=>t.nextAttemptAt<=e);await Promise.all(t.map(x)),w()},x=async e=>{try{await a.L.post("/api/activity/capture",{body:e.body},{nonce:e.nonce}),m=m.filter(t=>t!==e)}catch(r){if(!E(r)){m=m.filter(t=>t!==e);return}e.attempts+=1;let t=Math.min(e.attempts-1,h.length-1);e.nextAttemptAt=Date.now()+h[t]}},k=()=>{let e=Date.now();m=m.filter(t=>e-t.enqueuedAt<=3e5||((0,s.cM)("[captureActivity] Dropping retry past 5min window",{type:t.type,attempts:t.attempts}),n.n({category:"captureActivity",message:"Dropped retry after 5min window",level:"warning",data:{type:t.type,attempts:t.attempts}}),!1))},E=e=>e instanceof i.kp&&!(e instanceof i.$n)},31756:function(e,t,r){r.d(t,{qG:()=>M,HA:()=>D,MO:()=>w,nG:()=>g,tX:()=>h,lM:()=>A,MW:()=>S,Rt:()=>m});var n=r(95931),a=r(18715),i=r(4622),l=r(68029),o=r(61072),s=r(50266);let u=e=>Array.isArray(e)?e:[e],c=e=>{if("function"==typeof e)return e;switch(e.effect){case"toast":return t=>{i.Am.success("function"==typeof e.message?e.message(t):e.message)};case"refresh":return async()=>{await (0,s.If)()};case"navigate":return async t=>{await (0,s.$x)("function"==typeof e.path?e.path(t):e.path)}}},d=(e,t)=>{if("function"==typeof t)return t;switch(t.effect){case"log-and-ignore":return r=>{var n,a;(0,o.cM)("[".concat(null!=(n=t.scope)?n:"relay-operation","] ").concat(null!=(a=t.message)?a:"failed to ".concat(e)),r.result)};case"toast":return e=>{i.Am.error(e.result.error)}}},f=e=>{if("function"==typeof e)return e;switch(e.effect){case"report-only":return e=>{a.Tb(e.error)};case"toast-and-report":return t=>{i.Am.error(e.fallbackMessage),a.Tb(t.error)}}},p=Symbol("RelayOperationDefinition"),h=e=>({[p]:{request:e.request,effects:((e,t)=>{let r=null==t?void 0:t.success,n=null==t?void 0:t.failure,o=null==t?void 0:t.exception;return{success:void 0===r?[]:u(r).map(c),failure:void 0===n?[d(e,{effect:"toast"})]:u(n).map(t=>d(e,t)),exception:void 0===o?[f(t=>{let{error:r}=t;i.Am.error((0,l.Gg)()?"An error occurred while attempting to ".concat(e,"."):"Unable to ".concat(e," due to a network error. Please check your internet connection and try again.")),a.Tb(r)})]:u(o).map(f)}})(e.description,e.effects)}}),m=e=>h(e),v={status:"busy",success:!1},y={status:"aborted",success:!1},g=Symbol("CancelRelayRequest"),w=e=>{a.Tb(e)};var b=r(46128);let x=async(e,t,r,n)=>{let a=e[p];try{var i;let e="function"==typeof a.request?a.request(t):a.request,l=Object.hasOwn(e,"params")?null!=(i=e.params)?i:void 0:t,o=await b.L[e.method](e.path,l,{...e.options,...r});if(!n())return y;if(o.success){let e={...o,status:"success"};return await k(a.effects.success,{input:t,result:e}),e}let s={...o,status:"failure"};return await k(a.effects.failure,{input:t,result:s}),s}catch(e){if(E(e)||!n())return y;return await k(a.effects.exception,{input:t,error:e}),{success:!1,status:"exception",error:e}}},k=async(e,t)=>{for(let r of e)await C(()=>r(t))},E=e=>e instanceof DOMException&&"AbortError"===e.name,C=async e=>{try{await e()}catch(e){w(e)}};var R=r(22787);
1function A(e,t){let[r,a]=(0,n.useState)(!1),i=(0,n.useRef)(!1),l=(0,R.P)(),o=(0,n.useRef)(t);o.current=t;let s=(0,n.useCallback)(async t=>{var r;if(i.current)return v;let n=null==(r=o.current)?void 0:r.prepareInput,s=n?n(t):t;if(s===g)return y;let u=!1;return i.current=!0,a(!0),x(e,s,{signal:l},()=>{let e=!l.unmounted;return u||(u=e),e}).then(async e=>{if(u&&!l.unmounted){var t,r;await (null==(r=o.current)||null==(t=r.onResult)?void 0:t.call(r,e,s))}return e}).finally(()=>{i.current=!1,l.unmounted||a(!1)})},[l,e]),u=(0,n.useCallback)(e=>{Promise.resolve(s(e)).catch(w)},[s]);return{loading:r,busy:i,execute:s,dispatch:u}}let M=e=>{let{action:t,prepareInput:r,onSuccess:a,onComplete:i}=e,l=(0,R.P)(),{loading:o,dispatch:s}=A(t,{prepareInput:r,onResult:async e=>{"success"===e.status&&await (null==a?void 0:a(e)),l.unmounted||await (null==i?void 0:i(e))}});return{loading:o,onSubmit:(0,n.useCallback)(e=>{e.preventDefault(),s()},[s])}},S=(e,t)=>{let[r,a]=(0,n.useState)(t.initial),i=(0,n.useRef)({generation:0,value:t.initial}),l=(0,n.useRef)(0),o=(0,n.useRef)(void 0),s=(0,n.useRef)(t.fromResult),u=(0,R.P)();s.current=t.fromResult;let c=function(e,t){let[r,a]=(0,n.useState)(!1),i=(0,n.useRef)(!1),l=(0,R.P)(),o=(0,n.useRef)(void 0),s=(0,n.useRef)(void 0);s.current=void 0;let u=(0,n.useCallback)(async t=>{var r,n;let u=null==(r=s.current)?void 0:r.prepareInput,c=u?u(t):t;if(c===g)return y;let d={},f=new AbortController;null==(n=o.current)||n.controller.abort(),o.current={token:d,controller:f};let p=AbortSignal.any([l,f.signal]),h=!1;return i.current=!0,a(!0),x(e,c,{signal:p},()=>{var e;let t=!l.unmounted&&(null==(e=o.current)?void 0:e.token)===d;return h||(h=t),t}).then(async e=>{if(h&&!l.unmounted){var t,r;await (null==(r=s.current)||null==(t=r.onResult)?void 0:t.call(r,e,c))}return e}).finally(()=>{var e;(null==(e=o.current)?void 0:e.token)===d&&(o.current=void 0,i.current=!1,f.abort(),l.unmounted||a(!1))})},[l,e]),c=(0,n.useCallback)(e=>{Promise.resolve(u(e)).catch(w)},[u]);return{loading:r,busy:i,execute:u,dispatch:c}}(e);return{value:r,loading:c.loading,commit:(e,t)=>{let r=++l.current;o.current=r,a(e),c.execute(t).then(e=>{if(u.unmounted)return;let t=r===l.current;t&&(o.current=void 0);let n=!1;if("success"===e.status)try{let t=s.current(e);r>i.current.generation&&(i.current={generation:r,value:t},n=!0)}catch(e){w(e)}(t||n&&void 0===o.current)&&a(i.current.value)}).catch(e=>{u.unmounted||r!==l.current||(o.current=void 0,a(i.current.value)),w(e)})}}};function D(e,t){var r,a;let i=(0,R.P)(),l=null!=(a=null==t?void 0:t.prepareInput)?a:()=>{},o=(0,n.useRef)({prepareInput:l,onResult:null==t?void 0:t.onResult});o.current={prepareInput:l,onResult:null==t?void 0:t.onResult};
1let[s,u]=(0,n.useState)(()=>I(l,t)),c=(0,n.useRef)(s),d=(0,n.useCallback)(e=>{c.current=e(c.current),u(c.current)},[]),f=(0,n.useCallback)((t,r)=>{d(e=>P(e,t,{status:"loading"})),(async()=>{var n,a;let l=await x(e,r,{signal:i},()=>!i.unmounted);if(!i.unmounted){if("success"===l.status)d(e=>P(e,t,{status:"loaded",data:l}));else if("failure"===l.status)d(e=>P(e,t,{status:"error",error:l.error}));else{if("exception"!==l.status)return void d(e=>L(e,t));d(e=>P(e,t,{status:"error",error:l.error instanceof Error?l.error.message:"Request failed"}))}await (null==(n=(a=o.current).onResult)?void 0:n.call(a,l,r))}})().catch(w)},[e,d,i]),p=(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=o.current.prepareInput(...t),a=j(n);d(e=>{var t;return(null==(t=e.current)?void 0:t.key)===a?e:{...e,current:{key:a,input:n}}});let i=c.current.entries[a];i&&"error"!==i.status||f(a,n)},[d,f]);(0,n.useEffect)(()=>{let{current:e,entries:t}=c.current;e&&!t[e.key]&&f(e.key,e.input)});let h=s.current?s.entries[s.current.key]:void 0;return{input:null==(r=s.current)?void 0:r.input,data:(null==h?void 0:h.status)==="loaded"?h.data:void 0,error:(null==h?void 0:h.status)==="error"?h.error:void 0,isLoading:null!==s.current&&(void 0===h||"loading"===h.status),isError:(null==h?void 0:h.status)==="error",load:p}}let I=(e,t)=>{var r,n,a;if((null==t?void 0:t.autoload)===!1)return{current:null,entries:{}};let i=e(...null!=(a=null==t||null==(r=t.initial)?void 0:r.args)?a:[]),l=j(i);return{current:{key:l,input:i},entries:(null==t||null==(n=t.initial)?void 0:n.data)?{[l]:{status:"loaded",data:t.initial.data}}:{}}},P=(e,t,r)=>({...e,entries:{...e.entries,[t]:r}}),L=(e,t)=>({...e,entries:Object.fromEntries(Object.entries(e.entries).filter(e=>{let[r]=e;return r!==t}))}),j=e=>void 0===e?"undefined":JSON.stringify(e,(e,t)=>null===t||"object"!=typeof t||Array.isArray(t)?t:Object.fromEntries(Object.entries(t).sort((e,t)=>{let[r]=e,[n]=t;return r.localeCompare(n)})))},22787:function(e,t,r){r.d(t,{P:()=>a});var n=r(95931);let a=()=>{let e=(0,n.useRef)(void 0);if(!e.current){let t=new AbortController,r={current:!1};Object.defineProperty(t.signal,"unmounted",{get:()=>r.current}),e.current={controller:t,signal:t.signal,unmounted:r}}return(0,n.useEffect)(()=>{let{controller:t,unmounted:r}=e.current;return r.current=!1,()=>{r.current=!0,queueMicrotask(()=>{r.current&&t.abort()})}},[]),e.current.signal}},37906:function(e,t,r){r.d(t,{r:()=>l});var n=r(97496),a=r(25228),i=r(11823);let l=e=>(0,n.tZ)(a.E.svg,{width:"1em",fill:"none",viewBox:"0 0 24 24",color:i.r.colors.yellow80,...e,children:(0,n.tZ)("path",{fill:"currentColor",d:"M12.192 16.644c-.069-.052-.103-.077-.141-.087a.2.2 0 0 0-.102 0c-.038.01-.072.035-.141.087l-5.03 3.773c-.237.177-.355.266-.433.257a.2.2 0 0 1-.158-.11c-.035-.07.007-.212.092-.495l1.905-6.35a.458.458 0 0 0 .033-.156.2.2 0 0 0-.032-.093c-.02-.031-.054-.055-.121-.103l-4.397-3.14c-.208-.149-.311-.223-.329-.296a.2.2 0 0 1 .046-.179c.05-.056.176-.072.43-.104l5.016-.627a.438.438 0 0 0 .12-.024.2.2 0 0 0 .064-.045.438.438 0 0 0 .063-.105l2.637-5.275c.092-.184.138-.276.2-.305a.2.2 0 0 1 .172 0c.062.03.108.121.2.305l2.637 5.275c.028.056.042.084.063.105a.2.2 0 0 0 .064.046.438.438 0 0 0 .12.023l5.017.627c.253.032.38.048.43.104a.2.2 0 0 1 .045.179c-.018.073-.121.147-.329.295l-4.397 3.14c-.067.049-.1.073-.12.104a.2.2 0 0 0-.033.093.46.46 0 0 0 .033.156l1.905 6.35c.085.283.127.425.092.495a.2.2 0 0 1-.158.11c-.078.009-.196-.08-.433-.257l-5.03-3.773Z"})})},87652:function(e,t,r){r.d(t,{M:()=>y});var n=r(74380),a=r(95931),i=r(27763),l=r(71413),o=r(75443),s=r(21932);class u extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=e instanceof HTMLElement&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t,anchorX:r}){let i=(0,a.useId)(),l=(0,a.useRef)(null),o=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,a.useContext)(s._);return(0,a.useInsertionEffect)(()=>{let{width:e,height:n,top:a,left:s,right:u}=o.current;if(t||!l.current||!e||!n)return;let d="left"===r?`left: ${s}`:`right: ${u}`;l.current.dataset.motionPopId=i;let f=document.createElement("style");
1return c&&(f.nonce=c),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${n}px !important;
6            ${d}px !important;
7            top: ${a}px !important;
8          }
9        `),()=>{document.head.removeChild(f)}},[t]),(0,n.jsx)(u,{isPresent:t,childRef:l,sizeRef:o,children:a.cloneElement(e,{ref:l})})}let d=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:u,mode:d,anchorX:p})=>{let h=(0,l.h)(f),m=(0,a.useId)(),v=(0,a.useCallback)(e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;i&&i()},[h,i]),y=(0,a.useMemo)(()=>({id:m,initial:t,isPresent:r,custom:s,onExitComplete:v,register:e=>(h.set(e,!1),()=>h.delete(e))}),u?[Math.random(),v]:[r,v]);return(0,a.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[r]),a.useEffect(()=>{r||h.size||!i||i()},[r]),"popLayout"===d&&(e=(0,n.jsx)(c,{isPresent:r,anchorX:p,children:e})),(0,n.jsx)(o.O.Provider,{value:y,children:e})};function f(){return new Map}var p=r(12849);let h=e=>e.key||"";function m(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}var v=r(97513);let y=({children:e,custom:t,initial:r=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:u="sync",propagate:c=!1,anchorX:f="left"})=>{let[y,g]=(0,p.oO)(c),w=(0,a.useMemo)(()=>m(e),[e]),b=c&&!y?[]:w.map(h),x=(0,a.useRef)(!0),k=(0,a.useRef)(w),E=(0,l.h)(()=>new Map),[C,R]=(0,a.useState)(w),[A,M]=(0,a.useState)(w);(0,v.L)(()=>{x.current=!1,k.current=w;for(let e=0;e<A.length;e++){let t=h(A[e]);b.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[A,b.length,b.join("-")]);let S=[];if(w!==C){let e=[...w];for(let t=0;t<A.length;t++){let r=A[t],n=h(r);b.includes(n)||(e.splice(t,0,r),S.push(r))}"wait"===u&&S.length&&(e=S),M(m(e)),R(w);return}let{forceRender:D}=(0,a.useContext)(i.p);return(0,n.jsx)(n.Fragment,{children:A.map(e=>{let a=h(e),i=(!c||!!y)&&(w===A||b.includes(a));return(0,n.jsx)(d,{isPresent:i,initial:(!x.current||!!r)&&void 0,custom:i?void 0:t,presenceAffectsLayout:s,mode:u,onExitComplete:i?void 0:()=>{if(!E.has(a))return;E.set(a,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==D||D(),M(k.current),c&&(null==g||g()),o&&o())},anchorX:f,children:e},a)})})}}}]);

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.