1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,794909,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return o}};for(var A in r)Object.defineProperty(a,A,{enumerable:!0,get:r[A]});let i=e.r(555682),s=e.r(908927),n=e.r(605500),l=i._(e.r(35816));function o(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let d=n.Image},657688,(e,t,a)=>{t.exports=e.r(794909)},546925,e=>{"use strict";var t=e.i(247167);let a="useyourstory.ai",r={IMAGES:t.default.env.GCS_BUCKET_IMAGES||"yourstory-images",VIDEOS:t.default.env.GCS_BUCKET_VIDEOS||"yourstory-videos",FILES:t.default.env.GCS_BUCKET_FILES||"yourstory-user-content"};t.default.env.NEXT_PUBLIC_STORAGE_URL||r.IMAGES,e.s(["DOMAIN",0,a,"DOMAIN_CONFIG",0,{domain:a,subdomains:{backend:"backend",app:"app",www:"www"},emails:{noreply:"noreply",support:"support",sales:"sales",hello:"hello",admin:"admin",team:{shawn:"shawn",shawnD:"shawn-d",luke:"luke",arushi:"arushi"}},legacyDomain:"yourstory.education"},"GCS_BASE_URL",0,"https://storage.googleapis.com","GCS_BUCKETS",0,r])},39875,e=>{"use strict";var t=e.i(271645);let a=t.forwardRef(function({title:e,titleId:a,...r},A){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":a},r),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["MagnifyingGlassIcon",0,a],39875)},492737,e=>{"use strict";var t=e.i(546925);let a="videos";function r(e,a){let r={images:t.GCS_BUCKETS.IMAGES,videos:t.GCS_BUCKETS.VIDEOS,files:t.GCS_BUCKETS.FILES}[e]||e;return`${t.GCS_BASE_URL}/${r}/${a}`}function A(e){return r("images",`student/full-body/${e}.webp`)}function i(e,t="mp4"){return r(a,`marketing/home/${e}.${t}`)}function s(e,t){return r("files","default"===e?`voice-samples/default/${t}.mp3`:`voice-samples/custom/${t}.mp3`)}function n(e){return r(a,e)}e.s(["getMarketingHeroVideoUrl",()=>i,"getStudentFullBodyImageUrl",()=>A,"getVideoUrl",()=>n,"getVoiceSampleUrl",()=>s],492737)},808341,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return i}};for(var A in r)Object.defineProperty(a,A,{enumerable:!0,get:r[A]});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},479520,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return p},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return b}};for(var A in r)Object.defineProperty(a,A,{enumerable:!0,get:r[A]});let i=e.r(555682),s=e.r(190809),n=e.r(843476),l=i._(e.r(174080)),o=s._(e.r(271645)),d=e.r(742732),c=e.r(922737),u=e.r(808341),g=new Map,m=new Set,h=e=>{let{src:t,id:a,onLoad:r=()=>{},onReady:A=null,dangerouslySetInnerHTML:i,children:s="",strategy:n="afterInteractive",onError:o,stylesheets:d}=e,u=a||t;if(u&&m.has(u))return;if(g.has(t)){m.add(u),g.get(t).then(r,o);return}let h=()=>{A&&A(),m.add(u)},f=document.createElement("script"),b=new Promise((e,t)=>
1{f.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),f.addEventListener("error",function(e){t(e)})}).catch(function(e){o&&o(e)});i?(f.innerHTML=i.__html||"",h()):s?(f.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",h()):t&&(f.src=t,g.set(t,b)),(0,c.setAttributesFromProps)(f,e),"worker"===n&&f.setAttribute("type","text/partytown"),f.setAttribute("data-nscript",n),d&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=e,t.appendChild(a)})}})(d),document.body.appendChild(f)};function f(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function b(e){e.forEach(f),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function x(e){let{id:t,src:a="",onLoad:r=()=>{},onReady:A=null,strategy:i="afterInteractive",onError:s,stylesheets:c,...g}=e,{updateScripts:f,scripts:b,getIsSsr:x,appDir:p,nonce:v}=(0,o.useContext)(d.HeadManagerContext);v=g.nonce||v;let w=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||a;w.current||(A&&e&&m.has(e)&&A(),w.current=!0)},[A,t,a]);let y=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!y.current){if("afterInteractive"===i)h(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}));y.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(f?(b[i]=(b[i]||[]).concat([{id:t,src:a,onLoad:r,onReady:A,onError:s,...g,nonce:v}]),f(b)):x&&x()?m.add(t||a):x&&!x()&&h({...e,nonce:v})),p){if(c&&c.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!a)return g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,n.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...g,id:t}])})`}});else return l.default.preload(a,g.integrity?{as:"script",integrity:g.integrity,nonce:v,crossOrigin:g.crossOrigin}:{as:"script",nonce:v,crossOrigin:g.crossOrigin}),(0,n.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([a,{...g,id:t}])})`}});"afterInteractive"===i&&a&&l.default.preload(a,g.integrity?{as:"script",integrity:g.integrity,nonce:v,crossOrigin:g.crossOrigin}:{as:"script",nonce:v,crossOrigin:g.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let p=x;("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},3303,(e,t,a)=>{t.exports=e.r(479520)},299656,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303);function A({videoId:e,autoplay:A=!0,loop:i=!0,autopause:s=!1,muted:n=!1,title:l="Video Player"}){let[o,d]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{d(!0)},[]),!o)return(0,t.jsx)("div",{className:"w-full h-full bg-black"});let c=`https://player.vimeo.com/video/${e}?autoplay=${+!!A}&loop=${+!!i}&autopause=${+!!s}&muted=${+!!n}&badge=0&player_id=0&app_id=58479`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{src:c,allow:"autoplay; fullscreen; picture-in-picture; clipboard-write",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},title:l}),(0,t.jsx)(r.default,{src:"https://player.vimeo.com/api/player.js"})]})}var i=e.i(492737);e.s(["Video",0,({videoKey:e,vimeoId:a=0,customPath:r,autoplay:s=!0,loop:n=!0,muted:l=!0,controls:o=!1,className:d,forceConsistentSize:c=!1})=>{let u=a>0,g=r?(0,i.getVideoUrl)(`${r}/${e}.mp4`):(0,i.getMarketingHeroVideoUrl)(e);return(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("div",{className:"w-full",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)("div",{style:{padding:"61.99% 0 0 0",position:"relative",height:"auto"},className:d||"w-full max-w-[600px] rounded-2xl overflow-hidden mx-auto",children:(0,t.jsx)(A,{videoId:a,autoplay:!1,loop:n,autopause:!1,muted:l})})}),(0,t.jsx)("div",{className:"hidden md:block",children:c?(0,t.jsx)("div",{style:{padding:"61.99% 0 0 0",position:"relative",height:"auto",backgroundColor:"black"},className:d||"w-full max-w-[600px] rounded-2xl overflow-hidden",children:(0,t.jsx)("video",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"},className:"rounded-2xl",autoPlay:s,muted:l,loop:n,controls:o,playsInl
1ine:!0,preload:"metadata",onError:()=>{},onLoadedData:()=>{},children:(0,t.jsx)("source",{src:g,type:"video/mp4"})})}):(0,t.jsx)("video",{className:d||"mx-auto max-w-full h-auto rounded-2xl",style:{display:"block",maxHeight:"65vh"},autoPlay:s,muted:l,loop:n,controls:o,playsInline:!0,preload:"metadata",onError:()=>{},onLoadedData:()=>{},children:(0,t.jsx)("source",{src:g,type:"video/mp4"})})})]}):(0,t.jsx)(t.Fragment,{children:c?(0,t.jsx)("div",{style:{padding:"61.99% 0 0 0",position:"relative",height:"auto",backgroundColor:"black"},className:d||"w-[80vw] sm:w-[50vw] rounded-2xl overflow-hidden",children:(0,t.jsx)("video",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"},className:"rounded-2xl",autoPlay:s,muted:l,loop:n,controls:o,playsInline:!0,preload:"metadata",onError:()=>{},onLoadedData:()=>{},children:(0,t.jsx)("source",{src:g,type:"video/mp4"})})}):(0,t.jsx)("video",{className:d||"mx-auto max-w-full h-auto rounded-2xl",style:{display:"block",maxHeight:"65vh"},autoPlay:s,muted:l,loop:n,controls:o,playsInline:!0,preload:"metadata",onError:()=>{},onLoadedData:()=>{},children:(0,t.jsx)("source",{src:g,type:"video/mp4"})})})})})}],299656)},604834,e=>{e.v("/_next/static/media/k8.12a1279d.webp")},792872,e=>{e.v("/_next/static/media/p0.36078fce.webp")},304331,e=>{e.v("/_next/static/media/p1.04d43627.webp")},361040,e=>{e.v("/_next/static/media/p2.acb44102.webp")},810770,e=>{e.v("/_next/static/media/ph.0e26b471.webp")},848195,e=>{e.v("/_next/static/media/g11.16193a80.webp")},280568,e=>{e.v("/_next/static/media/g4.9b55096e.webp")},702376,e=>{e.v("/_next/static/media/g7.128d7981.webp")},74511,e=>{e.v("/_next/static/media/g8.59a7909e.webp")},129575,e=>{e.v("/_next/static/media/g9.855de4b6.webp")},840027,e=>{e.v("/_next/static/media/andy.bff03ba2.jpeg")},527169,e=>{e.v("/_next/static/media/charter.5b8344aa.webp")},546620,e=>{e.v("/_next/static/media/danial.f5ff3c21.jpg")},9566,e=>{e.v("/_next/static/media/jenny.fc83e4c8.jpg")},536090,e=>{e.v("/_next/static/media/kayla.48d6c790.jpg")},477586,e=>{e.v("/_next/static/media/margot.ca0e2177.jpeg")},621084,e=>{e.v("/_next/static/media/nathan.a73c2678.jpg")},752559,e=>{e.v("/_next/static/media/quynh.39cd8a59.jpg")},388156,e=>{e.v("/_next/static/media/rachel.cc04f040.jpeg")},894390,e=>{e.v("/_next/static/media/yasmine.8135751f.jpeg")},66789,e=>{e.v("/_next/static/media/logo.e93c018e.webp")},881966,e=>{"use strict";e.s(["getSearchLink",0,e=>{let t={iGrade:void 0===e.grade||null===e.grade?void 0:String(e.grade),iSubject:e.subject||void 0,oCharacter:e.oCharacter,oTopic:e.oTopic},a=[];e.query&&a.push(e.query),e.character&&a.push(e.character),e.topic&&a.push(e.topic),a.length&&(t.iQuery=a.join(", "));let r=new URLSearchParams(Object.fromEntries(Object.entries(t).filter(([e,t])=>void 0!==t))).toString();return`/search?${r}`},"outputFields",0,["oCharacter","oTopic"]])},229985,365677,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=a.forwardRef(function({title:e,titleId:t,...r},A){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z",clipRule:"evenodd"}))});e.s(["PlayIcon",0,r],365677);let A=a.forwardRef(function({title:e,titleId:t,...r},A){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z",clipRule:"evenodd"}))});var i=e.i(299656);function s({videoKey:e,vimeoId:s,customPath:n,showMuteButton:l=!0}){let[o,d]=(0,a.useState)(!0),[c,u]=(0,a.useState)(!0),[g,m]=(0,a.useState)(0),[h,f]=(0,a.useState)(0),[b,x]=(0,a.useState)(!1),[p,v]=(0,a.useState)(null),w=(0,a.useRef)(null),y=(0,a.useRef)(null),E=(0,a.useRef)(void 0),k=e=>{let t=Math.floor(e/60),a=Math.floor(e%60);return`${t}:${a.toString().padStart(2,"0")}`},I=(0,a.useCallback)(()=>{w.current&&(c?w.current.pause():w.current.play(),u(!c))},[c]),B=(0,a.useCallback)(()=>{w.current&&(w.current.muted=!o),d(!o)},[o]),j=()=>{E.current&&clearTimeout(E.current),x(!0)};return(0,a.useEffect)(()=>{let e=y.current?.querySelector("video");if(e){w.current=e,e.readyState>=1&&f(e.duration),e.paused||u(!0);let t=()=>m(e.currentTime),a=()=>f(e.duration),r=()=>u(!0),A=()=>u(!1);e.addEventListener("timeupdate",t),e.addEventListener("loadedmetadata",a),e.addEventListener("play",r),e.addEventListener("pause",A);let i=new ResizeObserver(e=>{for(let t of e)v(t.contentRect.width)});return i.observe(e),()=>{e.removeEventListener("timeupdate",t),e.removeEventListener("loadedmetadata",a),e.removeEventListener("play",r),e.removeEventListener("pause",A),i.disconnect()}}},[]),(0,a.useEffect)(()=>{w.current&&(w.current.muted=o)},[o]),(0,a.useEffect)(()=>()=>{E.current&&clearTimeout(E.current)},[]),(0,t.jsx)("div",{ref:y,className:"relative group",onMouseEnter:j,onMouseLeave:()=>{x(!1)},onMouseMove:()=>{b&&j()},children:(0,t.jsxs)("div",{className:"relative inline-block w-full",children:[(0,t.jsx)(i.Video,{videoKey:e,vimeoId:s,customPath:n,autoplay:!0,loop:!0,muted:o,controls:!1}),l&&(0,t.jsx)("button",{onClick:B,className:" absolute top-fluid-xs left-1/2 transform -translate-x-1/2 bg-black/70 hover:bg-black/80 text-white text-fluid-xs font-medium btn-xs !py-0 px-fluid-xs rounded transition-all duration-200 hover:scale-105 shadow-lg z-10 ","aria-label":o?"Unmute video":"Mute video",children:o?"Unmute":"Mute"}),(0,t.jsx)("div",{className:` 2 hidden md:flex 3 absolute inset-0 justify-center 4 transition-opacity duration-300 ease-in-out 5 ${b?"opacity-100":"opacity-0 pointer-events-none"} 6 `,children:(0,t.jsxs)("div",{className:"relative",style:{width:p?`${p}px`:"100%",maxWidth:"100%"},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-trans
6parent to-black/30 rounded-2xl"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("button",{onClick:I,className:"bg-black/80 hover:bg-black rounded-full ","aria-label":c?"Pause":"Play",children:c?(0,t.jsx)(A,{className:"w-10 h-10 text-primary"}):(0,t.jsx)(r,{className:"w-10 h-10 text-primary"})})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-fluid-xs",children:(0,t.jsx)("div",{className:"bg-black/60 backdrop-blur-sm rounded-lg px-fluid-xs py-0.5",children:(0,t.jsxs)("div",{className:"flex items-center gap-fluid-xs",children:[(0,t.jsx)("input",{type:"range",min:"0",max:h||1,value:g,onChange:e=>{let t=parseFloat(e.target.value);w.current&&(w.current.currentTime=t),m(t)},className:"flex-1 h-1 bg-gray-600 rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2.5 [&::-webkit-slider-thumb]:h-2.5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-thumb]:w-2.5 [&::-moz-range-thumb]:h-2.5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0",style:{background:h>0?`#4b5563 ${g/h*100}%)`:"#4b5563"}}),(0,t.jsxs)("div",{className:"text-white text-fluid-xs flex-shrink-0",children:[k(g)," / ",k(h)]})]})})})]})})]})})}e.s(["HeroVideo",()=>s],229985)},652718,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(656840);e.s(["LocalImage",0,e=>(0,t.jsx)(a.default,{...e,alt:e.alt,loader:r.default})])},421571,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7ef1b441e7fe5eac5cb3314103c366ff60bbdbda9d",t.callServer,void 0,t.findSourceMapURL,"generateInlineImageAction");e.s(["generateInlineImageAction",()=>a])},505540,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("784186b58bb2e180afaa7f0460d2f0ab63b4b21473",t.callServer,void 0,t.findSourceMapURL,"logAIError");e.s(["logAIError",()=>a])},385468,e=>{"use strict";var t=e.i(271645);let a=t.forwardRef(function({title:e,titleId:a,...r},A){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":a},r),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))});e.s(["MagnifyingGlassIcon",0,a],385468)},296080,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("40b2f1ad86aa8abe45417850e83ee6a4b1813ab8db",t.callServer,void 0,t.findSourceMapURL,"checkCharacterImageStatus");e.s(["checkCharacterImageStatus",()=>a])},305789,e=>{"use strict";var t=e.i(843476),a=e.i(446250);e.s(["default",0,function(){return(0,t.jsx)("div",{className:"min-h-screen flex justify-center items-center",children:(0,t.jsx)(a.LoadingDots,{size:"lg"})})}],305789)},607001,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(843734);e.s(["Message",0,({data:{role:e,content:A,characterName:i,aiSuggested:s},isLast:n,children:l,hasMultipleCharacters:o=!1,showAISuggestedIndicator:d=!1,onContextMenu:c,sessionId:u,messageId:g,resolvedInlineImages:m,subject:h,topic:f})=>{let b=(0,a.useRef)(null),x="assistant"===e,p=!0===s;return(0,a.useEffect)(()=>{n&&b.current?.scrollIntoView({behavior:"auto",block:"end"})},[n]),(0,t.jsx)("div",{className:`chat ${x?"chat-start":"chat-end"}`,ref:b,onContextMenu:c,"data-character":i||"",children:(0,t.jsxs)("div",{className:`chat-bubble ${x?"chat-bubble-primary bg-box-info-bg/80 text-box-info-text":d&&p?"bg-box-success-bg/80 text-box-success-text":"chat-bubble-secondary bg-gray-400/80 text-box-neutral-text"}`,children:[d&&p&&(0,t.jsx)("div",{className:"mb-fluid-xs",children:(0,t.jsx)("span",{className:"bg-box-success-bg text-box-success-text px-fluid-xs py-0.5 rounded-full text-xs font-bold",children:"ð¡ AI Generated"})}),x&&i&&o&&(0,t.jsx)("div",{className:"font-semibold text-fluid-xs opacity-75 mb-1",children:i}),(0,t.jsx)("div",{className:"p-1 rounded-lg",children:(0,t.jsx)(r.Markdown,{content:A,sessionId:u,messageId:g,resolvedInlineImages:m,subject:h,topic:f})}),l&&(0,t.jsx)("div",{className:"mt-fluid-xs",children:l})]})})}])},832161,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=a.forwardRef(function({title:e,titleId:t,...r},A){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{d:"M8 1a2 2 0 0 0-2 2v4a2 2 0 1 0 4 0V3a2 2 0 0 0-2-2Z"}
6),a.createElement("path",{d:"M4.5 7A.75.75 0 0 0 3 7a5.001 5.001 0 0 0 4.25 4.944V13.5h-1.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-1.5v-1.556A5.001 5.001 0 0 0 13 7a.75.75 0 0 0-1.5 0 3.5 3.5 0 1 1-7 0Z"}))});var A=e.i(39024);e.s(["Speak",0,e=>{let[i,s]=(0,a.useState)(!1),[n,l]=(0,a.useState)(!1),o=(0,a.useRef)(void 0),d=(0,a.useRef)(""),c=!!(window.SpeechRecognition||window.webkitSpeechRecognition),u=async()=>{o.current&&o.current.stop()};return(0,t.jsx)("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},className:"w-12 h-12",children:(0,t.jsx)(A.default,{content:c?"Press and hold to speak":"Speech recognition not supported in this browser",children:(0,t.jsx)("button",{onPointerDown:()=>{let t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t)return void console.warn("[Speak] SpeechRecognition API not available in this browser");let a=new t;o.current=a,a.lang="en-US",a.interimResults=!0,a.onstart=()=>{s(!0),d.current=""},a.start(),a.onresult=e=>{let t="";for(let a=0;a<e.results.length;a++)for(let r=0;r<e.results[a].length;r++)t+=e.results[a][r].transcript;d.current=t},a.onend=()=>{s(!1),d.current&&e.onDone(d.current)},a.onerror=e=>{let t=e.error||"unknown";console.error(`[Speak] SpeechRecognition error: ${t}`),s(!1),l(!0),setTimeout(()=>l(!1),1500)}},onPointerUp:u,onContextMenu:e=>e.preventDefault(),"aria-label":"Speak",disabled:!c,children:(0,t.jsx)(r,{className:`w-8 h-8 transition-colors ${i||n?"text-red-500":""} ${!c?"opacity-40":""}`})})})})}],832161)},667885,e=>{e.v("/_next/static/media/admins.9b449952.webp")},546348,e=>{e.v("/_next/static/media/students.7f5d7735.webp")},233716,e=>{e.v("/_next/static/media/teachers.d85b6c14.webp")},181866,e=>{"use strict";let t={src:e.i(66789).default,width:1024,height:1024,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRvYAAABXRUJQVlA4TOkAAAAvB8ABAM1VICICHghADgIAAIDzoDCihg8KAAAAAAAAAAAAAAAAAAAAAAAAAAACIAAAHsEHYPasXREAAB4ICA4CAADA+d/79jzDNKEEAAAAAQAAAAAAAAAAAAAAAAAAAQAGAAAAAAMSb8YAHghaDgIAAMD5vx8DcgUTEgAAABAAAAAAAAAAAAAAAAAAAAAAAEAABgAYBLbBLrnIBoBfFz0iAJsuXQSglziv3Ua+jno85jUAjJlcX4t5p6fMEvEDWP9tbte0FekpvxafAZi9rXcf7RzWreex5A/ApK7Wt127r2ojqQM+IQh4AQA="};e.s(["default",0,t])},908186,769481,e=>{"use strict";var t=e.i(271645);let a=t.forwardRef(function({title:e,titleId:a,...r},A){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":a},r),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.25 6.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM15.75 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM2.25 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM6.31 15.117A6.745 6.745 0 0 1 12 12a6.745 6.745 0 0 1 6.709 7.498.75.75 0 0 1-.372.568A12.696 12.696 0 0 1 12 21.75c-2.305 0-4.47-.612-6.337-1.
6684a.75.75 0 0 1-.372-.568 6.787 6.787 0 0 1 1.019-4.38Z",clipRule:"evenodd"}),t.createElement("path",{d:"M5.082 14.254a8.287 8.287 0 0 0-1.308 5.135 9.687 9.687 0 0 1-1.764-.44l-.115-.04a.563.563 0 0 1-.373-.487l-.01-.121a3.75 3.75 0 0 1 3.57-4.047ZM20.226 19.389a8.287 8.287 0 0 0-1.308-5.135 3.75 3.75 0 0 1 3.57 4.047l-.01.121a.563.563 0 0 1-.373.486l-.115.04c-.567.2-1.156.349-1.764.441Z"}))});e.s(["UserGroupIcon",0,a],908186);let r=t.forwardRef(function({title:e,titleId:a,...r},A){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:A,"aria-labelledby":a},r),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM12.75 9a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25V9Z",clipRule:"evenodd"}))});e.s(["PlusCircleIcon",0,r],769481)},962120,e=>{"use strict";let t={src:e.i(604834).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRiIBAABXRUJQVlA4TBUBAAAvB8ABAM1VICICHggACAIAAIDvtBahAbARDCMAAGMDAAAAAAAYAGAAAADgbcAAgweAvc1j3m6fmQAAAPBAAHIQAAAAzn//fc8UgRECAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIImxz1bV13kgADkIAAAA57/+/e01+xIEAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQIAIQTWt3yKTZSchIOqeh/DqvFbd8q/kyx+1HLioJDAa5kKEHYWwJMzjjVwXIITODd8TLSq13X3bMVqrLjnXbi8iABriIt1ph67MpaWMY4XQg+28DPu6fpgDT/zBnz7XMSjXa3tAx3KimuIMpOajnc68GuNyHLjg8h00uTE8T3wBAA=="},a={src:e.i(792872).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRgYBAABXRUJQVlA4TPoAAAAvB8ABAM1VICICHghADgIAAID/+klAAAQAAAICAgAAAAAAAAAAAAAAAAAAAAAAAAQSEjFVk21l2z0AAIAHgpaECAAAcP7v3zQ4kgQCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl2xaV+R4IWg4CAADA+b93a7sCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEDMpB85PoiJGZ1Pa8yxatdPWKoSxzOs77Rs+X9kGNQBFggfQX83bVKAuYAhYI8+lAxAnQxUVH26s+e2ju1JJSSRLMtbWxvLft+9T+nBhWuyD/prXvcV7CPtTxv1CeM05YtJFAkX"},r={src:e.i(304331).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRg4BAABXRUJQVlA4TAIBAAAvB8ABAM1VICICHgiADQIAAIBt+3rOAQCICKADAACAAAAAAAAAAAAAAAAAAAAAAAABIdJRRLrKfgcAAPBAAG4YAQAAzv8uS7uV2gB4DwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAapt0pOeBgCMxAgAAnP/ktofnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhBld9sIkMsEYWkvdXHvtuvVQALVlLx+L+n3yPNCAxgUBl3fkP99+7uetHMAqW8xbWWLt+Hji4+BAAxNu9HjLqXz1iVIgGIeGvWOhSn09wPUaLUxbJGUzLfZ39+R16b6zNybWTa2ss4fxZJAAE="},A={src:e.i(361040).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRhQBAABXRUJQVlA4TAgBAAAvB8ABAM1VICICHgiADQIAAICZ6SNr/U5wAgEAAAAABAAAAAAAAAAAAAAAAAAAAAAAAIAgF6nv/wEAADwQgBhEAACA87+7tZTtiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABAUgCCDoBdb54EA5CAAAACc/1//WhIAjAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAFLL+v1f5Hmv0pCzu/VaGM926lPA7OAn0m+k5Tmm26deTTSMuCJ6dvtKwcZjVAK9gDX81ZW9yKjZKId/bWpqJPdTqq171aOmapsSgZi+kLqYdLZ8NYhznl8d/hicDXL+jJuJEGfs8gYUsYV8Ox8aRFYIUgA="},i={src:e.i(810770).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRigBAABXRUJQVlA4TBwBAAAvB8ABAM1VICICHggADiIAAABKhRABAEAAJQAgTEAAAAAAAAAAAAACCEAAIASM4MGkEgJl1ppVu2aRBwAA8EAAbBAAAADOPz79Ja96JQoKAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoPxH7739Pg8EKAcVAADg/G937WWWIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfB+RlC13ty4yTZY/JTP7nJcQPIYXSy2PP7IN5Wz1NzmP336t8AWmRveWFOZx7wb1t7NfR7P0v/BCt0X9ptqHVp9AJgWdB1Vdc8My2q6fJd1XtR0IlrrxanokQVRzw3UUsjOSAQdjZ2SjBVziL9gH5vFS+ii53oAy90VFvn5RUQBZYwg7AQ=="},s={src:e.i(848195).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRhwBAABXRUJQVlA4TBABAAAvB8ABAM1VICICHgjQDiIAAIBrpKZYBYKrIIVIhAAAgAAAAAAAAAAAAAAAAAAAAJAAEBYgVfJD+Uo9AAAAHghACgMAAMD5/3dV8TM2DAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAOJTf+9BwJwhAAAAHD+233/1YeAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIeKr3bbIFiPmb6CmQxWeGTMnOtndpYstU0J9X0W75wDFnvIP15VgFy/LW8mQG98cEewmMCQ4+In+d4ZiBDFYvUAjBvXCLrBkU6byLPjJgKRvukYcFqTQq26x7JBztuQcqqYJNNcjq4669bri76Lv0Pk3mzU63qN7Tg=="},n={src:e.i(280568).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRhoBAABXRUJQVlA4TA4BAAAvB8ABAM1VICICHggADiIAAAAZ1CiRkAAUggAAAAAAAAAAAAAAAAAAAACABAKAFCD/2KKd0SrIttxUAQAAeCAAOQgAAADn/7f//WozElOAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQSlSdBwKQAgkAAHD+U7O7XRAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAeIS/rZ3IyX+eXO7nj4ZExa/UvCwfFPgZusMTmFmLCWgvdUNCu59UD7uo26kARBKBCIojiRg1o71soKYZQQBkJUlGOv7zkknQSa6gfuh2C99SZ7NHHJ/vEvLvIrDzZe76cH9bNOua45D0cZnL5Ns1+vmF9qhqLAc="},l={src:e.i(702376).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRv4AAABXRUJQVlA4TPEAAAAvB8ABAM1VICICHgiADQIAAIC3v5oUQE8EKChRgQgCAAAAAAAAAAAAAAAAAAAEAIQfCELgyIHItRMAAAA8EJIkOAAAgPOvuQcBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAtj0QtCIGAACA83+/WgYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8DuqiL17/ti61Wlv52+u+4XwDju2S/fJKbrQpdxw4lYaqr1vDO8chknFo0aXy07/aqtOjeiIMlRaoA0xaZeQ8soibx1D
6xphi8EIWkAW+EfcenrYTzQ7uRKW39xyU5gcAA=="},o={src:e.i(74511).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRvIAAABXRUJQVlA4TOUAAAAvB8ABAM1VICICHgiADQIAAAD37e8uTwXnAQAACAAAAAAAAAAAAAAAAAIAAAAAAUAAEAB4Cb/VpTcAAAAPZCMHAAAA4PxzgwEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfDwQchwEAAOD87z4tAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgoPaJXP5nLWFznM6eU87g2e3q8qN5PTZQcdU4myiTDX7CD12Rl6AK9Ns6y6IITFS400RuJIAyv6bjficXH7VAchGZzpaxO+RT3kJnuYEcw54mlRIBAA=="},d={src:e.i(129575).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRiYBAABXRUJQVlA4TBoBAAAvB8ABAM1VICICHgiADQIAAIBP9yuJngCCEAgQBQCAAAAAAAAAAAAAAAAAgAAAIACgQPC4iPT/Nd0DAADwQABQGAEAAM7/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0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCT/hPoxqXkEHIuBBs3dVzjd+fauaNH3bmzqK1rH//Z"},u={src:e.i(527169).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRtgAAABXRUJQVlA4TMwAAAAvB8ABAM1VICICHgiADQIAAID3KPBUIAkAQSABAQAAAAAAAAAAAAAAAAAAQCgEEECoGJAgr65SvY8BAAA8EAkAAAAAgPNvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAHIgEAAAAAcP4NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI5sYQAVipIcG46kIaWgY4NhGEASIhgjiALwCLAImXggyQJCOycvN5oVzceMhoCrHBCBD8eo5/8YF0HGQW0="},g={src:e.i(546620).default,width:225,height:225,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW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AIRAxEAPwBsfhXUJfDyabcGOJ2w24chR1IOPyqPYVE15l+0g6TXVH
6//2Q=="},b={src:e.i(621084).default,width:308,height:301,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCz5mof2rDKsVz/AGv9sMRfYQWbqf8AgAH4YNX7vtm/s2BqX1dX+K5//9k="},x={src:e.i(752559).default,width:374,height:313,blurWidth:8,blurHeight:7,bl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dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0ndqX9t7SH+y4+9/Fuz6dMf096rTl8xa3P//Z"},v=[{words:"YourStory is excellent because bridges the gap between technology and pedagogy. It gives students greater agency in their learning and builds confidence in navigating a world where AI is increasingly relevant.",person:"Daniel S., 4th and 5th Grade Teacher, The Heschel School",img:g},{words:"Incorporating this tool has been phenomenal. The interactive features make it fun for my studentsâthey love it.",person:"Kayla K., 8th Grade History Teacher, Mill Valley Middle School",img:h},{words:"I'm seeing a big improvement in student learning and retention after my students use YourStory. It opens a new channel for learning.",person:"Quynh N., 3rd Grade Teacher, MLK Jr. Academy",img:x},{words:"YourStory has replaced Google in my classroomâit's a far better jumping-off point for my students for any research.",person:"Jenny G., History Teacher, Kent Middle School",img:m},{words:"My students use YourStory for their scientific research and it's been a game-changer. They can directly interact with the curriculum and are understanding it better already.",person:"Nathan S., Science Teacher, Sausalito Marin City School District",img:b},{words:"I'm seeing the impact of YourStory directly on learning in my class. My
6students can now interact with content which allows them to internalize it in a way they weren't able to before.",person:"Yasmine K., 3rd Grade Teacher, MLK Jr. Academy",img:{src:e.i(894390).default,width:225,height:225,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1kSXv9pbTEPs/Td+Gc/0p6WA//9k="}},{words:"With YourStory, my students are more invested in their learning than ever. It helps me create experiences they actually rememberâand want to talk about. I've built multiple units around it this year, and I'm not looking back.",person:"Charter School Humanities Teacher",img:u},{words:"YourStory does an incredible job of bringing lesser-known figures to life in a way I've never seen before. Their content on Native American leaders, Dolores Huerta, and Filipino figures is both engaging and deeply educational. I especially appreciate how they highlight important voices during heritage months, making history more inclusive and accessible. I used it specifically on the Code Talkers, and the depth of storytelling was outstanding. YourStory is truly setting a new standard for education!",person:"Margot H., Librarian, Marin Primary and Middle School",img:f},{words:"THIS IS GOLD. As a middle school English teacher, YourStory has been a game-changer for my lesson planning and curriculum development. I first used it for a brand marketing unit and now I'm using it for vocabulary building and creative exploration. The sourcing feature was so helpfulâit provided curated, high-quality materials that saved me hours of prep time.\n\nI was so impressed by this platform that I'm already planning to use it for my upcoming Holocaust unit and a unit where my students will interact with an AI to discuss AI itself. YourStory has fully transformed how I approach lesson planning and student engagement.",person:"Rachel H., 8th Grade English Teacher, Mill Valley Middle School",img:p},{words:"YourStory gives me teaching superpowers. It's more than just a toolâit's a revolution in education that's happening right now. It now guides my day-to-day work as a teacher and takes my instruction to a whole different level.\n\nI can now bring in voices like Henry David Thoreau or Mahatma Gandhi directly into my classroom and have my students lead first-person discussions with them. They're now making contact with these characters and it's shaping their opinions. It encourages them to think critically about different perspectives of history, and I notice my students' confidence in the material already improving.\n\nOur school also has a 70% Hispanic student population... YourStory plays a pivotal role for these students because it meets them where they are at and is highly personalized.\n\nThe platform opens new avenues for learning and there are so many ways it can be used. It's so good that I now use it at home with my kids.",person:"Andy K., History Teacher, Oklahoma City Public Schools",img:c}],w=[{words:"Enjoyed this new way of learning and I think it is creative",person:"Student, Grade 4",img:n},{words:"I get to ask questions that I wouldn't be able to ask from a book.",person:"Student, Grade 8",img:o},{words:"It was more <b>interactive</b> and <b>better for focusing</b> because it was fun.",person:"Student, Grade 7",img:l},{words:"It enhanced my research because I got a lot of reliable info in <b>a matter of seconds.</b>",person:"Student, Grade 9",img:d},{words:"It definitely was easier to use as a learning method than textbooks or webpages, because you could get a specific response, and only get the information you wanted to know.",person:"Student, Grade 11",img:s}],y=[{words:"My team loves it, I'm all about giving my teachers products that they love.",person:"Middle School Principal",img:a},{words:"YourStory captivates students. It opens up a new way of learning and our teachers have leaned on it for multiple units throughout the year.",person:"Middle School Principal",img:A},{words:"I've seen the transformative power of this tool in our
6classrooms. My teachers love it because it boosts student performance and engagement with class material.",person:"Elementary School Principal",img:r},{words:"YourStory has been high impact for our learning environment. It engages students at every level and supports our teachers with creative ways to deepen instruction. We've seen it used from storytelling in 3rd grade to inquiry projects in 8th grade.",person:"Kâ8 Assistant Principal",img:t},{words:"YourStory has transformed how our students engage with course material. It's not just a tool, it's become part of our curriculum across several subjects on a daily basis. Our educators turn to it consistently to enhance understanding and spark curiosity.",person:"High School Principal",img:i}],E=(e,t)=>({...t,audience:e}),k=[E("teacher",v[0]),E("teacher",v[9]),E("administrator",y[1]),E("teacher",v[4]),E("student",w[1]),E("teacher",v[3]),E("administrator",y[0]),E("teacher",v[8]),E("student",w[2]),E("teacher",v[1]),E("administrator",y[4]),E("teacher",v[7]),E("student",w[3]),E("teacher",v[2]),E("administrator",y[2]),E("teacher",v[6]),E("student",w[0]),E("teacher",v[5]),E("administrator",y[3]),E("student",w[4])];e.s(["teacherTestimonials",0,v,"wallTestimonials",0,k],962120)},389408,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(522016),A=e.i(365677),i=e.i(385468),s=e.i(908186),n=e.i(769481),l=e.i(299656),o=e.i(657688),d=e.i(229985);let c={"Abraham Lincoln":"/learn?experienceId=d43d5384-d5fe-4586-bbfc-f707073d95a6","Ada Lovelace":"/learn?experienceId=6b100761-41de-4330-8fdf-def8b3aeb117","Ada the Robot":"/learn?experienceId=086122f2-7f69-4512-8733-b179f4b92853","Albert Einstein":"/learn?experienceId=6f5b7542-6181-4d43-b6a0-3838ab5f5b28","Astro the Space Explorer":"/learn?experienceId=5fbbc0c8-ba51-463d-aaeb-caff6e9e065b","Bill Nye":"/learn?experienceId=190f2d26-47ac-49bd-a205-b0dd41c5cde3","Benjamin Franklin":"/learn?experienceId=4d0cf5d1-b1e8-4233-a2cd-ed7798c42830","Charles Darwin":"/learn?experienceId=67114900-18c0-4e6c-850c-ea621fcbfe05",Cleopatra:"/learn?experienceId=0d3ce18b-79c3-41f1-a1be-4407a9fafced","Confederate Soldier":"/learn?experienceId=969e5e0f-e465-4946-8000-3fa2431d403b","Diva the DNA":"/learn?experienceId=5b9bb66c-f123-4faa-a6d6-58a3b55b9da0","Frida Kahlo":"/learn?experienceId=f5564dcc-95d7-48b8-8d50-c44dc5ee7eb8","Leonardo da Vinci":"/learn?experienceId=1440364d-fc06-470f-a2b8-7dcb1889bd80","Ludwig van Beethoven":"/learn?experienceId=1860a87a-e7bb-45fb-b07b-f4d24e819090","Marie Curie":"/learn?experienceId=114a578e-7072-418c-8286-2a3b4b2c1bbe","Martin Luther King Jr.":"/learn?experienceId=340a392f-619d-4da6-9ca9-cf01a6a37412",Pythagoras:"/learn?experienceId=cc3b2aa5-5cd5-48d3-bac7-af84f4d19ee2","Union Soldier":"/learn?experienceId=3ffdfe4c-3026-47cc-be68-e54e4ddebdc6","William Shakespeare":"/learn?experienceId=a952aca0-188f-499f-894f-fc652518da5c"};({...c,Algebra:"/learn?experienceId=6a07555e-7089-4c1a-855e-cbdf1483c544","Ancient Egypt":"/learn?experienceId=92476fa3-4b93-49d9-9b8c-448d53e46900","Civil Rights Movement":"/learn?experienceId=b08569e5-3895-4078-8709-516766981158","Climate Change":"/learn?experienceId=e54e8377-b439-4d28-a662-abe54e8db95e","French Language and Culture":"/learn?experienceId=347f4b99-d2a0-4ef6-8cf2-15c7e5ded9a7","Poetry Analysis":"/learn?experienceId=c40c3ed7-c930-4472-87c2-6c6b9767ba95","The Solar System":"/learn?experienceId=6b0c5b31-4f63-4dac-b38c-98b530e85d09","The Water Cycle":"/learn?experienceId=f702f206-ec36-4880-a672-34fe565f137a","To Kill a Mockingbird":"/learn?experienceId=636a1c1a-ca9a-48e5-a8a3-288f7dc112b1","World War II":"/learn?experienceId=8e6fdac9-93bb-45a8-bdc2-b07cf63c6d49",Cleopatra_Ancient_Egypt:"/learn?experienceId=0d3ce18b-79c3-41f1-a1be-4407a9fafced",MLK_Civil_Rights:"/learn?experienceId=340a392f-619d-4da6-9ca9-cf01a6a37412"});var u=e.i(181866),g=e.i(656840);function m(){let e=c["Abraham Lincoln"];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg-marketing-hero-background rounded-3xl p-fluid-xl lg:p-fluid-2xl border border-marketing-hero-border",children:(0,t.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-col xl:flex-row items-center gap-fluid-2xl",children:[(0,t.jsxs)("div",{className:"flex-1 text-center xl:text-left",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center xl:justify-start gap-fluid-md mb-fluid-lg",children:[(0,t.jsx)("div",{className:"bg-white p-1 rounded-2xl shadow-lg",children:(0,t.jsx)(o.default,{src:u.default,alt:"YourStory Logo",width:64,height:64,loader:g.default,className:"flex-shrink-0"})}),(0,t.jsx)("h1",{className:"text-fluid-4xl md:text-fluid-5xl lg:text-6xl font-normal text-marketing-text-primary",children:"YourStory"})]}),(0,t.jsx)("h2",{className:"text-fluid-xl lg:text-fluid-2xl text-marketing-text-secondary mb-fluid-xl max-w-2xl mx-auto xl:mx-0",children:"The first fully teacher-controlled AI assistant for personalized learning, planning, and reviewing student progress."}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-fluid-md justify-center xl:justify-start",children:[(0,t.jsx)(r.default,{href:"/search",className:"btn btn-lg bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 px-fluid-xl rounded-full w-full sm:w-auto",prefetch:!1,children:"Explore experiences"}),(0,t.jsx)(r.default,{href:"/product",className:"btn btn-lg btn-outline bg-marketing-button-secondary-background text-marketing-button-secondary-text border-marketing-button-secondary-border hover:bg-marketing-button-secondary-backgroundHover hover:text-marketing-button-secondary-textHover hover:border-marketing-button-secondary-borderHover px-fluid-xl rounded-full w-full sm:w-auto",children:"Learn more"})]}),(0,t.jsx)("div",{className:"mt-fluid-xl text-fluid-base text-marketing-text-muted",children:"Used by thousands of individuals and 230+ institutions throughout the world."})]}),(0,t.jsx)("div",{className:"flex-1 w-full max-w-lg",children:(0,t.jsxs)("div",{className:"bg-marketing-card-background rounded-3xl shadow-xl p-fluid-lg border border-marketing-card-border hover:border-marketing-hero-accent transition-all duration-300",children:[(0,t.jsx)(d.HeroVideo,{videoKey:"civilwarolder",vimeoId:0x4240467c,customPath:"marketing/home",showMuteButton:!0}),(0,t.jsxs)("div",{className:"text-center mt-fluid-md",children:[(0,t.jsx)("p",{className:"text-fluid-sm text-marketing-text-secondary mb-fluid-md",children:"Step into our vision for the future of immersive education."}),(0,t.jsx)(r.default,{href:e,className:"btn btn-md bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 rounded-full px-fluid-lg",children:"Try it"})]})]})})]})})})})}var h=e.i(95187);let f=(0,h.createServerReference)("40380213736d11e2e74a85110e83ce1a3adb08d88b",h.callServer,void 0,h.findSourceMapURL,"getBatchCharacterImagesDB"),b=(0,h.createServerReference)("40eb927c4c3349be72759f2e73b733de373fab0697",h.callServer,void 0,h.findSourceMapURL,"getLearnLinksForNames"),x=({})=>{let[e,A]=(0,a.useState)({}),[i,s]=(0,a.useState)({}),[n,l]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async()=>{let e=p.flat(),[t,a]=await Promise.all([f(e),b(e)]);t.success&&t.data?A(t.data):A({}),a.success&&a.data?s(a.data):s({}),l(!1)})()},[]),(0,t.jsxs)("div",{className:"bg-marketing-background-primary rounded-3xl p-fluid-xl my-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"Featured Experiences"}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-fluid-md",children:p.flat().map((a,A)=>(0,t.jsx)(r.default,{className:"group",href:a in i?i[a]:`/learn?character=${encodeURIComponent(a)}`,children:(0,t.jsxs)("div",{className:"bg-marketing-card-background rounded-2xl overflow-hidden shadow-md hover:shadow-xl hover:border-marketing-hero-accent transition-all border border-marketing-card-border",children:[n?(0,t.jsx)("div",{className:"aspect-square animate-pulse bg-marketing-card-border"}):(0,t.jsx)("img",{src:e[a]||"/logo.webp",alt:a,className:"w-full h-auto group-hover:scale-105 transition-transform duration-300"}),(0,t.jsx)("div",{className:"text-center text-fluid-sm sm:text-fluid-base font-semibold p-fluid-xs sm:p-fluid-md text-marketing-card-heading group-hover:text-marketing-text-accent transition-colors",children:a})]})},A))})]})},p=[["Albert Einstein","Ada Lovelace","Benjamin Franklin","The Water Cycle"],["Marie Curie","The Solar System","Martin Luther King Jr.","Bill Nye"],["Astro the Space Explorer","Diva the DNA","Ada the Robot","Abraham Lincoln"]];var v=e.i(652718);let w=()=>{let e=(0,a.useRef)(null),[t,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let a=setInterval(()=>{if(t)return;let a=e.current;a&&(a.scrollLeft+a.clientWidth+10>=a.scrollWidth?a.scrollTo({left:0,behavior:"instant"}):a.scrollBy({left:2,behavior:"smooth"}))},10);return()=>clearInterval(a)},[t]),(0,a.useEffect)(()=>{let t=e.current;if(!t)return;let a=()=>r(!0),A=()=>r(!1);return t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",A),()=>{t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",A)}},[]),e};function y(){let e=w();return(0,t.jsxs)("div",{className:"bg-marketing-background-primary rounded-3xl p-fluid-xl my-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"Trusted by 230+ Institutions"}),(0,t.jsx)("div",{className:"flex items-center w-full overflow-auto space-x-fluid-xl py-fluid-md scrollbar-hidden","aria-label":"Institution logos carousel",ref:e,children:E.map((e,a)=>(0,t.jsx)("div",{className:"carousel-item flex-shrink-0 bg-marketing-card-border p-fluid-md rounded-2xl",children:(0,t.jsx)(v.L
6ocalImage,{src:e,alt:"Institution logo",width:200,height:80,className:"h-20 w-auto object-contain opacity-80 hover:opacity-100 transition-opacity"})},a))})]})}let E=["/images/marketing/institutions/tamdistrict.webp","/images/marketing/investors/btsdistict.png","/images/marketing/institutions/Heschel-Day-School.png","/images/marketing/institutions/mlk.png","/images/marketing/institutions/MCOE.jpg","/images/marketing/institutions/mvschools.png","/images/marketing/institutions/sanandeas.png","/images/marketing/institutions/jfkelementary.png","/images/marketing/institutions/tamiscal.png","/images/marketing/institutions/starhawks.png","/images/marketing/institutions/tam.png","/images/marketing/institutions/smcsd.png","/images/marketing/institutions/MPMS.jpeg","/images/marketing/institutions/archie.png","/images/marketing/institutions/castiloga.png","/images/marketing/institutions/hidden-valley.png","/images/marketing/institutions/redwood.png"],k=()=>{let e=w();return(0,t.jsxs)("div",{className:"bg-marketing-background-primary rounded-3xl p-fluid-xl my-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"Backed by the same investors as"}),(0,t.jsx)("div",{className:"flex items-center w-full overflow-auto space-x-fluid-xl py-fluid-md scrollbar-hidden","aria-label":"Investor logos carousel",ref:e,children:I.map((e,a)=>(0,t.jsx)("div",{className:"carousel-item flex-shrink-0 bg-marketing-card-border p-fluid-md rounded-2xl",children:(0,t.jsx)(v.LocalImage,{src:e,alt:"Investor logo",width:200,height:80,className:"h-20 w-auto object-contain opacity-80 hover:opacity-100 transition-opacity"})},a))})]})},I=["/images/marketing/investors/maven.png","/images/marketing/investors/shef.png","/images/marketing/investors/gumroad.png","/images/marketing/investors/customer.png","/images/marketing/investors/fraction.png"];function B(){return(0,t.jsxs)("div",{className:"bg-marketing-background-primary rounded-3xl p-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"Why Teachers Choose YourStory"}),(0,t.jsx)("div",{className:"mb-fluid-xl",children:(0,t.jsx)(d.HeroVideo,{videoKey:"teachercreate",vimeoId:0x424047f0})}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-fluid-xl",children:[{title:"Steve Jobs saw a future with YourStory",videoKey:"jb",vimeoId:0x4181e6e8},{title:"Watch us at the ISTE conference talking AI in education",videoKey:"IST
6E",vimeoId:0x4181e6d1},{title:"Frustrated teachers want a ChatGPT alternative they control",videoKey:"angry",vimeoId:0x4181e6bf}].map((e,a)=>(0,t.jsxs)("div",{className:"space-y-fluid-md",children:[(0,t.jsx)("h3",{className:"text-fluid-lg font-semibold text-center text-marketing-card-heading min-h-[3rem] flex items-center justify-center",children:e.title}),(0,t.jsx)("div",{className:"bg-marketing-background-secondary rounded-2xl p-fluid-md",children:(0,t.jsx)(l.Video,{videoKey:e.videoKey,vimeoId:e.vimeoId,customPath:"marketing/home",autoplay:!1,loop:!1,muted:!1,controls:!0,forceConsistentSize:!0})})]},a))})]})}var j=e.i(39875),R=e.i(296080);let Q=(0,h.createServerReference)("4056bd53112507a38e6b2650b53fb002de4b88de4d",h.callServer,void 0,h.findSourceMapURL,"searchCharactersAction");var C=e.i(446250);let O=(0,h.createServerReference)("40464121915ee6044671d4a4e541ed1fb09644f186",h.callServer,void 0,h.findSourceMapURL,"getLearnLink");async function S({character:e,isLoading:a=!1}){if(a)return(0,t.jsxs)("div",{className:"bg-marketing-card-background rounded-2xl overflow-hidden shadow-md border border-marketing-card-border animate-pulse",children:[(0,t.jsx)("div",{className:"h-48 bg-marketing-card-border"}),(0,t.jsx)("div",{className:"p-fluid-md",children:(0,t.jsx)("div",{className:"h-6 bg-marketing-card-border rounded"})})]});let A=e.image_url,i=await O({character:e.name,topic:e.name});return(0,t.jsx)(r.default,{href:i,className:"block group",children:(0,t.jsxs)("div",{className:"bg-marketing-card-background rounded-2xl overflow-hidden shadow-md hover:shadow-xl hover:border-marketing-hero-accent transition-all duration-300 border border-marketing-card-border transform hover:-translate-y-1",children:[(0,t.jsx)("div",{className:"aspect-square relative overflow-hidden bg-marketing-background-tertiary",children:e.pending?(0,t.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center bg-marketing-background-tertiary",children:[(0,t.jsx)(C.LoadingDots,{size:"lg"}),(0,t.jsx)("p",{className:"text-fluid-sm text-marketing-text-secondary",children:"Generating image..."}),(0,t.jsx)("p",{className:"text-fluid-xs text-marketing-text-muted mt-1",children:"This may take a moment"})]}):(0,t.jsx)("img",{src:A,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",onError:e=>{e.target.src="/logo.webp"}})}),(0,t.jsx)("div",{className:"p-fluid-md",children:(0,t.jsx)("h3",{className:"text-fluid-lg font-semibold text-marketing-card-heading group-hover:text-marketing-text-accent transition-colors text-center",children:e.name})})]})})}function N({}){let[e,r]=(0,a.useState)(""),[A,i]=(0,a.useState)([]),[s,n]=(0,a.useState)(!1),[l,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(null),u=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{u.current&&clearInterval(u.current)},[]);let g=async()=>{if(!e.trim())return void c("Please enter a search term");u.current&&(clearInterval(u.current),u.current=null),n(!0),c(null),o(!0);try{let t=await Q(e);if(!t.success)throw Error(t.error||"Search failed");if(!t.data)throw Error("Search failed");i(t.data.characters),(e=>{let t=e.filter(e=>e.pending);if(0===t.length)return;u.current&&clearInterval(u.current);let a=0;u.current=setInterval(async()=>{a++;let e=t.map(e=>e.id),r=await (0,R.checkCharacterImageStatus)(e),A=!1;if(r.success&&r.data){let e=r.data;i(t=>t.map(t=>{let a=e.find(e=>e.id===t.id);return a&&a.ready&&t.pending?{...t,image_url:a.image_url,pending:!1}:t})),A=e.some(e=>!e.ready)}(!A||a>=60)&&(clearInterval(u.current),u.current=null)},1e3)})(t.data.characters)}catch(e){c("Failed to search characters. Please try again."),i([])}finally{n(!1)}};return(0,t.jsx)("div",{className:"bg-marketing-background-secondary rounded-3xl p-fluid-xl",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,t.jsxs)("div",{className:"text-center mb-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold mb-fluid-md text-marketing-text-primary",children:"Find Your Experience"}),(0,t.jsx)("p",{className:"text-fluid-lg text-marketing-text-secondary",children:"Search for any experience and start learning with them instantly"})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-fluid-md mb-fluid-xl",children:[(0,t.jsx)("input",{type:"text",value:e,onCh
6ange:e=>r(e.target.value),onKeyPress:e=>{"Enter"===e.key&&g()},placeholder:"Enter an experience...",className:"flex-1 px-fluid-md py-fluid-sm rounded-full border border-marketing-card-border bg-white text-marketing-text-primary placeholder-base-content/40 focus:outline-none focus:border-marketing-hero-accent transition-colors"}),(0,t.jsx)("button",{onClick:g,disabled:s,className:"btn bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 rounded-full px-fluid-xl disabled:opacity-50 disabled:cursor-not-allowed w-full sm:w-auto",children:s?(0,t.jsx)(C.LoadingDots,{size:"sm"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.MagnifyingGlassIcon,{className:"w-5 h-5 mr-fluid-xs"}),"Search"]})})]}),d&&(0,t.jsx)("div",{className:"text-center text-error mb-fluid-md",children:d}),l&&(0,t.jsx)("div",{className:"fade-in",children:s?(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-fluid-lg",children:Array.from({length:4},(e,a)=>(0,t.jsx)(S,{character:{id:`loading-${a}`,name:"",image_url:""},isLoading:!0},a))}):A.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-fluid-lg",children:A.map((e,a)=>(0,t.jsx)("div",{className:"fade-in",style:{animationDelay:`${100*a}ms`},children:(0,t.jsx)(S,{character:e})},e.id))}):(0,t.jsx)("div",{className:"text-center py-fluid-xl",children:(0,t.jsx)("p",{className:"text-marketing-text-secondary text-fluid-lg",children:"No experiences found. Try a different search term."})})})]})})}var D=e.i(881966);let M={src:e.i(667885).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRgoBAABXRUJQVlA4TP4AAAAvB8ABAM1VICICHgiADQIAAIDqr3c7uXgkBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIEKq9BLd2jUAAAAPBNiGAQAA4PzTtFYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwGB279/GAwG2YQAAADj/pNs6HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfm+SyPF0n19iJM3zAhKb7kB1Nr43jgXMsWhOKyH9JjXCChM5i1XXV/FhFpIMxSzuAwSOWlIRc3n/PO/jqlMDdnnroPMBUtYdrKoHwhES0TH32nF+5+Rt4HhS7l+1GsjSVdhCpFprw3oLGA=="},z={src:e.i(546348).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRioBAABXRUJQVlA4TB0BAAAvB8ABAM1VICICHgiADQIAAIA6r86LijygACpAAAEAAAAIAAAAAAAAAABAAQiAAAAghxR4JyEqdfMLAADAAwGwQQAAADj/6/6tqglS4hIIgAAAAAAAAAAAAAAAAAAAAAAAAAAAgHrRiYRSUT2VPBAAGwQAAIDz7/wb9V9PSQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6jThfd+/yHZCVb3uzwEUviXEjVjic1spHNKLbiI3J559brmih/ChpRhsFMob6Ed64LzvG/4geX9AvYtWZNlTGfLbTtknki4AGEsou1psPG094xTGlJ49W2vda6lDozHqkqr3fwinPxkLw3H17Fil3Rw7MYRxdR5Dou9K6uy5rpRRicCxhB0A"};function U(){return(0,t.jsxs)("div",{className:"bg-marketing-background-secondary rounded-3xl p-fluid-xl my-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"Solutions for Everyone"}),(0,t.jsx)("div",{className:"flex flex-col md:flex-row items-center md:items-stretch justify-evenly gap-fluid-lg",children:K.map(([e,a,A,i])=>(0,t.jsxs)("div",{className:"flex-1 p-fluid-xl flex flex-col justify-between items-center space-y-fluid-md bg-marketing-card-background rounded-3xl border border-marketing-card-border shadow-lg hover:border-marketing-card-hoverBorder hover:shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"text-center space-y-fluid-md",children:[(0,t.jsx)("h3",{className:"text-fluid-2xl font-bold text-marketing-card-heading",children:e}),(0,t.jsx)("p",{className:"text-marketing-card-text",children:i})]}),(0,t.jsxs)("div",{className:"space-y-fluid-sm",children:[(0,t.jsx)(r.default,{href:"/for-"+e.toLowerCase(),className:"btn w-full bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 rounded-full",children:"Learn More"}),A.map(([e,a])=>(0,t.jsx)(r.default,{href:a,className:"btn w-full btn-outline bg-marketing-button-secondary-background text-marketing-button-secondary-text border-marketing-button-secondary-border hover:bg-marketing-button-secondary-backgroundHover hover:text-marketing-button-secondary-textHover hover:border-marketing-button-secondary-borderHover rounded-full",children:e},e))]})]},e))})]})}let K=[["Teachers",{src:e.i(233716).default,width:640,height:640,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRiQBAABXRUJQVlA4TBcBAAAvB8ABAM1VICICHggADiIAAAAjMkZsEugBAcQCUAAAKIgQAAAAAAAAAAAAAOABWAUAYhBSjVpSAWWdAQAA8ECAclABAADOf3dtLc23j6BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgBLWntn8zwQoCNUAACA879
6Nu4k7EcIHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF8hOCvd2xaZWIQR1jN7lBZdfyGzjV3oiFys1lH9/9l2oePzVQIIa9O4sqVUc/2PI7qfwm4OOM0n8FFdWLOleBUg8WMSLhr8FMbfq/JsuEKtQ+C09zIZP0+0D+IRIw2xBHIj4O0YuncVnuY15JKf+smiJ+/afl2/13Grred2CwEA"},[["Search for a lesson","/search"]],"Instantly distribute AI-powered lessons to students. Search for any topic, plan a lesson, or upload your whole course outline to instantly bring it to life."],["Students",z,[["Find a Tutor for any subject",(0,D.getSearchLink)({})]],"Get individualized lessons and personalized tutoring. Follow your classroom content and explore on your own!"],["Administrators",M,[["Get Started","/for-administrators"]],"Review activity and guide lessons in your school or institution."]];function L({title:e,description:a,primaryButton:A,secondaryButton:i,variant:s="gradient"}){return(0,t.jsxs)("div",{className:`${"gradient"===s?"bg-gradient-to-r from-marketing-hero-accent to-marketing-cta-background":"bg-marketing-cta-background"} rounded-3xl p-fluid-xl md:p-fluid-2xl text-white text-center`,children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold mb-fluid-md",children:e}),(0,t.jsx)("p",{className:"text-fluid-xl mb-fluid-xl opacity-90 max-w-2xl mx-auto",children:a}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-fluid-md justify-center",children:[(0,t.jsx)(r.default,{href:A.href,className:"btn btn-lg bg-marketing-button-tertiary-background text-marketing-button-tertiary-text hover:bg-marketing-button-tertiary-backgroundHover border-0 rounded-full w-full sm:w-auto",children:A.text}),i&&(0,t.jsx)(r.default,{href:i.href,className:"btn btn-lg bg-marketing-button-outline-background text-marketing-button-outline-text border-marketing-button-outline-border hover:bg-marketing-button-outline-backgroundHover hover:text-marketing-button-outline-textHover hover:border-marketing-button-outline-borderHover rounded-full w-full sm:w-auto",children:i.text})]})]})}let H={teacher:"Teacher",student:"Student",administrator:"Administrator"};function P({testimonials:e,title:a,showReadMoreLink:A=!1}){return(0,t.jsxs)("section",{className:"bg-marketing-background-secondary rounded-3xl p-fluid-xl md:p-fluid-2xl",children:[a&&(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center text-marketing-text-primary mb-fluid-xl",children:a}),(0,t.jsxs)("div",{className:A?"relative max-h-[52rem] overflow-hidden":"",children:[(0,t.jsx)("div",{className:"columns-1 md:columns-2 lg:columns-3 gap-fluid-lg",children:e.map((e,a)=>(0,t.jsx)(T,{testimonial:e},a))}),A&&(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-64 flex items-end justify-center bg-gradient-to-t from-marketing-background-secondary via-marketing-background-secondary/80 to-transparent",children:(0,t.jsx)(r.default,{href:"/testimonials",className:"btn bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 rounded-full",children:"Read More Reviews"})})]})]})}function T({testimonial:e}){let a=e.person.indexOf(","),r=-1===a?e.person:e.person.slice(0,a),A=-1===a?"":e.person.slice(a+1).trim();return(0,t.jsxs)("figure",{className:"break-inside-avoid mb-fluid-lg bg-marketing-card-background rounded-2xl p-fluid-lg shadow-lg",children:[(0,t.jsxs)("figcaption",{className:"flex items-start gap-fluid-md mb-fluid-md",children:[(0,t.jsx)(v.LocalImage,{src:e.img,alt:e.person,className:"h-12 w-12 shrink-0 rounded-full object-cover"}),(0,t.jsxs)("div",{className:"min-w-0 flex-grow",children:[(0,t.jsx)("div",{className:"text-fluid-sm font-semibold text-marketing-card-heading",children:r}),A&&(0,t.jsx)("div",{className:"text-fluid-xs text-marketing-text-secondary",children:A})]}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-marketing-card-backgroundAlt text-marketing-text-accent text-fluid-xs font-medium px-fluid-sm py-fluid-xs",children:H[e.audience]})]}),(0,t.jsx)("blockquote",{children:(0,t.jsx)("p",{className:"text-marketing-card-text text-fluid-sm leading-relaxed whitespace-pre-line",dangerouslySetInnerHTML:{__html:e.words}})})]})}var J=e.i(720565),V=e.i(305789),W=e.i(607001),Y=e.i(832161),F=e.i(505540),G=e.i(218100);class Z extends G.BaseBrain{constructor(){super({messages:[{id:"1",role:"system",content:"Marketing assistant"},{id:"2",role:"assistant",content:"Hi! How can I help you today?"}],isLoading:!1,isUserTyping:!1,isAssistantTyping:!1,isLoadingResponse:!1,context:{role:"student",userId:"",currentPage:"marketing"},suggestions:[],helpTopics:[]})}async processMessage(e){if(!this.messagesInProcess.has(e.id)){this.messagesInProcess.add(e.id);try{this.setState({messages:[...this.state.messages,e],isLoading:!0}),"user"===e.role&&await this.sendToAPI(e)}catch(t){await (0,F.logAIError)(t instanceof Error?{message:t.message,stack:t.stack,name:t.name}:String(t),"assistant-brain","handleNewMessage",{metadata:{messageRole:e.role}}),this.addErrorMessage()}finally{this.setState({isLoading:!1}),this.messagesInProcess.delete(e.id)}}}async sendToAPI(e){try{let e=this.state.messages.filter(e=>"user"===e.role||"assistant"===e.role).map(e=>({role:e.role,content:e.content}
6)),t=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e})}),a=await t.json().catch(()=>({}));if(!t.ok||!a.content)throw Error(a.error||`API returned status ${t.status}`);this.setState({messages:[...this.state.messages,{id:this.generateUniqueId(),role:"assistant",content:a.content}]})}catch(e){throw await (0,F.logAIError)(e instanceof Error?{message:e.message,stack:e.stack,name:e.name}:String(e),"assistant","chat"),e}}addErrorMessage(){let e={id:this.generateUniqueId(),role:"assistant",content:"I apologize, but I encountered an error. Please try again."};this.setState({messages:[...this.state.messages,e]})}reset(){let e={messages:[{id:"1",role:"system",content:this.state.messages[0].content},{id:"2",role:"assistant",content:"Hi! How can I help you today?"}],isLoading:!1,isUserTyping:!1,isAssistantTyping:!1,isLoadingResponse:!1,context:{role:"student",userId:"",currentPage:"marketing"},suggestions:[],helpTopics:[]};this.setState(e)}getMessages(){return this.state.messages}setMessages(e){this.setState({messages:e})}}let q=()=>{let r=(0,a.useMemo)(()=>new Z,[]),{messages:A,input:i,setInput:s,handleInputChange:n,handleSubmit:l,setMessages:o,isLoading:d}=function({api:t="/api/chat",initialMessages:r=[],body:A={},brain:i,onFinish:s,onError:n}={}){let[l,o]=(0,a.useState)(i?i.getState().messages:r),[d,c]=(0,a.useState)(""),[u,g]=(0,a.useState)(!1),[m,h]=(0,a.useState)(),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(i)return i.subscribe(e=>{o(e.messages),g(e.isLoading||!1)})},[i]);let b=(0,a.useCallback)(e=>{c(e.target.value)},[]),x=(0,a.useCallback)(async a=>{let r={...a,id:Date.now().toString()};if(i&&"user"===a.role)return void await i.processMessage(r);if(o(e=>[...e,r]),"user"===a.role){g(!0),h(void 0),f.current&&f.current.abort(),f.current=new AbortController;try{let e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[...l,r],...A}),signal:f.current.signal});if(!e.ok)throw Error(`API returned status ${e.status}`);let a=await e.json(),i={id:Date.now().toString(),role:"assistant",content:a.content||""};o(e=>[...e,i]),s&&s(i)}catch(t){t instanceof Error&&"AbortError"!==t.name&&(e.A(711365).then(async({logAIError:e})=>{await e({message:t.message,stack:t.stack,name:t.name},"chat","request",{pathname:window.location.pathname})}),h(t),n&&n(t))}finally{g(!1),f.current=null}}},[t,A,i,l,n,s]),p=(0,a.useCallback)(e=>{e.preventDefault(),!d.trim()||u||(x({role:"user",content:d.trim()}),c(""))},[d,u,x]);return{messages:l,input:d,setInput:c,handleInputChange:b,handleSubmit:p,append:x,setMessages:o,isLoading:u,error:m}}({brain:r,api:"/api/chat"}),[c,u]=(0,a.useState)(!1),[g,m]=(0,a.useState)([10,10]),[h,f]=(0,a.useState)(!1),[b,x]=(0,a.useState)([0,0]),p=(0,a.useCallback)(async()=>{r.reset()},[r]);(0,a.useEffect)(()=>{let e=e=>{h&&m([b[0]-e.clientX,b[1]-e.clientY])},t=()=>{f(!1)},a=()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)};return h?(window.addEventListener("mousemove",e),window.addEventListener("mouseup",t)):a(),a},[h]);let v=(0,J.usePostHog)();return(0,t.jsxs)("div",{className:`fixed bottom-10 right-10 bg-base-100 p-fluid-xs rounded-xl shadow z-10 flex flex-col ${h?"cursor-grabbing":"cursor-grab"} ${c?"w-7/8 md:w-1/2":""}`,style:{right:g[0],bottom:g[1],height:c?"50vh":"min-content"},onMouseDown:e=>{f(!0),x([e.clientX+g[0],e.clientY+g[1]])},children:[(0,t.jsx)("div",{className:"p-fluid-xs rounded","aria-label":"Assistant",children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("button",{className:"btn-sm btn-primary",onClick:()=>u(!c),children:c?"Close":"Chat now"}),c&&A.length>2&&(0,t.jsx)("button",{onClick:p,className:"btn-sm ml-fluid-xs",children:"Reset"})]})}),c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-fluid-xs overflow-auto grow",children:A.slice(1).map((e,a)=>{let r={id:e.id,role:"user"===e.role||"assistant"===e.role||"system"===e.role?e.role:"assistant",content:"string"==typeof e.content?e.content:JSON.stringify(e.content)};return(0,t.jsx)(W.Message,{data:r,isLast:a===A.length-2},e.id)})}),(0,t.jsxs)("form",{className:"flex space-x-fluid-md mt-fluid-xs",onSubmit:e=>{if(d)return e.preventDefault();v.capture("assistant_interaction"),l(e)},children:[(0,t.jsx)("input",{className:"input input-bordered w-full",value:i,onChange:n,placeholder:"Type a message...","aria-label":"chat input"}),(0,t.jsx)(Y.Speak,{onDone:s}
6),(0,t.jsxs)("button",{className:"btn btn-primary",type:"submit",disabled:d,children:["Send",d&&(0,t.jsx)(V.default,{})]})]})]})]})};var X=e.i(962120);function _(){let[e,o]=(0,a.useState)(0),d=[{title:"Search for Any Experience",description:"Instantly find any character, topic, or lesson across all subjects and grade levels with our powerful search.",videoKey:"search",vimeoId:0x41a6303b,tutorialId:"search",tutorialVimeoId:0x419c7355,icon:i.MagnifyingGlassIcon,color:"bg-accent-science"},{title:"Build any Interactive Content",description:"Adjust language, add details, and shape responses to perfectly match your specific classroom curriculum needs.",videoKey:"personalize",vimeoId:0x4168f110,tutorialId:"create",tutorialVimeoId:0x419c2cd7,icon:n.PlusCircleIcon,color:"bg-accent-art"},{title:"Track Student Progress",description:"Review student conversations, monitor learning progress, and gain insights into student understanding.",videoKey:"studentreview",vimeoId:0x417ccdbe,tutorialId:"teacher",tutorialVimeoId:0x419c7376,icon:s.UserGroupIcon,color:"bg-accent-english"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(N,{}),(0,t.jsx)(y,{}),(0,t.jsx)(P,{testimonials:X.wallTestimonials,title:"YourStory users have superpowers",showReadMoreLink:!0}),(0,t.jsxs)("div",{className:"bg-marketing-background-primary rounded-3xl p-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold text-center mb-fluid-xl text-marketing-text-primary",children:"How YourStory Works"}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-fluid-md mb-fluid-xl",children:d.map((a,i)=>{let s=a.icon;return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{onClick:()=>o(i),className:`relative rounded-3xl p-fluid-lg border-2 cursor-pointer transition-all group mb-fluid-md ${e===i?"bg-marketing-background-secondary border-marketing-hero-accent shadow-lg shadow-marketing-hero-accent/20":"bg-marketing-card-background border-marketing-card-border hover:border-marketing-card-hoverBorder"}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-marketing-hero-accent/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-3xl flex items-center justify-center z-20",children:(0,t.jsx)("div",{className:"bg-white rounded-full p-fluid-md shadow-lg",children:(0,t.jsx)(A.PlayIcon,{className:"w-8 h-8 text-marketing-hero-accent"})})}),(0,t.jsx)("h3",{className:"text-fluid-xl font-bold mb-fluid-md text-marketing-card-heading relative z-10",children:a.title}),(0,t.jsx)("p",{className:"text-marketing-card-text relative z-10",children:a.description})]}),(0,t.jsxs)(r.default,{href:`/onboarding#${a.tutorialId}`,className:"flex items-center gap-fluid-xs text-marketing-text-secondary hover:text-marketing-text-primary transition-colors justify-center",children:[(0,t.jsx)("div",{className:`${a.color} rounded-full p-fluid-xs text-white`,children:(0,t.jsx)(s,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"text-fluid-sm font-medium",children:"View Full Tutorial"})]})]},i)})}),(0,t.jsx)("div",{className:"bg-marketing-background-secondary rounded-3xl p-fluid-xl",children:(0,t.jsx)("div",{className:"max-w-3xl mx-auto",children:(0,t.jsx)(l.Video,{videoKey:d[e].videoKey,vimeoId:d[e].vimeoId},e)})})]}),(0,t.jsx)(B,{}),(0,t.jsx)(U,{}),(0,t.jsx)(k,{}),(0,t.jsxs)("div",{className:"bg-marketing-background-secondary rounded-3xl p-fluid-xl",children:[(0,t.jsxs)("div",{className:"text-center mb-fluid-xl",children:[(0,t.jsx)("h2",{className:"text-fluid-3xl font-bold mb-fluid-md text-marketing-text-primary",children:"Complete Curriculum Coverage"}),(0,t.jsx)("p",{className:"text-fluid-lg text-marketing-text-secondary",children:"Content for all grades and every subject"})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(r.default,{href:"/subjects",className:"btn btn-lg bg-marketing-button-primary-background text-marketing-button-primary-text hover:bg-marketing-button-primary-backgroundHover border-0 rounded-full w-full sm:w-auto",children:"Explore Subjects"})})]}),(0,t.jsx)(x,{}),(0,t.jsx)(L,{title:"About YourStory",description:"YourStory is the first AI tool that puts teachers in full control of personalized instruction, planning, and student progress tracking.",primaryButton:{text:"Learn About Our Company",href:"/company"},secondaryButton:{text:"Privacy Policy",href:"/privacy"}}),(0,t.jsx)(q,{})]})}e.s(["MarketingPageContent",()=>_],389408)}]);
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.